Alphabeta Math
AlgorithmAlgorithm: Literature-sourcedProof: Not applicablePipeline-generatedjudge pass (gpt-6-luna)
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-sample k-nearest-neighbor classifier with fixed tie-breaking

Definition

Let d,n,C be positive integers, let (xi,yi)i=1n be a finite labeled sample with xi∈Rd and yi∈{1,…,C}, let M∈Rd×d be symmetric with vTMv≥0 for every v∈Rd, let 1≤k≤n, and let x∈Rd be a query. For each sample index set δi=(x−xi)TM(x−xi). Order indices i by increasing pairs (δi,i) in lexicographic order, and let Kk(x) be the first k indices in this order. For each class c∈{1,…,C} compute vc(x)=∑i∈Kk(x)1{yi=c} and return the smallest class label attaining max⁡1≤c≤Cvc(x). Thus equal distances are resolved by the fixed sample-index order, and equal class votes by the smallest class label.

Depends on

Used by

Nothing in the library uses this result yet.

Dependency tree · two levels

15 results within two dependency steps of this one, each drawn at its shortest distance from it. An arrow runs from a result to what uses it, so the chart reads left to right and ends at this result, which carries a heavier outline. Every node is a link to that result. Click elsewhere on the chart to enlarge it.

Sources