def as_of
import bend-collections-laws-math@1.0.0.0/proofs/math/typed/u32int.bend as U32intimport Base
import bend-collections-laws-math@1.0.0.0/proofs/math/typed/u32laws.bend as LW
42# x is the U32 of its value
43def as_of(+x: U32, +n: Nat, +h: {v(x) == n : Nat}) -> {x == of(n) : U32}:
44 Equal.trans(U32, x, of(v(x)), of(n), Equal.sym(U32, of(v(x)), x, LW.rt(x)), Equal.cong(Nat, U32, t => of(t), v(x), n, h))
Uses (8)
Used by (24)
- bend-collections-laws-math@1.0.0.0/proofs/math/typed/u32int:min_c
- bend-collections-laws-math@1.0.0.0/proofs/math/typed/u32int:cadd_rel
- bend-collections-laws-math@1.0.0.0/proofs/math/typed/u32int:cm
- bend-collections-laws-math@1.0.0.0/proofs/math/typed/u32int:cmul_rel
- bend-collections-laws-math@1.0.0.0/proofs/math/typed/u32int:comb_top
- …