ProofGrid.toggle_self: law of minebender-game@1.0.0.0 Import: import minebender-game@1.0.0.0/proof_grid.bend as ProofGrid Lines 305-309 of minebender-game@1.0.0.0/proof_grid.bend: https://jend.leeeet.dev/read.txt?path=minebender-game@1.0.0.0/proof_grid.bend&start_line=305&end_line=309 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/game.bend as G # Toggling p flips whether p is in the list. law toggle_self: for +flags: List<&2, T.Pos> for +p: T.Pos {B.contains(G.toggle(flags, p), p) == Bool.not(B.contains(flags, p)) : Bool} Uses (7): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool.not https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=minebender-game@1.0.0.0/board.bend&name=contains https://jend.leeeet.dev/definition.txt?path=minebender-game@1.0.0.0/game.bend&name=toggle https://jend.leeeet.dev/definition.txt?path=minebender-game@1.0.0.0/proof_grid.bend&name=toggle_self.go https://jend.leeeet.dev/definition.txt?path=minebender-game@1.0.0.0/types.bend&name=Pos