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 #
Cslib.Logic.FO.graph.binomialRandom_real_not_extensionAxiom_le: the failure bound for one extension axiom inG(n, p).Cslib.Logic.FO.graph.tendsto_binomialRandom_real_extensionAxiom: every extension axiom holds almost surely inG(n, p)for0 < p < 1.Cslib.Logic.FO.graph.randomGraphProb_not_extensionAxiom_le: the bound inG(n, 1/2).Cslib.Logic.FO.graph.tendsto_randomGraphProb_extensionAxiom: each extension axiom holds inG(n, 1/2)with probability tending to1.
References #
- R. Fagin, Probabilities on finite models
- L. Libkin, Elements of Finite Model Theory, Section 12.2.
- N. Alon, J. H. Spencer, The Probabilistic Method, Section 10.4 (locator from secondary sources, unverified)
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].