Alphabeta Math
ExampleConstruction: AI-adaptedVerification: AI-adaptedprecheck passverified 2026-08-03 (gpt-5.6-sol-codex-subscription)
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.

For a finite symmetric irreflexive relation the sum of the neighbour counts is twice the number of unordered related pairs

Example

Let V be a finite set and R⊆V×V symmetric and irreflexive (A relation R⊆X×Y between finite sets, its row fibres Rx and its column fibres Ry, clause (d)), with neighbour counts d(x):=∣Rx∣. Put

E  :=  { S∈[V]2 : S={x,y} for some (x,y)∈R },

the set of two-element subsets of V whose elements are related. Then, in N,

∑x∈Vd(x)  =  2 ∣E∣.

A concrete instance. With V:=4={0,1,2,3} and R the symmetric irreflexive relation whose related unordered pairs are {0,1}, {1,2} and {2,3}, the neighbour counts are d(0)=1, d(1)=2, d(2)=2, d(3)=1, summing to 6=2⋅3, and ∣E∣=3.

0123d(0)=1d(1)=2d(2)=2d(3)=1Eachsegmentfx;yg2Erepresents(x;y)and(y;x)inR.

The extreme instance. If R relates every pair of distinct elements of V then E=[V]2 and d(x)=N−1 for every x, where N:=∣V∣; the identity then reads N (N−1)=2(N2), which is A finite set with n elements has exactly (n2) two-element subsets, and 2(n2)=n(n−1).

Facts & Assumptions

Given: A finite set V, a symmetric irreflexive relation R⊆V×V, the neighbour counts d(x)=∣Rx∣, and the set E above.

[L4]

If x≠y, then 0↦x, 1↦y is a bijection 2→{x,y}, so ∣{x,y}∣=∣2∣=2; more generally, a bijection from a finite set transports its cardinality to the codomain (The cardinality ∣A∣ of a finite set, clauses (a) and (c), Injection, surjection, bijection).

[L5]

∣[V]2∣=(N2) and 2(N2)=N(N−1) for every N∈N (A finite set with n elements has exactly (n2) two-element subsets, and 2(n2)=n(n−1)).

Verification

technique · direct
1.1

The pairing map. For (x,y)∈R irreflexivity gives x≠y, so {x,y} has exactly two elements by [L4] and lies in E; write Ψ(x,y):={x,y}, a map R→E. It is surjective, since every S∈E is {x,y} for some (x,y)∈R by the definition of E.

givenL2L4construct
1.2

Every fibre of Ψ has exactly two elements. Let S={x,y}∈E with x≠y. A pair (u,v)∈R with {u,v}=S has u≠v, so (u,v) is (x,y) or (y,x); and both of these lie in R, since at least one of them does and R is symmetric. So Ψ−1[{S}]={(x,y),(y,x)}, which has two elements because x≠y.

givenL4
2.1

Counting R by the fibres of Ψ. The fibres of Ψ are pairwise disjoint finite sets indexed by the finite set E, with union R, so [L3] gives ∣R∣=∑S∈E∣Ψ−1[{S}]∣=∑S∈E2=∣E∣⋅2.

step 1.1step 1.2L2L3
3.1

Combining with [L1], ∑x∈Vd(x)=∣R∣=2 ∣E∣, which is the identity. In the extreme case where R relates every pair of distinct elements, E=[V]2 and the neighbours of x are exactly V∖{x}, so d(x)=N−1 by [L3]; the identity therefore reads N(N−1)=2(N2) by [L3] and [L5].

step 2.1L1L3L5given∎

Remarks

  • Where symmetry is spent. Only in step 1.2, to know that both ordered pairs over a related unordered pair lie in R; without it a fibre could have one element and the factor 2 would be wrong. Irreflexivity is spent in step 1.1, to know that {x,y} really is a two-element set.

  • This is double counting of one set, not two computations of two sets. The relation R is counted once by its row fibres, which gives the sum of the neighbour counts, and once by the fibres of Ψ, which gives twice the number of related unordered pairs. Both are instances of the sum rule over a partition.

  • No graph vocabulary is used. The data are a finite set and a symmetric irreflexive relation on it, and E is a set of two-element subsets. Nothing among this page's declared prerequisites defines a graph, and nothing here needs one.

Depends on

Used by

Nothing in the library uses this result yet.

Dependency tree · two levels

45 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