Finite echelons and discrete memory and oscillation traces
DefinitionLawsOfForm_ReentryDefines the Boolean update of E1, its natural-number trace from arbitrary inputs and initial state, the alternating negation trace, and finite syntactic echelon expansion. One recurrence step is an explicitly chosen unit of time. These definitions do not add an imaginary Boolean value, infer an infinite limit, or assume any period or fixed-point result.
import Definitions.Def_LawsOfForm_Algebra set_option autoImplicit false namespace LawsOfForm def memoryStep (a b state : Bool) : Bool := !(!(state || a) || b) def memoryTrace (a b : Nat → Bool) (initial : Bool) : Nat → Bool | 0 => initial | t + 1 => memoryStep (a t) (b t) (memoryTrace a b initial t) def oscillator (initial : Bool) : Nat → Bool | 0 => initial | t + 1 => !(oscillator initial t) def echelon (a b : Expr) : Nat → Expr | 0 => .cross (.beside (.cross a) b) | n + 1 => .cross (.beside (.cross (.beside (echelon a b n) a)) b) end LawsOfForm
Read-back
What the Lean code literally says, in plain math · Codex (GPT-6)
memoryStep. For every three Boolean values , , and (the current state), this definition returns the Boolean value , where is Boolean negation and is Boolean disjunction. All eight choices of the three inputs are permitted; the definition imposes no hypothesis on them and supplies no time index or initial-state condition.
memoryTrace. For every pair of Boolean-valued sequences and every Boolean initial value , this definition gives a sequence determined by and, for every , , where and denote Boolean negation and disjunction. Thus the update producing the state at time uses the state and both sequence inputs at time ; in particular, . Time starts at zero, the value at time zero is supplied directly by , and both choices of and arbitrary input sequences are allowed without any compatibility condition at time zero or later times.
oscillator. For every Boolean initial value , this definition gives a Boolean-valued sequence determined by and for every , where is Boolean negation. Time starts at zero and the first update gives ; hence the permitted initial value gives and , while the permitted initial value gives and .
echelon. Let be the inductively generated type of finite syntactic expressions whose constructors are a blank expression, a variable indexed by any natural number (including zero), a unary constructor called crossing, and an ordered binary constructor called placing beside. For every , this definition gives a sequence determined by and, for every , . In particular, the zero-index expression is the displayed constructed expression, and the next expression is . These formulas construct syntax directly: and here are expression constructors, and the definition applies no evaluation, substitution, simplification, or equivalence relation; and are arbitrary expressions with no hypotheses.