Refinement.get_final: def of bendtorch-core@0.1.0.0 Import: import bendtorch-core@0.1.0.0/src/storage/refinement.bend as Refinement Lines 249-263 of bendtorch-core@0.1.0.0/src/storage/refinement.bend: https://jend.leeeet.dev/read.txt?path=bendtorch-core@0.1.0.0/src/storage/refinement.bend&start_line=249&end_line=263 import Base import bendtorch-core@0.1.0.0/src/storage/size.bend as Size def get_final(-T: Data, -d: Nat, -original: Array, -sized_array: Array, -n: U32, -i: U32, measured: {(sized_array, n) == Array.size(T, original) : Array & U32}, +retained: {sized_array == original : Array}, extent: {n == Size.capacity(d) : U32}, child: Get) -> GetFull: match child: case Get{array, value, equal, kept, observed, valid}: GetFull{array, value, Equal.trans(Array & T, (array, value), Array.get.at(T, i, (sized_array, n)), Array.get(T, original, i), equal, Equal.cong(Array & U32, Array & T, r => Array.get.at(T, i, r), (sized_array, n), Array.size(T, original), measured)), Equal.trans(Array, array, sized_array, original, kept, retained), observed_transport(T, d, sized_array, original, n, i, value, retained, extent, observed), valid} Uses (17): 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=Array.get.at https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Array.size https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Equal.cong 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=Pair https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Sigma https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.is_lt https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.shr https://jend.leeeet.dev/definition.txt?path=bendtorch-core@0.1.0.0/src/storage/refinement.bend&name=Get https://jend.leeeet.dev/definition.txt?path=bendtorch-core@0.1.0.0/src/storage/refinement.bend&name=GetFull https://jend.leeeet.dev/definition.txt?path=bendtorch-core@0.1.0.0/src/storage/refinement.bend&name=masked https://jend.leeeet.dev/definition.txt?path=bendtorch-core@0.1.0.0/src/storage/refinement.bend&name=observed_transport https://jend.leeeet.dev/definition.txt?path=bendtorch-core@0.1.0.0/src/storage/size.bend&name=capacity