StorageShape.same_capacity: def of stelliferous@0.0.2.0 Import: import stelliferous@0.0.2.0/proofs/storage_shape.bend as StorageShape Lines 94-99 of stelliferous@0.0.2.0/proofs/storage_shape.bend: https://jend.leeeet.dev/read.txt?path=stelliferous@0.0.2.0/proofs/storage_shape.bend&start_line=94&end_line=99 import Base import stelliferous@0.0.2.0/proofs/storage_tree_model.bend as Tree # Balanced trees at the same depth expose the same native capacity. def same_capacity(-Element: Data,+depth: Nat,+left: Tree.Tree,+right: Tree.Tree, left_balanced: Balanced(Element,depth,left),right_balanced: Balanced(Element,depth,right)) -> {Tree.capacity(Element,left) == Tree.capacity(Element,right) : U32}: Equal.trans(U32,Tree.capacity(Element,left),U32.shln(1,depth),Tree.capacity(Element,right),capacity(Element,depth,left,left_balanced), Equal.sym(U32,Tree.capacity(Element,right),U32.shln(1,depth),capacity(Element,depth,right,right_balanced))) Uses (9): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Equal.sym https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Equal.trans https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.shln https://jend.leeeet.dev/definition.txt?path=stelliferous@0.0.2.0/proofs/storage_shape.bend&name=Balanced https://jend.leeeet.dev/definition.txt?path=stelliferous@0.0.2.0/proofs/storage_shape.bend&name=capacity https://jend.leeeet.dev/definition.txt?path=stelliferous@0.0.2.0/proofs/storage_tree_model.bend&name=Tree https://jend.leeeet.dev/definition.txt?path=stelliferous@0.0.2.0/proofs/storage_tree_model.bend&name=capacity