Hodge conjecture: the CM case in Lean, read and discussed
OpenAI's Lean proof of the Hodge conjecture for CM abelian varieties: rerun it, read its statement, and keep the open questions with their sources. The conjecture is open

| 1 | import Mathlib.RingTheory.DedekindDomain.AdicValuation |
| 2 | import Mathlib.RingTheory.DedekindDomain.Ideal.Lemmas |
| 3 | |
| 4 | /-! # Dedekind Approximation -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.DedekindApproximation |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Finite weak approximation for the actual height-one valuations of a |
| 11 | Dedekind domain. Chinese remainders prescribe arbitrary orders at a finite |
| 12 | family of distinct prime ideals. -/ |
| 13 | |
| 14 | open IsDedekindDomain WithZero |
| 15 | |
| 16 | universe u v |
| 17 | |
| 18 | variable (R : Type u) [CommRing R] [IsDedekindDomain R] |
| 19 | |
| 20 | theorem exists_integral_orders {ι : Type v} [Fintype ι] |
| 21 | (v : ι → HeightOneSpectrum R) (hv : Function.Injective v) (e : ι → ℕ) : |
| 22 | ∃ r : R, r ≠ 0 ∧ ∀ i, (v i).intValuation r = exp (-(e i : ℤ)) := by |
| 23 | classical |
| 24 | by_cases hι : Nonempty ι |
| 25 | · choose π hπ using fun i => (v i).intValuation_exists_uniformizer |
| 26 | have ht (i : ι) : (v i).intValuation (π i ^ e i) = exp (-(e i : ℤ)) := by |
| 27 | rw [map_pow, hπ, ← WithZero.exp_nsmul] |
| 28 | simp |
| 29 | obtain ⟨r, hr⟩ := Ideal.exists_forall_sub_mem_ideal |
| 30 | (I := fun i => (v i).asIdeal ^ (e i + 1)) |
| 31 | (fun i j hij => (v i).isCoprime_pow_of_ne (v j) (hv.ne hij) _ _) (fun i => π i ^ e i) |
| 32 | have he (i : ι) : (v i).intValuation r = exp (-(e i : ℤ)) := by |
| 33 | rw [← ht i] |
| 34 | apply Valuation.map_eq_of_sub_lt |
| 35 | apply ((v i).intValuation_le_pow_iff_mem _ (e i + 1)).mpr (hr i) |>.trans_lt |
| 36 | rw [ht i, WithZero.exp_lt_exp] |
| 37 | omega |
| 38 | refine ⟨r, ?_, he⟩ |
| 39 | intro hz |
| 40 | have h := he (Classical.choice hι) |
| 41 | rw [hz, map_zero] at h |
| 42 | exact WithZero.exp_ne_zero h.symm |
| 43 | · let : IsEmpty ι := not_nonempty_iff.mp hι |
| 44 | exact ⟨1, one_ne_zero, fun i => isEmptyElim i⟩ |
| 45 | |
| 46 | theorem exists_fractional_orders (K : Type u) [Field K] [Algebra R K] [IsFractionRing R K] |
| 47 | {ι : Type v} [Fintype ι] (v : ι → HeightOneSpectrum R) (hv : Function.Injective v) |
| 48 | (e : ι → ℤ) : ∃ r : K, r ≠ 0 ∧ ∀ i, (v i).valuation K r = exp (-e i) := by |
| 49 | obtain ⟨a, ha, hea⟩ := exists_integral_orders R v hv (fun i => (e i).toNat) |
| 50 | obtain ⟨b, hb, heb⟩ := exists_integral_orders R v hv (fun i => (-e i).toNat) |
| 51 | refine ⟨algebraMap R K a / algebraMap R K b, div_ne_zero ?_ ?_, ?_⟩ |
| 52 | · simpa only [map_zero] using (IsFractionRing.injective R K).ne ha |
| 53 | · simpa only [map_zero] using (IsFractionRing.injective R K).ne hb |
| 54 | · intro i |
| 55 | rw [map_div₀, HeightOneSpectrum.valuation_of_algebraMap, |
| 56 | HeightOneSpectrum.valuation_of_algebraMap, hea, heb, ← WithZero.exp_sub] |
| 57 | congr 1 |
| 58 | omega |
| 59 | |
| 60 | end |
| 61 | |
| 62 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.DedekindApproximation |