Provedunbiased-attentionend-to-endsoftmaxlower-bound
Random-plant hitting bound: a uniform random (k+1)-subset meets a fixed probe set P with probability ≤ |P|(k+1)/n (stated as #{S meets P}·n ≤ |P|(k+1)·#{all subsets})
For all and :
What the notation means · or point at any symbol
- NNatural numbers
- The natural numbers 0, 1, 2, …. In Lean they start at 0. (
ℕ) - x ∈ TVariables
- n, k range over natural numbers: the statement must hold for every choice. (
(n k : ℕ)) - Finset
- Finset: a definition from the library, not special notation. Its name is its meaning; open it in Lean to see how it is defined. (
Finset) - |s|Cardinality
- The number of elements of filter(powersetCard(k + 1, univ))(S ↦ ∃ p, p ∈ S). (
((Finset.powersetCard (k + 1) (Finset.u…) - ·Multiplication
- card(filter(powersetCard(k + 1, univ))(S ↦ ∃ p, p ∈ S)) times n. (
((Finset.powersetCard (k + 1) (Finset.u…) - ≤At most
- card(filter(powersetCard(k + 1, univ))(S ↦ ∃ p, p ∈ S)) · n is less than or equal to card · (k + 1) · card(powersetCard(k + 1, univ)). (
((Finset.powersetCard (k + 1) (Finset.u…) - e.ffilter
- filter of powersetCard(k + 1, univ): Lean's dot notation e.filter means filter applied to e. (
(Finset.powersetCard (k + 1) (Finset.un…) - powersetCard
- Finset.powersetCard: a definition from the library, not special notation. Its name is its meaning; open it in Lean to see how it is defined. (
Finset.powersetCard) - Fin
- Fin: a definition from the library, not special notation. Its name is its meaning; open it in Lean to see how it is defined. (
Fin) - f(x)Function application
- Fin applied to n. Lean writes f x; papers write f(x). (
Fin n) - +Addition
- k plus 1. (
k + 1) - (x : T)Type ascription
- univ read as a Finset(Fin(n)). Mathematicians leave this implicit; Lean needs it to know which kind of number is meant. (
(Finset.univ : Finset (Fin n))) - univ
- Finset.univ: a definition from the library, not special notation. Its name is its meaning; open it in Lean to see how it is defined. (
Finset.univ) - x ↦ f(x)Function (λ-abstraction)
- The function sending S to ∃ p, p ∈ S. Lean writes fun x => …; papers write x ↦ …. (
fun S => ∃ p ∈ P, p ∈ S) - ∃There exists
- At least one p makes the statement after the comma true. (
∃ p ∈ P, p ∈ S) - ∈Element of
- p is a member of S. (
p ∈ S) - card
- P.card: a definition from the library, not special notation. Its name is its meaning; open it in Lean to see how it is defined. (
P.card)
theorem ua-random-plant-hitting {n k : ℕ} (P : Finset (Fin n)) :
((Finset.powersetCard (k + 1) (Finset.univ : Finset (Fin n))).filter (fun S => ∃ p ∈ P, p ∈ S)).card * n ≤ P.card * (k + 1) * (Finset.powersetCard (k + 1) (Finset.univ : Finset (Fin n))).cardThe reviewer's lemma (b), formalised: union bound over p ∈ P plus the exact count choose(n−1,k) and the identity n·choose(n−1,k) = (k+1)·choose(n,k+1). With ua-unbiased-two-point this makes the Ω(min(n, e^R)) draws-per-row floor for unbiased samplers hold against a RANDOM plant location (before the first hit an adaptive algorithm's probes coincide with the unplanted world's, so P is fixed), closing the fixed-S caveat of ua-iid-hitting-bound. Part of 'Unbiased randomized attention: cost x variance thresholds' (end-to-end composition round).
How it was proved
- Proved
- 4 October 2026
- By
- Ajax, with the agent “Baguette math & proofs (Claude Code, 2026-10-03)”
- Checked by
- Lean's kernel (Lean 4.33.1, with Mathlib); the proof is signed and replays offline
- Axioms
- Classical.choice, Quot.sound, propext
- Proof
- 63 lines of Lean
Sign in to see the proofThe proof, its signed report and its history.