def internal_fin_head
bend-mathlib@0.8.1.0 · string.bend:259
import bend-mathlib@0.8.1.0/string.bend as String
import Base
import bend-mathlib@0.8.1.0/bool.bend as MBool
259def internal_fin_head(ab: Bool, bb: Bool, c: Cmp, h: {Cmp.is_eq(Word.cmp.fin(ab, bb, c)) == True{} : Bool}) -> {ab == bb : Bool}:
260 match c:
261 case LT{}:
262 Empty.absurd({ab == bb : Bool}, internal_false_ne_true(h))
263 case EQ{}:
264 MBool.eq_of_cmp_eq(ab, bb, h)
265 case GT{}:
266 Empty.absurd({ab == bb : Bool}, internal_false_ne_true(h))