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
- Algebraic Closure, Embeddings, and Separability
- Algebraic Extensions, Extension Degree, and Finite Fields
- Binary Operations, Monoids, Groups and Subgroups
- Bounded Linear Operators and Quotient Spaces
- Compactness in Metric Spaces
- Completeness, Completion, and Uniform Continuity
- Complex Norms and Realification
- Complexification, Realification and Real Structures
- Composition Series, the Jordan–Hölder Theorem and Solvable Groups
- Congruences, the Integers Modulo n and the Chinese Remainder Theorem
- Construction of the Natural Numbers
- Construction of the Real Numbers via Cauchy Sequences
- Construction of the Real Numbers via Dedekind Cuts
- Continuity, IVT, EVT, and Uniform Continuity
- Convex and Semicontinuous Functions on Rⁿ
- Cosets, Index and Lagrange's Theorem
- Countability and Uncountability
- Cyclic Groups and Direct Products
- Determinants of Matrices over a Commutative Ring
- Diagonalisation and the Minimal Polynomial
- Divisibility, Euclidean Domains, Principal Ideal Domains and Unique Factorisation
- Divisibility, Greatest Common Divisors and Bézout's Identity
- Dual Spaces, Bilinear and Quadratic Forms, and Sylvester's Law of Inertia
- Eigenvalues, Eigenvectors and the Characteristic Polynomial
- Finite Counting, Factorials and Binomial Coefficients
- Foundations of the Real Numbers for Analysis
- Group Actions, Orbits, Stabilisers and Cayley's Theorem
- Group Homomorphisms and the Isomorphism Theorems
- Hilbert Space Geometry and Riesz Representation
- Ideals, Quotient Rings and the Isomorphism Theorems for Rings
- Inner Product Spaces, Gram-Schmidt, Projections and Adjoints
- Limits of Real Functions
- Linear Independence, Bases and Dimension
- Linear Transformations, Rank-Nullity and Quotient Spaces
- Matrices, the Matrix of a Linear Map, and Change of Basis
- Matrix Norms, Condition Numbers and Numerical Stability
- Metric Spaces
- Monotone Sequences, Bolzano-Weierstrass, and Cauchy Completeness
- Nearest neighbors and learned metrics
- Normal Subgroups and Quotient Groups
- Normed and Banach Spaces
- Norming and Separation under Hahn–Banach
- Order, Zorn's Lemma, and the Axiom of Choice
- Polynomial Rings, the Division Algorithm and Roots
- Primes, Euclid's Lemma and the Fundamental Theorem of Arithmetic
- Relations, Functions, and Quotients
- Rings, Subrings, Integral Domains and Fields
- Rⁿ as a Normed Space; Vector-Valued Functions
- Roots, Rational Powers, and Classical Inequalities
- Sequences and Limits
- Simple Field Extensions and the Construction of the Complex Numbers
- Splitting Fields
- Subgradient bundle and derivative free optimization
- Suprema and Infima
- Sylow's Theorems, p-Groups and Nilpotent Groups
- Symmetric Groups, Cycle Decomposition and the Sign Homomorphism
- The Analytic Hahn Banach Theorem
- The Determinant of a Linear Operator, Cofactors and Cramer's Rule
- The Fundamental Theorem of Algebra
- The Fundamental Theorem of Finite Abelian Groups
- The Galois Correspondence
- The Spectral Theorem, Positive Operators and Singular Value Decomposition
- The Total Derivative in ℝᵐ → ℝⁿ
- The ZFC Axioms and the Basic Set Constructions
- Topology of ℝ
- Triangularisation, Generalised Eigenspaces and Jordan Canonical Form
- Vector Spaces, Linear Subspaces, Span and Direct Sums
2 · Logical flowchart
3 · Definitions, theorems and proofs
None yet.
4 · Examples, counterexamples and false statements
A rank-deficient Mahalanobis matrix identifies distinct points
Example
On , let , , and . The matrix is symmetric, positive semidefinite, and singular, while . Its Mahalanobis pseudometric satisfies . Thus the pseudometric need not separate distinct points, whereas a metric requires distance zero only for equal points.
Example references
Facts & Assumptions
Given: The matrix and points in the Example.
For , and . A pseudometric need not separate distinct points (Mahalanobis pseudometric induced by a positive-semidefinite matrix).
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
The matrix is symmetric, and for every , ; its rank is one, so it is singular. Also .
The difference satisfies , hence and by [F1].
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.
A fixed LMNN target triplet can retain a positive margin loss
Example
Take , , , inputs , , , labels , , fixed target sets , , , and . Every positive-semidefinite matrix is a scalar with . For the anchor , target , and impostor , the LMNN hinge term is exactly for every feasible ; therefore the fixed target triplet cannot attain zero margin loss.
Example references
Facts & Assumptions
Given: The sample, labels, fixed target sets, and weighting parameter in the Example.
For , every 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
A scalar matrix is feasible exactly when . For the designated triplet, and , so the hinge argument is and its value is .
Every squared distance and every hinge term in is nonnegative. The designated hinge contributes , so for every feasible , and this triplet's margin loss cannot be zero.
One decreasing LMNN projection step is not a convergence certificate
Example
Take , , one class with labels , sample points , , fixed target sets and , and . For every feasible scalar matrix with , the fixed-target objective is and has minimum at . Start from , use one update and step size . The finite projected-subgradient method returns and reduces the objective from to , but the returned point is still strictly suboptimal. Thus a decreasing finite step does not certify convergence or optimality.
Example references
Facts & Assumptions
Given: The two-point sample, the target sets, , the initial matrix, and the single stepsize in the Example.
The pull term is the sum of squared Mahalanobis distances over fixed targets, the push term sums only over differently labeled impostors, and (Fixed-target large-margin nearest-neighbor objective).
At an exact projected-subgradient step, use the explicit formula for , taking hinge coefficient zero at a kink (LMNN hinge subgradient formula and a uniform data-dependent bound).
The update is equal to Frobenius projection of onto the PSD cone, equivalently eigenvalue clipping (Finite-budget projected-subgradient training for fixed-target LMNN).
Verification
For a scalar feasible matrix , . Since the labels agree, there are no impostor terms; hence , which is minimized over at . Therefore .
The two pull matrices are both , and , so the selected subgradient is by [F2]. The update [F3] clips to the PSD cone, leaving .
Then , but . Thus the step decreases the objective while the finite returned iterate is still suboptimal, so this step supplies no convergence or optimality certificate.