def eq_of_cmp
import bend-collections-laws-math@1.0.0.0/proofs/math/typed/natcmp.bend as Natcmpimport Base
import bend-collections-laws-math@1.0.0.0/proofs/lib/nat.bend as N
93def eq_of_cmp(+a: Nat, +b: Nat, +h: {Nat.cmp(a, b) == EQ{} : Cmp}) -> {a == b : Nat}:
94 N.eq_from_is_eq(a, b, Equal.cong(Cmp, Bool, t => Cmp.is_eq(t), Nat.cmp(a, b), EQ{}, h))
Uses (7)
Used by (7)
- bend-collections-laws-math@1.0.0.0/proofs/math/typed/f64round:bl_c
- bend-collections-laws-math@1.0.0.0/proofs/math/typed/f64round:rp_c
- bend-collections-laws-math@1.0.0.0/proofs/math/random/fround:bl_c
- bend-collections-laws-math@1.0.0.0/proofs/math/random/fround:rp_c
- bend-collections-laws-math@1.0.0.0/proofs/math/typed/f64addf:core_c
- …