law count_false_zero

minebender-game@1.0.0.0 · proof_lists.bend:536

import minebender-game@1.0.0.0/proof_lists.bend as ProofLists
import Base
import minebender-game@1.0.0.0/types.bend as T
import minebender-game@1.0.0.0/board.bend as B

536# A grid with no unrevealed cell has every cell of the board revealed.
537law count_false_zero:
538  for +w: Nat
539  for +h: Nat
540  for +g: T.Grid(Bool)
541  for +x: Nat
542  for +y: Nat
543  for +sh: {B.shaped(Bool, w, h, g) == True{} : Bool}
544  for +on: {B.on_board(w, h, T.Pos{x, y}) == True{} : Bool}
545  for z: {B.count_false(g) == 0n : Nat}
546  {B.at(Bool, False{}, g, T.Pos{x, y}) == True{} : Bool}

Uses (9)

Used by (1)