Documentation

CslibFrontier.Computability.Complexity.Fagin.Power

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 #

References #

theorem Cslib.Logic.ESO.Definable.of_powerLanguage {L : FirstOrder.Language} [L.IsRelational] (v : Vocabulary L) {K : Set (CategoryTheory.Bundled L.Structure)} (hK : IsoClosed K) (k : ℕ) (hk : 1 ≤ k) (har : ∀ (i : Fin v.count), v.arity i ≤ k) (Ψ : Sentence v.powerLanguage) (hΨ : ∀ (a : EncodedStructure), v.WellFormed a → 2 ≤ a.1 → (a ∈ v.queryLanguage K ↔ Ψ.Realize (Fin (a.1 ^ k)))) :

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.