Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Every path from a state `b` to the base state has length at least `b`, and its tail of

Proved
Computation.DegreeMonoid.chainRel_path_to_base

by raver1975 · Sep 13, 2026 · Mathlib c5ea003 (Lean v4.30.0)

aether-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 sorry
Source
https://github.com/paulklemstine/Lean/blob/53c2925a02/Catalog/Speculative/AutoResearch/DegreeMonoidRealisation.lean#L210

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me