Size.certify: def of bendtorch-core@0.1.0.0 Import: import bendtorch-core@0.1.0.0/src/storage/size.bend as Size Lines 29-39 of bendtorch-core@0.1.0.0/src/storage/size.bend: https://jend.leeeet.dev/read.txt?path=bendtorch-core@0.1.0.0/src/storage/size.bend&start_line=29&end_line=39 import Base import bendtorch-core@0.1.0.0/src/storage/model.bend as Model def certify(-T: Data, +d: Nat, array: Array, valid: Model.Balanced(T, d, array)) -> Sized: match d array: case 0n ALeaf{x}: Sized{ALeaf{x}, 1, {==}, {==}, {==}, valid} case 0n ANode{xs, ys}: match valid: case 1n+p ALeaf{x}: match valid: case 1n++p ANode{xs, ys}: (ex, ey) = valid join(T, p, xs, ys, certify(T, p, xs, ex), ey) Uses (6): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Array https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Sigma https://jend.leeeet.dev/definition.txt?path=bendtorch-core@0.1.0.0/src/storage/model.bend&name=Balanced https://jend.leeeet.dev/definition.txt?path=bendtorch-core@0.1.0.0/src/storage/size.bend&name=Sized https://jend.leeeet.dev/definition.txt?path=bendtorch-core@0.1.0.0/src/storage/size.bend&name=join