Documentation

Complexity.Logics.FirstOrder.Ordered.Reduction

First-order reductions between ordered queries #

An ordered query K first-order reduces to K', written K ≤_fo K', when some first-order query on ordered structures maps the members of K to members of K' and the other structures outside K' [Immerman1999, Definition 2.11]. A first-order query on ordered structures includes first-order definitions of the numeric relations and constants of its image [Immerman1999, Remark 1.32]; with a domain formula other than true these are a genuine obligation, since target BIT need not be definable [Immerman1999, the paragraph after Exercise 1.33]. Here the admissible maps are therefore the images I.map hI of admissible ordered interpretations I that have a numeric certificate, and Ordered.Reduces is the many-one reducibility by these maps.

Reflexivity uses the identity interpretation of dimension one. Transitivity composes interpretations, substituting the inner numeric definitions into the outer formulas [Immerman1999, Proposition 1.28 and Exercise 2.15(1)]. Definability pulls back along reductions.

Main definitions #

Main results #

References #

The identity interpretation #

The identity interpretation of dimension one: every element is in the domain and every input relation defines itself.

Instances For

    The identity interpretation defines the canonical numerics directly.

    Instances For

      The identity interpretation maps every ordered structure to itself.

      First-order reductions #

      The maps between ordered structures given by first-order queries: images under admissible ordered interpretations with numeric certificates.

      Instances For

        First-order maps are domain maps, forgetting the certificate.

        The image of a certified admissible interpretation is a first-order map.

        First-order reducibility of ordered queries, K ≤_fo K': many-one reducibility by first-order maps [Immerman1999, Definition 2.11 and Remark 1.32]. This is the ordered counterpart of the order-free Cslib.Logic.FO.Reduces.

        The target language is relational: the image carries only the canonical numeric constants, and Immerman's formulas for target constant symbols are not handled. The image is always ordered lexicographically, Remark 1.32's default ("unless we state otherwise"), so this is the lexicographic case of ≤_fo; reductions whose image order is another definable order are not covered.

        Instances For

          First-order reducibility is reflexive.

          theorem Cslib.Logic.FO.Ordered.Reduces.trans {L : FirstOrder.Language} {L' : FirstOrder.Language} {L'' : FirstOrder.Language} [L'.IsRelational] [L''.IsRelational] {K : Query L} {K' : Query L'} {K'' : Query L''} (h : Reduces K K') (h' : Reduces K' K'') :
          Reduces K K''

          First-order reducibility is transitive [Immerman1999, Exercise 2.15(1)].

          A reduction of K to K' reduces the complement of K to that of K'.

          theorem Cslib.Logic.FO.Ordered.Reduces.of_interpretation {L : FirstOrder.Language} {L' : FirstOrder.Language} [L'.IsRelational] {K : Query L} {K' : Query L'} {k : ℕ} {I : DomainInterpretation L L' k} (hI : I.Admissible) (C : I.Certificate) (h : ∀ (M : Structure L), M ∈ K ↔ I.map hI M ∈ K') :
          Reduces K K'

          A certified admissible interpretation that maps exactly the members of K into K' reduces K to K'.

          First-order definability pulls back along first-order reductions, by the certified pullback of the defining sentence.