OAI/Computability/UniqueGames/Machines/MachineFixedDivMod.lean
33 declarations, 0 contain sorry, 0 declared as axioms
- abbrev
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineFixedDivMod.Alphabetline 16 - abbrev
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineFixedDivMod.Stateline 17 - def
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineFixedDivMod.residueline 19 - def
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineFixedDivMod.nextResidueline 22 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineFixedDivMod.nextResidue_residueline 25 - def
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineFixedDivMod.scanLoopline 31 - def
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineFixedDivMod.emitterline 45Source documentation
Each emitter is a fixed finite statement indexed by one of the
dresidues.def emitter (d : Nat) (positive : 0 < d) (remainder : K) (exit : Option Λ) (r : Fin d) : TM2.Stmt (Alphabet (K := K)) Λ (State σ d) := …Mentions: OAI.UniqueGamesTheorem.Foundations.Complexity.MachineFixedDivMod.Alphabet, OAI.UniqueGamesTheorem.Foundations.Complexity.MachineFixedDivMod.State
- theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineFixedDivMod.scanPushBoundline 52 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineFixedDivMod.emitterPushBoundline 58 - abbrev
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineFixedDivMod.tapesline 66Source documentation
Three designated tapes, with the complete surrounding tape family retained.
abbrev tapes (source quotient remainder : K) (base : K → List Bool) (input quotientWord remainderWord : List Bool) : K → List Bool := … - def
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineFixedDivMod.unaryTapesline 70 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineFixedDivMod.unaryTapes_sourceline 75 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineFixedDivMod.unaryTapes_quotientline 83 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineFixedDivMod.unaryTapes_remainderline 90 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineFixedDivMod.unaryTapes_otherline 97 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineFixedDivMod.update_sourceline 105 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineFixedDivMod.update_quotientline 123 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineFixedDivMod.update_remainderline 137 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineFixedDivMod.scanAux_trueline 143 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineFixedDivMod.scanAux_falseline 159 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineFixedDivMod.scanStep_succline 174Source documentation
A scan transition updates the actual quotient and finite residue of the already-processed count. The count itself is a proof index, not machine state.
theorem scanStep_succ (d : Nat) (positive : 0 < d) (source quotient remainder : K) (sourceQuotient : source ≠ quotient) (sourceRemainder : source ≠ remainder) (quotientRemainder : quotient ≠ remainder) (scanLabel : Λ) (emitterLabel : Fin d → Λ) (program : Λ → TM2.Stmt (Alphabet (K := K)) Λ (State σ d)) …Mentions: OAI.UniqueGamesTheorem.Foundations.Complexity.MachineFixedDivMod.Alphabet, OAI.UniqueGamesTheorem.Foundations.Complexity.MachineFixedDivMod.State
- theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineFixedDivMod.scanStep_zeroline 201 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineFixedDivMod.emitterStepline 224 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineFixedDivMod.trace_fromCountline 250Source documentation
The general invariant starts at the finite residue and unary quotient of
k, then scansnadditional input bits. It is an actual execution theorem.theorem trace_fromCount (d : Nat) (positive : 0 < d) (source quotient remainder : K) (sourceQuotient : source ≠ quotient) (sourceRemainder : source ≠ remainder) (quotientRemainder : quotient ≠ remainder) (scanLabel : Λ) (emitterLabel : Fin d → Λ) (exit : Option Λ) (program : Λ → TM2.Stmt (Alphabet (K := K)) Λ (State σ d)) …Mentions: OAI.UniqueGamesTheorem.Foundations.Complexity.MachineFixedDivMod.Alphabet, OAI.UniqueGamesTheorem.Foundations.Complexity.MachineFixedDivMod.State
- theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineFixedDivMod.divModTraceline 288Source documentation
Exact unary quotient and remainder, with both output counters initially zero.
theorem divModTrace (d : Nat) (positive : 0 < d) (source quotient remainder : K) (sourceQuotient : source ≠ quotient) (sourceRemainder : source ≠ remainder) (quotientRemainder : quotient ≠ remainder) (scanLabel : Λ) (emitterLabel : Fin d → Λ) (exit : Option Λ) (program : Λ → TM2.Stmt (Alphabet (K := K)) Λ (State σ d)) …Mentions: OAI.UniqueGamesTheorem.Foundations.Complexity.MachineFixedDivMod.Alphabet, OAI.UniqueGamesTheorem.Foundations.Complexity.MachineFixedDivMod.State
- theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineFixedDivMod.divModFromTapesline 310Source documentation
Caller-frame form: the only initial tape hypotheses are the three unary prefixes.
theorem divModFromTapes (d : Nat) (positive : 0 < d) (source quotient remainder : K) (sourceQuotient : source ≠ quotient) (sourceRemainder : source ≠ remainder) (quotientRemainder : quotient ≠ remainder) (scanLabel : Λ) (emitterLabel : Fin d → Λ) (exit : Option Λ) (program : Λ → TM2.Stmt (Alphabet (K := K)) Λ (State σ d)) …Mentions: OAI.UniqueGamesTheorem.Foundations.Complexity.MachineFixedDivMod.Alphabet, OAI.UniqueGamesTheorem.Foundations.Complexity.MachineFixedDivMod.State
- def
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineFixedDivMod.divModInTimeline 337 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineFixedDivMod.scanTrace_fromCountline 362Source documentation
Stop just before emission, retaining the final finite residue as actual control.
theorem scanTrace_fromCount (d : Nat) (positive : 0 < d) (source quotient remainder : K) (sourceQuotient : source ≠ quotient) (sourceRemainder : source ≠ remainder) (quotientRemainder : quotient ≠ remainder) (scanLabel : Λ) (emitterLabel : Fin d → Λ) (program : Λ → TM2.Stmt (Alphabet (K := K)) Λ (State σ d)) …Mentions: OAI.UniqueGamesTheorem.Foundations.Complexity.MachineFixedDivMod.Alphabet, OAI.UniqueGamesTheorem.Foundations.Complexity.MachineFixedDivMod.State
- def
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineFixedDivMod.emitterWithFinishline 396Source documentation
A fixed table on finite ambient control may retain the residue before local reset.
def emitterWithFinish [Fintype σ] (d : Nat) (positive : 0 < d) (remainder : K) (exit : Option Λ) (finish : σ → Fin d → σ) (r : Fin d) : TM2.Stmt (Alphabet (K := K)) Λ (State σ d) := …Mentions: OAI.UniqueGamesTheorem.Foundations.Complexity.MachineFixedDivMod.Alphabet, OAI.UniqueGamesTheorem.Foundations.Complexity.MachineFixedDivMod.State
- theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineFixedDivMod.emitterWithFinishPushBoundline 404 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineFixedDivMod.emitterWithFinishStepline 412 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineFixedDivMod.divModTraceWithFinishline 439Source documentation
The callback is a fixed finite-control table, applied in the existing emitter transition.
theorem divModTraceWithFinish [Fintype σ] (d : Nat) (positive : 0 < d) (source quotient remainder : K) (sourceQuotient : source ≠ quotient) (sourceRemainder : source ≠ remainder) (quotientRemainder : quotient ≠ remainder) (scanLabel : Λ) (emitterLabel : Fin d → Λ) (exit : Option Λ) (finish : σ → Fin d → σ) (program : Λ → TM2.Stmt (Alphabet (K := K)) Λ (State σ d)) …Mentions: OAI.UniqueGamesTheorem.Foundations.Complexity.MachineFixedDivMod.Alphabet, OAI.UniqueGamesTheorem.Foundations.Complexity.MachineFixedDivMod.State
- theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineFixedDivMod.divModFromTapesWithFinishline 467