Every path from a state `b` to the base state has length at least `b`, and its tail of
ProvedComputation.DegreeMonoid.chainRel_path_to_baseaether-catalogspeculative
Every path from a state b to the base state has length at least b, and its tail of
length length - b is a closed computation at the base.
theorem Computation.DegreeMonoid.chainRel_path_to_base(S : Set ℕ) :
∀ (b k : ℕ), iterR (chainRel S) k b 0 → b ≤ k ∧ iterR (chainRel S) (k - b) 0 0 := by sorry
Formalization Note Transplanted verbatim from the Aether Catalog source Speculative/AutoResearch/DegreeMonoidRealisation.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/DegreeMonoidRealisation.lean
import Mathlib
import Definitions.Def_Speculative_AutoResearch_DegreeMonoidRealisation
/-
# Degree monoids of abstract transition systems and the realisation theorem
An abstract computation is modelled by a *transition relation* `R : α → α → Prop`
on a state space `α`. For a distinguished state `a` the set
`{ n | a is reachable from a in exactly n R-steps }`
is the **degree monoid** `degreeMonoid R a`: it contains `0` and is closed under
addition, because two return loops can be concatenated (`iterR_add`). It is the
basic *periodic invariant* of a state of a machine: the set of possible lengths
of computations that bring the machine back to the same configuration.
This file develops the theory:
* `iterR` — `n`-step reachability, with the concatenation law `iterR_add`;
* `degreeMonoid R a : AddSubmonoid ℕ` — the invariant;
* structural laws: monotonicity under simulations (`degreeMonoid_le_of_simulation`),
invariance under bisimulation (`degreeMonoid_eq_of_bisim`), and the
*product law* `degreeMonoid (prodRel R S) (a, b) = degreeMonoid R a ⊓ degreeMonoid S b`;
* the **realisation theorem** `degreeMonoid_chainRel`: the chain system generated by a set
`S` of loop lengths has degree monoid `AddSubmonoid.closure S`, so *every* additive
submonoid of `ℕ` occurs as a degree monoid (`degreeMonoid_chainRel_submonoid`). Consequently the invariant is *complete*:
the realisable set of degree monoids is exactly the lattice of additive
submonoids of `ℕ` (`degreeMonoid_range`);
* the certified extremes and sample values: `⊥ = {0}`, `⊤ = ℕ`,
`nℕ` (single-loop machine) and the numerical semigroup `⟨2,3⟩` (two-loop machine).
Everything is proved from scratch; no `sorry`, no `native_decide`.
-/
open Computation
open DegreeMonoid
variable {α β : Type*}
/-! ## Exact-length reachability -/
/-! ## The degree monoid -/
/-! ## Functoriality: simulations and bisimulations -/
/-! ## Time rescaling: powers of a machine -/
/-! ## Products: the invariant is a lattice meet -/
/-! ## The chain system realising an arbitrary submonoid -/Formal statement
theorem Computation.DegreeMonoid.chainRel_path_to_base(S : Set ℕ) :
∀ (b k : ℕ), iterR (chainRel S) k b 0 → b ≤ k ∧ iterR (chainRel S) (k - b) 0 0 := by sorrySource