law fill_at

minebender-game@1.0.0.0 · proof_solver.bend:453

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/solver.bend as S

453# A filled-in cell holds what the partial layout fixed (False if nothing).
454law fill_at:
455  for +part: T.Grid(Maybe<&2, Bool>)
456  for +q: T.Pos
457  {B.mine(S.fill(part), q) == Maybe.default(&2, Bool, S.look(part, q), False{}) : Bool}

Uses (14)

Used by (2)