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 OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.DedekindApproximation |
| 2 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Affine.Order |
| 3 | |
| 4 | /-! # Approximation -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Affine.Approximation |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Finite approximation for the native scheme orders on the spectrum of a |
| 11 | Dedekind domain. The prescribed integers are orders in the actual principal |
| 12 | divisor, through the canonical function-field identification. -/ |
| 13 | |
| 14 | open _root_.AlgebraicGeometry IsDedekindDomain UniqueFactorizationMonoid WithZero |
| 15 | |
| 16 | universe u v |
| 17 | |
| 18 | variable (R : Type u) [CommRing R] [IsDedekindDomain R] |
| 19 | |
| 20 | theorem intValuation_eq_count (P : HeightOneSpectrum R) (a : R) (ha : a ≠ 0) : |
| 21 | P.intValuation a = exp (-((normalizedFactors (Ideal.span ({a} : Set R))).count |
| 22 | P.asIdeal : ℤ)) := by |
| 23 | rw [P.intValuation_eq_exp_neg_multiplicity ha, |
| 24 | multiplicity_eq_count_normalizedFactors P.irreducible |
| 25 | (fun h => ha (Ideal.span_singleton_eq_bot.mp h)), |
| 26 | normalize_eq] |
| 27 | |
| 28 | theorem valuation_eq_localOrder (P : HeightOneSpectrum R) (f : FractionRing R) |
| 29 | (hf : f ≠ 0) : |
| 30 | P.valuation (FractionRing R) f = exp (-SemilocalDivisorNorm.localOrder P f) := by |
| 31 | obtain ⟨a, b, hb, rfl⟩ := IsFractionRing.div_surjective R f |
| 32 | have ha : a ≠ 0 := fun ha => hf (by simp [ha]) |
| 33 | have hb' : b ≠ 0 := mem_nonZeroDivisors_iff_ne_zero.mp hb |
| 34 | rw [SemilocalDivisorNorm.localOrder_div P a b ha hb', map_div₀, |
| 35 | HeightOneSpectrum.valuation_of_algebraMap, HeightOneSpectrum.valuation_of_algebraMap, |
| 36 | intValuation_eq_count R P a ha, intValuation_eq_count R P b hb', ← exp_sub] |
| 37 | congr 1 |
| 38 | ring |
| 39 | |
| 40 | theorem exists_local_orders {ι : Type v} [Fintype ι] |
| 41 | (P : ι → HeightOneSpectrum R) (hP : Function.Injective P) (e : ι → ℤ) : |
| 42 | ∃ f : FractionRing R, f ≠ 0 ∧ ∀ i, SemilocalDivisorNorm.localOrder (P i) f = e i := by |
| 43 | obtain ⟨f, hf, he⟩ := |
| 44 | DedekindApproximation.exists_fractional_orders R (FractionRing R) P hP e |
| 45 | refine ⟨f, hf, fun i => ?_⟩ |
| 46 | have h := he i |
| 47 | rw [valuation_eq_localOrder R (P i) f hf, exp_inj, neg_inj] at h |
| 48 | exact h |
| 49 | |
| 50 | theorem exists_scheme_orders {ι : Type v} [Fintype ι] |
| 51 | (P : ι → HeightOneSpectrum R) (hP : Function.Injective P) (e : ι → ℤ) : |
| 52 | ∃ f : (Spec (.of R)).functionField, f ≠ 0 ∧ |
| 53 | ∀ i, (Spec (.of R)).ord f (Order.branchPoint R (P i)) = e i := by |
| 54 | obtain ⟨f, hf, he⟩ := exists_local_orders R P hP e |
| 55 | refine ⟨Order.affineFunctionFieldIso R f, ?_, ?_⟩ |
| 56 | · exact (map_ne_zero (Order.affineFunctionFieldIso R)).mpr hf |
| 57 | · intro i |
| 58 | rw [Order.schemeOrder_eq_localOrder, he] |
| 59 | |
| 60 | end |
| 61 | |
| 62 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Affine.Approximation |