Documentation

CslibFrontier.Logics.FirstOrder.Atom

Atomic facts and finite models for relational first-order languages #

For a relational first-order language L, a structure on Fin n is determined by the truth values of its atomic facts R(a₁, …, aₗ) (Atom L n).

This module defines the type of atomic facts Atom L n, the structure Model x induced by a truth assignment x : Atom L n → Bool, the extraction atomsOf e of atomic facts from an L-structure along an equivalence e : M ≃ Fin n, and the evaluation isomorphism realize_iff_atomsOf.

Main definitions #

Main results #

References #

The atomic facts of a structure for L on Fin n: a relation symbol and a tuple of elements.

Instances For
    def Cslib.Logic.FO.Model {L : FirstOrder.Language} {n : ℕ} (_x : Atom L n → Bool) :

    The universe Fin n with the structure whose true atomic facts are those given by x.

    Instances For
      @[instance_reducible]

      The first-order L.Structure on Model x whose relations are given by the truth table x.

      @[instance_reducible]

      There are finitely many atomic facts on Fin n when L has finitely many relation symbols.

      Finitely many atomic facts when the relations are finite.

      noncomputable def Cslib.Logic.FO.atomsOf {L : FirstOrder.Language} {n : ℕ} {M : Type u_1} [L.Structure M] (e : M ≃ Fin n) :
      Atom L n → Bool

      The atomic facts of a structure on M, read through an enumeration e of M by Fin n.

      def Cslib.Logic.FO.equivModel {L : FirstOrder.Language} [L.IsRelational] {n : ℕ} {M : Type u_1} [L.Structure M] (e : M ≃ Fin n) :
      L.Equiv M (Model (atomsOf e))

      An enumeration of M is an isomorphism onto the structure with the atomic facts of M.

      theorem Cslib.Logic.FO.realize_iff_atomsOf {L : FirstOrder.Language} [L.IsRelational] {n : ℕ} {M : Type u_1} [L.Structure M] (e : M ≃ Fin n) (φ : L.Sentence) :
      M ⊨ φ ↔ Model (atomsOf e) ⊨ φ

      A structure satisfies a sentence exactly when the structure with its atomic facts does.