Alphabeta Math
ExampleConstruction: Literature-sourcedVerification: AI-adaptedprecheck pass
How statement and proof provenance work

The first chip identifies the source of the statement or construction; the second identifies the source of its local proof or verification.

  • Literature-sourced: the exact statement appears in a cited source; only wording and notation differ.
  • AI-adapted: a semantically identical restatement of literature-sourced material, modulo indexing, notation, and boundary cases adopted by the library.
  • AI-generated: a genuinely novel statement formulated by AI, with no source for the claim itself.

These labels describe origin, not correctness: citations and verification chips remain separate evidence.

The expected number of triangles in G(n,p) is (n3)p3

Example

Let T be the number of triangles in G(n,p). Then E[T]=(n3)p3, and Var⁡(T)=(n3)(p3−p6)+2(n2)(n−22)(p5−p6).

Facts & Assumptions

Given: The random graph G(n,p) and its triangle count T.

[L1]

G(n,p) has independent Bernoulli edge coordinates (The Erdős-Rényi finite random graph G(n,p)).

[L2]

A prescribed set of r present edges has probability pr (A prescribed set of present and absent edges in G(n,p) has product probability).

[L4]

There are (n3) vertex triples and (n2) vertex pairs (The set [A]k of k-element subsets and the binomial coefficient (nk):=∣[n]k∣).

[L5]

On the finite random-graph probability space, variance and covariance are the expectations of the centered square and centered product. (Variance, standard deviation, and covariance on a finite probability space)

Verification

technique · direct
1.1L2L3L4

Write T=∑QIQ, with Q ranging over three-element vertex sets. Each IQ requires three present edges and has expectation p3, so E[T]=(n3)p3.

1.2L1L2L5algebra

Each indicator has variance p3−p6. Two distinct triangles are independent unless they share an edge; if they share an edge, their joint occurrence requires five edges and their covariance is p5−p6.

1.3L4

An unordered pair of triangles sharing an edge is determined by the common edge and the two distinct extra vertices, so there are (n2)(n−22) such pairs.

1.4step 1.1step 1.2step 1.3L3L5algebra∎

Put YQ=IQ−EIQ. By finite linearity [L3], T−ET=∑QYQ. Expanding this finite square and applying [L3] gives Var⁡(T)=E(∑QYQ)2=∑QEYQ2+2∑{Q,R}:Q≠RE[YQYR], where the second sum is over unordered pairs of distinct triangles. By [L5] these terms are respectively the individual variances and pairwise covariances. Substituting their values from step 1.2 and their counts from steps 1.1 and 1.3 proves the displayed variance formula. For n<3 the triangle family and the relevant pair counts are empty, so the expectation and variance are zero; for p=0,1 each variance contribution is zero.

Depends on

Used by

Nothing in the library uses this result yet.

Dependency tree · two levels

26 results within two dependency steps of this one, each drawn at its shortest distance from it. An arrow runs from a result to what uses it, so the chart reads left to right and ends at this result, which carries a heavier outline. Every node is a link to that result. Click elsewhere on the chart to enlarge it.

Sources