Documentation

InfinitaryLogic.Scott.QuantifierRank

Quantifier Rank of Scott Formulas #

This file proves bounds on the quantifier rank of Scott formulas and connects BF-equivalence to agreement on Lω₁ω formulas of bounded quantifier rank.

Main Results #

References #

theorem FirstOrder.Language.atomicDiagram_qrank_eq_zero {L : Language} [Countable ((l : ) × L.Relations l)] {M : Type w} [L.Structure M] {n : } (a : Fin nM) :

The atomic diagram has quantifier rank 0.

existsLastVar adds 1 to quantifier rank.

forallLastVar adds 1 to quantifier rank.

theorem FirstOrder.Language.scottFormula_qrank_le {L : Language} [Countable ((l : ) × L.Relations l)] {M : Type w} [L.Structure M] [Countable M] {n : } (a : Fin nM) (α : Ordinal.{0}) ( : α < Ordinal.omega 1) :

The Scott formula at level α has quantifier rank ≤ α.

This is proved by ordinal induction:

  • At level 0: the atomic diagram has rank 0.
  • At successor α + 1: the formula at α has rank ≤ α, and the forth/back conditions add one quantifier, giving rank ≤ α + 1.
  • At limit λ: the conjunction over β < λ has rank ≤ λ.
theorem FirstOrder.Language.BFEquiv_implies_agree_formulas_omega {L : Language} [L.IsRelational] {M : Type w} [L.Structure M] [Countable M] {N : Type w} [L.Structure N] [Countable N] {n : } (a : Fin nM) (b : Fin nN) (α : Ordinal.{0}) (_hα : α < Ordinal.omega 1) :
BFEquiv α n a b∀ (φ : L.Formulaω (Fin n)), φ.qrank α → (φ.Realize a φ.Realize b)

BF-equivalence at level α implies agreement on Lω₁ω formulas of quantifier rank ≤ α.

This is derived from the forward direction of the Karp lemma (BFEquiv_implies_agreeQR) by embedding Lω₁ω into L∞ω via toLinf.

theorem FirstOrder.Language.agree_formulas_omega_implies_BFEquiv {L : Language} [Countable ((l : ) × L.Relations l)] {M : Type w} [L.Structure M] [Countable M] {N : Type w} [L.Structure N] [Countable N] {n : } (a : Fin nM) (b : Fin nN) (α : Ordinal.{0}) ( : α < Ordinal.omega 1) :
(∀ (φ : L.Formulaω (Fin n)), φ.qrank α → (φ.Realize a φ.Realize b))BFEquiv α n a b

Agreement on all Lω₁ω formulas of quantifier rank ≤ α implies BF-equivalence.

This direction uses the Scott formula: if all rank-≤-α formulas agree, then in particular the Scott formula at level α agrees, which by realize_scottFormula_iff_BFEquiv gives BFEquiv at level α.

theorem FirstOrder.Language.BFEquiv_iff_agree_formulas_omega {L : Language} [L.IsRelational] [Countable ((l : ) × L.Relations l)] {M : Type w} [L.Structure M] [Countable M] {N : Type w} [L.Structure N] [Countable N] {n : } (a : Fin nM) (b : Fin nN) (α : Ordinal.{0}) ( : α < Ordinal.omega 1) :
BFEquiv α n a b ∀ (φ : L.Formulaω (Fin n)), φ.qrank α → (φ.Realize a φ.Realize b)

BF-equivalence at level α between tuples is equivalent to agreement on all Lω₁ω formulas of quantifier rank ≤ α (for α < ω₁).

This is the Lω₁ω version of the Karp lemma.