OAI/Computability/UniqueGames/Machines/MachineRegularFamily.lean
54 declarations, 0 contain sorry, 0 declared as axioms
Materializing a cloud rotor inside the regularization machine
Core tape 4 contains the unary cloud size and core tape 7 receives the complete forward rotor table. The actual family computation runs on private tapes; three retained unary words are then physically drained. All other core tapes are preserved and all private tapes are empty on return.
- abbrev
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularFamily.CoreTapeline 20 - abbrev
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularFamily.NativeTapeline 21 - abbrev
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularFamily.Tapeline 22 - abbrev
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularFamily.Alphabetline 23 - abbrev
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularFamily.SmallTableline 24 - abbrev
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularFamily.FamilyStateline 25 - abbrev
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularFamily.Stateline 26 - def
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularFamily.inputNativeline 28 - def
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularFamily.outputNativeline 29 - def
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularFamily.powerNativeline 30 - def
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularFamily.sizeNativeline 31 - def
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularFamily.levelNativeline 32 - def
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularFamily.powerTapeline 34 - def
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularFamily.sizeTapeline 35 - def
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularFamily.levelTapeline 36 - def
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularFamily.familyTapeline 39Source documentation
Unused private shadows of the two public roles remain empty.
def familyTape (t : NativeTape) : Tape := …
Mentions: OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularFamily.NativeTape, OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularFamily.Tape
- def
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularFamily.familyViewline 42 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularFamily.familyView_leftline 46 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularFamily.familyView_rightline 53 - def
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularFamily.stateEquivline 74 - def
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularFamily.seedStateline 77 - def
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularFamily.readyStateline 80 - def
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularFamily.sourceProgramline 82 - inductive
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularFamily.Labelline 86 - def
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularFamily.programline 94Source documentation
Every size-dependent operation is performed by the checked native program. The entry load only resets the finite control state.
def program (H : SmallTable) : Label → TM2.Stmt Alphabet Label State | .start => .load (fun _ => readyState H) (.goto fun _ => .family MachinePaddedExpanderFamily.main) | .family l => Placement.statement familyTape Label.family (some .drainPower) (sourceProgram H l) | .drainPower => MachineDrain.drain powerTape .drainPower (some .drainSize) | .drainSize => MachineDrain.drain sizeTape .drainSize (some .drainLevel) | .drainLevel => MachineDrain.drain levelTape .drainLevel none
Mentions: OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularFamily.SmallTable, OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularFamily.Label, OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularFamily.Alphabet, OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularFamily.State, OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularFamily.readyState, OAI.UniqueGamesTheorem.Foundations.Complexity.MachinePaddedExpanderFamily.main, OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularFamily.familyTape, OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularFamily.sourceProgram, OAI.UniqueGamesTheorem.Foundations.Complexity.MachineDrain.drain, OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularFamily.powerTape, OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularFamily.sizeTape, OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularFamily.levelTape
- def
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularFamily.frameline 101 - def
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularFamily.rotorline 105 - def
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularFamily.resultCoreline 108 - def
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularFamily.workingline 111 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularFamily.working_powerline 116 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularFamily.working_sizeline 119 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularFamily.working_levelline 123 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularFamily.update_working_powerline 127 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularFamily.update_working_sizeline 134 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularFamily.update_working_levelline 144 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularFamily.working_emptyline 154 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularFamily.initial_otherline 158 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularFamily.final_otherline 165Source documentation
The only retained native work words are the two sizes and the exhausted level.
private theorem final_other (H : SmallTable) (k : Nat) (t : NativeTape) (hi : t ≠ inputNative) (ho : t ≠ outputNative) (hp : t ≠ powerNative) (hs : t ≠ sizeNative) (hl : t ≠ levelNative) : MachinePaddedExpanderFamily.finalTapes H k t = [] := by …Mentions: OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularFamily.SmallTable, OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularFamily.NativeTape, OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularFamily.inputNative, OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularFamily.outputNative, OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularFamily.powerNative, OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularFamily.sizeNative, OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularFamily.levelNative, OAI.UniqueGamesTheorem.Foundations.Complexity.MachinePaddedExpanderFamily.finalTapes
- theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularFamily.initial_placementline 186 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularFamily.final_placementline 207 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularFamily.source_initial_stateline 255 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularFamily.source_final_stateline 259 - def
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularFamily.familyInTimeline 265Source documentation
The actual native family run, including geometric-level computation.
noncomputable def familyInTime (H : SmallTable) (k : Nat) (core : CoreTape → List Bool) (hinput : core 4 = encodeWord k) (houtput : core 7 = []) : StateTransition.EvalsToInTime (TM2.step (program H)) ⟨some (.family MachinePaddedExpanderFamily.main), readyState H, frame core⟩ (some ⟨some .drainPower, readyState H, working (resultCore H k core) (encodeWord (PCP.PreprocessingLevels.paddedSize k)) (encodeWord (PCP.PreprocessingLevels.paddedSize k)) (encodeWord 0)⟩) (MachinePaddedExpanderFamilyBounds.timePolynomial.eval (encodeWord k).length) := by …Mentions: OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularFamily.SmallTable, OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularFamily.CoreTape, OAI.UniqueGamesTheorem.Foundations.Complexity.encodeWord, OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularFamily.program, OAI.UniqueGamesTheorem.Foundations.Complexity.MachinePaddedExpanderFamily.main, OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularFamily.readyState, OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularFamily.frame, OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularFamily.working, OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularFamily.resultCore, OAI.UniqueGamesTheorem.Foundations.PCP.PreprocessingLevels.paddedSize
- theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularFamily.appendTraceline 286 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularFamily.cleanupTraceline 291Source documentation
Every retained private symbol is physically popped.
theorem cleanupTrace (H : SmallTable) (m : Nat) (core : CoreTape → List Bool) : (advance (TM2.step (program H)))^[2*m+6] (some ⟨some .drainPower, readyState H, working core (encodeWord m) (encodeWord m) (encodeWord 0)⟩) = some ⟨none, readyState H, frame core⟩ := by …Mentions: OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularFamily.SmallTable, OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularFamily.CoreTape, OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularFamily.program, OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularFamily.readyState, OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularFamily.working, OAI.UniqueGamesTheorem.Foundations.Complexity.encodeWord, OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularFamily.frame
- def
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularFamily.cleanupInTimeline 313 - def
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularFamily.startInTimeline 322 - def
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularFamily.timePolynomialline 332 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularFamily.totalBudget_leline 336 - def
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularFamily.familyCleanInTimeline 349Source documentation
Complete clean-frame execution, from the caller's actual unary request. No callback, table-construction premise, or caller-supplied runtime is assumed.
noncomputable def familyCleanInTime (H : SmallTable) (k : Nat) (core : CoreTape → List Bool) (hinput : core 4 = encodeWord k) (houtput : core 7 = []) (state : State) : StateTransition.EvalsToInTime (TM2.step (program H)) ⟨some .start, state, frame core⟩ (some ⟨none, readyState H, frame (resultCore H k core)⟩) (timePolynomial.eval (encodeWord k).length) := by …Mentions: OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularFamily.SmallTable, OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularFamily.CoreTape, OAI.UniqueGamesTheorem.Foundations.Complexity.encodeWord, OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularFamily.State, OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularFamily.program, OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularFamily.frame, OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularFamily.readyState, OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularFamily.resultCore
- theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularFamily.result_outputline 365 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularFamily.result_preserves_coreline 368 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularFamily.result_private_emptyline 372 - def
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularFamily.placedInTimeline 377Source documentation
Direct embedding of the entire helper into another finite program.
noncomputable def placedInTime {K Λ : Type} [DecidableEq K] (tape : Tape → K) (view : K → Option Tape) (left : ∀ t, view (tape t) = some t) (right : ∀ j t, view j = some t → tape t = j) (labels : Label → Λ) (exit : Option Λ) (extra : K → List Bool) (H : SmallTable) (target : Λ → TM2.Stmt (fun _ : K => Bool) Λ State) (code : ∀ l, target (labels l) = Placement.statement tape labels exit (program H l)) (k : Nat) (core : CoreTape → List Bool) (hinput : core 4 = encodeWord k) (houtput : core 7 = []) (state : State) : StateTransition.EvalsToInTime (TM2.step target) (Placement.configuration view labels exit extra ⟨some .start, state, frame core⟩) (some (Placement.configuration view labels exit extra …Mentions: OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularFamily.Tape, OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularFamily.Label, OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularFamily.SmallTable, OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularFamily.State, OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularFamily.program, OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularFamily.CoreTape, OAI.UniqueGamesTheorem.Foundations.Complexity.encodeWord, OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularFamily.frame