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.Divisors.LineBundles.DVRAbsoluteValue |
| 2 | import OAI.AlgebraicGeometry.Divisors.LineBundles.FractionOrderLaws |
| 3 | import OAI.AlgebraicGeometry.Divisors.LineBundles.DVRMultiplicity |
| 4 | |
| 5 | /-! # DVR Approximation -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.Divisors.LineBundles.Finite.DVRApproximation.BundleCycles |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Weak approximation prescribes the actual DVR orders in a finite |
| 12 | family with inequivalent absolute values. -/ |
| 13 | |
| 14 | open scoped _root_.Topology |
| 15 | |
| 16 | variable {ι : Type*} [Finite ι] (A : ι → Type*) (K : Type*) |
| 17 | [∀ i, CommRing (A i)] [∀ i, IsDomain (A i)] [∀ i, IsDiscreteValuationRing (A i)] |
| 18 | [Field K] [∀ i, Algebra (A i) K] [∀ i, IsFractionRing (A i) K] |
| 19 | (hne : Pairwise fun i j => ¬ (DVRAbsoluteValue.BundleCycles.dvrAbsoluteValue (A i) K).IsEquiv (DVRAbsoluteValue.BundleCycles.dvrAbsoluteValue (A j) K)) |
| 20 | |
| 21 | include hne in |
| 22 | theorem exists_finiteDVR_same_values (t : ι → K) (ht : ∀ i, t i ≠ 0) : |
| 23 | ∃ a : K, ∀ i, (IsDiscreteValuationRing.maximalIdeal (A i)).valuation K a = |
| 24 | (IsDiscreteValuationRing.maximalIdeal (A i)).valuation K (t i) := by |
| 25 | let v := fun i => DVRAbsoluteValue.BundleCycles.dvrAbsoluteValue (A i) K |
| 26 | let z : ∀ i, WithAbs (v i) := fun i => (WithAbs.equiv (v i)).symm (t i) |
| 27 | let B := Set.univ.pi (fun i => Metric.ball (z i) (v i (t i))) |
| 28 | have hB : IsOpen B := isOpen_set_pi Set.finite_univ (fun _ _ => Metric.isOpen_ball) |
| 29 | have hz : z ∈ B := by |
| 30 | intro i _ |
| 31 | exact Metric.mem_ball.mpr (by simpa only [dist_self] using (v i).pos (ht i)) |
| 32 | have hd := AbsoluteValue.denseRange_algebraMap_pi (fun i => DVRAbsoluteValue.BundleCycles.dvrAbsoluteValue_nontrivial (A i) K) hne |
| 33 | obtain ⟨a, ha⟩ := hd.exists_mem_open hB ⟨z, hz⟩ |
| 34 | refine ⟨a, fun i => ?_⟩ |
| 35 | have hi := Metric.mem_ball.mp (ha i (Set.mem_univ i)) |
| 36 | have hdist : v i (a - t i) < v i (t i) := by |
| 37 | rw [dist_eq_norm] at hi |
| 38 | exact hi |
| 39 | exact ((IsDiscreteValuationRing.maximalIdeal (A i)).valuation K).map_eq_of_sub_lt |
| 40 | ((DVRAbsoluteValue.BundleCycles.dvrAbsoluteValue_lt_iff (A i) K (a - t i) (t i)).mp hdist) |
| 41 | |
| 42 | include hne in |
| 43 | theorem exists_finiteDVR_prescribed_orders (n : ι → ℤ) : |
| 44 | ∃ a : Kˣ, ∀ i, SurfaceRationalOrderIntersection.BundleCycles.fractionFieldOrder (A i) (a : K) = n i := by |
| 45 | classical |
| 46 | by_cases hι : Nonempty ι |
| 47 | · let := hι |
| 48 | choose π hπ using fun i => IsDiscreteValuationRing.exists_irreducible (A i) |
| 49 | let t : ι → K := fun i => (algebraMap (A i) K (π i)) ^ n i |
| 50 | have ht : ∀ i, t i ≠ 0 := by |
| 51 | intro i |
| 52 | apply zpow_ne_zero |
| 53 | simpa only [map_zero] using (IsFractionRing.injective (A i) K).ne (hπ i).ne_zero |
| 54 | obtain ⟨a, ha⟩ := exists_finiteDVR_same_values A K hne t ht |
| 55 | have ha0 : a ≠ 0 := by |
| 56 | intro hz |
| 57 | let i := Classical.choice hι |
| 58 | have he := ha i |
| 59 | rw [hz, map_zero] at he |
| 60 | exact ((map_ne_zero ((IsDiscreteValuationRing.maximalIdeal (A i)).valuation K)).mpr (ht i)) he.symm |
| 61 | refine ⟨Units.mk0 a ha0, fun i => ?_⟩ |
| 62 | have he : Ring.ordFrac (A i) a = Ring.ordFrac (A i) (t i) := by |
| 63 | rw [Ring.ordFrac_eq_valuation_inv, Ring.ordFrac_eq_valuation_inv, ha i] |
| 64 | have htord := DVRMultiplicity.BundleCycles.ordFrac_unit_zpow (K := K) (π i) (hπ i) (1 : (A i)ˣ) (n i) |
| 65 | rw [one_smul] at htord |
| 66 | change Multiplicative.toAdd ((Ring.ordFrac (A i) a).unzeroD 1) = n i |
| 67 | rw [he, htord] |
| 68 | rfl |
| 69 | · let : IsEmpty ι := not_nonempty_iff.mp hι |
| 70 | exact ⟨1, fun i => isEmptyElim i⟩ |
| 71 | |
| 72 | end |
| 73 | |
| 74 | end OAI.AlgebraicGeometry.Divisors.LineBundles.Finite.DVRApproximation.BundleCycles |