law count_agree

minebender-game@1.0.0.0 · proof_solver.bend:559

import minebender-game@1.0.0.0/proof_solver.bend as ProofSolver
import Base
import minebender-game@1.0.0.0/types.bend as T
import minebender-game@1.0.0.0/board.bend as B
import minebender-game@1.0.0.0/proof_cells.bend as PS

559law count_agree:
560  for +w: Nat
561  for +h: Nat
562  for +l1: T.Grid(Bool)
563  for +l2: T.Grid(Bool)
564  for +ag: {agree(w, h, l1, l2) == True{} : Bool}
565  for +ps: List<&2, T.Pos>
566  for +ons: {PS.allp(~PS.WH, ~PS.onb, PS.WH{w, h}, ps) == True{} : Bool}
567  {B.count_mines(l1, ps) == B.count_mines(l2, ps) : Nat}

Uses (17)

Used by (2)