law neighbours_all

minebender-game@1.0.0.0 · proof_cells.bend:515

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

515# Every neighbour of s is adjacent to s and on the board.
516law neighbours_all:
517  for +w: Nat
518  for +h: Nat
519  for +s: T.Pos
520  {allp(~WHS, ~adj_on, WHS{w, h, s}, B.neighbours(w, h, s)) == True{} : Bool}

Uses (10)

Used by (5)