def nsm_blank.cell

minebender-game@1.0.0.0 · proof_inv.bend:414

import minebender-game@1.0.0.0/proof_inv.bend as ProofInv
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_lists.bend as PL

414def nsm_blank.cell(+w: Nat, +h: Nat, +layout: T.Grid(Bool), +q: T.Pos) ->
415  {nsm_f(LS{layout, B.blank(Bool, w, h, False{})}, q) == True{} : Bool}:
416  match q:
417    case T.Pos{x, y}:
418      %Equal.sym(Bool, B.at(Bool, False{}, B.blank(Bool, w, h, False{}), T.Pos{x, y}), False{}, PL.blank_at(w, h, x, y)) :
419        {Bool.not(Bool.and(_, B.mine(layout, T.Pos{x, y}))) == True{} : Bool}
420      {==}

Uses (13)

Used by (1)