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.PELModuli.IntegralModel.Section.ConormalEtale |
| 2 | import OAI.AlgebraicGeometry.Divisors.LineBundles.Affine.SchemeSection |
| 3 | import Mathlib.AlgebraicGeometry.Morphisms.Etale |
| 4 | |
| 5 | /-! # Conormal Restriction -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.PELModuli.IntegralModel.Affine.ConormalRestriction.AffineSectionConormal |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | section |
| 12 | |
| 13 | /-! Conormal maps and their restriction isomorphisms are induced by |
| 14 | the actual maps between affine smooth section neighborhoods. -/ |
| 15 | |
| 16 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 17 | |
| 18 | open OAI.AlgebraicGeometry.Divisors.LineBundles.Affine.SchemeSection.BundleCycles |
| 19 | |
| 20 | variable {X Y Z : Scheme.{0}} |
| 21 | |
| 22 | def sectionAlgebraHom (p : Y ⟶ X) (s : X ⟶ Y) (hs : s ≫ p = 𝟙 X) : |
| 23 | letI := Divisors.LineBundles.Affine.SchemeSection.BundleCycles.AffineSchemeSection.baseAlgebra p |
| 24 | Γ(Y, ⊤) →ₐ[Γ(X, ⊤)] Γ(X, ⊤) := by |
| 25 | let := Divisors.LineBundles.Affine.SchemeSection.BundleCycles.AffineSchemeSection.baseAlgebra p |
| 26 | exact { s.appTop.hom with |
| 27 | commutes' := fun r => ConcreteCategory.congr_hom (Divisors.LineBundles.Affine.SchemeSection.BundleCycles.AffineSchemeSection.section_appTop p s hs) r } |
| 28 | |
| 29 | def ambientAlgebraHom (p : Y ⟶ X) (q : Z ⟶ X) (f : Y ⟶ Z) (hf : f ≫ q = p) : |
| 30 | letI := Divisors.LineBundles.Affine.SchemeSection.BundleCycles.AffineSchemeSection.baseAlgebra p |
| 31 | letI := Divisors.LineBundles.Affine.SchemeSection.BundleCycles.AffineSchemeSection.baseAlgebra q |
| 32 | Γ(Z, ⊤) →ₐ[Γ(X, ⊤)] Γ(Y, ⊤) := by |
| 33 | let := Divisors.LineBundles.Affine.SchemeSection.BundleCycles.AffineSchemeSection.baseAlgebra p |
| 34 | let := Divisors.LineBundles.Affine.SchemeSection.BundleCycles.AffineSchemeSection.baseAlgebra q |
| 35 | refine { f.appTop.hom with commutes' := ?_ } |
| 36 | intro r |
| 37 | exact ConcreteCategory.congr_hom ((Scheme.Hom.comp_appTop f q).symm.trans (congrArg Scheme.Hom.appTop hf)) r |
| 38 | |
| 39 | theorem section_comp (p : Y ⟶ X) (q : Z ⟶ X) |
| 40 | (s : X ⟶ Y) (t : X ⟶ Z) (hs : s ≫ p = 𝟙 X) (ht : t ≫ q = 𝟙 X) |
| 41 | (f : Y ⟶ Z) (hf : f ≫ q = p) (he : s ≫ f = t) : |
| 42 | letI := Divisors.LineBundles.Affine.SchemeSection.BundleCycles.AffineSchemeSection.baseAlgebra p |
| 43 | letI := Divisors.LineBundles.Affine.SchemeSection.BundleCycles.AffineSchemeSection.baseAlgebra q |
| 44 | (sectionAlgebraHom p s hs).comp (ambientAlgebraHom p q f hf) = sectionAlgebraHom q t ht := by |
| 45 | let := Divisors.LineBundles.Affine.SchemeSection.BundleCycles.AffineSchemeSection.baseAlgebra p |
| 46 | let := Divisors.LineBundles.Affine.SchemeSection.BundleCycles.AffineSchemeSection.baseAlgebra q |
| 47 | apply AlgHom.ext |
| 48 | intro r |
| 49 | exact ConcreteCategory.congr_hom ((Scheme.Hom.comp_appTop s f).symm.trans (congrArg Scheme.Hom.appTop he)) r |
| 50 | |
| 51 | def map (p : Y ⟶ X) (q : Z ⟶ X) |
| 52 | (s : X ⟶ Y) (t : X ⟶ Z) (hs : s ≫ p = 𝟙 X) (ht : t ≫ q = 𝟙 X) |
| 53 | (f : Y ⟶ Z) (hf : f ≫ q = p) (he : s ≫ f = t) : |
| 54 | letI := Divisors.LineBundles.Affine.SchemeSection.BundleCycles.AffineSchemeSection.baseAlgebra p |
| 55 | letI := Divisors.LineBundles.Affine.SchemeSection.BundleCycles.AffineSchemeSection.baseAlgebra q |
| 56 | (RingHom.ker t.appTop.hom).Cotangent →ₗ[Γ(X, ⊤)] (RingHom.ker s.appTop.hom).Cotangent := by |
| 57 | let := Divisors.LineBundles.Affine.SchemeSection.BundleCycles.AffineSchemeSection.baseAlgebra p |
| 58 | let := Divisors.LineBundles.Affine.SchemeSection.BundleCycles.AffineSchemeSection.baseAlgebra q |
| 59 | exact Section.ConormalMaps.SectionConormal.map (sectionAlgebraHom q t ht) (sectionAlgebraHom p s hs) |
| 60 | (ambientAlgebraHom p q f hf) (section_comp p q s t hs ht f hf he) |
| 61 | |
| 62 | theorem finite_projective [IsAffine X] [IsAffine Y] |
| 63 | (p : Y ⟶ X) [Smooth p] (s : X ⟶ Y) (hs : s ≫ p = 𝟙 X) : |
| 64 | letI := Divisors.LineBundles.Affine.SchemeSection.BundleCycles.AffineSchemeSection.baseAlgebra p |
| 65 | Module.Finite Γ(X, ⊤) (RingHom.ker s.appTop.hom).Cotangent ∧ |
| 66 | Module.Projective Γ(X, ⊤) (RingHom.ker s.appTop.hom).Cotangent := by |
| 67 | let := Divisors.LineBundles.Affine.SchemeSection.BundleCycles.AffineSchemeSection.baseAlgebra p |
| 68 | let := Divisors.LineBundles.Affine.SchemeSection.BundleCycles.AffineSchemeSection.sectionRing_smooth p |
| 69 | exact Section.ConormalMaps.SectionConormal.finite_projective (sectionAlgebraHom p s hs) |
| 70 | |
| 71 | end |
| 72 | |
| 73 | /-! The conormal map of an actual étale map between smooth affine |
| 74 | section neighborhoods is bijective. This identifies conormals on smaller charts. -/ |
| 75 | |
| 76 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 77 | |
| 78 | open OAI.AlgebraicGeometry.Divisors.LineBundles.Affine.SchemeSection.BundleCycles |
| 79 | |
| 80 | theorem map_bijective_of_etale {X Y Z : Scheme.{0}} [IsAffine X] [IsAffine Y] [IsAffine Z] |
| 81 | (p : Y ⟶ X) (q : Z ⟶ X) [Smooth p] [Smooth q] |
| 82 | (s : X ⟶ Y) (t : X ⟶ Z) (hs : s ≫ p = 𝟙 X) (ht : t ≫ q = 𝟙 X) |
| 83 | (f : Y ⟶ Z) [Etale f] (hf : f ≫ q = p) (he : s ≫ f = t) : |
| 84 | letI := Divisors.LineBundles.Affine.SchemeSection.BundleCycles.AffineSchemeSection.baseAlgebra p |
| 85 | letI := Divisors.LineBundles.Affine.SchemeSection.BundleCycles.AffineSchemeSection.baseAlgebra q |
| 86 | Function.Bijective (map p q s t hs ht f hf he) := by |
| 87 | let R := Γ(X, ⊤) |
| 88 | let B := Γ(Z, ⊤) |
| 89 | let C := Γ(Y, ⊤) |
| 90 | let : Algebra R B := Divisors.LineBundles.Affine.SchemeSection.BundleCycles.AffineSchemeSection.baseAlgebra q |
| 91 | let : Algebra R C := Divisors.LineBundles.Affine.SchemeSection.BundleCycles.AffineSchemeSection.baseAlgebra p |
| 92 | let : Algebra B C := f.appTop.hom.toAlgebra |
| 93 | let : IsScalarTower R B C := IsScalarTower.of_algebraMap_eq fun r => |
| 94 | (ConcreteCategory.congr_hom ((Scheme.Hom.comp_appTop f q).symm.trans |
| 95 | (congrArg Scheme.Hom.appTop hf)) r).symm |
| 96 | let : Algebra B R := Divisors.LineBundles.Affine.SchemeSection.BundleCycles.AffineSchemeSection.quotientAlgebra t |
| 97 | let : Algebra C R := Divisors.LineBundles.Affine.SchemeSection.BundleCycles.AffineSchemeSection.quotientAlgebra s |
| 98 | let : IsScalarTower R B R := Divisors.LineBundles.Affine.SchemeSection.BundleCycles.AffineSchemeSection.scalarTower q t ht |
| 99 | let : IsScalarTower R C R := Divisors.LineBundles.Affine.SchemeSection.BundleCycles.AffineSchemeSection.scalarTower p s hs |
| 100 | let : IsScalarTower B C R := IsScalarTower.of_algebraMap_eq fun b => |
| 101 | (ConcreteCategory.congr_hom ((Scheme.Hom.comp_appTop s f).symm.trans |
| 102 | (congrArg Scheme.Hom.appTop he)) b).symm |
| 103 | let : Algebra.Smooth R B := Divisors.LineBundles.Affine.SchemeSection.BundleCycles.AffineSchemeSection.sectionRing_smooth q |
| 104 | let : Algebra.Smooth R C := Divisors.LineBundles.Affine.SchemeSection.BundleCycles.AffineSchemeSection.sectionRing_smooth p |
| 105 | let : Algebra.Etale B C := HasRingHomProperty.appTop (P := @Etale) f inferInstance |
| 106 | have hmap : (Section.ConormalEtale.SectionConormal.etaleEquiv R B C).toLinearMap = map p q s t hs ht f hf he := by |
| 107 | apply LinearMap.ext |
| 108 | intro v |
| 109 | obtain ⟨b, rfl⟩ := Ideal.toCotangent_surjective (RingHom.ker t.appTop.hom) v |
| 110 | exact Section.ConormalEtale.SectionConormal.etaleEquiv_toCotangent R B C b |
| 111 | rw [← hmap] |
| 112 | exact (Section.ConormalEtale.SectionConormal.etaleEquiv R B C).bijective |
| 113 | |
| 114 | def restrictionEquiv {X Y Z : Scheme.{0}} [IsAffine X] [IsAffine Y] [IsAffine Z] |
| 115 | (p : Y ⟶ X) (q : Z ⟶ X) [Smooth p] [Smooth q] |
| 116 | (s : X ⟶ Y) (t : X ⟶ Z) (hs : s ≫ p = 𝟙 X) (ht : t ≫ q = 𝟙 X) |
| 117 | (f : Y ⟶ Z) [Etale f] (hf : f ≫ q = p) (he : s ≫ f = t) : |
| 118 | letI := Divisors.LineBundles.Affine.SchemeSection.BundleCycles.AffineSchemeSection.baseAlgebra p |
| 119 | letI := Divisors.LineBundles.Affine.SchemeSection.BundleCycles.AffineSchemeSection.baseAlgebra q |
| 120 | (RingHom.ker t.appTop.hom).Cotangent ≃ₗ[Γ(X, ⊤)] (RingHom.ker s.appTop.hom).Cotangent := by |
| 121 | let := Divisors.LineBundles.Affine.SchemeSection.BundleCycles.AffineSchemeSection.baseAlgebra p |
| 122 | let := Divisors.LineBundles.Affine.SchemeSection.BundleCycles.AffineSchemeSection.baseAlgebra q |
| 123 | exact LinearEquiv.ofBijective (map p q s t hs ht f hf he) |
| 124 | (map_bijective_of_etale p q s t hs ht f hf he) |
| 125 | |
| 126 | end |
| 127 | |
| 128 | end OAI.AlgebraicGeometry.PELModuli.IntegralModel.Affine.ConormalRestriction.AffineSectionConormal |