Asymptotic probabilities of first-order sentences #
For a sequence of distributions μ n on the L-structures with universe Fin n, the probability
that μ n satisfies a sentence φ is Cslib.Logic.FO.sentenceProb (μ n) φ. This file proves
the measure-independent half of Fagin's proof of the 0-1 law [Fag76] [Libkin2004, Chapter 12]:
if every sentence of a theory T holds with probability tending to 1, then by compactness T is
satisfiable and every consequence of T holds with probability tending to 1. If T is also
complete, every sentence has probability tending to 0 or to 1, and the sentences of limit
probability 1 are exactly the consequences of T.
Under a 0-1 law, a property whose probability converges to neither 0 nor 1, such as having an
even number of elements, agrees with no sentence on all large structures.
Main definitions #
Cslib.Logic.FO.structProb: the probability that a random structure has a property.Cslib.Logic.FO.sentenceProb: the probability that a random structure satisfies a sentence.
Main results #
Cslib.Logic.FO.structProb_not,Cslib.Logic.FO.structProb_mono,Cslib.Logic.FO.structProb_exists_le: complement, monotonicity, union bound.Cslib.Logic.FO.isSatisfiable_of_tendsto_sentenceProb: a theory whose sentences hold with probability tending to1is satisfiable.Cslib.Logic.FO.tendsto_sentenceProb_of_models: so does every consequence of it.Cslib.Logic.FO.zero_one_law_of_isComplete: the transfer to a 0-1 law.Cslib.Logic.FO.tendsto_sentenceProb_one_iff_of_isComplete,Cslib.Logic.FO.tendsto_sentenceProb_zero_iff_of_isComplete: the limit is1exactly for the consequences ofT, and0exactly for the sentences thatTrefutes.Cslib.Logic.FO.not_tendsto_structProb_even: the probability of an even number of elements has no limit.Cslib.Logic.FO.not_exists_sentence_of_not_tendsto,Cslib.Logic.FO.not_exists_sentence_even_card_of_zero_one_law: under a 0-1 law, such properties as an even number of elements are not first-order definable.
References #
The probability that a random structure drawn from μ has the property P.
The probability that a random structure drawn from μ satisfies the sentence φ.
A property of positive probability holds of some structure.
Union bound.
Transfer #
If each sentence of a finite set holds with probability tending to 1, so does their
conjunction.
Compactness. If every sentence of T holds with probability tending to 1, then T is
satisfiable.
If every sentence of T holds with probability tending to 1, so does every consequence
of T.
If every sentence of T holds with probability tending to 1, then every sentence refuted by
T holds with probability tending to 0.
Transfer to a 0-1 law. If every sentence of a complete theory T holds with probability
tending to 1, then every sentence has probability tending to 0 or to 1 [Fag76].
If every sentence of a complete theory T holds with probability tending to 1, then the
sentences of limit probability 1 are exactly the consequences of T.
If every sentence of a complete theory T holds with probability tending to 1, then the
sentences of limit probability 0 are exactly the sentences that T refutes.
Under a 0-1 law, a property whose probability tends neither to 0 nor to 1 agrees with no
sentence on all sufficiently large structures.
The probability of an even number of elements alternates between 1 and 0, so it has no
limit.
Under a 0-1 law, having an even number of elements agrees with no sentence on all
sufficiently large structures: its probability alternates between 1 and 0.