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.AbelianModuli.ReferenceFamily.Affine.AlgebraAutomorphismNaturality |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.Open.ImmersionLiftFibers |
| 3 | import Mathlib.AlgebraicGeometry.Morphisms.ClosedImmersion |
| 4 | import Mathlib.RingTheory.Spectrum.Prime.RingHom |
| 5 | |
| 6 | /-! # Coefficient Scheme Tests -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.Dual.CoefficientSchemeTests |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! Actual dual-number test schemes over arbitrary coefficient algebras. |
| 13 | The reduction is a surjective closed immersion and the projection is |
| 14 | its retraction; no field or local-ring assumption is made on coefficients. -/ |
| 15 | |
| 16 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 17 | |
| 18 | attribute [local implicit_reducible] EtaleSplittingAt.EtaleSplitting.affineOver |
| 19 | |
| 20 | variable (k C : Type) [CommRing k] [CommRing C] [Algebra k C] |
| 21 | |
| 22 | def dualCoefficientOrigin : EtaleSplittingAt.EtaleSplitting.affineOver k C ⟶ EtaleSplittingAt.EtaleSplitting.affineOver k (DualNumber C) := |
| 23 | Affine.AlgebraAutomorphismNaturality.affineOverAlgHom k (DualNumber C) C (TrivSqZeroExt.fstHom k C C) |
| 24 | |
| 25 | def dualCoefficientProjection : EtaleSplittingAt.EtaleSplitting.affineOver k (DualNumber C) ⟶ EtaleSplittingAt.EtaleSplitting.affineOver k C := |
| 26 | Affine.AlgebraAutomorphismNaturality.affineOverAlgHom k C (DualNumber C) (TrivSqZeroExt.inlAlgHom k C C) |
| 27 | |
| 28 | theorem dualCoefficientOrigin_projection : dualCoefficientOrigin k C ≫ dualCoefficientProjection k C = 𝟙 _ := by |
| 29 | apply Over.OverMorphism.ext |
| 30 | change Spec.map (CommRingCat.ofHom (TrivSqZeroExt.fstHom k C C).toRingHom) ≫ |
| 31 | Spec.map (CommRingCat.ofHom (TrivSqZeroExt.inlAlgHom k C C).toRingHom) = 𝟙 (Spec (.of C)) |
| 32 | rw [← Spec.map_comp] |
| 33 | have h : CommRingCat.ofHom (TrivSqZeroExt.inlAlgHom k C C).toRingHom ≫ |
| 34 | CommRingCat.ofHom (TrivSqZeroExt.fstHom k C C).toRingHom = 𝟙 (CommRingCat.of C) := by |
| 35 | ext c |
| 36 | rfl |
| 37 | rw [h, Spec.map_id] |
| 38 | |
| 39 | instance dualCoefficientOrigin_closed : IsClosedImmersion (dualCoefficientOrigin k C).left := |
| 40 | IsClosedImmersion.spec_of_surjective (CommRingCat.ofHom (TrivSqZeroExt.fstHom k C C).toRingHom) |
| 41 | (fun c => ⟨(c, 0), rfl⟩) |
| 42 | |
| 43 | instance dualCoefficientOrigin_surjective : Surjective (dualCoefficientOrigin k C).left := by |
| 44 | let q := (TrivSqZeroExt.fstHom k C C).toRingHom |
| 45 | have hr : Set.range (PrimeSpectrum.comap q) = Set.univ := by |
| 46 | rw [range_comap_of_surjective C q (fun c => ⟨(c, 0), rfl⟩)] |
| 47 | apply Set.eq_univ_of_forall |
| 48 | intro p z hz |
| 49 | have hz' : z.fst = 0 := hz |
| 50 | have hs : z ^ 2 = 0 := by |
| 51 | rw [pow_two] |
| 52 | apply TrivSqZeroExt.ext |
| 53 | · change z.fst * z.fst = 0 |
| 54 | rw [hz', zero_mul] |
| 55 | · rw [DualNumber.snd_mul, hz', zero_mul, mul_zero, add_zero] |
| 56 | rfl |
| 57 | exact p.isPrime.mem_of_pow_mem 2 (hs.symm ▸ p.asIdeal.zero_mem) |
| 58 | exact ⟨Set.range_eq_univ.mp hr⟩ |
| 59 | |
| 60 | end |
| 61 | |
| 62 | end OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.Dual.CoefficientSchemeTests |