Lax314295.KTypesFOEquivalence
k-types capture first-order sentences of quantifier rank k
concepts/Lax314295/KTypesFOEquivalence.lean · lax-314295
No public endorsements yet.
Loading review…
Sign in with ORCIDConcept map
In the paper
- page 132 of the paper of lax-157538, Transducers
Theorem
Two strings have the same -type if and only if they satisfy the same first-order sentences of quantifier rank at most (Lemma C.4.13 of Transducers). From equal types to equal satisfaction is the compositionality of first-order logic: a position chosen on one string can be matched on the other so that all formulas of one rank lower are preserved. Conversely the set of strings of a given -type is defined by a first-order sentence of quantifier rank , built by induction on with quantification relativised to the two sides of a chosen position.
Lean source view on GitHub
| 1 | import Lax314295.MSOLogic |
| 2 | import Lax314295.KTypes |
| 3 | |
| 4 | /-! |
| 5 | --- |
| 6 | title: k-types capture first-order sentences of quantifier rank k |
| 7 | type: theorem |
| 8 | --- |
| 9 | Two strings have the same -type if and only if they satisfy the same |
| 10 | first-order sentences of quantifier rank at most (Lemma C.4.13 of |
| 11 | *Transducers*). From equal types to equal satisfaction is the compositionality |
| 12 | of first-order logic: a position chosen on one string can be matched on the |
| 13 | other so that all formulas of one rank lower are preserved. Conversely the set |
| 14 | of strings of a given -type is defined by a first-order sentence of |
| 15 | quantifier rank , built by induction on with quantification relativised |
| 16 | to the two sides of a chosen position. |
| 17 | |
| 18 | # Formalization notes |
| 19 | |
| 20 | The book says "formulas" where it means "sentences": satisfaction of a formula |
| 21 | with free variables has no meaning without a valuation. The statement therefore |
| 22 | quantifies over first-order formulas without free first-order variables, |
| 23 | satisfied under every valuation — which for a sentence is just satisfaction. |
| 24 | The alphabet is assumed finite. |
| 25 | -/ |
| 26 | |
| 27 | namespace Lax314295.KTypesFOEquivalence |
| 28 | |
| 29 | open Lax314295.MSOLogic Lax314295.KTypes |
| 30 | |
| 31 | /-- Two strings have the same `k`-type if and only if they satisfy the same |
| 32 | first-order sentences of quantifier rank at most `k`. -/ |
| 33 | axiom tp_eq_iff_fo_equiv {A : Type} [Finite A] (k : ℕ) (w v : List A) : |
| 34 | tp k w = tp k v ↔ |
| 35 | ∀ φ : MSO A, φ.IsFO → φ.freeFO = ∅ → φ.qrank ≤ k → |
| 36 | ((∀ fo so, MSO.Sat w fo so φ) ↔ (∀ fo so, MSO.Sat v fo so φ)) |
| 37 | |
| 38 | end Lax314295.KTypesFOEquivalence |
| 39 |
Formalization notes
The book says "formulas" where it means "sentences": satisfaction of a formula with free variables has no meaning without a valuation. The statement therefore quantifies over first-order formulas without free first-order variables, satisfied under every valuation — which for a sentence is just satisfaction. The alphabet is assumed finite.
Community review
Discussion
Ask a question or add context. Endorsements and structured flags are kept in the review panel above; your ORCID profile must share a public name.
0 comments