TraversalWitness.update_current: def of stelliferous@0.0.2.0 Import: import stelliferous@0.0.2.0/proofs/traversal_witness.bend as TraversalWitness Lines 120-134 of stelliferous@0.0.2.0/proofs/traversal_witness.bend: https://jend.leeeet.dev/read.txt?path=stelliferous@0.0.2.0/proofs/traversal_witness.bend&start_line=120&end_line=134 import Base import stelliferous@0.0.2.0/traversal_array.bend as Traversal import stelliferous@0.0.2.0/proofs/storage_witness.bend as Witness def update_current(~Reader: Type,~Element: Data,~Value: Data,~Context: Data, ~read: Reader -> Context -> U32 -> Reader & Value,~combine: Element -> Value -> Element, ~destination: Context -> U32 -> U32,+depth: Nat,-reader: Reader,+position: U32,+context: Context, -output: Array,-result: Array & Element, output_evidence: Witness.Witness(Element,depth,output),observed: Witness.Read, sample: Sample) -> StateEvidence: match observed: case Witness.Read{value,equation}: %Equal.sym(Array & Element,result,(output,value),equation) : StateEvidence update_sample(~Reader,~Element,~Value,~Context,~combine,~destination,depth,reader,position,context,output,value, read(reader,context,position),output_evidence,sample) Uses (12): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Array 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=Sigma https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=stelliferous@0.0.2.0/proofs/storage_witness.bend&name=Read https://jend.leeeet.dev/definition.txt?path=stelliferous@0.0.2.0/proofs/storage_witness.bend&name=Witness https://jend.leeeet.dev/definition.txt?path=stelliferous@0.0.2.0/proofs/traversal_witness.bend&name=Sample https://jend.leeeet.dev/definition.txt?path=stelliferous@0.0.2.0/proofs/traversal_witness.bend&name=StateEvidence https://jend.leeeet.dev/definition.txt?path=stelliferous@0.0.2.0/proofs/traversal_witness.bend&name=update_sample https://jend.leeeet.dev/definition.txt?path=stelliferous@0.0.2.0/traversal_array.bend&name=update_current