law true_set_t

minebender-game@1.0.0.0 · proof_speed.bend:186

import minebender-game@1.0.0.0/proof_speed.bend as ProofSpeed
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/solver.bend as S

186# ... and adds a mine when it places one ...
187law true_set_t:
188  for +w: Nat
189  for +h: Nat
190  for +part: T.Grid(Maybe<&2, Bool>)
191  for +x: Nat
192  for +y: Nat
193  for +sh: {B.shaped(Maybe<&2, Bool>, w, h, part) == True{} : Bool}
194  for +on: {B.on_board(w, h, T.Pos{x, y}) == True{} : Bool}
195  for +fr: {S.look(part, T.Pos{x, y}) == None{} : Maybe<&2, Bool>}
196  {S.part_true(B.set_at(Maybe<&2, Bool>, part, T.Pos{x, y}, Some{True{}})) == 1n+S.part_true(part) : Nat}

Uses (16)

Used by (1)