{
  "id": "4294",
  "ident": "NS.04294",
  "slug": "litt-1",
  "title": "Lam--Litt conjecture",
  "status": "solved",
  "statement_status": "reviewed",
  "statement_md": "Eisenstein's theorem (1852): an algebraic power series over $\\mathbb{Q}[z]$ has bounded\ndenominators, i.e., there exists $N$ such that all coefficients lie in $\\mathbb{Z}[1/N]$.",
  "subjects": [
    "math.AC",
    "msc:12",
    "msc:13"
  ],
  "tags": [],
  "collection": "litt",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "LamLitt.lam_litt.variants.eisenstein",
  "statement_lean": "theorem lam_litt.variants.eisenstein (f : PowerSeries ℚ) (hAlg : IsAlgebraic (Polynomial ℚ) f) :\n    ∃ N : ℕ, IsCoeffIntegralAdjointInvNat f N",
  "challenge_source": "/-\nCopyright 2026 The Formal Conjectures Authors.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n    https://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n-/\nmodule\n\npublic import FormalConjecturesUtil\n\n/-!\n# Lam--Litt conjecture\n\nA conjecture of Lam and Litt on algebraic solutions of algebraic ODEs.\n\nLet $g \\in \\mathbb{Q}(z, y_0, \\dots, y_{n-1})$ be a rational function in\n$n + 1$ variables. Let $f$ be a power series over $\\mathbb{Q}$ such that\n$f^{(n)}(z) = g(z, f(z), f'(z), \\dots, f^{(n-1)}(z))$.\nAlso, assume that $g(0, f(0), f'(0), \\dots, f^{(n-1)}(0))$ is defined.\nThen the following are equivalent:\n\n1) $f$ is algebraic over $\\mathbb{Q}[z]$.\n2) There exists $N$ such that for all $n$, the $n$-th coefficient of $f$ is in $\\mathbb{Z}[1/N]$.\n3) There exists an integer-valued function $\\omega$ on the set of primes with\n$\\lim_{p \\to \\infty} \\omega(p) / p = \\infty$ such that, for each prime $p$,\nthe rational numbers $a_0, a_1, \\dots, a_{\\omega(p)}$ are in $\\mathbb{Z}_{(p)}$.\n\nThe implication 1) => 2) is due to Eisenstein, and 2) => 3) is trivial.\n\n*References:*\n- [Litt's problem 1](https://www.problemsilike.com/1)\n- Yeuk Hay Joshua Lam, Daniel Litt, \"Algebraicity and integrality of solutions to differential equations\",\n  [arxiv/2501.13175](https://arxiv.org/abs/2501.13175)\n- Gotthold Eisenstein. \"Über eine allgemeine Eigenschaft der Reihen-Entwicklungen aller algebraischen Funktionen\",\n  Bericht der Königl. Preuss. Akademie der Wissenschaften zu Berlin, 1852\n\nTODO:\n- Lam-Litt conjecture implies Grothendieck p-curvature conjecture.\n- Examples in Remark 1.1.3 and 1.1.5 on the conditions of the conjecture.\n-/\n\n@[expose] public section\n\nopen Real MvPolynomial PowerSeries\n\nnamespace LamLitt\n\n/--\nA power series $f$ is a solution of an algebraic ODE defined by the rational function\n$g \\in \\mathbb{Q}(z, y_0, \\dots, y_{n-1})$ if $f^{(n)}(z) = g(z, f(z), f'(z), \\dots, f^{(n-1)}(z))$\nand $g(0, f(0), f'(0), \\dots, f^{(n-1)}(0))$ is defined. Concretely, $g = p / q$ for polynomials\n$p, q$ with $q(0, f(0), \\dots, f^{(n-1)}(0)) \\neq 0$, so that $q(z, f(z), \\dots, f^{(n-1)}(z))$\nis an invertible power series, and\n$f^{(n)}(z) \\cdot q(z, f(z), \\dots, f^{(n-1)}(z)) = p(z, f(z), \\dots, f^{(n-1)}(z))$.\nThe variable indexed by `0 : Fin (n + 1)` corresponds to $z$, and the variable indexed by\n`i.succ` corresponds to $y_i = f^{(i)}(z)$.\n-/\ndef IsSolutionOfAlgebraicODE (n : ℕ) (f : PowerSeries ℚ) (g : MvRatFunc (Fin (n + 1)) ℚ) : Prop :=\n  let pt : Fin (n + 1) → PowerSeries ℚ := Fin.cases X (fun i : Fin n ↦ (derivative ℚ)^[i.val] f)\n  ∃ p q : MvPolynomial (Fin (n + 1)) ℚ,\n    g = (algebraMap _ _ p) / (algebraMap _ _ q) ∧\n    q.eval (PowerSeries.constantCoeff ∘ pt) ≠ 0 ∧\n    (derivative ℚ)^[n] f * MvPolynomial.aeval pt q = MvPolynomial.aeval pt p\n\ndef ℤAdjoinInvNat (N : ℕ) : Subalgebra ℤ ℚ := Algebra.adjoin ℤ {(1 / N : ℚ)}\n\n/--\nThere exists $N$ such that for all $n$, the $n$-th coefficient of $f$ is in $\\mathbb{Z}[1/N]$.\n-/\ndef IsCoeffIntegralAdjointInvNat (f : PowerSeries ℚ) (N : ℕ) : Prop :=\n  ∀ n : ℕ, coeff n f ∈ ℤAdjoinInvNat N\n\n/--\nFor an integer-valued function $\\omega$ on the set of primes and a sequence $a_n$ of rational\nnumbers, the condition $\\omega$-integrality means that for each prime $p$, the rational numbers\n$a_0, a_1, \\dots, a_{\\omega(p)}$ are in $\\mathbb{Z}_{(p)}$, i.e. their denominators are not\ndivisible by $p$. When $\\omega(p) < 0$ the constraint at $p$ is vacuous.\n-/\ndef omegaIntegral (ω : Nat.Primes → ℤ) (a : ℕ → ℚ) : Prop :=\n  ∀ p : Nat.Primes, ∀ j : ℕ, (j : ℤ) ≤ ω p → Nat.Coprime (a j).den p\n\n/--\nThe growth condition on $\\omega$: the ratio $\\omega(p) / p$ tends to infinity as the prime $p$\ntends to infinity, i.e. $\\lim_{p \\to \\infty} \\omega(p) / p = \\infty$. Here the source filter is\n`Filter.atTop` on the primes, obtained by pulling back `Filter.atTop` on $\\mathbb{N}$ along the\ncoercion `Nat.Primes → ℕ`.\n-/\ndef omegaSuperlinear (ω : Nat.Primes → ℤ) : Prop :=\n  Filter.Tendsto (fun p : Nat.Primes ↦ (ω p : ℝ) / p)\n    (Filter.comap (fun p : Nat.Primes ↦ (p : ℕ)) Filter.atTop) Filter.atTop\n\n/--\nEisenstein's theorem (1852): an algebraic power series over $\\mathbb{Q}[z]$ has bounded\ndenominators, i.e., there exists $N$ such that all coefficients lie in $\\mathbb{Z}[1/N]$.\n-/\n@[category research solved, AMS 12 13]\ntheorem lam_litt.variants.eisenstein (f : PowerSeries ℚ) (hAlg : IsAlgebraic (Polynomial ℚ) f) :\n    ∃ N : ℕ, IsCoeffIntegralAdjointInvNat f N := by\n  sorry\n\n/-- Every element of $\\mathbb{Z}[1/N]$ has denominator coprime to any prime $p$ not in the\nprime factor set of $N$ (vacuously, the case $N = 0$ gives $\\mathbb{Z}[1/N] = \\mathbb{Z}$). -/\n@[category API, AMS 11]\nprivate lemma den_coprime_of_mem_adjoinInvNat {N p : ℕ} (hp : p.Prime)\n    (hpN : p ∉ N.primeFactors) {q : ℚ} (hq : q ∈ ℤAdjoinInvNat N) :\n    Nat.Coprime q.den p := by\n  induction hq using Algebra.adjoin_induction with\n  | mem x hx =>\n    rw [Set.mem_singleton_iff] at hx; subst hx\n    rcases eq_or_ne N 0 with rfl | hN\n    · simp\n    · rw [one_div, Rat.inv_natCast_den_of_pos (Nat.pos_of_ne_zero hN)]\n      exact (hp.coprime_iff_not_dvd.mpr fun h => hpN <| Nat.mem_primeFactors.mpr ⟨hp, h, hN⟩).symm\n  | algebraMap _ => simp\n  | add _ _ _ _ ihx ihy => exact (ihx.mul_left ihy).coprime_dvd_left (Rat.add_den_dvd _ _)\n  | mul _ _ _ _ ihx ihy => exact (ihx.mul_left ihy).coprime_dvd_left (Rat.mul_den_dvd _ _)\n\n/--\nTextbook implication: integrality (2) trivially implies ω(p)-integrality (3).\n-/\n@[category textbook, AMS 12]\ntheorem lam_litt.variants.integrality_implies_omega_integrality\n    (f : PowerSeries ℚ) (N : ℕ) (hN : IsCoeffIntegralAdjointInvNat f N) :\n    ∃ ω : Nat.Primes → ℤ, omegaSuperlinear ω ∧ omegaIntegral ω (PowerSeries.coeff · f) := by\n  -- Take ω(p) = -1 if p divides N, else p^2.\n  refine ⟨fun p => if (p : ℕ) ∈ N.primeFactors then (-1 : ℤ) else (p : ℤ)^2, ?_, ?_⟩\n  · refine ((tendsto_natCast_atTop_atTop (R := ℝ)).comp Filter.tendsto_comap).congr' ?_\n    filter_upwards [(Filter.eventually_gt_atTop N).comap ((↑) : Nat.Primes → ℕ)] with p hpN_lt\n    have hpN : (p : ℕ) ∉ N.primeFactors := fun hmem => Nat.not_lt.mpr (Nat.le_of_mem_primeFactors hmem) hpN_lt\n    simp [hpN, sq, p.2.ne_zero]\n  · intro p j hj\n    by_cases hpmem : (p : ℕ) ∈ N.primeFactors\n    · simp only [hpmem, if_true] at hj; omega\n    · exact den_coprime_of_mem_adjoinInvNat p.2 hpmem (hN j)\n\n/--\n3) implies 2): if the coefficients of $f$ satisfy the $\\omega$-integrality condition for some superlinear $\\omega$,\nthen there exists $N$ such that for all $n$, the $n$-th coefficient of $f$ is in $\\mathbb{Z}[1/N]$.\n-/\n@[category research open, AMS 11 14]\ntheorem lam_litt.variants.omega_integrality_implies_algebraicity {n : ℕ} (f : PowerSeries ℚ)\n    (g : MvRatFunc (Fin (n + 1)) ℚ) (hODE : IsSolutionOfAlgebraicODE n f g)\n    (ω : Nat.Primes → ℤ) (hω : omegaSuperlinear ω ∧ omegaIntegral ω (PowerSeries.coeff · f)) :\n    ∃ N : ℕ, IsCoeffIntegralAdjointInvNat f N := by\n  sorry\n\n/--\n2) implies 1): if the coefficients of $f$ are in $\\mathbb{Z}[1/N]$ for some $N$, then $f$ is algebraic over $\\mathbb{Q}[z]$.\nAlso the version of conjecture of Litt's problem 1 on his website.\n-/\n@[category research open, AMS 11 14]\ntheorem lam_litt.variants.integrality_implies_algebraicity {n : ℕ} (f : PowerSeries ℚ)\n    (g : MvRatFunc (Fin (n + 1)) ℚ) (hODE : IsSolutionOfAlgebraicODE n f g)\n    (N : ℕ) (hN : IsCoeffIntegralAdjointInvNat f N) :\n    IsAlgebraic (Polynomial ℚ) f := by\n  sorry\n\nend LamLitt\n",
  "statement_hash": "0517ba7589472f18c62eadcc42363db7a5421363e2b87909ac9619a2b64f370a",
  "toolchain": "leanprover/lean4:v4.33.1",
  "upstream_commit": "f9b3868d5ca994a7bf95039bcec05338c0c21e2f",
  "workspace": "formal-conjectures",
  "field": "math",
  "formalization": "formal",
  "verification": "lean-kernel",
  "license": "Apache-2.0",
  "attribution": "google-deepmind/formal-conjectures contributors",
  "metric_name": null,
  "metric_direction": null,
  "critiques": [],
  "public_partial_proofs": [],
  "research_threads": [],
  "instructions": "Read research_threads first: other people's public repositories and what they already tried. Write Solution.lean starting from challenge_source. Keep every definition identical, prove decl_name with exactly the same type, no sorry in its dependency closure, no new axioms, no native_decide, no metaprogramming. Submit with POST /api/v1/submissions."
}