def add_zero

stelliferous@0.0.2.0 · proofs/bounded_u32_arithmetic.bend:31

import stelliferous@0.0.2.0/proofs/bounded_u32_arithmetic.bend as BoundedU32Arithmetic
import Base
import stelliferous@0.0.2.0/proofs/natural_addition.bend as Addition

31def add_zero(+value: U32) -> {(value + 0 : U32) == value : U32}:
32  %native_roundtrip(value) : {(value + 0 : U32) == _ : U32}
33  %Addition.zero_right(U32.to_nat(value)) : {(value + 0 : U32) == U32.from_nat(_) : U32}
34  native_add(value,0)

Uses (7)

Used by (3)