The Direct Analytic Comparator Has Exactly the Native Numeric Graph
ProvedMonodromy.Structure.analytic_computes_iffFor every positive natural degree d, program P:Program d and partial function f:ℕ→Part ℕ, the following are equivalent: for every n,v∈ℕ, v belongs to f(n) exactly when some integer label triple λ is a complete result of the direct comparator from the real embedding of inputLabels(n), with outputLabels(λ)=v; and P computes f by the native fixed-interface graph predicate. The comparator result in the first condition is the real embedding of λ. No effectiveness assumption on f or agreement from noninteger initial states is asserted.
Statement dependencies: Monodromy.AnalyticComparison.State, Monodromy.AnalyticComparison.embed, Monodromy.AnalyticComparison.eval, Monodromy.CoupledContinuation.Labels, Monodromy.CoupledContinuation.Program, Monodromy.NativeInterface.inputLabels, Monodromy.NativeInterface.outputLabels, Monodromy.Structure.Computes.
Original proof dependencies: Monodromy.AnalyticComparison.State, Monodromy.AnalyticComparison.embed, Monodromy.AnalyticComparison.eval, Monodromy.AnalyticComparison.result_iff, Monodromy.CoupledContinuation.Labels, Monodromy.CoupledContinuation.Labels.prepare, Monodromy.CoupledContinuation.Memory, Monodromy.CoupledContinuation.Point, Monodromy.CoupledContinuation.Program, Monodromy.CoupledContinuation.Program.eval, Monodromy.NativeInterface.inputLabels, Monodromy.NativeInterface.outputLabels, Monodromy.Structure.Computes.
Statement elaboration dependencies: Monodromy.AnalyticComparison.State, Monodromy.AnalyticComparison.embed, Monodromy.AnalyticComparison.eval, Monodromy.CoupledContinuation.Labels, Monodromy.CoupledContinuation.Program, Monodromy.NativeInterface.inputLabels, Monodromy.NativeInterface.outputLabels, Monodromy.Structure.Computes.
Proof elaboration dependencies: Monodromy.AnalyticComparison.State, Monodromy.AnalyticComparison.embed, Monodromy.AnalyticComparison.eval, Monodromy.AnalyticComparison.result_iff, Monodromy.CoupledContinuation.Labels, Monodromy.CoupledContinuation.Labels.prepare, Monodromy.CoupledContinuation.Memory, Monodromy.CoupledContinuation.Point, Monodromy.CoupledContinuation.Program, Monodromy.CoupledContinuation.Program.eval, Monodromy.NativeInterface.inputLabels, Monodromy.NativeInterface.outputLabels, Monodromy.Structure.Computes.
module public import Definitions.Def_Monodromy_Structure public import Lean.Elab.Tactic.Omega public import Mathlib.Analysis.Analytic.Constructions public import Mathlib.Analysis.Analytic.IsolatedZeros public import Mathlib.Analysis.Analytic.Linear public import Mathlib.Analysis.Calculus.DSlope public import Mathlib.Analysis.Calculus.Deriv.Add public import Mathlib.Analysis.Calculus.Deriv.Comp public import Mathlib.Analysis.Calculus.Deriv.Mul public import Mathlib.Analysis.Calculus.Deriv.Pow public import Mathlib.Analysis.Complex.Basic public import Mathlib.Analysis.Complex.CoveringMap public import Mathlib.Analysis.Real.Pi.Bounds public import Mathlib.Analysis.SpecialFunctions.Complex.Analytic public import Mathlib.Analysis.SpecialFunctions.Complex.Circle public import Mathlib.Analysis.SpecialFunctions.Trigonometric.Deriv public import Mathlib.Analysis.SpecialFunctions.Trigonometric.Sinc public import Mathlib.Computability.Halting public import Mathlib.Computability.PartrecCode public import Mathlib.Computability.Primrec.Basic public import Mathlib.Computability.Primrec.List public import Mathlib.Computability.StateTransition public import Mathlib.Computability.TuringMachine.PostTuringMachine public import Mathlib.Computability.TuringMachine.ToPartrec public import Mathlib.Data.Fin.Basic public import Mathlib.Data.Fintype.Card public import Mathlib.Data.Fintype.EquivFin public import Mathlib.Data.Fintype.Sets public import Mathlib.Data.Int.ModEq public import Mathlib.Data.Nat.Digits.Lemmas public import Mathlib.Data.Nat.Factorization.Basic public import Mathlib.Data.Set.Finite.Basic public import Mathlib.Logic.Equiv.Fin.Basic public import Mathlib.Logic.Equiv.Fin.Rotate public import Mathlib.Logic.Function.Basic public import Mathlib.Logic.Function.Conjugate public import Mathlib.RingTheory.RootsOfUnity.Complex public import Mathlib.Tactic.FieldSimp public import Mathlib.Tactic.FinCases public import Mathlib.Tactic.FunProp public import Mathlib.Tactic.Linarith public import Mathlib.Tactic.Ring public import Mathlib.Topology.Homotopy.Lifting @[expose] public section open Monodromy open Monodromy.Structure open CoupledContinuation NativeInterface
theorem Monodromy.Structure.analytic_computes_iff {degree : ℕ} [NeZero degree]
(program : Program degree) (function : ℕ → Part ℕ) :
(∀ input value, value ∈ function input ↔ ∃ labels : Labels,
AnalyticComparison.embed labels ∈ AnalyticComparison.eval program
(AnalyticComparison.embed (inputLabels input)) ∧ outputLabels labels = value) ↔
Computes program function := by sorry
Read-back
What the Lean code literally says, in plain math · OpenAI Codex (independent agent)
Write . The memory space consists of triples with and ; the integer-labelled point is with principal complex logarithms. A native program of positive degree consists of finite words and Boolean stop flags. Letters are left shift, right shift, left zero probe, right zero probe and control shift, with forward/reverse flags. The respective drivers move one lower base coordinate along or , or the control coordinate along ; unmentioned coordinates are constant. A driver acts by lower exponential lifts starting at , followed by an upper exponential lift starting at over the product of the lower lifts and the control path, and takes the endpoint. Words concatenate these drivers in list order, reversing paths for reversed letters; the empty word is idle. Routing observes and selects values at the roots by , with the divided slope of at divided by its derivative at (the divided slope at is the derivative). Advance executes the routed word; the halt signal selects for true stop flags and otherwise. The optional step is absent exactly when this signal is , and is advance otherwise. Partial evaluation repeatedly takes present steps and returns the first state with absent step; it is undefined if there is no such finite stopping time. The fixed numeric interface uses the four symbols and four tracks main, reverse, auxiliary and stack; its alphabet is a Boolean marker paired with an optional symbol on each track, blank meaning false marker and all tracks empty. To encode a list of naturals, encode each number in binary least-significant-bit first (zero as an empty bit list), append after each number, reverse the resulting symbol list, put its symbols on the main track alone, and set the first letter's marker true (an empty list gives one marked blank). Choose the specified finite alphabet bijection to taking blank to , where is its cardinality, and let be this numeric word for the singleton list . Put and , using a default-zero head for an empty word. To read an alphabet letter from an accumulator , use for main-track , for main-track , and otherwise, ignoring the marker and other tracks. For any integer label triple , let and be the greatest with (so if ). The output starts with and performs exactly iterations of taking the first component modulo , dividing that component by , and applying the corresponding letter-read operation to the accumulator; the unused residue is interpreted as blank , and the final accumulator is the output. Thus this total readout ignores the right and control labels, and negative left labels give output . For every positive natural degree , every degree- native program , and every partial function , the following two graph conditions are equivalent. The first says that for every , is defined with value if and only if there exists an integer triple such that the real-coordinate evaluation described next, begun at the coordinatewise real cast of , returns the coordinatewise real cast of and . On , the real gates add the signed displacement to the left/right coordinate, or to the control coordinate multiplied by or for a zero probe, or simply to the control coordinate for a control gate; and otherwise. Real words apply gates in list order; the real successor is the sum over rows of the resulting whole word-output state multiplied by , and its halt quantity is the same weighted sum of the flags. The real optional step is absent exactly when that halt quantity equals , and its evaluation has the same terminal-state partial semantics as above. The second graph condition, called native computation here, says for every that is defined with value if and only if some integer triple has 's native evaluation from defined with value and . The equivalence compares these graph conditions on the fixed integer input and output encodings; it asserts no equality between arbitrary off-lattice trajectories.
Confirmed by the mission captain (proposal self-audit).