Certificates.get_result: def of bendtorch-core@0.1.0.0 Import: import bendtorch-core@0.1.0.0/src/storage/certificates.bend as Certificates Lines 6-11 of bendtorch-core@0.1.0.0/src/storage/certificates.bend: https://jend.leeeet.dev/read.txt?path=bendtorch-core@0.1.0.0/src/storage/certificates.bend&start_line=6&end_line=11 import Base import bendtorch-core@0.1.0.0/src/storage/model.bend as Model import bendtorch-core@0.1.0.0/src/storage/refinement.bend as Refinement def get_result(-T: Data, +d: Nat, original: Array, +i: U32, -result: Array & T, equal: {result == Array.get(T, original, i) : Array & T}, valid: Model.Balanced(T, d, original)) -> Model.Balanced(T, d, Refinement.first(T, result)): %Equal.sym(Array & T, result, Array.get(T, original, i), equal) : Model.Balanced(T, d, Refinement.first(T, _)) Refinement.law_get_balanced(T, d, original, i, valid) Uses (9): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Array https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Array.get 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=Pair https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 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/refinement.bend&name=first https://jend.leeeet.dev/definition.txt?path=bendtorch-core@0.1.0.0/src/storage/refinement.bend&name=law_get_balanced