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.ArithmeticGeometry.Descent.CMVariety.BaseChangeMapEquality |
| 2 | import OAI.ArithmeticGeometry.Descent.CMVariety.MonoidalGroupEquations |
| 3 | import Mathlib.CategoryTheory.Monoidal.Cartesian.Over |
| 4 | |
| 5 | /-! # Finite Coefficient Group Laws -/ |
| 6 | |
| 7 | namespace OAI.ArithmeticGeometry.Descent.CMVariety.FiniteCoefficientGroupLaws.Abelian |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | section |
| 12 | |
| 13 | /-! |
| 14 | Group preservation of an actual morphism descends from the coefficient |
| 15 | algebra to one finite stage by spreading its unit and multiplication |
| 16 | equations together. |
| 17 | -/ |
| 18 | |
| 19 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.CategoryTheory.MonoidalCategory _root_.AlgebraicGeometry |
| 20 | open scoped Classical _root_.CategoryTheory.MonObj _root_.CategoryTheory.Obj |
| 21 | |
| 22 | theorem isMonHom_descends_to_finite_coefficients |
| 23 | (R B : Type) [CommRing R] [CommRing B] [Algebra R B] |
| 24 | (A : Over (Spec (CommRingCat.of R))) [MonObj A] |
| 25 | [QuasiCompact A.hom] [LocallyOfFiniteType A.hom] (k : A ⟶ A) |
| 26 | (h : IsMonHom ((Over.pullback (Spec.map (CommRingCat.ofHom (algebraMap R B)))).map k)) : |
| 27 | ∃ s : (Finset B)ᵒᵖ, IsMonHom ((Over.pullback (FiniteCoefficientDiagram.Abelian.finiteCoefficientBaseMap R B s.unop)).map k) := by |
| 28 | let F := Over.pullback (Spec.map (CommRingCat.ofHom (algebraMap R B))) |
| 29 | have he := (MonoidalGroupEquations.Abelian.isMonHom_map_iff_image_equations F k).mp h |
| 30 | let source : Bool → Over (Spec (CommRingCat.of R)) := fun i => if i then A ⊗ A else 𝟙_ _ |
| 31 | let a : ∀ i, source i ⟶ A := fun i => match i with |
| 32 | | false => η[A] ≫ k |
| 33 | | true => μ[A] ≫ k |
| 34 | let b : ∀ i, source i ⟶ A := fun i => match i with |
| 35 | | false => η[A] |
| 36 | | true => (k ⊗ₘ k) ≫ μ[A] |
| 37 | have hF (i : Bool) : F.map (a i) = F.map (b i) := by |
| 38 | cases i |
| 39 | · exact he.1 |
| 40 | · exact he.2 |
| 41 | let (i : Bool) : QuasiCompact (source i).hom := by |
| 42 | cases i |
| 43 | · change QuasiCompact (𝟙 (Spec (CommRingCat.of R))) |
| 44 | infer_instance |
| 45 | · change QuasiCompact (pullback.fst A.hom A.hom ≫ A.hom) |
| 46 | infer_instance |
| 47 | obtain ⟨s, hs⟩ := FiniteCoefficientEqualities.Abelian.finite_family_morphism_equalities_descend R B |
| 48 | (fun i => (source i).left) (fun _ : Bool => A.left) |
| 49 | (fun i => (source i).hom) (fun _ => A.hom) |
| 50 | (fun i => (a i).left) (fun i => (b i).left) (fun i => (a i).w) (fun i => (b i).w) |
| 51 | (fun i => (BaseChangeMapEquality.Abelian.over_baseChange_map_eq_iff _ (a i) (b i)).mp (hF i)) |
| 52 | have hstage (i : Bool) : |
| 53 | (Over.pullback (FiniteCoefficientDiagram.Abelian.finiteCoefficientBaseMap R B s.unop)).map (a i) = |
| 54 | (Over.pullback (FiniteCoefficientDiagram.Abelian.finiteCoefficientBaseMap R B s.unop)).map (b i) := |
| 55 | (BaseChangeMapEquality.Abelian.over_baseChange_map_eq_iff _ (a i) (b i)).mpr (hs i) |
| 56 | exact ⟨s, (MonoidalGroupEquations.Abelian.isMonHom_map_iff_image_equations _ k).mpr ⟨hstage false, hstage true⟩⟩ |
| 57 | |
| 58 | end |
| 59 | |
| 60 | /-! All group equations of a finite tuple descend to one coefficient stage. -/ |
| 61 | |
| 62 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.CategoryTheory.MonoidalCategory _root_.AlgebraicGeometry |
| 63 | open scoped Classical _root_.CategoryTheory.MonObj _root_.CategoryTheory.Obj |
| 64 | |
| 65 | theorem finite_isMonHom_descends_to_finite_coefficients |
| 66 | (R B : Type) [CommRing R] [CommRing B] [Algebra R B] |
| 67 | {Index : Type} [Fintype Index] |
| 68 | (A : Over (Spec (CommRingCat.of R))) [MonObj A] |
| 69 | [QuasiCompact A.hom] [LocallyOfFiniteType A.hom] (k : Index → (A ⟶ A)) |
| 70 | (h : ∀ i, IsMonHom |
| 71 | ((Over.pullback (Spec.map (CommRingCat.ofHom (algebraMap R B)))).map (k i))) : |
| 72 | ∃ s : (Finset B)ᵒᵖ, ∀ i, |
| 73 | IsMonHom ((Over.pullback (FiniteCoefficientDiagram.Abelian.finiteCoefficientBaseMap R B s.unop)).map (k i)) := by |
| 74 | let F := Over.pullback (Spec.map (CommRingCat.ofHom (algebraMap R B))) |
| 75 | have he (i : Index) := (MonoidalGroupEquations.Abelian.isMonHom_map_iff_image_equations F (k i)).mp (h i) |
| 76 | let source : Index × Bool → Over (Spec (CommRingCat.of R)) := |
| 77 | fun j => if j.2 then A ⊗ A else 𝟙_ _ |
| 78 | let a : ∀ j, source j ⟶ A := fun j => match j with |
| 79 | | (i, false) => η[A] ≫ k i |
| 80 | | (i, true) => μ[A] ≫ k i |
| 81 | let b : ∀ j, source j ⟶ A := fun j => match j with |
| 82 | | (_, false) => η[A] |
| 83 | | (i, true) => (k i ⊗ₘ k i) ≫ μ[A] |
| 84 | have hF (j : Index × Bool) : F.map (a j) = F.map (b j) := by |
| 85 | rcases j with ⟨i, j⟩ |
| 86 | cases j |
| 87 | · exact (he i).1 |
| 88 | · exact (he i).2 |
| 89 | let (j : Index × Bool) : QuasiCompact (source j).hom := by |
| 90 | rcases j with ⟨i, j⟩ |
| 91 | cases j |
| 92 | · change QuasiCompact (𝟙 (Spec (CommRingCat.of R))) |
| 93 | infer_instance |
| 94 | · change QuasiCompact (pullback.fst A.hom A.hom ≫ A.hom) |
| 95 | infer_instance |
| 96 | obtain ⟨s, hs⟩ := FiniteCoefficientEqualities.Abelian.finite_family_morphism_equalities_descend R B |
| 97 | (fun j => (source j).left) (fun _ : Index × Bool => A.left) |
| 98 | (fun j => (source j).hom) (fun _ => A.hom) |
| 99 | (fun j => (a j).left) (fun j => (b j).left) (fun j => (a j).w) (fun j => (b j).w) |
| 100 | (fun j => (BaseChangeMapEquality.Abelian.over_baseChange_map_eq_iff _ (a j) (b j)).mp (hF j)) |
| 101 | have hstage (j : Index × Bool) : |
| 102 | (Over.pullback (FiniteCoefficientDiagram.Abelian.finiteCoefficientBaseMap R B s.unop)).map (a j) = |
| 103 | (Over.pullback (FiniteCoefficientDiagram.Abelian.finiteCoefficientBaseMap R B s.unop)).map (b j) := |
| 104 | (BaseChangeMapEquality.Abelian.over_baseChange_map_eq_iff _ (a j) (b j)).mpr (hs j) |
| 105 | exact ⟨s, fun i => (MonoidalGroupEquations.Abelian.isMonHom_map_iff_image_equations _ (k i)).mpr |
| 106 | ⟨hstage (i, false), hstage (i, true)⟩⟩ |
| 107 | |
| 108 | end |
| 109 | |
| 110 | end OAI.ArithmeticGeometry.Descent.CMVariety.FiniteCoefficientGroupLaws.Abelian |