The period vanishes exactly for a state with no nonempty closed computation.
ProvedComputation.DegreeMonoid.degPeriod_eq_zero_iffaether-catalogspeculative
The period vanishes exactly for a state with no nonempty closed computation.
theorem Computation.DegreeMonoid.degPeriod_eq_zero_iff(R : α → α → Prop) (a : α) :
degPeriod R a = 0 ↔ degreeMonoid R a = ⊥ := by sorry
Formalization Note Transplanted verbatim from the Aether Catalog source Speculative/AutoResearch/DegreeMonoidStructure.lean; the statement is byte-identical to the source declaration, elaborated with autoImplicit disabled in the platform environment.
Preamble
-- Thm stub generated from Speculative/AutoResearch/DegreeMonoidStructure.lean
import Mathlib
import Definitions.Def_Speculative_AutoResearch_DegreeMonoidRealisation
import Definitions.Def_Speculative_AutoResearch_DegreeMonoidStructure
/-
# Structure theory of degree monoids: period, gaps and the Frobenius obstruction
`Computation.DegreeMonoidRealisation` shows that the degree monoid
`degreeMonoid R a ≤ ℕ` of a state of a transition system is a complete invariant for the
lattice of additive submonoids of `ℕ`: *every* submonoid is realised by the chain machine
`chainRel M`. Completeness of a realisation problem is only half the story — the other
half is the *structure* of the realised objects. This file supplies it:
* `degPeriod R a` — the period of a state, the gcd of all its closed-computation lengths;
* `degPeriod_dvd_mem` and `exists_ge_mem_degreeMonoid` — the **structure theorem**: every
closed computation has length divisible by the period, and conversely *every*
sufficiently large multiple of the period is a closed-computation length. So the degree
monoid is an eventually complete arithmetic progression;
* `degreeMonoid_gaps_finite` — a state has only finitely many *gaps* (multiples of the
period which are not computation lengths);
* `degPeriod_eq_zero_iff` — the sharp dichotomy: period `0` exactly for the dead state
(`degreeMonoid = ⊥`);
* `degPeriod_prodRel` — the **synchronisation law**: the period of a synchronous product of
two live machines is the *least common multiple* of the two periods;
* `frobenius_gap_of_chainRel` — a number-theoretic bridge: for coprime `p, q > 1` the chain
machine of `⟨p, q⟩` has largest gap exactly `p*q - p - q` (Chicken McNugget/Frobenius),
and `frobenius_gap_two_three` specialises this to the certified sample value `⟨2,3⟩`,
whose unique gap is the length `1`.
All results are proved with no `sorry`.
-/
open Computation
open DegreeMonoid
variable {α β : Type*}
/-! ## The period of a state -/Formal statement
theorem Computation.DegreeMonoid.degPeriod_eq_zero_iff(R : α → α → Prop) (a : α) :
degPeriod R a = 0 ↔ degreeMonoid R a = ⊥ := by sorrySource