IterR prodRel
ProvedComputation.DegreeMonoid.iterR_prodRelaether-catalogspeculative
Formal statement of Computation.DegreeMonoid.iterR_prodRel from the Aether Catalog (Speculative). The mathematical content is given by the Lean statement below; a human-readable write-up is pending.
theorem Computation.DegreeMonoid.iterR_prodRel(R : α → α → Prop) (S : β → β → Prop) (n : ℕ) (p q : α × β) :
iterR (prodRel R S) n p q ↔ iterR R n p.1 q.1 ∧ iterR S n p.2 q.2 := 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 -/Formal statement
theorem Computation.DegreeMonoid.iterR_prodRel(R : α → α → Prop) (S : β → β → Prop) (n : ℕ) (p q : α × β) :
iterR (prodRel R S) n p q ↔ iterR R n p.1 q.1 ∧ iterR S n p.2 q.2 := by sorrySource