Lemma 3.28: iteration absorption
ProvedMSKleene.iter_absorbIteration absorption (Lemma 3.28).
Let , , . Then .
import Definitions.Def_MSKleene_Iteration
namespace MSKleene
/-- **Iteration absorption** (Lemma 3.28).
For `z ∈ X_s` and a language `L ⊆ T_Σ(X)_s`,
`⟨z/L^{⋆z}⟩^♯ᵖ_s(L) ⊆ L^{⋆z}`. -/
theorem iter_absorb {S : Type} (sig : Signature S) (X : SSet S) {s : S}
(z : X s) (L : Set (Term sig X s)) :
substP z (iterate z L) s L ⊆ iterate z L := by
sorry
end MSKleeneRead-back
What the Lean code literally says, in plain math · claude-sonnet-5
Read-back of MSKleene.iter_absorb
Fix a type (a set of sorts), an -sorted signature — a family assigning to each finite word and each sort a type of operation symbols of arity and result sort — and an -indexed family of variable types . Let denote the terms of sort built from these variables and symbols: each yields a term , and each applied to a length-matching tuple of subterms yields a term . The theorem further fixes a sort , a distinguished variable , and an arbitrary set of terms of sort . Here and are explicit parameters, is implicit, and are explicit; there are no typeclass assumptions or other hypotheses.
For any set , define a set-valued substitution operator , acting on a term of sort and returning a subset , as the structural (homomorphic) extension of the variable assignment ", and every other variable of any sort ", i.e. recursively
Thus is the set of all terms obtained from by replacing every occurrence of the variable — independently at each occurrence — by some element of , leaving all other variables untouched. For a set put
Define sets for by
so that adjoins to every term obtained from a term of by replacing each occurrence of by some element of ; and set
The theorem asserts exactly the one set inclusion
equivalently: for every term and every term — i.e. every gotten from by substituting, independently at each occurrence of , some element of — one has for some .
Edge cases folded into the quantifiers: if the left-hand side is the empty union and the inclusion holds vacuously (and then ); the union defining includes the index , so always; a term in which does not occur satisfies and hence contributes itself to the left-hand side; and is necessarily inhabited because is supplied.
Confirmed by the mission captain (proposal self-audit).