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.Isogenies.NeighborCounting.AffineSpecialFiber |
| 2 | import Mathlib.AlgebraicGeometry.Morphisms.Etale |
| 3 | |
| 4 | /-! # Component Lift -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.Isogenies.NeighborCounting.Intrinsic.ComponentLift.Components |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! |
| 11 | Constructing the integral component map from its native special fiber. |
| 12 | Finite schemes supply their affine presentations; HenselianLifting supplies the map. |
| 13 | Uniqueness forces the group law, so no integral component projection or |
| 14 | integral group-homomorphism property is assumed. |
| 15 | -/ |
| 16 | |
| 17 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.CategoryTheory.Limits |
| 18 | open _root_.CategoryTheory.MonoidalCategory |
| 19 | open scoped _root_.CategoryTheory.MonObj _root_.CategoryTheory.Obj |
| 20 | |
| 21 | universe u |
| 22 | |
| 23 | variable (R : Type u) [CommRing R] [HenselianLocalRing R] |
| 24 | |
| 25 | omit [HenselianLocalRing R] in |
| 26 | theorem finite_coordinates_of_iso {A : Type u} [CommRing A] [Algebra R A] |
| 27 | {X : Over (Spec (.of R))} [IsFinite X.hom] (e : EtaleTargetMaps.Components.affineOver R A ≅ X) : |
| 28 | Module.Finite R A := by |
| 29 | have : IsIso e.hom.left := inferInstanceAs (IsIso ((Over.forget (Spec (.of R))).map e.hom)) |
| 30 | have h : IsFinite (EtaleTargetMaps.Components.affineOver R A).hom := by |
| 31 | rw [← e.hom.w] |
| 32 | infer_instance |
| 33 | exact RingHom.finite_algebraMap.mp ((IsFinite.SpecMap_iff _).mp h) |
| 34 | |
| 35 | omit [HenselianLocalRing R] in |
| 36 | theorem etale_coordinates_of_iso {A : Type u} [CommRing A] [Algebra R A] |
| 37 | {X : Over (Spec (.of R))} [Etale X.hom] (e : EtaleTargetMaps.Components.affineOver R A ≅ X) : |
| 38 | Algebra.Etale R A := by |
| 39 | have : IsIso e.hom.left := inferInstanceAs (IsIso ((Over.forget (Spec (.of R))).map e.hom)) |
| 40 | have h : Etale (EtaleTargetMaps.Components.affineOver R A).hom := by |
| 41 | rw [← e.hom.w] |
| 42 | infer_instance |
| 43 | exact RingHom.etale_algebraMap.mp ((HasRingHomProperty.Spec_iff (P := @Etale)).mp h) |
| 44 | |
| 45 | /-- Native special-fiber maps from a finite scheme to a finite etale |
| 46 | scheme lift uniquely. The source is allowed to have connected torsion. -/ |
| 47 | theorem finite_etale_special_fiber_hom_bijective |
| 48 | (X E : Over (Spec (.of R))) [IsFinite X.hom] [IsFinite E.hom] [Etale E.hom] : |
| 49 | Function.Bijective |
| 50 | ((Over.pullback (Spec.map (CommRingCat.ofHom (IsLocalRing.residue R)))).map |
| 51 | (X := X) (Y := E)) := by |
| 52 | let F := Over.pullback (Spec.map (CommRingCat.ofHom (IsLocalRing.residue R))) |
| 53 | have hX : IsAffine X.left := isAffine_of_isAffineHom X.hom |
| 54 | have hE : IsAffine E.left := isAffine_of_isAffineHom E.hom |
| 55 | obtain ⟨A, ⟨eA⟩⟩ := (essImage_algSpec (R := .of R) (G := X)).mpr hX |
| 56 | obtain ⟨C, ⟨eC⟩⟩ := (essImage_algSpec (R := .of R) (G := E)).mpr hE |
| 57 | change EtaleTargetMaps.Components.affineOver R A.unop ≅ X at eA |
| 58 | change EtaleTargetMaps.Components.affineOver R C.unop ≅ E at eC |
| 59 | have : Module.Finite R A.unop := finite_coordinates_of_iso R eA |
| 60 | have : Module.Finite R C.unop := finite_coordinates_of_iso R eC |
| 61 | have : Algebra.Etale R C.unop := etale_coordinates_of_iso R eC |
| 62 | have hb := AffineSpecialFiber.Components.affine_special_fiber_hom_bijective (R := R) (A := A.unop) (C := C.unop) |
| 63 | constructor |
| 64 | · intro f g h |
| 65 | change F.map f = F.map g at h |
| 66 | have hfg : eA.hom ≫ f ≫ eC.inv = eA.hom ≫ g ≫ eC.inv := by |
| 67 | apply hb.1 |
| 68 | change F.map (eA.hom ≫ f ≫ eC.inv) = F.map (eA.hom ≫ g ≫ eC.inv) |
| 69 | simpa only [F.map_comp] using congrArg (fun a => F.map eA.hom ≫ a ≫ F.map eC.inv) h |
| 70 | exact (cancel_epi eA.hom).mp ((cancel_mono eC.inv).mp (by simpa only [Category.assoc] using hfg)) |
| 71 | · intro φ |
| 72 | obtain ⟨g, hg⟩ := hb.2 (F.map eA.hom ≫ φ ≫ F.map eC.inv) |
| 73 | change F.map g = F.map eA.hom ≫ φ ≫ F.map eC.inv at hg |
| 74 | refine ⟨eA.inv ≫ g ≫ eC.hom, ?_⟩ |
| 75 | change F.map (eA.inv ≫ g ≫ eC.hom) = φ |
| 76 | rw [F.map_comp, F.map_comp, hg] |
| 77 | rw [← Category.assoc, ← Category.assoc, ← F.map_comp, eA.inv_hom_id, |
| 78 | F.map_id, Category.id_comp, Category.assoc, ← F.map_comp, eC.inv_hom_id, |
| 79 | F.map_id, Category.comp_id] |
| 80 | |
| 81 | /-- The group law of a lifted component map is a consequence of its |
| 82 | special-fiber group law and the uniqueness theorem for finite sources. -/ |
| 83 | theorem isMonHom_of_special_fiber |
| 84 | {A E : Over (Spec (.of R))} [GrpObj A] [GrpObj E] |
| 85 | [IsFinite A.hom] [IsFinite E.hom] [Etale E.hom] |
| 86 | (f : A ⟶ E) |
| 87 | (hf : IsMonHom |
| 88 | ((Over.pullback (Spec.map (CommRingCat.ofHom (IsLocalRing.residue R)))).map f)) : |
| 89 | IsMonHom f := by |
| 90 | let F := Over.pullback (Spec.map (CommRingCat.ofHom (IsLocalRing.residue R))) |
| 91 | have : IsMonHom (F.map f) := hf |
| 92 | have : IsFinite (𝟙_ (Over (Spec (.of R)))).hom := by |
| 93 | dsimp |
| 94 | infer_instance |
| 95 | have : IsFinite (A ⊗ A).hom := by |
| 96 | dsimp |
| 97 | infer_instance |
| 98 | constructor |
| 99 | · apply (finite_etale_special_fiber_hom_bijective R (𝟙_ _) E).1 |
| 100 | apply (cancel_epi (Functor.LaxMonoidal.ε F)).mp |
| 101 | simpa only [Functor.map_comp, Category.assoc, Functor.obj.η_def] |
| 102 | using (IsMonHom.one_hom (F.map f)) |
| 103 | · apply (finite_etale_special_fiber_hom_bijective R (A ⊗ A) E).1 |
| 104 | apply (cancel_epi (Functor.LaxMonoidal.μ F A A)).mp |
| 105 | simpa only [Functor.map_comp, Category.assoc, Functor.obj.μ_def, |
| 106 | Functor.LaxMonoidal.μ_natural_assoc] |
| 107 | using (IsMonHom.mul_hom (F.map f)) |
| 108 | |
| 109 | variable {A E : Over (Spec (.of R))} [GrpObj A] [GrpObj E] |
| 110 | variable [IsFinite A.hom] [IsFinite E.hom] [Etale E.hom] |
| 111 | |
| 112 | /-- The integral projection to the etale component scheme is constructed |
| 113 | from the independently given projection on the special fiber. -/ |
| 114 | def nativeComponentMap |
| 115 | (π₀ : (Over.pullback (Spec.map (CommRingCat.ofHom (IsLocalRing.residue R)))).obj A ⟶ |
| 116 | (Over.pullback (Spec.map (CommRingCat.ofHom (IsLocalRing.residue R)))).obj E) : A ⟶ E := |
| 117 | Classical.choose ((finite_etale_special_fiber_hom_bijective R A E).2 π₀) |
| 118 | |
| 119 | omit [GrpObj A] [GrpObj E] in |
| 120 | theorem nativeComponentMap_special |
| 121 | (π₀ : (Over.pullback (Spec.map (CommRingCat.ofHom (IsLocalRing.residue R)))).obj A ⟶ |
| 122 | (Over.pullback (Spec.map (CommRingCat.ofHom (IsLocalRing.residue R)))).obj E) : |
| 123 | (Over.pullback (Spec.map (CommRingCat.ofHom (IsLocalRing.residue R)))).map |
| 124 | (nativeComponentMap R π₀) = π₀ := |
| 125 | Classical.choose_spec ((finite_etale_special_fiber_hom_bijective R A E).2 π₀) |
| 126 | |
| 127 | instance nativeComponentMap_isMonHom |
| 128 | (π₀ : (Over.pullback (Spec.map (CommRingCat.ofHom (IsLocalRing.residue R)))).obj A ⟶ |
| 129 | (Over.pullback (Spec.map (CommRingCat.ofHom (IsLocalRing.residue R)))).obj E) |
| 130 | [IsMonHom π₀] : IsMonHom (nativeComponentMap R π₀) := by |
| 131 | apply isMonHom_of_special_fiber R |
| 132 | rw [nativeComponentMap_special] |
| 133 | infer_instance |
| 134 | |
| 135 | end |
| 136 | |
| 137 | end OAI.AlgebraicGeometry.Isogenies.NeighborCounting.Intrinsic.ComponentLift.Components |