Alphabeta Math
TheoremStatement: AI-adaptedProof: 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.

Double counting: xXRx=R=yYRy\sum_{x \in X}\lvert R_x\rvert = \lvert R\rvert = \sum_{y \in Y}\lvert R^y\rvert for a relation between finite sets

Statement

Let XX and YY be finite sets and let RX×YR \subseteq X \times Y, with row fibres RxR_x and column fibres RyR^{y} as in A relation RX×YR \subseteq X \times Y between finite sets, its row fibres RxR_x and its column fibres RyR^y. Then, in N\mathbb{N},

xXRx  =  R  =  yYRy,\sum_{x \in X}\lvert R_x\rvert \;=\; \lvert R\rvert \;=\; \sum_{y \in Y}\lvert R^{y}\rvert ,

the sums being those of The sum iSai\sum_{i \in S} a_i over a finite index set, and its product form.

Both index sets may be empty. If X=X = \varnothing then R=R = \varnothing, every column fibre is empty, and all three quantities are 00; the same holds with the roles of XX and YY exchanged.

Facts & Assumptions

Given: Finite sets XX and YY, a relation RX×YR \subseteq X \times Y, and its fibres.

[L1]
[L2]

The row slices {x}×Rx\{x\}\times R_x and column slices Ry×{y}R^y\times\{y\} are pairwise disjoint within their respective families and each family has union RR by clause (c); they are finite because clause (b) bijects them with the finite fibres from [L1] (A relation RX×YR \subseteq X \times Y between finite sets, its row fibres RxR_x and its column fibres RyR^y, clauses (b) and (c), The cardinality A\lvert A\rvert of a finite set, clause (c)).

[L3]

{x}×Rx=Rx\lvert\{x\} \times R_x\rvert = \lvert R_x\rvert and Ry×{y}=Ry\lvert R^{y} \times \{y\}\rvert = \lvert R^{y}\rvert, by the slice bijections of clause (b) of A relation RX×YR \subseteq X \times Y between finite sets, its row fibres RxR_x and its column fibres RyR^y and the transport clause (c) of The cardinality A\lvert A\rvert of a finite set (Injection, surjection, bijection).

[L4]

The sum rule for a finite partition: if (Ci)iI(C_i)_{i \in I} is a family of pairwise disjoint finite sets indexed by a finite set II, then iICi\bigcup_{i \in I} C_i is finite with iICi=iICi\big\lvert\bigcup_{i \in I} C_i\big\rvert = \sum_{i \in I}\lvert C_i\rvert (The sum rule: a finite disjoint union is finite with AB=A+B\lvert A \cup B\rvert = \lvert A\rvert + \lvert B\rvert and iIAi=iIAi\lvert\bigcup_{i \in I} A_i\rvert = \sum_{i \in I}\lvert A_i\rvert, and a sum over a finite index set splits along a partition, clause 2, The sum iSai\sum_{i \in S} a_i over a finite index set, and its product form).

Proof

technique · direct
1.1

The row slices form a family of pairwise disjoint finite sets indexed by the finite set XX, and their union is RR, so [L4] gives R=xX{x}×Rx\lvert R\rvert = \sum_{x \in X}\lvert \{x\} \times R_x\rvert.

L1L2L4
1.2

The column slices form a family of pairwise disjoint finite sets indexed by the finite set YY, and their union is RR, so [L4] gives R=yYRy×{y}\lvert R\rvert = \sum_{y \in Y}\lvert R^{y} \times \{y\}\rvert.

L1L2L4
2.1

Replacing each summand of step 1.1 by Rx\lvert R_x\rvert and each summand of step 1.2 by Ry\lvert R^{y}\rvert, which is legitimate by [L3] since the two lists have the same values at every index, gives xXRx=R=yYRy\sum_{x \in X}\lvert R_x\rvert = \lvert R\rvert = \sum_{y \in Y}\lvert R^{y}\rvert.

step 1.1step 1.2L3

Remarks

  • Where the hypotheses are spent. Finiteness of XX and of YY is what makes the two index sets legitimate index sets for a sum, and finiteness of RR is what makes R\lvert R\rvert defined. Disjointness of the slices is automatic, since a slice is determined by one coordinate of its points, which is why no hypothesis of that kind appears in the statement.

  • The count stays in N\mathbb{N}. Every quantity here is a cardinality, and the sums are the N\mathbb{N}-valued ones. Nothing is embedded into R\mathbb{R} until an identity with a subtraction or a division has to be written.

Depends on

Used by

Dependency tree · next 3 levels

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