Alphabeta Math
ExampleConstruction: AI-adaptedVerification: AI-adaptedSession-authored (Fable 5 assisted)precheck 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 VV be a finite set and RV×VR \subseteq V \times V symmetric and irreflexive (A relation RX×YR \subseteq X \times Y between finite sets, its row fibres RxR_x and its column fibres RyR^y, clause (d)), with neighbour counts d(x):=Rxd(x) := \lvert R_x\rvert. Put

E  :=  {S[V]2 : S={x,y} for some (x,y)R},E \;:=\; \{\, S \in [V]^{2} \ :\ S = \{x,y\} \text{ for some } (x,y) \in R \,\},

the set of two-element subsets of VV whose elements are related. Then, in N\mathbb{N},

xVd(x)  =  2E.\sum_{x \in V} d(x) \;=\; 2\,\lvert E\rvert .

A concrete instance. With V:=4={0,1,2,3}V := 4 = \{0,1,2,3\} and RR the symmetric irreflexive relation whose related unordered pairs are {0,1}\{0,1\}, {1,2}\{1,2\} and {2,3}\{2,3\}, the neighbour counts are d(0)=1d(0) = 1, d(1)=2d(1) = 2, d(2)=2d(2) = 2, d(3)=1d(3) = 1, summing to 6=236 = 2\cdot 3, and E=3\lvert E\rvert = 3.

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

The extreme instance. If RR relates every pair of distinct elements of VV then E=[V]2E = [V]^{2} and d(x)=N1d(x) = N - 1 for every xx, where N:=VN := \lvert V\rvert; the identity then reads N(N1)=2(N2)N\,(N-1) = 2\binom{N}{2}, which is A finite set with nn elements has exactly (n2)\binom{n}{2} two-element subsets, and 2(n2)=n(n1)2\binom{n}{2} = n(n-1).

Facts & Assumptions

Given: A finite set VV, a symmetric irreflexive relation RV×VR \subseteq V \times V, the neighbour counts d(x)=Rxd(x) = \lvert R_x\rvert, and the set EE above.

[L4]

If xyx\ne y, then 0x0\mapsto x, 1y1\mapsto y is a bijection 2{x,y}2\to\{x,y\}, so {x,y}=2=2|\{x,y\}|=|2|=2; more generally, a bijection from a finite set transports its cardinality to the codomain (The cardinality A\lvert A\rvert of a finite set, clauses (a) and (c), Injection, surjection, bijection).

[L5]

[V]2=(N2)\lvert [V]^{2}\rvert = \binom{N}{2} and 2(N2)=N(N1)2\binom{N}{2} = N(N-1) for every NNN \in \mathbb{N} (A finite set with nn elements has exactly (n2)\binom{n}{2} two-element subsets, and 2(n2)=n(n1)2\binom{n}{2} = n(n-1)).

Verification

technique · direct
1.1

The pairing map. For (x,y)R(x,y) \in R irreflexivity gives xyx \ne y, so {x,y}\{x,y\} has exactly two elements by [L4] and lies in EE; write Ψ(x,y):={x,y}\Psi(x,y) := \{x,y\}, a map RER \to E. It is surjective, since every SES \in E is {x,y}\{x,y\} for some (x,y)R(x,y) \in R by the definition of EE.

givenL2L4construct
1.2

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

givenL4
2.1

Counting RR by the fibres of Ψ\Psi. The fibres of Ψ\Psi are pairwise disjoint finite sets indexed by the finite set EE, with union RR, so [L3] gives R=SEΨ1[{S}]=SE2=E2\lvert R\rvert = \sum_{S \in E}\lvert\Psi^{-1}[\{S\}]\rvert = \sum_{S \in E}2 = \lvert E\rvert\cdot 2.

step 1.1step 1.2L2L3
3.1

Combining with [L1], xVd(x)=R=2E\sum_{x \in V}d(x) = \lvert R\rvert = 2\,\lvert E\rvert, which is the identity. In the extreme case where RR relates every pair of distinct elements, E=[V]2E = [V]^{2} and the neighbours of xx are exactly V{x}V\setminus\{x\}, so d(x)=N1d(x)=N-1 by [L3]; the identity therefore reads N(N1)=2(N2)N(N-1) = 2\binom{N}{2} 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 RR; without it a fibre could have one element and the factor 22 would be wrong. Irreflexivity is spent in step 1.1, to know that {x,y}\{x,y\} really is a two-element set.

  • This is double counting of one set, not two computations of two sets. The relation RR is counted once by its row fibres, which gives the sum of the neighbour counts, and once by the fibres of Ψ\Psi, 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 EE 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 · next 3 levels

Direct dependencies and their dependencies through the next three levels: 78 results over 27 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