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.OpenDiagram |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.Affine.BaseChangeCoordinates |
| 3 | import OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.OverPullbackCartesianMap |
| 4 | |
| 5 | /-! # Affine Diagram -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.FixedFiber.AffineDiagram |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | section |
| 12 | |
| 13 | /-! The affine-open diagram of the actual fixed fiber is naturally |
| 14 | identified with its literal tensor algebras. These comparisons retain |
| 15 | every original open restriction map. -/ |
| 16 | |
| 17 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 18 | open scoped TensorProduct |
| 19 | |
| 20 | variable (R k : Type) [CommRing R] [CommRing k] [Algebra R k] |
| 21 | (X : Over (Spec (.of R))) |
| 22 | |
| 23 | def fixedFiberAffineDiagram : X.left.affineOpens ⥤ Over (Spec (.of k)) := |
| 24 | Affine.OpenDiagram.familyAffineOpenDiagram X ⋙ Over.pullback (Spec.map (CommRingCat.ofHom (algebraMap R k))) |
| 25 | |
| 26 | def fixedFiberTensorAlgebras : X.left.affineOpensᵒᵖ ⥤ CommAlgCat k := |
| 27 | Affine.OpenDiagram.familyAffineCoordinateFunctor R X ⋙ HilbertConstruction.AlgebraTensorFunctor.algebraTensorFunctor R k |
| 28 | |
| 29 | def fixedFiberTensorDiagram : X.left.affineOpens ⥤ Over (Spec (.of k)) := |
| 30 | HilbertConstruction.AlgebraSchemeDiagrams.algebraSchemeDiagram k (fixedFiberTensorAlgebras R k X) |
| 31 | |
| 32 | def fixedFiberAffineCoordinates : fixedFiberAffineDiagram R k X ≅ fixedFiberTensorDiagram R k X := |
| 33 | NatIso.ofComponents |
| 34 | (fun V => Affine.BaseChangeCoordinates.affineBaseChangeCoordinates R k ((Affine.OpenDiagram.familyAffineOpenDiagram X).obj V)) |
| 35 | (fun h => (Affine.BaseChangeCoordinates.affineBaseChangeCoordinates_natural R k ((Affine.OpenDiagram.familyAffineOpenDiagram X).map h)).symm) |
| 36 | |
| 37 | instance fixedFiberAffineDiagram_affine (V : X.left.affineOpens) : |
| 38 | IsAffine ((fixedFiberAffineDiagram R k X).obj V).left := by |
| 39 | change IsAffine (CategoryTheory.Limits.pullback ((Affine.OpenDiagram.familyAffineOpenDiagram X).obj V).hom |
| 40 | (Spec.map (CommRingCat.ofHom (algebraMap R k)))) |
| 41 | infer_instance |
| 42 | |
| 43 | theorem fixedFiberAffineMap_open {V W : X.left.affineOpens} (h : V ⟶ W) : |
| 44 | IsOpenImmersion (((fixedFiberAffineDiagram R k X).map h).left) := |
| 45 | @OverPullbackCartesianMap.overPullback_map_open _ _ (Spec.map (CommRingCat.ofHom (algebraMap R k))) |
| 46 | ((Affine.OpenDiagram.familyAffineOpenDiagram X).obj V) ((Affine.OpenDiagram.familyAffineOpenDiagram X).obj W) |
| 47 | ((Affine.OpenDiagram.familyAffineOpenDiagram X).map h) (Affine.OpenDiagram.familyOpenMap_open X h.le) |
| 48 | |
| 49 | theorem fixedFiberTensorMap_open {V W : X.left.affineOpens} (h : V ⟶ W) : |
| 50 | IsOpenImmersion (((fixedFiberTensorDiagram R k X).map h).left) := by |
| 51 | let e := fixedFiberAffineCoordinates R k X |
| 52 | have he : (fixedFiberTensorDiagram R k X).map h = |
| 53 | (e.app V).inv ≫ (fixedFiberAffineDiagram R k X).map h ≫ (e.app W).hom := by |
| 54 | change _ = (e.app V).inv ≫ |
| 55 | ((fixedFiberAffineDiagram R k X).map h ≫ e.hom.app W) |
| 56 | rw [e.hom.naturality h, ← Category.assoc] |
| 57 | exact ((e.app V).inv_hom_id_assoc _).symm |
| 58 | have : IsOpenImmersion (((fixedFiberAffineDiagram R k X).map h).left) := |
| 59 | fixedFiberAffineMap_open R k X h |
| 60 | have : IsIso (e.app V).inv.left := (Over.forget _).map_isIso (e.app V).inv |
| 61 | have : IsIso (e.app W).hom.left := (Over.forget _).map_isIso (e.app W).hom |
| 62 | rw [he] |
| 63 | change IsOpenImmersion ((e.app V).inv.left ≫ |
| 64 | ((fixedFiberAffineDiagram R k X).map h).left ≫ (e.app W).hom.left) |
| 65 | infer_instance |
| 66 | |
| 67 | theorem fixedFiberTensorAlgebraMap_etale {V W : X.left.affineOpensᵒᵖ} (h : V ⟶ W) : |
| 68 | (((fixedFiberTensorAlgebras R k X).map h).hom.toRingHom).Etale := by |
| 69 | have : IsOpenImmersion (Spec.map (CommRingCat.ofHom |
| 70 | (((fixedFiberTensorAlgebras R k X).map h).hom.toRingHom))) := |
| 71 | fixedFiberTensorMap_open R k X h.unop |
| 72 | have he : Etale (Spec.map (CommRingCat.ofHom |
| 73 | (((fixedFiberTensorAlgebras R k X).map h).hom.toRingHom))) := inferInstance |
| 74 | exact (HasRingHomProperty.Spec_iff (P := @Etale) |
| 75 | (φ := CommRingCat.ofHom (((fixedFiberTensorAlgebras R k X).map h).hom.toRingHom))).mp he |
| 76 | |
| 77 | end |
| 78 | |
| 79 | /-! Both the actual affine fibers and their tensor-coordinate |
| 80 | schemes embed as the original open subfamilies of the fixed fiber. |
| 81 | These inclusions commute with all affine restrictions. -/ |
| 82 | |
| 83 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 84 | |
| 85 | variable (R k : Type) [CommRing R] [CommRing k] [Algebra R k] |
| 86 | (X : Over (Spec (.of R))) |
| 87 | |
| 88 | def fixedFiberAffineInclusion (V : X.left.affineOpens) : |
| 89 | (fixedFiberAffineDiagram R k X).obj V ⟶ |
| 90 | (Over.pullback (Spec.map (CommRingCat.ofHom (algebraMap R k)))).obj X := |
| 91 | (Over.pullback (Spec.map (CommRingCat.ofHom (algebraMap R k)))).map (HilbertConstruction.Open.ParameterPoints.openParameterInclusion X V.1) |
| 92 | |
| 93 | instance fixedFiberAffineInclusion_open (V : X.left.affineOpens) : |
| 94 | IsOpenImmersion (fixedFiberAffineInclusion R k X V).left := |
| 95 | OverPullbackCartesianMap.overPullback_map_open (Spec.map (CommRingCat.ofHom (algebraMap R k))) (HilbertConstruction.Open.ParameterPoints.openParameterInclusion X V.1) |
| 96 | |
| 97 | theorem fixedFiberAffineInclusion_natural {V W : X.left.affineOpens} (f : V ⟶ W) : |
| 98 | (fixedFiberAffineDiagram R k X).map f ≫ fixedFiberAffineInclusion R k X W = |
| 99 | fixedFiberAffineInclusion R k X V := by |
| 100 | change (Over.pullback (Spec.map (CommRingCat.ofHom (algebraMap R k)))).map (Affine.OpenDiagram.familyOpenMap X f.le) ≫ |
| 101 | (Over.pullback (Spec.map (CommRingCat.ofHom (algebraMap R k)))).map (HilbertConstruction.Open.ParameterPoints.openParameterInclusion X W.1) = _ |
| 102 | rw [← Functor.map_comp, Affine.OpenDiagram.familyOpenMap_inclusion] |
| 103 | rfl |
| 104 | |
| 105 | def fixedFiberTensorInclusion (V : X.left.affineOpens) : |
| 106 | (fixedFiberTensorDiagram R k X).obj V ⟶ |
| 107 | (Over.pullback (Spec.map (CommRingCat.ofHom (algebraMap R k)))).obj X := |
| 108 | (fixedFiberAffineCoordinates R k X).inv.app V ≫ fixedFiberAffineInclusion R k X V |
| 109 | |
| 110 | instance fixedFiberTensorInclusion_open (V : X.left.affineOpens) : |
| 111 | IsOpenImmersion (fixedFiberTensorInclusion R k X V).left := by |
| 112 | have : IsIso ((fixedFiberAffineCoordinates R k X).inv.app V).left := |
| 113 | (Over.forget _).map_isIso ((fixedFiberAffineCoordinates R k X).inv.app V) |
| 114 | change IsOpenImmersion (((fixedFiberAffineCoordinates R k X).inv.app V).left ≫ |
| 115 | (fixedFiberAffineInclusion R k X V).left) |
| 116 | infer_instance |
| 117 | |
| 118 | theorem fixedFiberTensorInclusion_natural {V W : X.left.affineOpens} (f : V ⟶ W) : |
| 119 | (fixedFiberTensorDiagram R k X).map f ≫ fixedFiberTensorInclusion R k X W = |
| 120 | fixedFiberTensorInclusion R k X V := by |
| 121 | unfold fixedFiberTensorInclusion |
| 122 | rw [← Category.assoc, (fixedFiberAffineCoordinates R k X).inv.naturality f, |
| 123 | Category.assoc, fixedFiberAffineInclusion_natural] |
| 124 | |
| 125 | end |
| 126 | |
| 127 | end OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.FixedFiber.AffineDiagram |