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.GroupSchemes.FiniteEtale |
| 2 | |
| 3 | /-! # Affine Field Restriction -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.AbelianScheme.FrobeniusKernel.AffineFieldRestriction.Construction |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Affine test algebras for field extension. Restricting scalars |
| 10 | retains the actual underlying test scheme and its structural map. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.AlgebraicGeometry Opposite |
| 13 | |
| 14 | universe u |
| 15 | |
| 16 | variable {k k' : Type u} [Field k] [Field k'] [Algebra k k'] |
| 17 | |
| 18 | def restrictFieldAlgebra (R : CommAlgCat.{u} k') : CommAlgCat.{u} k := by |
| 19 | letI : Algebra k R := Algebra.compHom R (algebraMap k k') |
| 20 | exact CommAlgCat.of k R |
| 21 | |
| 22 | def restrictFieldAlgebraMap {R S : CommAlgCat.{u} k'} (a : R ⟶ S) : |
| 23 | restrictFieldAlgebra (k := k) R ⟶ restrictFieldAlgebra (k := k) S := by |
| 24 | letI : Algebra k R := Algebra.compHom R (algebraMap k k') |
| 25 | letI : Algebra k S := Algebra.compHom S (algebraMap k k') |
| 26 | exact CommAlgCat.ofHom { |
| 27 | toRingHom := a.hom.toRingHom |
| 28 | commutes' x := by |
| 29 | change a.hom (algebraMap k' R (algebraMap k k' x)) = |
| 30 | algebraMap k' S (algebraMap k k' x) |
| 31 | exact a.hom.commutes _ } |
| 32 | |
| 33 | def restrictFieldAlgebras : CommAlgCat.{u} k' ⥤ CommAlgCat.{u} k where |
| 34 | obj R := restrictFieldAlgebra R |
| 35 | map a := restrictFieldAlgebraMap a |
| 36 | map_id R := by |
| 37 | apply CommAlgCat.hom_ext |
| 38 | apply AlgHom.ext |
| 39 | intro x |
| 40 | rfl |
| 41 | map_comp a b := by |
| 42 | apply CommAlgCat.hom_ext |
| 43 | apply AlgHom.ext |
| 44 | intro x |
| 45 | rfl |
| 46 | |
| 47 | theorem specMap_ringHom_comp {R S T : CommRingCat.{u}} |
| 48 | (f : R ⟶ S) (g : S ⟶ T) : |
| 49 | Spec.map (CommRingCat.ofHom (g.hom.comp f.hom)) = Spec.map g ≫ Spec.map f := |
| 50 | Spec.map_comp f g |
| 51 | |
| 52 | theorem restrictedAffine_structure (R : CommAlgCat.{u} k') : |
| 53 | (GroupSchemes.FiniteEtale.affine k (restrictFieldAlgebra (k := k) R)).hom = |
| 54 | (GroupSchemes.FiniteEtale.affine k' R).hom ≫ |
| 55 | Spec.map (CommRingCat.ofHom (algebraMap k k')) := |
| 56 | specMap_ringHom_comp (CommRingCat.ofHom (algebraMap k k')) |
| 57 | (CommRingCat.ofHom (algebraMap k' R)) |
| 58 | |
| 59 | def overIsoOfStructureEq {S X : Scheme.{u}} (f g : X ⟶ S) (h : g = f) : |
| 60 | Over.mk f ≅ Over.mk g := |
| 61 | Over.isoMk (Iso.refl X) ((Category.id_comp g).trans h) |
| 62 | |
| 63 | theorem overIsoOfStructureEq_hom_left {S X : Scheme.{u}} (f g : X ⟶ S) (h : g = f) : |
| 64 | (overIsoOfStructureEq f g h).hom.left = 𝟙 X := rfl |
| 65 | |
| 66 | def restrictedAffineBaseIso (R : CommAlgCat.{u} k') : |
| 67 | (Over.map (Spec.map (CommRingCat.ofHom (algebraMap k k')))).obj (GroupSchemes.FiniteEtale.affine k' R) ≅ |
| 68 | GroupSchemes.FiniteEtale.affine k (restrictFieldAlgebra (k := k) R) := |
| 69 | overIsoOfStructureEq |
| 70 | ((GroupSchemes.FiniteEtale.affine k' R).hom ≫ Spec.map (CommRingCat.ofHom (algebraMap k k'))) |
| 71 | (GroupSchemes.FiniteEtale.affine k (restrictFieldAlgebra (k := k) R)).hom |
| 72 | (restrictedAffine_structure (k := k) R) |
| 73 | |
| 74 | theorem restrictedAffineBaseIso_naturality {R S : CommAlgCat.{u} k'} (a : R ⟶ S) : |
| 75 | (Over.map (Spec.map (CommRingCat.ofHom (algebraMap k k')))).map |
| 76 | ((algSpec (.of k')).map a.op) ≫ (restrictedAffineBaseIso (k := k) R).hom = |
| 77 | (restrictedAffineBaseIso (k := k) S).hom ≫ |
| 78 | (algSpec (.of k)).map (restrictFieldAlgebraMap (k := k) a).op := by |
| 79 | apply Over.OverMorphism.ext |
| 80 | change (Spec.map (CommRingCat.ofHom a.hom.toRingHom)) ≫ 𝟙 _ = |
| 81 | 𝟙 _ ≫ Spec.map (CommRingCat.ofHom a.hom.toRingHom) |
| 82 | rw [Category.comp_id, Category.id_comp] |
| 83 | |
| 84 | end |
| 85 | |
| 86 | end OAI.AlgebraicGeometry.AbelianScheme.FrobeniusKernel.AffineFieldRestriction.Construction |