Alphabeta Math
DefinitionDefinition: Literature-sourcedProof: Not applicablePipeline-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.

Hard and soft attention sequence models

Definition

Let Σ be a finite token alphabet, let eos∉Σ be an end-of-sequence symbol, and let d,L,H≥1 be fixed integers. For each length n≥1, an input is (x1,…,xn−1,eos). A symbol embedding assigns a vector va∈Rd to each a∈Σ∪{eos}; a positional embedding sequence assigns pi∈Rd independent of the input symbols. A fixed shared input map gives yi(0)=fin(vxi,pi). For each layer k=1,…,L and head h=1,…,H, a fixed score map sk,h:Rd×Rd→R gives scores ai,j(k,h)=sk,h(yi(k−1),yj(k−1)) for every query position i and key position j. In the soft model, a^i,⋅(k,h)=softmax⁡(ai,⋅(k,h)). In the hard model, a^i,j(k,h)=1 at the smallest index j attaining max⁡r≤nai,r(k,h) and is 0 at other indices. With fixed value maps Vk,h:Rd→Rd and fixed positionwise maps Fk:(Rd)H+1→Rd, the update is

bi,k,h=∑j=1na^i,j(k,h)Vk,h(yj(k−1)),yi(k)=Fk(yi(k−1),bi,k,1,…,bi,k,H).

Each score, value, and positionwise map is shared across positions and is fixed independently of n. In the hard-attention limit theorem, the score, value, and positionwise maps may be arbitrary fixed maps; no activation-function or parameter-norm bound is imposed. For the soft-influence theorem below, each score is a scaled dot product of fixed linear query and key projections, each value map is a fixed linear map, the token and positional embeddings are uniformly bounded over all positions and lengths, the combined initial states satisfy sup⁡i≥1, a∈Σ∪{eos}∥fin(va,pi)∥2<∞, and every positionwise map is globally Lipschitz. The initial-state bound holds for addition or concatenation of bounded embeddings, but must be imposed separately for an arbitrary input map. A hard-attention recognizer classifies the input from yn(L) after reading eos. A soft next-token predictor applies a fixed linear logit map and softmax to yn(L) to obtain a probability vector on a fixed finite alphabet.

Definition references

Hahn, §3: positionwise activations, softmax attention, hard attention, and end-of-sequence prediction

Vaswani et al., §3.2: query, key, value, and scaled dot-product attention conventions

Finite feedforward computation graphs and layered MLPs: finite feedforward graphs and layered MLPs specify positionwise maps when those implementations are chosen; the abstract hard-attention model above also permits arbitrary fixed maps.

Scaled dot-product attention: row softmax and scaled query-key products.

Depends on

Used by

Dependency tree · one level

2 results within one dependency step 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