Documentation

Atlas.ProbabilisticMethodsInCombinatorics.code.Chapter7.RandomGraphs

structure RandomGraphs.Edge (n : ) :

An (unordered) edge of $K_n$ encoded as an ordered pair $\text{src} < \text{dst}$ of vertices in $\text{Fin } n$.

Instances For
    def RandomGraphs.instDecidableEqEdge.decEq {n✝ : } (x✝ x✝¹ : Edge n✝) :
    Decidable (x✝ = x✝¹)
    Instances For
      @[implicit_reducible]
      @[reducible, inline]

      A configuration of $G(n, p)$: a Boolean assignment to each edge indicating whether it is present.

      Instances For
        structure RandomGraphs.Triple (n : ) :

        An ordered triple of vertices $i < j < k$ in $\text{Fin } n$, used to index potential triangles in $K_n$.

        Instances For
          @[implicit_reducible]
          def RandomGraphs.instDecidableEqTriple.decEq {n✝ : } (x✝ x✝¹ : Triple n✝) :
          Decidable (x✝ = x✝¹)
          Instances For
            def RandomGraphs.Triple.eij {n : } (t : Triple n) :

            The edge $\{i, j\}$ of the triple $\{i, j, k\}$.

            Instances For
              def RandomGraphs.Triple.eik {n : } (t : Triple n) :

              The edge $\{i, k\}$ of the triple $\{i, j, k\}$.

              Instances For
                def RandomGraphs.Triple.ejk {n : } (t : Triple n) :

                The edge $\{j, k\}$ of the triple $\{i, j, k\}$.

                Instances For
                  def RandomGraphs.ConfigLE {n : } (G H : Config n) :

                  Pointwise containment of edge configurations: $G \leq H$ iff every edge of $G$ is in $H$.

                  Instances For

                    An event $A$ on configurations is decreasing (monotone-down) if removing edges preserves membership: $G \in A$ and $H \leq G$ implies $H \in A$.

                    Instances For

                      The event that the triangle on the triple $t = \{i, j, k\}$ is absent in $G$.

                      Instances For

                        The event that $G$ is triangle-free: no triple $\{i, j, k\}$ spans a triangle.

                        Instances For

                          The event "the triangle on $t$ is absent" is decreasing in $G$.

                          def RandomGraphs.bernoulliWeight {n : } [Fintype (Edge n)] (p : ) (G : Config n) :

                          Weight assigned to a configuration $G$ under $G(n, p)$: $\prod_{e} p^{G_e} (1 - p)^{1 - G_e}$.

                          Instances For
                            def RandomGraphs.BProb {n : } [Fintype (Edge n)] [Fintype (Config n)] (p : ) (A : Set (Config n)) [DecidablePred fun (x : Config n) => x A] :

                            Probability of an event $A$ under the $G(n, p)$ Bernoulli product measure: $\mathbb{P}_p(A) = \sum_{G \in A} \text{bernoulliWeight}(p, G)$.

                            Instances For
                              theorem RandomGraphs.harris_inequality_decreasing {n : } [Fintype (Edge n)] [Fintype (Config n)] (p : ) (hp0 : 0 p) (hp1 : p 1) {ι : Type u_1} [Fintype ι] (A : ιSet (Config n)) [(i : ι) → DecidablePred fun (x : Config n) => x A i] [DecidablePred fun (x : Config n) => x ⋂ (i : ι), A i] (hA : ∀ (i : ι), IsDecreasing (A i)) :
                              BProb p (⋂ (i : ι), A i) i : ι, BProb p (A i)

                              Corollary 7.1.6 (decreasing form): For finitely many decreasing events $A_i$ in $G(n, p)$, $\mathbb{P}_p\!\left(\bigcap_i A_i\right) \geq \prod_i \mathbb{P}_p(A_i)$.

                              theorem RandomGraphs.prob_notTriangle_eq {n : } [Fintype (Edge n)] [Fintype (Config n)] (p : ) (hp0 : 0 p) (hp1 : p 1) (t : Triple n) [DecidablePred fun (x : Config n) => x notTriangleEvent t] :
                              BProb p (notTriangleEvent t) = 1 - p ^ 3

                              The probability that a specific triple of vertices does not form a triangle in $G(n, p)$ is exactly $1 - p^3$.

                              The number of ordered triples $i < j < k$ in $\text{Fin } n$ equals $\binom{n}{3}$.

                              theorem RandomGraphs.theorem_7_2_2 (n : ) (p : ) (hp0 : 0 p) (hp1 : p 1) (_hn : 3 n) [Fintype (Edge n)] [Fintype (Config n)] [Fintype (Triple n)] [DecidablePred fun (x : Config n) => x triangleFreeEvent n] [(t : Triple n) → DecidablePred fun (x : Config n) => x notTriangleEvent t] [DecidablePred fun (x : Config n) => x ⋂ (t : Triple n), notTriangleEvent t] :
                              BProb p (triangleFreeEvent n) (1 - p ^ 3) ^ n.choose 3

                              Theorem 7.2.2: For the Erdős-Rényi random graph $G(n, p)$, $\mathbb{P}(G(n, p) \text{ is triangle-free}) \geq (1 - p^3)^{\binom{n}{3}}$.