Index of theproofnetwork/open-problems@860a535/Prove2Me/Definitions/Def_QED_M121.lean
qedmarketβs copy of theproofnetwork/open-problems@860a535, 1 Dec 2026original source β
/-From Prove2Me, definition `QED_M121` (https://prove2.me/definitions/8a0b0046-b3de-433c-9da9-9f1165ae48b9). Apache-2.0 per Prove2Me's terms.-/import Mathlib /-! QED-M121: Additive basis conjecture: a constant number of bases sufficesTake several bases of the vector space (Z/p)^n and pool all their vectors into one list. Can every vector of the space be written as the sum of some sub-list, using each pooled vector at most once? The conjecture says a fixed number c(p) of bases always suffices, independent of the dimension n. The best proven bound grows like log n.Informal statement: For a prime $p$, a finite multiset $B$ of vectors in $\mathbb{F}_p^n$ is an additive basis if $\{\sum_{b\in B}\varepsilon_b b : \varepsilon\in\{0,1\}^B\}=\mathbb{F}_p^n$. Prove that for every prime $p$ there is $c(p)$ such that for every $n\ge1$ and all bases $B_1,\dots,B_{c(p)}$ of $\mathbb{F}_p^n$, the multiset union $B_1\uplus\cdots\uplus B_{c(p)}$ is an additive basis.Formalization notes:* π½_p^n is `Fin n β ZMod p`. A basis is an indexed family `B a : Fin n β (Fin n β ZMod p)` that is linearly independent over `ZMod p`; since the space has dimension n, n linearly independent vectors are exactly a basis (we avoid the `Basis` structure, whose namespace has moved).* The multiset union of c bases is the family indexed by `Fin c Γ Fin n`; repeated vectors across bases are separate members, as in a multiset. A 0/1 choice is `Ξ΅ : Fin c β Fin n β Bool`, and the subset sum is `β a, β i, if Ξ΅ a i then B a i else 0`.* Claim: for every prime p there is c such that for every n β₯ 1, every c-tuple of bases, and every target vector v, some subset sum equals v. n β₯ 1 rules out the trivial n = 0 case (it is harmless anyway); c = 0 never works for n β₯ 1, so the existential is not vacuous. Β¬Claim: for some prime p, for every c there is a dimension and c bases whose union is not an additive basis.-/namespace OpenProblems.QEDM121 def Claim : Prop := β p : β, p.Prime β β c : β, β n : β, 1 β€ n β β B : Fin c β Fin n β (Fin n β ZMod p), (β a : Fin c, LinearIndependent (ZMod p) (B a)) β β v : Fin n β ZMod p, β Ξ΅ : Fin c β Fin n β Bool, v = β a : Fin c, β i : Fin n, (if Ξ΅ a i then B a i else 0) end OpenProblems.QEDM121