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.Algebra.TrivSqZeroExt.Ideal |
| 2 | import Mathlib.RingTheory.LocalRing.Basic |
| 3 | import Mathlib.RingTheory.Kaehler.Basic |
| 4 | import Mathlib.Algebra.CharP.Algebra |
| 5 | |
| 6 | /-! # Universal First Order -/ |
| 7 | |
| 8 | namespace OAI.ArithmeticGeometry.OrdinaryLocus.Openness.UniversalFirstOrder.Construction |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! A universal first-order test ring for detecting zero differentials. -/ |
| 13 | |
| 14 | theorem isLocalRing_trivSqZeroExt |
| 15 | (R M : Type*) [CommRing R] [IsLocalRing R] |
| 16 | [AddCommGroup M] [Module R M] [Module Rᵐᵒᵖ M] [IsCentralScalar R M] : |
| 17 | IsLocalRing (TrivSqZeroExt R M) := by |
| 18 | apply IsLocalRing.of_isUnit_or_isUnit_one_sub_self |
| 19 | intro x |
| 20 | simpa only [TrivSqZeroExt.isUnit_iff_isUnit_fst, TrivSqZeroExt.fst_sub, |
| 21 | TrivSqZeroExt.fst_one] using IsLocalRing.isUnit_or_isUnit_one_sub_self x.fst |
| 22 | |
| 23 | theorem charP_trivSqZeroExt |
| 24 | (R M : Type*) [CommRing R] [AddCommGroup M] [Module R M] |
| 25 | [Module Rᵐᵒᵖ M] [IsCentralScalar R M] |
| 26 | (p : ℕ) [CharP R p] : CharP (TrivSqZeroExt R M) p := by |
| 27 | exact charP_of_injective_ringHom (f := TrivSqZeroExt.inlHom R M) |
| 28 | TrivSqZeroExt.inl_injective p |
| 29 | |
| 30 | /-- A derivation gives the point whose infinitesimal coordinate is that derivation. -/ |
| 31 | def derivationFirstOrderHom |
| 32 | (k L M : Type*) [CommRing k] [CommRing L] [Algebra k L] |
| 33 | [AddCommGroup M] [Module L M] [Module Lᵐᵒᵖ M] [IsCentralScalar L M] |
| 34 | [Module k M] [IsScalarTower k L M] |
| 35 | (d : Derivation k L M) : L →ₐ[k] TrivSqZeroExt L M where |
| 36 | toFun x := ⟨x, d x⟩ |
| 37 | map_zero' := by ext <;> simp |
| 38 | map_one' := by ext <;> simp |
| 39 | map_add' x y := by |
| 40 | apply TrivSqZeroExt.ext |
| 41 | · rfl |
| 42 | · exact d.map_add x y |
| 43 | map_mul' x y := by |
| 44 | apply TrivSqZeroExt.ext |
| 45 | · rfl |
| 46 | · change d (x * y) = x • d y + MulOpposite.op y • d x |
| 47 | rw [op_smul_eq_smul] |
| 48 | exact d.leibniz x y |
| 49 | commutes' r := by |
| 50 | apply TrivSqZeroExt.ext |
| 51 | · rfl |
| 52 | · exact d.map_algebraMap r |
| 53 | |
| 54 | end |
| 55 | |
| 56 | end OAI.ArithmeticGeometry.OrdinaryLocus.Openness.UniversalFirstOrder.Construction |