Alphabeta Math
ExampleConstruction: Literature-sourcedVerification: AI-adaptedSession-authored (Fable 5 assisted)precheck passaudited 2026-08-13
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)(p3p6)+2(n2)(n22)(p5p6).

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]

Variance and covariance obey their centred-product definitions, and the variance of a finite sum is the sum of individual variances plus twice the unordered pairwise covariances (Variance, standard deviation, and covariance on a finite probability space, Variance of a finite sum as the sum of all variances and covariances).

Verification

technique · direct
1.1

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.

L2L3L4
1.2

Each indicator has variance p3p6. 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 p5p6.

L1L2L5algebra
1.3

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

L4
2.1

Sum the individual variances and twice the unordered covariances to obtain the formula. For n<3 all relevant binomial coefficients vanish; for p=0,1 the variance is zero.

step 1.1step 1.2step 1.3L5

Depends on

Used by

Nothing in the library uses this result yet.

Dependency tree · next 3 levels

Direct dependencies and their dependencies through the next three levels: 84 results over 22 levels. An arrow runs from a result to what uses it, and this result sits at the bottom with a heavier outline. Click the chart to enlarge it.

Sources