PROOF.un.double_inj: def of bend-osdev-u32@0.1.0.0 Import: import bend-osdev-u32@0.1.0.0/PROOF.bend as PROOF Lines 2070-2079 of bend-osdev-u32@0.1.0.0/PROOF.bend: https://jend.leeeet.dev/read.txt?path=bend-osdev-u32@0.1.0.0/PROOF.bend&start_line=2070&end_line=2079 import Base def un.double_inj(a: Nat, b: Nat, e: {Nat.double(a) == Nat.double(b) : Nat}) -> {a == b : Nat}: match a b: case 0n 0n: {==} case 0n 1n+ +q: Empty.absurd({0n == 1n+q : Nat}, un.sz(1n+Nat.double(q), Equal.sym(Nat, 0n, 2n+Nat.double(q), e))) case 1n+ +p 0n: Empty.absurd({1n+p == 0n : Nat}, un.sz(1n+Nat.double(p), e)) case 1n+ +p 1n+ +q: un.succ_cong(p, q, un.double_inj(p, q, un.succ_inj(Nat.double(p), Nat.double(q), un.succ_inj(1n+Nat.double(p), 1n+Nat.double(q), e)))) Uses (7): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Empty.absurd https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Equal.sym https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat.double https://jend.leeeet.dev/definition.txt?path=bend-osdev-u32@0.1.0.0/PROOF.bend&name=un.succ_cong https://jend.leeeet.dev/definition.txt?path=bend-osdev-u32@0.1.0.0/PROOF.bend&name=un.succ_inj https://jend.leeeet.dev/definition.txt?path=bend-osdev-u32@0.1.0.0/PROOF.bend&name=un.sz