First-order logic semantics: term evaluation, formula satisfaction, models.
Follows Immerman Definition 1.11 (semantics part).
def
Complexity.DescriptiveComplexity.Term.eval
{V : Vocabulary}
{n : Nat}
(A : FinStruct V)
(σ : Env A.card n)
:
Evaluate a term in a structure under an environment.
Equations
Instances For
def
Complexity.DescriptiveComplexity.Formula.Sat
{V : Vocabulary}
{n : Nat}
(A : FinStruct V)
(σ : Env A.card n)
:
Satisfaction of a formula in a structure under an environment.
Equations
- One or more equations did not get rendered due to their size.
- Complexity.DescriptiveComplexity.Formula.Sat A σ φ.neg = ¬Complexity.DescriptiveComplexity.Formula.Sat A σ φ
- Complexity.DescriptiveComplexity.Formula.Sat A σ (φ.conj ψ) = (Complexity.DescriptiveComplexity.Formula.Sat A σ φ ∧ Complexity.DescriptiveComplexity.Formula.Sat A σ ψ)
- Complexity.DescriptiveComplexity.Formula.Sat A σ (φ.disj ψ) = (Complexity.DescriptiveComplexity.Formula.Sat A σ φ ∨ Complexity.DescriptiveComplexity.Formula.Sat A σ ψ)
- Complexity.DescriptiveComplexity.Formula.Sat A σ φ.exist = ∃ (a : Fin A.card), Complexity.DescriptiveComplexity.Formula.Sat A (Complexity.DescriptiveComplexity.envCons a σ) φ
- Complexity.DescriptiveComplexity.Formula.Sat A σ φ.all = ∀ (a : Fin A.card), Complexity.DescriptiveComplexity.Formula.Sat A (Complexity.DescriptiveComplexity.envCons a σ) φ
Instances For
def
Complexity.DescriptiveComplexity.Sentence.Models
{V : Vocabulary}
(A : FinStruct V)
(φ : Sentence V)
:
A structure models a sentence if it is satisfied under the empty environment.
Equations
Instances For
Notation: A ⊨ φ for Sentence.Models A φ.
Equations
- One or more equations did not get rendered due to their size.