Documentation

DescriptiveComplexity.Counting.WeightedFacts

Weighted worlds, with every fact as a variable #

DescriptiveComplexity.weightedWorlds_eq_weightedCount reads the count of the weighted worlds as a weighted count over the valuations of the open facts. For computing it, a more uniform reading is convenient: every fact of the schema over the universe is a Boolean variable, with two weights that say everything about its status (DescriptiveComplexity.fullPresWeight, DescriptiveComplexity.fullAbsWeight):

the fact isweight of presenceweight of absence
certain10
openits weight of presenceits weight of absence
neither01

A valuation that is not a possible world then has weight 0, and the count is a weighted count over all the valuations (DescriptiveComplexity.weightedWorlds_eq_weightedCount_facts), with no side condition on the worlds: the independence lemmas of DescriptiveComplexity.Counting.Independence apply to it as they stand.

The weight of presence of a fact, whatever its status.

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

    The weight of absence of a fact, whatever its status.

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

      The family of relations of a valuation of all the facts.

      Equations
      Instances For
        Dependency graph
        @[instance_reducible]
        noncomputable instance DescriptiveComplexity.factFintype {L : FirstOrder.Language} [Finite ((n : ℕ) × L.Relations n)] {A : Type} [Finite A] :

        The facts over a finite universe, as a finite type.

        Equations
        Dependency graph
        noncomputable def DescriptiveComplexity.factWorldEquiv (L : FirstOrder.Language) [Finite ((n : ℕ) × L.Relations n)] (A : Type) :

        Families of relations are valuations of the facts.

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

          The count is a weighted count over the valuations of all the facts: on an instance whose positions are linearly ordered, counting the weighted worlds of a sentence is the weighted count of the event that the sentence holds, every fact being a variable.

          Dependency graph