Alphabeta Math
Pipeline-generated
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.

Finite-metric transport duality

1 · Prerequisites

2 · Logical flowchart

3 · Definitions, theorems and proofs

DefinitionDefinition: Literature-sourcedProof: Not applicablejudge pass (gpt-6-luna)Open item page →

Couplings of finite probability vectors

Definition

Let X={x1,…,xm} be a finite nonempty set with this fixed ordering, and let p=(pi)i=1m and q=(qj)j=1m be probability vectors on X: their coordinates are nonnegative real numbers and ∑i=1mpi=∑j=1mqj=1. A coupling of p and q is a real matrix π=(πij)i,j=1m satisfying

πij≥0,∑j=1mπij=pi(1≤i≤m),∑i=1mπij=qj(1≤j≤m).

Write Γ(p,q) for the set of all such matrices. The first index records the source point and the second index records the destination point.

LemmaStatement: Literature-sourcedProof: AI-generatedjudge pass (gpt-6-luna)Open item page →

A cone generated by finitely many Euclidean vectors is closed

Statement

Let r,N≥1 be integers and let g1,…,gN∈Rr. Define

C={∑i=1Nλigi:λi≥0 for every i}.

Then C is closed in the Euclidean topology, and for all x,y∈C and all real α,β≥0, one has αx+βy∈C.

Facts & Assumptions

Given: Integers r,N≥1, a list g1,…,gN∈Rr, and the set C in the Statement.

[F1]

On Rr, coordinates are indexed by k<r, and ⟨x,y⟩=∑k<rxkyk and ∥x∥22=⟨x,x⟩; in particular ⟨x,x⟩=0 implies x=0 (The Euclidean inner product ⟨x,y⟩=∑k<nxkyk on Rn).

[F3]

For a square matrix over a field, having trivial kernel is equivalent to being invertible (Invertible matrix theorem: invertibility, full pivot rank, RREF I, trivial nullspace and unique solvability are equivalent).

[F4]

Every nonempty finite set of real numbers has an attained minimum (Every nonempty finite set of reals has a maximum and a minimum, Maximum and minimum of a set).

[F5]

On Rr, d2(x,y)=∑k<r(xk−yk)2 is a metric and ∥x−y∥2=d2(x,y) (Rn as the set of functions n→R, and d1, d2, d∞ are metrics on it, The Euclidean inner product ⟨x,y⟩=∑k<nxkyk on Rn).

[F6]

A set is closed exactly when its complement is open, and a set is open when every point has a positive-radius metric ball contained in it (The metric topology: a set is open when every one of its points has a ball around it inside the set; closed means open complement).

[F7]

Every nonzero real has positive square, 02=0, and for c≥0, c≥0 with (c)2=c; finite sums of nonnegative reals dominate each term, termwise inequalities may be summed, finite sums scale by a common scalar, and a zero sum of nonnegative terms forces every term to be zero (Squares of nonzero elements are positive, Integer powers am, Multiplication by zero: 0⋅a=0, Square roots exist: a unique a≥0 with (a)2=a; the positives are {x2:x≠0}, Laws of finite sums and finite products).

[F8]

Absolute values are nonnegative, vanish exactly at zero, satisfy ∣ab∣=∣a∣∣b∣ and ∣a+b∣≤∣a∣+∣b∣, and obey ∣a∣2=a2; squaring is monotone on nonnegative reals, and multiplication by a nonnegative real preserves nonstrict inequalities (Absolute value in an ordered field, Basic properties of the absolute value, The triangle inequality, Squaring is monotone on the nonnegatives, Sign rules for products and monotonicity of multiplication, Multiplication by zero: 0⋅a=0).

[F10]

If a property holds at 0 and passes from n to n+1, it holds for every natural n (The principle of mathematical induction).

Proof

1.1givenF2F4chooseconstruct

Take a representation x=∑i=1Nλigi with every λi≥0 and let S={i:λi>0}. If the sublist indexed by S is dependent, [F2] gives coefficients ci, not all zero, with ∑i∈Scigi=0. Reverse all signs if needed so J={i∈S:ci>0} is nonempty, and set t=min⁡i∈Jλi/ci>0 using [F4]. Define λi′=λi−tci for i∈S and λi′=0 for i∉S. For i∈S with ci>0, the minimum choice makes λi′≥0 and makes at least one such coefficient zero; when ci≤0, λi′≥λi>0. Thus every λi′≥0, the positive support strictly shrinks, and ∑i=1Nλi′gi=x. Each reduction loses at least one index and adds none to the support, which starts with at most N indices, so after at most N reductions the support is empty or linearly independent; the empty support is independent as well.

1.2givenF1F2F3F5F6F7F8F9F10algebra

Fix a nonempty independent sublist indexed by S={i1,…,is}, let A:Rs→Rr have these columns, and let G=ATA. If Gz=0, then 0=zTGz=∥Az∥22, so [F1] gives Az=0 and [F2] gives z=0. Thus G is invertible by [F3]. Put B=G−1AT and P=AB, so BA=I. The cone CS generated by this sublist is exactly {x∈Rr:Px=x, (Bx)k≥0 for k<s}: if x=Az with z≥0, then Bx=z and Px=x; conversely those displayed conditions give x=Px=A(Bx) with nonnegative coefficients. Each coordinate of Bx and Px−x is a finite linear form ℓ(x)=∑j<rcjxj. For u∈Rr and k<r, [F7] gives uk2≤∑j<ruj2; by [F5] and [F8], ∣uk∣2=uk2≤∥u∥22, and both ∣uk∣ and ∥u∥2 are nonnegative, so [F8] gives ∣uk∣≤∥u∥2. For any finite list a0,…,an−1, induction using the two-term triangle inequality in [F8] gives ∣∑j<naj∣≤∑j<n∣aj∣: the empty case is equality and the successor step is the two-term triangle inequality. Applying this, the absolute-value product law, multiplication by nonnegative coefficients, and finite-sum monotonicity in [F7,F8] gives ∣ℓ(x)−ℓ(y)∣≤∑j<r∣cj∣ ∣xj−yj∣≤(∑j<r∣cj∣)∥x−y∥2. If an equation ℓ(x)=0 fails at x0, then Cℓ:=∑j<r∣cj∣>0: otherwise [F7,F8] force every cj=0, so ℓ is identically zero. For ∥x−x0∥2<∣ℓ(x0)∣/(2Cℓ), the estimate gives ∣ℓ(x)−ℓ(x0)∣<∣ℓ(x0)∣/2, hence ℓ(x)≠0. The same positivity of Cℓ holds when an inequality ℓ(x)≥0 fails; throughout the ball of radius −ℓ(x0)/(2Cℓ), the estimate gives ℓ(x)<ℓ(x0)/2<0. Thus every point outside CS has a ball in its complement; by [F5,F6] that complement is open and CS is closed. For the empty sublist, C∅={0}: if x≠0, then d2(x,0)>0 by [F5,F9], and every y with d2(x,y)<d2(x,0)/2 is nonzero, since otherwise the triangle inequality would give d2(x,0)<d2(x,0)/2. Thus the complement of {0} is open by [F6], so C∅ is closed.

2.1step 1.1step 1.2givenF4F6choosealgebra∎

By step 1.1, every x∈C belongs to CS for some independent subset S of the N generators; conversely every such CS is contained in C. There are only finitely many subsets S, and the empty subset is included. For any x∉C, each closed CS has an open complement containing x; choosing one positive ball radius for each of the finitely many such complements and taking their positive minimum gives a ball about x disjoint from their union. Thus C has open complement and is closed. For x,y∈C, choose coefficients λi,μi≥0 with x=∑i=1Nλigi and y=∑i=1Nμigi. Then αx+βy=∑i=1N(αλi+βμi)gi∈C for all α,β≥0, proving the stated closure under nonnegative linear combinations.

DefinitionDefinition: Literature-sourcedProof: Not applicablejudge pass (gpt-6-luna)Open item page →

The finite-metric 1-Wasserstein transport cost

Definition

Let X={x1,…,xm} be a nonempty finite set and let d:X×X→R satisfy d(x,y)=0 if and only if x=y, d(x,y)=d(y,x), and d(x,z)≤d(x,y)+d(y,z). Let p=(pi)i=1m and q=(qi)i=1m be probability vectors, so their coordinates are nonnegative and each vector sums to 1. A coupling is an m×m matrix π with πij≥0, row sums ∑jπij=pi, and column sums ∑iπij=qj; write Γ(p,q) for the set of all such matrices. Writing dij=d(xi,xj), define the finite-metric 1-Wasserstein transport cost by

W1(p,q):=min⁡π∈Γ(p,q)∑i=1m∑j=1mdijπij.
LemmaStatement: Literature-sourcedProof: AI-generatedjudge pass (gpt-6-luna)Open item page →

Finite-metric transport and normalized dual optima are attained

Statement

Let X={x1,…,xm} be a nonempty finite metric space, and let p,q be probability vectors on X. The coupling set Γ(p,q) is nonempty and compact in Rm2, so the finite-metric transport cost W1(p,q) attains its minimum. The normalized 1-Lipschitz potential set

L1(X,d)={f∈Rm:f1=0, ∣fi−fj∣≤d(xi,xj) for all i,j}

is also nonempty and compact, so the linear functional f↦∑i=1m(pi−qi)fi attains a maximum on it.

Facts & Assumptions

Given: A nonempty finite set X={x1,…,xm} with metric d, and probability vectors p,q on X.

[F1]

A probability vector has nonnegative coordinates with total sum one (Finite probability vectors).

[F2]

A coupling is a nonnegative matrix whose row sums are pi and column sums are qj (Couplings of finite probability vectors).

[F3]

A metric has real values, vanishes exactly on equal points, is symmetric, and satisfies the triangle inequality (Metric space: d(x,y)=0 iff x=y, symmetry, and the triangle inequality; pseudometric and ultrametric).

[F4]

Every metric is nonnegative, although nonnegativity is not listed as a separate metric axiom (Nonnegativity of a metric is a consequence of the other axioms, not an axiom).

[F5]

On Rn for n≥1, d2(x,y)=∑k<n(xk−yk)2 is a metric (Rn as the set of functions n→R, and d1, d2, d∞ are metrics on it). Closedness and openness refer to its metric topology; a set is closed when its complement is open, and open sets contain a ball around each of their points (The metric topology: a set is open when every one of its points has a ball around it inside the set; closed means open complement).

[F7]

Every lower semicontinuous real function on a nonempty compact Euclidean set attains a minimum, and every upper semicontinuous one attains a maximum (Semicontinuous extreme value theorem on compact Euclidean sets).

[F8]

The real line has metric dR(a,b)=∣a−b∣ (The absolute value makes R a metric space: d(x,y)=∣x−y∣ is a metric, its open balls are the intervals (x−r,x+r), and it is unbounded), and continuity at x means that for each ε>0 some δ>0 makes dX(x,y)<δ imply dY(f(x),f(y))<ε (Continuity of a map between metric spaces, at a point and globally, in the ε-δ form).

[F9]

A continuous real function on a Euclidean subset is both lower and upper semicontinuous (Upper and lower semicontinuity on subsets of Rn).

[F10]

The finite-metric transport cost is W1(p,q)=min⁡π∈Γ(p,q)∑i,jd(xi,xj)πij (The finite-metric 1-Wasserstein transport cost).

[F11]

Every nonzero real has positive square and 02=0; finite sums of nonnegative terms dominate each term, termwise inequalities may be summed, and finite sums scale by a common scalar; for nonnegative reals, comparison of squares is equivalent to comparison of the reals; square roots are nonnegative and square to their radicands; absolute values are nonnegative and satisfy ∣a∣=0  ⟺  a=0, ∣ab∣=∣a∣∣b∣, ∣a+b∣≤∣a∣+∣b∣, and ∣a∣2=a2; multiplication by a nonnegative real preserves nonstrict inequalities (Squares of nonzero elements are positive, Integer powers am, Multiplication by zero: 0⋅a=0, Laws of finite sums and finite products, Squaring is monotone on the nonnegatives, Square roots exist: a unique a≥0 with (a)2=a; the positives are {x2:x≠0}, Absolute value in an ordered field, Basic properties of the absolute value, The triangle inequality, Sign rules for products and monotonicity of multiplication).

[F12]

A property holding at 0 and passing from n to n+1 holds for every natural n (The principle of mathematical induction).

Proof

1.1givenF1F2construct

Define πij=piqj. These entries are nonnegative by [F1], and their row sums are pi∑jqj=pi while their column sums are qj∑ipi=qj. Thus π∈Γ(p,q) and the coupling set is nonempty.

1.2givenF1F2F5F6F11F12algebra

Flatten a matrix into Rm2 in row-major order, assigning entry πij to library coordinate k=(i−1)m+(j−1)<m2; likewise potential coordinate fi corresponds to library coordinate i−1<m. In any dimension n≥1, for u∈Rn and k<n, [F11] gives uk2≤∑j<nuj2; by [F5,F11], ∣uk∣2=uk2≤d2(u,0)2, and both ∣uk∣ and d2(u,0) are nonnegative, so [F11] gives ∣uk∣≤d2(u,0). By induction on n, every finite list satisfies ∣∑k<nak∣≤∑k<n∣ak∣: the empty case is equality and the successor step follows from ∣a+b∣≤∣a∣+∣b∣ in [F11]. Thus for every finite linear form L(z)=∑k<nckzk, this bound, ∣ab∣=∣a∣∣b∣, the coordinate estimate, multiplication by nonnegative coefficients, finite-sum monotonicity and scaling in [F11] give ∣L(z)−L(w)∣≤(∑k<n∣ck∣)d2(z,w). The same estimate holds for every affine form H(z)=L(z)+b, since the constant cancels in H(z)−H(w). The set Γ(p,q) is defined by finitely many affine equalities and weak inequalities. Each row or column equality, after moving its marginal to one side, has m coefficients equal to 1; each entrywise nonnegativity constraint has one coefficient equal to 1, so the coefficient sum C=∑∣ck∣ is positive for every constraint. If an affine equality H(z)=0 fails at z0, then for d2(z,z0)<∣H(z0)∣/(2C) the estimate gives ∣H(z)−H(z0)∣<∣H(z0)∣/2, so H(z)≠0. If an affine inequality H(z)≥0 fails at z0, then for d2(z,z0)<−H(z0)/(2C) the estimate gives H(z)<H(z0)/2<0. Thus every point outside Γ(p,q) has a ball in its complement, so [F5,F6] make Γ(p,q) closed. Also 0≤πij≤pi≤1 by [F1,F2], so the set is bounded. Since m2≥1, [F6] makes Γ(p,q) compact.

2.1step 1.1step 1.2F1F4F7F8F9F10F11

For a matrix difference z−w, the objective changes by at most Cd2(z,w), where C=∑i,jd(xi,xj)≥0 is finite; the coordinate bound is the same as in step 1.2. For any ε>0, taking δ=ε/(C+1) shows that inputs within δ have output difference less than ε, so the objective is continuous by [F8] and lower semicontinuous by [F9]. It is real-valued because all distances are finite reals; by [F4] and [F1] its values are nonnegative. The nonempty compact set from steps 1.1–1.2 and [F7] therefore give a finite attained minimum, which is W1(p,q) by [F10].

2.2givenF3F4F5F6F11step 1.2algebra

The set L1(X,d) contains the zero vector. It is closed because its constraints are finitely many linear equalities and weak inequalities: f1=0 has one nonzero coefficient, and writing each ∣fi−fj∣≤d(xi,xj) as d(xi,xj)−(fi−fj)≥0 and d(xi,xj)+(fi−fj)≥0 gives two nonzero coefficients in each inequality when i≠j; when i=j the constraint is the identity 0≤0. Thus every violated constraint has positive coefficient sum and the strict-violation ball argument in step 1.2 applies using [F5,F6,F11]. Since f1=0 and ∣fi−f1∣≤d(xi,x1), every f∈L1(X,d) satisfies ∣fi∣≤d(xi,x1)≤1+∑k=1md(xk,x1) by [F3,F4]; thus the set is bounded. Since m≥1, [F6] makes it compact.

3.1step 2.2F7F8F9F11algebra∎

The objective f↦∑i(pi−qi)fi changes by at most C′d2(f,g), where C′=∑i∣pi−qi∣≥0; taking δ=ε/(C′+1) for each ε>0 proves continuity by [F8] and upper semicontinuity by [F9]. The nonempty compact set from step 2.2 and [F7] give an attained maximum.

TheoremStatement: Literature-sourcedProof: AI-generatedjudge pass (gpt-6-luna)Open item page →

Finite-metric transport duality and complementary slackness

Statement

Let X={x1,…,xm} be a nonempty finite set, let d:X×X→R satisfy d(x,y)=0 if and only if x=y, d(x,y)=d(y,x), and d(x,z)≤d(x,y)+d(y,z), and let p=(pi)i=1m, q=(qi)i=1m have nonnegative coordinates with each vector summing to 1. Let Γ(p,q) consist of matrices πij≥0 with row sums pi and column sums qj, and let

W1(p,q)=min⁡π∈Γ(p,q)∑i=1m∑j=1md(xi,xj)πij.

Then

W1(p,q)=max⁡f∈Rm, f1=0∣fi−fj∣≤d(xi,xj) for all i,j∑i=1m(pi−qi)fi.

Both extrema are attained. Moreover, for every minimizing coupling π and every maximizing vector f, πij>0 implies fi−fj=d(xi,xj).

Facts & Assumptions

Given: The finite metric space, probability vectors, and coupling set in the Statement.

[F1]

A metric is real-valued and satisfies separation, symmetry and the triangle inequality (Metric space: d(x,y)=0 iff x=y, symmetry, and the triangle inequality; pseudometric and ultrametric).

[F2]

Metric values are nonnegative, although this is derived from the metric axioms rather than assumed (Nonnegativity of a metric is a consequence of the other axioms, not an axiom).

[F3]

The vectors p,q have nonnegative coordinates and total mass one (Finite probability vectors).

[F4]

Γ(p,q) consists of nonnegative matrices with row sums pi and column sums qj (Couplings of finite probability vectors).

[F5]

W1(p,q) is the minimum coupling cost min⁡π∈Γ(p,q)∑i,jd(xi,xj)πij (The finite-metric 1-Wasserstein transport cost).

[F6]

The coupling set is nonempty compact and its cost minimum is attained; the normalized 1-Lipschitz potential set is nonempty compact and its linear objective maximum is attained (Finite-metric transport and normalized dual optima are attained).

[F7]

The nonnegative span of finitely many Euclidean vectors is closed and closed under nonnegative linear combinations (A cone generated by finitely many Euclidean vectors is closed).

[F8]

If C is a nonempty closed convex subset of Rn, n≥1, and y∉C, there are a nonzero vector h and a real β such that ⟨h,z⟩≤β<⟨h,y⟩ for all z∈C (A point outside a nonempty closed convex set is strictly separated from it).

[F9]

A nonempty finite list of real numbers has an attained minimum (Every nonempty finite set of reals has a maximum and a minimum, Maximum and minimum of a set).

[F10]

On the library's Rn, coordinates are indexed by k<n and the Euclidean pairing is ⟨x,y⟩=∑k<nxkyk (The Euclidean inner product ⟨x,y⟩=∑k<nxkyk on Rn).

[F11]

A subset of Euclidean space is convex when it contains (1−t)x+ty for every pair of its points and every t∈[0,1] (A convex subset of Rm contains every line segment between two of its points).

Proof

Given: The finite metric space, probability vectors, and coupling set in the Statement.

1.1givenF2F3F4algebra

For any π∈Γ(p,q) and any f∈Rm with f1=0 and ∣fi−fj∣≤d(xi,xj), the marginal equations give ∑i(pi−qi)fi=∑i,jπij(fi−fj)≤∑i,jπijd(xi,xj). The inequality uses πij≥0 and fi−fj≤∣fi−fj∣≤d(xi,xj). Thus every feasible dual value is at most every feasible primal cost.

1.2F1F2F3F4F5F6F7F11

Write dij=d(xi,xj), and for i=1,…,m let ei∈Rm have value 1 at library coordinate k=i−1 and 0 at every other coordinate. For alphabet-indexed tuples u=(ui)i=1m and v=(vj)j=1m, identify (u,v,t) with the vector in R2m+1 whose coordinate k<m is uk+1, whose coordinate m+k is vk+1, and whose coordinate 2m is t. Let K be the nonnegative span of (ei,ej,dij) for all i,j, together with (0,0,1). By [F7], K is closed and closed under nonnegative linear combinations. For x,y∈K and s∈[0,1], [F7] gives sx+(1−s)y∈K, so [F11] makes K convex; the zero representation gives 0∈K. Put c∗=W1(p,q), which is finite and attained by [F6]. For every ε>0, the vector yε=(p,q,c∗−ε) under this identification is outside K: if it had a representation with coefficients λij≥0 and t≥0, its first two coordinate blocks would make λ∈Γ(p,q) and its last coordinate would give c∗−ε=∑i,jdijλij+t≥c∗, contradicting minimality.

2.1F7F8F10step 1.2algebra

Apply [F8] to K and yε. It gives a vector h and threshold β with ⟨h,z⟩≤β<⟨h,yε⟩ for all z∈K. Since 0∈K, β≥0. By [F7], sz∈K for every z∈K and s≥0. If c:=⟨h,z⟩>0 for some z∈K, take s=(β+1)/c>0; then sz∈K but ⟨h,sz⟩=β+1>β, a contradiction. Hence ⟨h,z⟩≤0 for every z∈K, while ⟨h,yε⟩>0.

3.1step 2.1F3F10algebra

Decompose h=(a,b,g) with a,b∈Rm and g∈R. By [F10], pairing with (0,0,1)∈K gives g≤0. If g=0, pairing with every (ei,ej,dij) gives ai+bj≤0. Multiplying by piqj≥0 and summing yields ∑ipiai+∑jqjbj=∑i,jpiqj(ai+bj)≤0. When g=0 this left-hand side is ⟨h,yε⟩, contrary to step 2.1. Therefore g<0.

4.1step 2.1step 3.1algebra

Define ui=ai/(−g) and vj=bj/(−g). The generator inequalities and g<0 give ui+vj≤dij for all i,j. Dividing the strict point inequality by −g>0 gives ∑ipiui+∑jqjvj>c∗−ε.

5.1step 4.1F1F3F9algebra

Set fi=min⁡1≤j≤m(dij−vj), whose minimum is attained by [F9]. From ui+vj≤dij we have ui≤fi. For any i,k,j, the triangle inequality gives dij−vj≤dik+dkj−vj; taking finite minima yields fi≤dik+fk, and symmetry gives ∣fi−fk∣≤dik. Also fj≤djj−vj=−vj, so −fj≥vj. Since p,q are nonnegative, ∑i(pi−qi)fi≥∑ipiui+∑jqjvj>c∗−ε. Replacing fi by fi−f1 preserves all Lipschitz inequalities and the objective because ∑ipi=∑iqi=1; the resulting vector is normalized with first coordinate zero.

6.1step 1.1step 5.1F5F6algebra

Let D be the attained maximum in [F6]. Step 5.1 shows D>c∗−ε for every ε>0, so D≥c∗; otherwise ε=(c∗−D)/2 contradicts that inequality. Step 1.1 gives D≤c∗. Hence D=c∗=W1(p,q), and both extrema are attained by [F6].

7.1step 1.1step 6.1F4algebra∎

Let π be any minimizing coupling and f any maximizing normalized potential. By the marginal equations and optimal-value equality, 0=c∗−∑i(pi−qi)fi=∑i,jπij(dij−(fi−fj)). Each summand is nonnegative by feasibility. A finite sum of nonnegative reals can be zero only if each term is zero: if one term were positive, adding the other nonnegative terms would keep the total positive. Thus if πij>0, its factor dij−(fi−fj) is zero, proving fi−fj=dij.

4 · Examples, counterexamples and false statements

None yet.

Sources