Documentation

CslibFrontier.Logics.FirstOrder.Ordered.Successor

A canonical successor relation for ordered vocabularies #

succLanguage L adds one binary symbol to an input vocabulary L. On Fin n it means y = x + 1, so the greatest element has no successor. Its ordered expansion language (succLanguage L) has the input symbols, successor and the canonical numeric symbols ≤, BIT, 0, 1 and max, so the ordered API (le, bit, zero, one, max, addEq, …) applies to it unchanged.

Successor is first-order definable from ≤: successor L says that y is above x and that every element above x is at least y. This formula has a universal quantifier. Fragments that restrict quantification therefore take successor as a primitive symbol; Immerman and Landau list it among the logical relations, alongside ≤ and BIT, for use in quantifier-free interpretations. elimSucc removes the symbol again. It replaces each succ atom by an instance of successor L, keeps every other symbol, and preserves truth on every canonical structure Fin n with 2 ≤ n.

Main definitions #

Main results #

References #

The successor relation symbol.

@[reducible, inline]

The relational vocabulary with only the successor symbol.

Instances For
    @[instance_reducible]

    Canonical non-wrapping successor on Fin n: succ x y holds when y = x + 1.

    @[reducible, inline]

    An input vocabulary extended by the successor symbol. Its ordered expansion language (succLanguage L) has the input symbols, successor and the canonical numeric symbols.

    The successor atom on arbitrary terms: succ L s t means s + 1 = t.

    The successor atom is quantifier-free.

    @[reducible, inline]

    The ordered vocabulary is a sublanguage of the ordered vocabulary with successor.

    Successor in the canonical ≤ vocabulary: strict order with no intermediate point. The formula universally quantifies one element; it is not quantifier-free.

    noncomputable def Cslib.Logic.FO.Ordered.elimSuccWith {L : FirstOrder.Language} {α : Type u_1} (σ : (language L).Formula (Fin 2)) {k : ℕ} :

    Replace every successor atom succ s t by the formula σ applied to s and t, keeping all other symbols.

    Replace every successor atom succ s t by successor L applied to s and t.

    Successor elimination through a quantifier-free σ preserves quantifier-freeness.

    @[simp]
    theorem Cslib.Logic.FO.Ordered.realize_successor {L : FirstOrder.Language} {n : ℕ} [Fact (2 ≤ n)] [L.Structure (Fin n)] (v : Fin 2 → Fin n) :
    (successor L).Realize v ↔ ↑(v 1) = ↑(v 0) + 1

    On Fin n with 2 ≤ n, the ≤ formula defines ordinary, non-wrapping successor.

    @[simp]
    theorem Cslib.Logic.FO.Ordered.realize_succ {L : FirstOrder.Language} {α : Type u_1} {n : ℕ} [Fact (2 ≤ n)] [L.Structure (Fin n)] (s t : (language (succLanguage L)).Term α) (v : α → Fin n) :

    On Fin n with 2 ≤ n, succ L s t holds exactly when s + 1 = t.

    theorem Cslib.Logic.FO.Ordered.realize_succInclusion {L : FirstOrder.Language} {α : Type u_1} {n : ℕ} [Fact (2 ≤ n)] [L.Structure (Fin n)] (φ : (language L).Formula α) (v : α → Fin n) :

    On Fin n with 2 ≤ n, the inclusion of the ordered vocabulary preserves truth.

    theorem Cslib.Logic.FO.Ordered.realize_elimSuccWith {L : FirstOrder.Language} {α : Type u_1} {n : ℕ} [Fact (2 ≤ n)] [L.Structure (Fin n)] {σ : (language L).Formula (Fin 2)} (hσ : ∀ (v : Fin 2 → Fin n), σ.Realize v ↔ ↑(v 1) = ↑(v 0) + 1) {k : ℕ} (φ : (language (succLanguage L)).BoundedFormula α k) (v : α → Fin n) (xs : Fin k → Fin n) :
    (elimSuccWith σ φ).Realize v xs ↔ φ.Realize v xs

    Successor elimination preserves truth on Fin n with 2 ≤ n, for every formula σ that defines non-wrapping successor there.

    theorem Cslib.Logic.FO.Ordered.realize_elimSuccWith_formula {L : FirstOrder.Language} {α : Type u_1} {n : ℕ} [Fact (2 ≤ n)] [L.Structure (Fin n)] {σ : (language L).Formula (Fin 2)} (hσ : ∀ (v : Fin 2 → Fin n), σ.Realize v ↔ ↑(v 1) = ↑(v 0) + 1) (φ : (language (succLanguage L)).Formula α) (v : α → Fin n) :

    Successor elimination through σ preserves the truth of formulas, under the hypotheses of Cslib.Logic.FO.Ordered.realize_elimSuccWith.

    theorem Cslib.Logic.FO.Ordered.realize_elimSucc {L : FirstOrder.Language} {α : Type u_1} {n : ℕ} [Fact (2 ≤ n)] [L.Structure (Fin n)] {k : ℕ} (φ : (language (succLanguage L)).BoundedFormula α k) (v : α → Fin n) (xs : Fin k → Fin n) :
    (elimSucc φ).Realize v xs ↔ φ.Realize v xs

    Successor elimination through successor L preserves truth on Fin n with 2 ≤ n.

    @[simp]

    Successor elimination through successor L preserves the truth of formulas on Fin n with 2 ≤ n.