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.Localization.Away.Basic |
| 2 | import Mathlib.Algebra.Algebra.Subalgebra.Basic |
| 3 | |
| 4 | /-! # Finite Order Localization Lift -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianScheme.TateComparison.FiniteOrderLocalizationLift |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Localization into a noncommutative algebra is possible through the |
| 11 | commutative image when the localized generator has finite order. -/ |
| 12 | |
| 13 | abbrev algHomRangeCommRing {R A B : Type*} [CommRing R] [CommRing A] [Algebra R A] |
| 14 | [Ring B] [Algebra R B] (f : A →ₐ[R] B) : CommRing f.range where |
| 15 | toRing := inferInstance |
| 16 | mul_comm := by |
| 17 | intro x y |
| 18 | obtain ⟨a, ha⟩ := x.property |
| 19 | obtain ⟨b, hb⟩ := y.property |
| 20 | apply Subtype.ext |
| 21 | change x.val * y.val = y.val * x.val |
| 22 | rw [← ha, ← hb, ← map_mul, ← map_mul, mul_comm a b] |
| 23 | |
| 24 | theorem exists_algHom_of_finiteOrder_localization |
| 25 | {R A L B : Type*} [CommRing R] [CommRing A] [Algebra R A] |
| 26 | [CommRing L] [Algebra A L] [Algebra R L] [IsScalarTower R A L] |
| 27 | [Ring B] [Algebra R B] (z : A) [IsLocalization.Away z L] |
| 28 | (f : A →ₐ[R] B) (n : ℕ) (hn : n ≠ 0) (hp : f z ^ n = 1) : |
| 29 | ∃ g : L →ₐ[R] B, ∀ a : A, g (algebraMap A L a) = f a := by |
| 30 | let : CommRing f.range := algHomRangeCommRing f |
| 31 | let f' : A →ₐ[R] f.range := f.rangeRestrict |
| 32 | have he : f' z ^ n = 1 := Subtype.ext hp |
| 33 | have hu : IsUnit (f' z) := IsUnit.of_pow_eq_one he hn |
| 34 | let g : L →ₐ[R] f.range := IsLocalization.Away.liftAlgHom z hu |
| 35 | refine ⟨f.range.val.comp g, ?_⟩ |
| 36 | intro a |
| 37 | exact congrArg Subtype.val (IsLocalization.Away.lift_eq (S := L) z hu a) |
| 38 | |
| 39 | end |
| 40 | |
| 41 | end OAI.AlgebraicGeometry.AbelianScheme.TateComparison.FiniteOrderLocalizationLift |