Documentation

CslibFrontier.Logics.FirstOrder.Ordered.FullTuple.Horn

Ordered full-tuple interpretations pull back SO∃-Horn sentences #

A full-tuple ordered interpretation I : FullTupleInterpretation L L' k pulls back any SO∃-Horn sentence Φ over language L' to an SO∃-Horn sentence I.onHornSentence Φ over language L. Each relation variable of arity r becomes a relation variable of arity r * k, and each clause of width w becomes a clause of width w * k whose guard is pulled back via I.onFormula.

Because lexEquiv : (Fin k → Fin n) ≃ Fin (n ^ k) is a bijection on the full tuple domain, Operator.Tuple.blockEquiv lexEquiv identifies r * k-tuples over Fin n bijectively with r-tuples over Fin (n ^ k), so I.onHornSentence Φ has the exact truth value of Φ on the canonical rank universe Fin (n ^ k).

Main definitions #

Main results #

References #

noncomputable def Cslib.Logic.FO.Ordered.FullTupleInterpretation.onHornClause {L : FirstOrder.Language} {L' : FirstOrder.Language} [L'.IsRelational] {k : ℕ} (I : FullTupleInterpretation L L' k) {V : Type} {arity : V → ℕ} (C : ESO.Horn.Clause (language L') arity) :
ESO.Horn.Clause (language L) fun (i : V) => arity i * k

Pull back a Horn clause over language L' along I, multiplying its variable width and every relation arity by k.

Pull back an SO∃-Horn sentence along a full-tuple ordered interpretation, scaling every relation arity and clause width by the tuple dimension k.

Full-tuple pullback preserves SO∃-Horn truth on the canonical lexicographically ranked universe Fin (n ^ k).