Documentation

Complexitylib.DescriptiveComplexity.Reduction

First-order reductions and projections #

A first-order reduction between decision problems (Boolean queries over finite structures) is a first-order interpretation: the target structure is defined from the source by FO formulas, one per target relation symbol. This module gives the dimension-1 (universe-preserving) case — each target relation is an FO-definable relation on the same universe — the foundational special case of the general dimension-k interpretation (whose target universe is a definable subset of domᵏ, recorded as a roadmap L6 milestone).

First-order reductions are the reductions of descriptive complexity: weak enough to sit inside FO/AC⁰, yet enough to define completeness for the standard classes. Their quantifier-free restriction — first-order projections — is weaker still and is the notion under which many natural problems are complete.

Each Boolean query induces a machine-model Language via queryLanguage; the string-level FO-reduction (an FO map on encodings) is a further step on track L6.

Main definitions and results #

A (dimension-1) first-order interpretation from vocabulary V to W: each target relation symbol is defined by an FO formula over V with one free variable per argument, and each target constant symbol is a source constant. Applying it to a V-structure yields a W-structure on the same universe.

Instances For

    Apply an interpretation to a source structure, producing a target structure on the same universe: each target relation holds exactly when its defining formula does.

    Equations
    • One or more equations did not get rendered due to their size.
    Instances For

      The identity interpretation: each relation is defined by its own atom R(x₀, …, x_{a-1}) and each constant maps to itself.

      Equations
      • One or more equations did not get rendered due to their size.
      Instances For

        The identity interpretation acts as the identity on structures.

        Translate a W-term to a V-term along the interpretation: a variable stays put, and a target constant becomes its designated source constant.

        Equations
        Instances For

          Term-level transport. Evaluating a translated term in the source structure agrees with evaluating the original term in the interpreted structure. This is the base case of the full (formula-level) transport theorem.

          theorem Complexity.DescriptiveComplexity.FOInterpretation.apply_rel {V W : Vocabulary} (I : FOInterpretation V W) (A : FinStruct V) (i : Fin W.numRels) (args : Fin (W.relArity i)Fin A.card) :
          (I.apply A).rel i args = Formula.Sat A args (I.relFormula i)

          The interpreted structure's relation is (definitionally) satisfaction of the defining formula.

          Translate a W-formula to a V-formula along the interpretation: a target relation atom is replaced by its defining formula with the (translated) argument terms substituted in; other connectives and quantifiers are traversed.

          Equations
          Instances For

            The transport theorem (fundamental theorem of interpretations). Satisfaction of a formula in the interpreted structure I.apply A equals satisfaction of its translation in the source structure A. This is what makes FO-reductions compose.

            Compose two interpretations by translating the outer defining formulas through the inner interpretation (I₂ ∘ I₁, source U → V → W).

            Equations
            Instances For
              theorem Complexity.DescriptiveComplexity.FOInterpretation.apply_comp {V W U : Vocabulary} (I₂ : FOInterpretation V W) (I₁ : FOInterpretation U V) (A : FinStruct U) :
              (I₂.comp I₁).apply A = I₂.apply (I₁.apply A)

              Composition applies as composition of structure maps: (I₂ ∘ I₁).apply A = I₂.apply (I₁.apply A). The relation fields agree by the transport theorem.

              First-order reduction between Boolean queries: an FO-interpretation carrying Q₁-membership to Q₂-membership on the interpreted structure.

              Equations
              Instances For

                FO-reducibility is reflexive, via the identity interpretation.

                First-order reductions respect complementation: the same interpretation witnesses Q₁ᶜ ≤ Q₂ᶜ, since the carrying biconditional negates.

                theorem Complexity.DescriptiveComplexity.FOReduces.trans {V W U : Vocabulary} {Q₁ : BooleanQuery U} {Q₂ : BooleanQuery V} {Q₃ : BooleanQuery W} (h₁ : FOReduces Q₁ Q₂) (h₂ : FOReduces Q₂ Q₃) :
                FOReduces Q₁ Q₃

                FO-reducibility is transitive, via composition of interpretations (the transport theorem is exactly what makes the composite carry membership). Together with FOReduces.refl, FO-reducibility is a preorder on Boolean queries.

                An interpretation is quantifier-free when every defining formula has quantifier rank 0 — the coarse form of a first-order projection.

                Equations
                Instances For

                  Translating through a quantifier-free interpretation preserves quantifier rank. Relation atoms are replaced by quantifier-free defining formulas, while all logical connectives and quantifiers retain their original structure.

                  The identity interpretation is quantifier-free (each relation is a bare atom).

                  Composing quantifier-free interpretations remains quantifier-free.

                  A first-order projection reduction: an FO-reduction witnessed by a quantifier-free interpretation.

                  Equations
                  • One or more equations did not get rendered due to their size.
                  Instances For

                    Every first-order projection is in particular a first-order reduction.

                    FO-projection reducibility is reflexive, via the (quantifier-free) identity.

                    theorem Complexity.DescriptiveComplexity.FOProjReduces.trans {V W U : Vocabulary} {Q₁ : BooleanQuery U} {Q₂ : BooleanQuery V} {Q₃ : BooleanQuery W} (h₁ : FOProjReduces Q₁ Q₂) (h₂ : FOProjReduces Q₂ Q₃) :
                    FOProjReduces Q₁ Q₃

                    FO-projection reducibility is transitive. Composition preserves both the query-membership equivalence and quantifier-freeness of the interpretation.