ESO definability through the power language #
Pulling an existential second-order sentence over v.powerLanguage back along the power
interpretation v.powerInterpretation k har (CslibFrontier/Logics/FirstOrder/Encoding/Power.lean)
and existentially quantifying the linear order reduces existential second-order definability of an
isomorphism-closed class K over L to constructing an existential second-order sentence over
v.powerLanguage on the numeric structures Fin (a.1 ^ k) for well-formed inputs a with
2 ≤ a.1. Cardinalities 0 and 1 are handled by ESO.Definable.of_withLinearOrder_card_ge_two
(CslibFrontier/Computability/Complexity/Fagin/Small.lean).
Main results #
Cslib.Logic.ESO.Definable.of_powerLanguage: reducesESO.Definable Kto anESO.Sentenceoverv.powerLanguageonFin (a.1 ^ k)for well-formed inputsawith2 ≤ a.1.
References #
To prove that an isomorphism-closed class K over a finite relational vocabulary v is
existential second-order definable, it suffices to choose a tuple width k ≥ 1 bounding all
arities of v and an existential second-order sentence Ψ : ESO.Sentence v.powerLanguage that
agrees with v.queryLanguage K on the numeric structures Fin (a.1 ^ k) for all well-formed
inputs a with 2 ≤ a.1.