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.AlgebraicGeometry.ResidueField |
| 2 | import Mathlib.AlgebraicGeometry.Spec |
| 3 | |
| 4 | /-! # Rational Point -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.Quotients.FiniteDescent.RationalPoint |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! A rational point over a field has that field as its residue field. |
| 11 | The statement is expressed through its canonical factorization. -/ |
| 12 | |
| 13 | set_option backward.isDefEq.respectTransparency false |
| 14 | |
| 15 | open _root_.AlgebraicGeometry _root_.CategoryTheory _root_.CategoryTheory.Limits |
| 16 | |
| 17 | universe u |
| 18 | |
| 19 | namespace Construction.RationalPointResidue |
| 20 | |
| 21 | variable {K : Type u} [Field K] {S : Scheme.{u}} |
| 22 | variable (t : S ⟶ Spec (.of K)) (s : Spec (.of K) ⟶ S) (hs : s ≫ t = 𝟙 _) |
| 23 | |
| 24 | abbrev point := s (IsLocalRing.closedPoint K) |
| 25 | |
| 26 | abbrev fieldMap : S.residueField (point s) ⟶ .of K := |
| 27 | Scheme.descResidueField (Scheme.stalkClosedPointTo s) |
| 28 | |
| 29 | theorem factor : Spec.map (fieldMap s) ≫ S.fromSpecResidueField (point s) = s := |
| 30 | Scheme.descResidueField_stalkClosedPointTo_fromSpecResidueField K S s |
| 31 | |
| 32 | include hs |
| 33 | |
| 34 | theorem isIso_fieldMap : IsIso (fieldMap s) := by |
| 35 | let a := fieldMap s |
| 36 | have : Mono a := ConcreteCategory.mono_of_injective a a.hom.injective |
| 37 | obtain ⟨b, hb⟩ := Spec.map_surjective (S.fromSpecResidueField (point s) ≫ t) |
| 38 | have he : Spec.map a ≫ Spec.map b = 𝟙 (Spec (.of K)) := by |
| 39 | rw [hb, ← Category.assoc, factor, hs] |
| 40 | have hba : b ≫ a = 𝟙 (CommRingCat.of K) := by |
| 41 | apply Spec.map_injective |
| 42 | simpa only [Spec.map_comp, Spec.map_id] using he |
| 43 | let e : S.residueField (point s) ≅ .of K := |
| 44 | { hom := a |
| 45 | inv := b |
| 46 | hom_inv_id := by |
| 47 | apply (cancel_mono a).mp |
| 48 | simp only [Category.assoc, hba, Category.comp_id, Category.id_comp] |
| 49 | inv_hom_id := hba } |
| 50 | exact e.isIso_hom |
| 51 | |
| 52 | end Construction.RationalPointResidue |
| 53 | |
| 54 | end |
| 55 | |
| 56 | end OAI.AlgebraicGeometry.Quotients.FiniteDescent.RationalPoint |