Documentation

CslibFrontier.Logics.FirstOrder.ZeroOneLaw.ExtensionProbability

Extension axioms hold almost surely #

Every extension axiom holds in the binomial random graph G(n, p) (Mathlib's SimpleGraph.binomialRandom (Fin n) p) with probability tending to 1, for every constant 0 < p < 1 [AlonSpencer2016, Section 10.4]. The argument is Fagin's for p = 1/2 [Fag76], with the probability that one vertex realizes a pattern bounded below. For a tuple x of k distinct vertices and a pattern s, each of the n - k other vertices realizes s towards x with probability at least min (p, 1 - p) ^ k, independently of the others (SimpleGraph.binomialRandom_real_forall_not_witness). A union bound over the n (n - 1) ⋯ (n - k + 1) tuples gives Pr[G(n, p) ⊭ EA(k, s)] ≤ n (n - 1) ⋯ (n - k + 1) · (1 - min (p, 1 - p) ^ k) ^ (n - k), which tends to 0.

At p = 1/2, G(n, p) is the uniform random graph Cslib.Logic.FO.graph.randomGraph n (Cslib.Logic.FO.graph.binomialRandom_real_eq_randomGraphProb), and the bound becomes n (n - 1) ⋯ (n - k + 1) · (1 - 2⁻ᵏ) ^ (n - k), the bound of Fagin's proof of the G(n, 1/2) law [Fag76] [Libkin2004, Section 12.2].

Main results #

References #

The extension axioms in G(n, p) #

Failure bound for one extension axiom in G(n, p). The extension axiom for a pattern s of length k fails in G(n, p) with probability at most n (n - 1) ⋯ (n - k + 1) · (1 - min (p, 1 - p) ^ k) ^ (n - k): a union bound over the tuples of k distinct vertices, each failing with probability at most (1 - min (p, 1 - p) ^ k) ^ (n - k) by SimpleGraph.binomialRandom_real_forall_not_witness.

The extension axioms hold almost surely in G(n, p) for every constant 0 < p < 1 [AlonSpencer2016, Section 10.4].

G(n, 1/2) #

Extension axioms fail rarely. The probability that G(n, 1/2) violates the extension axiom for a pattern s : Fin k → Bool is at most n (n - 1) ⋯ (n - k + 1) · (1 - 2⁻ᵏ) ^ (n - k) [Libkin2004, Section 12.2]. This is the case p = 1/2 of binomialRandom_real_not_extensionAxiom_le.

Extension axioms hold almost surely. For every pattern s, the probability that G(n, 1/2) satisfies the extension axiom for s tends to 1 [Fag76] [Libkin2004, Section 12.2].