A full formalization in Lean 4 of the paper "p-adic Hahn Series with Sparse Support" by Shanwen Wang and Yijun Yuan.
In the latest version of this repository, we fix an inaccurate formalized statement of Kedlaya's result:
theorem kedlaya_2017_theorem13_4 :
closure (integralClosure ℚᵘⁿ_[p] 𝕃_[p]).carrier =
closure { f : 𝕃_[p] | ∃ f' : HahnSeries ℚ (𝔽ᵃ_[p]), IsAlgebraic 𝔽ᵃ_[p] f' ∧
(exists_canonical_expansion f).choose.val = f'.coeff }
:= by admitis now
theorem kedlaya_2017_theorem13_4 :
closure (integralClosure ℚᵘⁿ_[p] 𝕃_[p]).carrier =
closure { f : 𝕃_[p] | ∃ f' : HahnSeries ℚ (𝔽ᵃ_[p]), IsAlgebraic 𝔽ᵃ_[p]⸨X⸩ f' ∧
(exists_canonical_expansion f).choose.val = f'.coeff }
:= by admitThe whole theory still works with this fix, and the main theorem and its application are unaffected.
The paper introduces a combinatorial "sparseness" condition on the support of a p-adic Hahn series and proves that any p-adic Hahn series satisfying this condition is transcendental over ℚᵘⁿ_[p], the completed maximal unramified extension of ℚ_[p] (and hence over ℚ_[p]). As an application, it proves the order-type conjecture for ℚ_[p]-algebraic p-adic Hahn series with bounded support: under the assumption that the support has only finitely many accumulation points, such a series has finite support, so the order type of its support is either finite or at least ω².
The formalization covers every definition, lemma, proposition, theorem, and corollary from the paper, following the same section structure.
| File | Paper § | Description |
|---|---|---|
FormalizedSparse/References/Miscellaneous.lean |
— | Helper: WithZeroRat.toNNReal for the p-adic absolute value |
FormalizedSparse/References/WittVector.lean |
§2 | ℚᵘⁿ_[p] via Witt vectors, Teichmüller lift, valuation topology |
FormalizedSparse/References/PAdicHahnSeries.lean |
§2 | 𝕃_[p] as W(𝔽ᵃ_[p])((t^ℚ)) / null series, coefficients, support well-orderedness |
FormalizedSparse/Sparse.lean |
§3 | Digit series, (c,n)-sparseness, sparseness of disjoint-digit sets |
FormalizedSparse/Tscaled.lean |
§4 | T-scaled realization of 𝕃_[p]: adjoining p^(1/T), T-null-series, isomorphism 𝕃_[p] ≅ W(𝔽ᵃ_[p])p^(1/T)/N_T |
FormalizedSparse/MainTheorem.lean |
§5 | Main theorem: sparse support ⇒ transcendental over ℚᵘⁿ_[p] |
FormalizedSparse/References/Kedlaya.lean |
§6 | External results of Kedlaya used as black boxes (the only admitted statements) |
FormalizedSparse/QuasiTwistRecurrent.lean |
§6.1 | Quasi-twist-recurrent (QTR) functions and Kedlaya's integrality criterion |
FormalizedSparse/RayDecomposition.lean |
§6.2 | Ray decomposition of bounded QTR sets |
FormalizedSparse/BoundedSupport.lean |
§6.3 | Sparse representatives and finiteness of bounded QTR supports (the application) |
FormalizedSparse/HuangStefanescu.lean |
§1.3 | Huang–Stefanescu equivalence and divergence of sparse ℚᵘⁿ_[p]-algebraic support sequences (headline consequences of the §6.3 engine) |
Sparse.DigitSeries— the direct sum ⨁_{ℕ₊} ℕ, modeling base-p digit expansionsSparse.IsCNSparse S c n— (c,n)-sparseness (Definition 3.5)Sparse.IsSparse p W— sparseness for subsets of [0,1) ∩ ℚ (Definition 1.4)Sparse.IsSparse_of_digit_disjoint— Example 3.7: disjoint-digit sets are sparse
TScaled.OQpUnT(ℤᵘⁿ_[p,T]) — W(𝔽ᵃ_[p])[p^(1/T)] viaAdjoinRootTScaled.TNullSeriesIdeal— the T-null-series ideal N_TTScaled.σ— the isomorphism σ : 𝕃_[p] ≃+* 𝕃_[p,T]
main_theorem— Theorem 1.7 / 5.3: if −T·Supp(f) admits a nonzero sparse set of representatives mod ℤ, then f is transcendental over ℚᵘⁿ_[p]main_theorem'— the same conclusion phrased over ℚ_[p]
IsQTR— quasi-twist-recurrent functions (Definition 6.2)isAlgebraic_iff_isQTR— Proposition 6.3: algebraicity over 𝔽̄_p((t)) ⇔ QTRisQTR_of_isAlgebraic_of_bddSupport— Proposition 6.6: bounded ℚᵘⁿ_[p]-algebraic ⇒ QTRqtr_ray_decomposition— Corollary 6.20: a bounded QTR set with finitely many accumulation points is a finite set plus finitely many pairwise-disjoint raysfinite_support_of_qpun_algebraic_of_bounded_support— Theorem 6.23: a ℚ_[p]-algebraic p-adic Hahn series with bounded support and finitely many accumulation points has finite supportorder_type_of_qp_algebraic_of_bounded_support— Corollary 6.24: the order type of such a support is either finite or at least ω²
tendsto_atTop_of_strictMono_support_of_qpun_algebraic— Corollary 1.12: if a ℚᵘⁿ_[p]-algebraic p-adic Hahn series has support enumerated by a strictly monotone rational sequence, that sequence diverges to +∞padic_huang_stefanescu_tfae— Proposition 1.14: the p-adic analogue of the Huang–Stefanescu equivalence — for a series supported in {−p^(−i) : i ∈ ℕ₊}, finite support, ℚᵘⁿ_[p]-algebraicity, and ℚ_[p]-algebraicity are all equivalent (the algebraic ⇒ finite direction is deduced from Corollary 1.12)
Declarations that correspond to a stated item of the paper live at the top level of the
FormalizedSparse namespace; formalization-internal helper lemmas are placed in a sub-namespace
named after the file's section (QuasiTwistRecurrent, RayDecomposition, BoundedSupport). The
§2–§4 files (WittVector, PAdicHahnSeries, Sparse, Tscaled) instead keep all of their
content inside a single concept namespace (QpUn, pAdicHahnSeries, Sparse, TScaled), which
enables mathlib-style dot notation such as d.norm and d.Psi.
- ~24,000 lines of Lean code
- All results of the paper are fully formalized. The only admitted statements are three external
results of Kedlaya in
References/Kedlaya.lean, which are cited and used as black boxes rather than reproved. - Builds against Lean 4.31.0 and mathlib v4.31.0