ProofSums.csum: def of minebender-game@1.0.0.0 Import: import minebender-game@1.0.0.0/proof_sums.bend as ProofSums Lines 71-77 of minebender-game@1.0.0.0/proof_sums.bend: https://jend.leeeet.dev/read.txt?path=minebender-game@1.0.0.0/proof_sums.bend&start_line=71&end_line=77 import Base import minebender-game@1.0.0.0/types.bend as T import minebender-game@1.0.0.0/board.bend as B # The sum of f over the cells ps of the grid. def csum(~A: Data, ~f: A -> Nat, +d: A, +g: T.Grid(A), ps: List<&2, T.Pos>) -> Nat: match ps: case Nil{}: 0n case q <> t: Nat.add(f(B.at(A, d, g, q)), csum(~A, ~f, d, g, t)) Uses (6): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat.add https://jend.leeeet.dev/definition.txt?path=minebender-game@1.0.0.0/board.bend&name=at https://jend.leeeet.dev/definition.txt?path=minebender-game@1.0.0.0/types.bend&name=Grid https://jend.leeeet.dev/definition.txt?path=minebender-game@1.0.0.0/types.bend&name=Pos