Corollary 3.32: operation symbols preserve recognizability
ProvedMSKleene.rec_opOperation symbols preserve recognizability (Corollary 3.32).
Let , , and . Then . (From CVCL20, Cor. 3.21.)
import Definitions.Def_MSKleene_Term import Definitions.Def_MSKleene_Recognizable import Definitions.Def_MSKleene_Power
namespace MSKleene
/-- **Operation symbols preserve recognizability** (Corollary 3.32; from CVCL20).
With `S` and `X` finite: for `σ ∈ Σ_{w,s}` and a tuple `Ls` of languages, each
`s_j`-recognizable, the image `σ^{T_Σ(X)^℘}(Ls)` is `s`-recognizable. -/
theorem rec_op {S : Type} [Finite S] (sig : Signature S) (X : SSet S)
(hX : SFinite X) {w : List S} {s : S} (σ : sig w s)
(Ls : Args (fun s => Set (Term sig X s)) w)
(hLs : Args.All (fun s L => sRecognizable (freeAlgebra sig X) s L) Ls) :
sRecognizable (freeAlgebra sig X) s (powerOp (freeAlgebra sig X) σ Ls) := by
sorry
end MSKleeneRead-back
What the Lean code literally says, in plain math · claude-sonnet-5
Fix a type of sorts together with an instance witnessing that is a finite type. Let be a signature over : for every list of sorts and every sort , is a type whose elements are the operation symbols of input profile and output sort . (No hypothesis asserts that the total collection of operation symbols is finite.) Let be a sorted set of variables, i.e. a family of types, and assume , meaning the dependent sum is a finite type (finitely many variables in total).
Write for the term algebra: its carrier at sort is the inductive type of well-sorted terms, each of which is either a variable with or an application with and the terms of the sorts listed in ; the operation of interpreting a symbol on an argument tuple is the formal term applied to that tuple.
Fix an implicit list of sorts and an implicit sort , and let be an operation symbol. Let be a tuple indexed by whose -th component is a set of terms of sort , i.e. ; when this tuple is empty.
The hypothesis states that every component is recognizable in : for each , holds (for this hypothesis is the vacuously true empty conjunction). Here means that there exists a -algebra such that:
- is finite, i.e. is a finite type; and
- there exist an algebra homomorphism — a sortwise family of maps satisfying, for all and all argument tuples , the equation — together with a subset ;
- such that as sets, i.e. for every one has .
The conclusion is , where
that is, the set of all terms of sort of the form obtained by choosing one term from each component.
In words: assuming is finite, the variable family has finitely many elements in total, and every is recognizable in the term algebra , the theorem asserts that the "elementwise -application" set is again recognizable in — i.e. there exist a finite -algebra , a homomorphism , and a subset whose preimage under is exactly that set. In the degenerate case , is a constant symbol, the hypothesis carries no content, and the claim reduces to: the singleton set consisting of the single constant term is recognizable in .
Confirmed by the mission captain (proposal self-audit).