OAI/Computability/SpaceSimulation/Register/Comp.lean
23 declarations, 0 contain sorry, 0 declared as axioms
Uniform deterministic computation of binary register values. Inputs in the main work ports are charged (only public input x here besides the port). All pullbacks are mathematical indices; no index or bound parameter is available to a program unless it is in a port or provided in the inputs.
- def
OAI.Fifths.filesline 18Source documentation
Throughout, binary order LSB to MSB, ordinary canonical bits, also on any supplied argument tapes.
Distinct definitions of this name: ComparatorChallenges/OneTapeSpace.lean:216 (different declaration text). Qualify references as OAI.Fifths.files@path.
def files (x : List X) : Inputs X Empty := …
Mentions: OAI.Fifths.Inputs
- def
OAI.Fifths.fileline 21 - theorem
OAI.Fifths.file_okline 23 - def
OAI.Fifths.Compline 26 - theorem
OAI.Fifths.Comp.sourceline 34 - theorem
OAI.Fifths.Comp.targetline 37 - theorem
OAI.Fifths.Comp.pullline 40 - theorem
OAI.Fifths.Comp.upline 43 - theorem
OAI.Fifths.Comp.transline 46 - theorem
OAI.Fifths.Comp.congrline 48 - theorem
OAI.Fifths.Comp.reflline 50 - theorem
OAI.Fifths.Comp.constantline 54 - theorem
OAI.Fifths.Comp.onPortline 76Source documentation
Use one charged port of a larger file. Itself restores readers.
theorem onPort [DecidableEq L] (h : Comp x S a b) (k : L) (v : I → Store Empty L) (p : FitsStore S v) (o : ∀ i, (v i).ro = .home) (q : ∀ i, (v i).st k = (a i).bits) : Works (fun i => files (x i)) S v (fun i => (v i).set k (b i).bits) (fun _ => ()) := by …Mentions: OAI.Fifths.Comp, OAI.Fifths.Store, OAI.Fifths.FitsStore, OAI.Fifths.Works
- def
OAI.Fifths.Comp.singletonline 92Source documentation
For programs with dedicated scratch Sq.
def singleton (K : Type) (a : ℕ) := (file a).extra K
Mentions: OAI.Fifths.file, OAI.Fifths.Comp.extra
- theorem
OAI.Fifths.Comp.singleton_setline 94 - theorem
OAI.Fifths.Comp.extraline 101 - theorem
OAI.Fifths.Comp.checkedline 107 - theorem
OAI.Fifths.Comp.checkSizedline 112 - theorem
OAI.Fifths.Comp.pairline 120 - theorem
OAI.Fifths.Comp.projectFline 177 - theorem
OAI.Fifths.Comp.projectSline 189 - theorem
OAI.Fifths.Comp.leftline 201 - theorem
OAI.Fifths.Comp.rightline 204