Chapter 11 — Set, reset, and memory
ProvedLawsOfForm.memory_controlIn the explicitly discrete update interpretation of E1, a marked reset control b resets the next state; otherwise a marked a sets it; otherwise the previous state is retained. Inputs and initial state are arbitrary. This records a chosen one-step timing model, not an assertion about every physical propagation delay.
import Definitions.Def_LawsOfForm_Reentry set_option autoImplicit false
namespace LawsOfForm theorem memory_control (a b : Nat → Bool) (initial : Bool) (t : Nat) : (b t = true → memoryTrace a b initial (t + 1) = false) ∧ (b t = false → a t = true → memoryTrace a b initial (t + 1) = true) ∧ (b t = false → a t = false → memoryTrace a b initial (t + 1) = memoryTrace a b initial t) := by sorry end LawsOfForm
Read-back
What the Lean code literally says, in plain math · Codex (GPT-6)
For every pair of Boolean sequences , every initial Boolean value , and every time , define the Boolean sequence by and, for every , , where and are Boolean negation and disjunction. The following three implications hold simultaneously: if , then ; if , then implies ; and if , then implies . Thus the inputs at time govern the value at time ; the first implication applies for either value of , including when both inputs are true, and for either current or initial value. The quantifiers include and both possible initial values: at the first update, gives , and give , and gives , while is the prescribed initial value.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.