law open_safe_

minebender-game@1.0.0.0 · proof_laws.bend:922

import minebender-game@1.0.0.0/proof_laws.bend as ProofLaws
import Base
import minebender-game@1.0.0.0/types.bend as T
import minebender-game@1.0.0.0/game.bend as G
import minebender-game@1.0.0.0/LAWS.bend as L

922law open_safe_:
923  for +w: Nat
924  for +h: Nat
925  for +layout: T.Grid(Bool)
926  for shape: {L.shaped(Bool, w, h, layout) == True{} : Bool}
927  for +g: G.Game
928  for r: L.Reachable(w, h, layout, g)
929  for +playing: {G.status(g) == T.Playing{} : T.Status}
930  for +p: T.Pos
931  for safe: {L.mine(layout, p) == False{} : Bool}
932  {L.is_lost(G.status(G.open(g, p))) == False{} : Bool}

Uses (15)

Used by (1)