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.

Nearest neighbors and learned metrics — Examples

1 · Prerequisites

2 · Logical flowchart

3 · Definitions, theorems and proofs

None yet.

4 · Examples, counterexamples and false statements

ExampleConstruction: AI-generatedVerification: AI-generatedjudge pass (gpt-6-luna)Open item page →

A rank-deficient Mahalanobis matrix identifies distinct points

Example

On R2, let M=(1000), u=(0,0), and v=(0,1). The matrix is symmetric, positive semidefinite, and singular, while u≠v. Its Mahalanobis pseudometric satisfies dM(u,v)=0. Thus the pseudometric need not separate distinct points, whereas a metric requires distance zero only for equal points.

Facts & Assumptions

Given: The matrix M and points u,v in the Example.

[F1]

For M⪰0, qM(x,x′)=(x−x′)TM(x−x′) and dM(x,x′)=qM(x,x′). A pseudometric need not separate distinct points (Mahalanobis pseudometric induced by a positive-semidefinite matrix).

[F2]

The square-root distance associated with a positive-semidefinite matrix satisfies the pseudometric axioms (The Mahalanobis distance is a pseudometric and comes from a linear feature map).

Verification

1.1givenalgebra

The matrix M is symmetric, and for every (a,b)∈R2, (a,b)M(a,b)T=a2≥0; its rank is one, so it is singular. Also u≠v.

1.2givenF1algebra

The difference u−v=(0,−1) satisfies (u−v)TM(u−v)=0, hence qM(u,v)=0 and dM(u,v)=0=0 by [F1].

2.1step 1.2F2∎

Step 1.2 exhibits zero distance between distinct points, so this valid Mahalanobis pseudometric fails the separation property required of a metric; [F2] confirms its other pseudometric axioms.

ExampleConstruction: AI-generatedVerification: AI-generatedjudge pass (gpt-6-luna)Open item page →

A fixed LMNN target triplet can retain a positive margin loss

Example

Take d=1, n=3, C=2, inputs x1=0, x2=1, x3=−1, labels y1=y2=1, y3=2, fixed target sets N1={2}, N2={1}, N3=∅, and μ=12. Every positive-semidefinite matrix is a scalar M=[m] with m≥0. For the anchor i=1, target j=2, and impostor l=3, the LMNN hinge term is exactly [1+qM(x1,x2)−qM(x1,x3)]+=1 for every feasible M; therefore the fixed target triplet cannot attain zero margin loss.

Facts & Assumptions

Given: The sample, labels, fixed target sets, and weighting parameter in the Example.

[F1]

For M⪰0, every qM(x,x′) is nonnegative; the push terms are positive parts, and the full objective is the nonnegative weighted sum of the pull and push terms (Fixed-target large-margin nearest-neighbor objective).

Verification

1.1givenF1algebra

A scalar matrix M=[m] is feasible exactly when m≥0. For the designated triplet, qM(x1,x2)=(0−1)2m=m and qM(x1,x3)=(0−(−1))2m=m, so the hinge argument is 1+m−m=1 and its value is [1]+=1.

2.1step 1.1F1algebra∎

Every squared distance and every hinge term in F1/2 is nonnegative. The designated hinge contributes 12, so F1/2(M)≥12 for every feasible M, and this triplet's margin loss cannot be zero.

ExampleConstruction: AI-generatedVerification: AI-generatedjudge pass (gpt-6-luna)Open item page →

One decreasing LMNN projection step is not a convergence certificate

Example

Take d=1, n=2, one class with labels y1=y2=1, sample points x1=0, x2=1, fixed target sets N1={2} and N2={1}, and μ=0. For every feasible scalar matrix M=[m] with m≥0, the fixed-target objective is F0([m])=2m and has minimum 0 at M=[0]. Start from M0=[2], use one update T=1 and step size η0=14. The finite projected-subgradient method returns M1=[32] and reduces the objective from 4 to 3, but the returned point is still strictly suboptimal. Thus a decreasing finite step does not certify convergence or optimality.

Facts & Assumptions

Given: The two-point sample, the target sets, μ=0, the initial matrix, and the single stepsize in the Example.

[F1]

The pull term is the sum of squared Mahalanobis distances over fixed targets, the push term sums only over differently labeled impostors, and Fμ=(1−μ)ϵpull+μϵpush (Fixed-target large-margin nearest-neighbor objective).

[F2]

At an exact projected-subgradient step, use the explicit formula for G(M), taking hinge coefficient zero at a kink (LMNN hinge subgradient formula and a uniform data-dependent bound).

[F3]

The update is Mt+1 equal to Frobenius projection of Mt−ηtGt onto the PSD cone, equivalently eigenvalue clipping (Finite-budget projected-subgradient training for fixed-target LMNN).

Verification

1.1givenF1algebra

For a scalar feasible matrix M=[m], qM(0,1)=qM(1,0)=m. Since the labels agree, there are no impostor terms; hence F0([m])=2m, which is minimized over m≥0 at m=0. Therefore F0(M0)=4.

1.2givenF2F3algebra

The two pull matrices are both [1], and μ=0, so the selected subgradient is G0=[2] by [F2]. The update [F3] clips M0−η0G0=[2−14⋅2]=[32] to the PSD cone, leaving M1=[32].

2.1step 1.1step 1.2algebra∎

Then F0(M1)=3<4=F0(M0), but F0(M1)=3>0=F0([0]). Thus the step decreases the objective while the finite returned iterate is still suboptimal, so this step supplies no convergence or optimality certificate.