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.RepresentationTheory.Theta.Geometric.Projective.Map |
| 2 | import Mathlib.AlgebraicGeometry.AffineSpace |
| 3 | |
| 4 | /-! # Chart Schemes -/ |
| 5 | |
| 6 | namespace OAI.RepresentationTheory.Theta.Geometric.Projective.ChartSchemes.RelativeProjective |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! The standard relative projective charts are the actual polynomial |
| 11 | spectra and affine spaces, including the scalar structure morphisms. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 14 | |
| 15 | variable (R : Type) [CommRing R] |
| 16 | |
| 17 | /-- The coefficient-field structure map on the polynomial affine chart. -/ |
| 18 | abbrev projectiveChartPolynomialToBase (n : ℕ) (i : Fin (n + 1)) : |
| 19 | Spec (.of (Charts.RelativeProjective.projectiveChartPolynomial R n i)) ⟶ (Spec (.of R)) := |
| 20 | Spec.map (CommRingCat.ofHom (MvPolynomial.C : R →+* Charts.RelativeProjective.projectiveChartPolynomial R n i)) |
| 21 | |
| 22 | @[simp] |
| 23 | theorem projectiveChartRingEquiv_coe (n : ℕ) (i : Fin (n + 1)) : |
| 24 | (Charts.RelativeProjective.projectiveChartRingEquiv R n i : Charts.RelativeProjective.projectiveChartRing R n i →+* Charts.RelativeProjective.projectiveChartPolynomial R n i) = |
| 25 | Charts.RelativeProjective.projectiveChartToPolynomial R n i := by |
| 26 | ext x |
| 27 | rfl |
| 28 | |
| 29 | /-- The genuine coordinate basic open is the affine spectrum of its polynomial |
| 30 | coordinate ring, by the proved homogeneous-localization ring equivalence. -/ |
| 31 | def projectiveCoordinateIsoSpec (n : ℕ) (i : Fin (n + 1)) : |
| 32 | (Map.RelativeProjective.projectiveCoordinateOpen R n i).toScheme ≅ Spec (.of (Charts.RelativeProjective.projectiveChartPolynomial R n i)) := |
| 33 | Proj.basicOpenIsoSpec (Charts.RelativeProjective.projectiveGrading R n) (MvPolynomial.X i) |
| 34 | (Charts.RelativeProjective.projectiveVariable_homogeneous R n i) (by decide : 0 < 1) ≪≫ |
| 35 | Scheme.Spec.mapIso (Charts.RelativeProjective.projectiveChartRingEquiv R n i).symm.toCommRingCatIso.op |
| 36 | |
| 37 | /-- On the inverse chart map, the scheme morphism is induced by the explicit |
| 38 | ring homomorphism sending homogeneous fractions to dehomogenized polynomials. -/ |
| 39 | @[reassoc] |
| 40 | theorem projectiveCoordinateIsoSpec_inv_ι (n : ℕ) (i : Fin (n + 1)) : |
| 41 | (projectiveCoordinateIsoSpec R n i).inv ≫ (Map.RelativeProjective.projectiveCoordinateOpen R n i).ι = |
| 42 | Spec.map (CommRingCat.ofHom (Charts.RelativeProjective.projectiveChartToPolynomial R n i)) ≫ |
| 43 | Proj.awayι (Charts.RelativeProjective.projectiveGrading R n) (MvPolynomial.X i) |
| 44 | (Charts.RelativeProjective.projectiveVariable_homogeneous R n i) (by decide : 0 < 1) := by |
| 45 | simp [projectiveCoordinateIsoSpec, Proj.awayι, Category.assoc] |
| 46 | |
| 47 | /-- The inverse chart identification is a morphism over the complex base. -/ |
| 48 | @[reassoc] |
| 49 | theorem projectiveCoordinateIsoSpec_inv_over (n : ℕ) (i : Fin (n + 1)) : |
| 50 | (projectiveCoordinateIsoSpec R n i).inv ≫ (Map.RelativeProjective.projectiveCoordinateOpen R n i).ι ≫ |
| 51 | Map.RelativeProjective.projectiveSpaceToBase R n = projectiveChartPolynomialToBase R n i := by |
| 52 | rw [projectiveCoordinateIsoSpec_inv_ι_assoc, Map.RelativeProjective.projectiveSpaceToBase_chart] |
| 53 | rw [← Spec.map_comp] |
| 54 | congr 1 |
| 55 | apply CommRingCat.hom_ext |
| 56 | apply RingHom.ext |
| 57 | intro c |
| 58 | exact Charts.RelativeProjective.projectiveChartToPolynomial_constants R n i c |
| 59 | |
| 60 | /-- The chart isomorphism respects the actual structure morphisms to `Spec R`. -/ |
| 61 | @[reassoc] |
| 62 | theorem projectiveCoordinateIsoSpec_over (n : ℕ) (i : Fin (n + 1)) : |
| 63 | (projectiveCoordinateIsoSpec R n i).hom ≫ projectiveChartPolynomialToBase R n i = |
| 64 | (Map.RelativeProjective.projectiveCoordinateOpen R n i).ι ≫ Map.RelativeProjective.projectiveSpaceToBase R n := by |
| 65 | apply (cancel_epi (projectiveCoordinateIsoSpec R n i).inv).mp |
| 66 | simpa only [← Category.assoc, Iso.inv_hom_id, Category.id_comp] using |
| 67 | (projectiveCoordinateIsoSpec_inv_over R n i).symm |
| 68 | |
| 69 | /-- The same chart comparison as an isomorphism in the category over `Spec R`. -/ |
| 70 | def projectiveCoordinateOverIso (n : ℕ) (i : Fin (n + 1)) : |
| 71 | Over.mk ((Map.RelativeProjective.projectiveCoordinateOpen R n i).ι ≫ Map.RelativeProjective.projectiveSpaceToBase R n) ≅ |
| 72 | Over.mk (projectiveChartPolynomialToBase R n i) := |
| 73 | Over.isoMk (projectiveCoordinateIsoSpec R n i) (projectiveCoordinateIsoSpec_over R n i) |
| 74 | |
| 75 | /-- The standard polynomial affine chart map into projective space. -/ |
| 76 | def projectiveAffineChartMap (n : ℕ) (i : Fin (n + 1)) : |
| 77 | Spec (.of (Charts.RelativeProjective.projectiveChartPolynomial R n i)) ⟶ Map.RelativeProjective.projectiveSpace R n := |
| 78 | (projectiveCoordinateIsoSpec R n i).inv ≫ (Map.RelativeProjective.projectiveCoordinateOpen R n i).ι |
| 79 | |
| 80 | instance (n : ℕ) (i : Fin (n + 1)) : IsOpenImmersion (projectiveAffineChartMap R n i) := by |
| 81 | dsimp [projectiveAffineChartMap] |
| 82 | infer_instance |
| 83 | |
| 84 | @[reassoc] |
| 85 | theorem projectiveAffineChartMap_over (n : ℕ) (i : Fin (n + 1)) : |
| 86 | projectiveAffineChartMap R n i ≫ Map.RelativeProjective.projectiveSpaceToBase R n = |
| 87 | projectiveChartPolynomialToBase R n i := by |
| 88 | exact projectiveCoordinateIsoSpec_inv_over R n i |
| 89 | |
| 90 | /-- The omitted-coordinate index has exactly `n` elements. -/ |
| 91 | theorem projectiveChartCoordinate_card (n : ℕ) (i : Fin (n + 1)) : |
| 92 | Fintype.card {j : Fin (n + 1) // j ≠ i} = n := by |
| 93 | rw [Fintype.card_subtype_compl (fun j : Fin (n + 1) => j = i)] |
| 94 | simp |
| 95 | |
| 96 | /-- Each actual projective coordinate open is mathlib's affine `n`-space, |
| 97 | indexed by the `n` homogeneous coordinates other than the normalized one. -/ |
| 98 | def projectiveCoordinateIsoAffineSpace (n : ℕ) (i : Fin (n + 1)) : |
| 99 | (Map.RelativeProjective.projectiveCoordinateOpen R n i).toScheme ≅ |
| 100 | AffineSpace {j : Fin (n + 1) // j ≠ i} (Spec (.of R)) := |
| 101 | projectiveCoordinateIsoSpec R n i ≪≫ |
| 102 | (AffineSpace.SpecIso {j : Fin (n + 1) // j ≠ i} (.of R)).symm |
| 103 | |
| 104 | /-- The identification with native affine space also respects the complex base. -/ |
| 105 | @[reassoc] |
| 106 | theorem projectiveCoordinateIsoAffineSpace_over (n : ℕ) (i : Fin (n + 1)) : |
| 107 | (projectiveCoordinateIsoAffineSpace R n i).hom ≫ |
| 108 | (AffineSpace {j : Fin (n + 1) // j ≠ i} (Spec (.of R)) ↘ (Spec (.of R))) = |
| 109 | (Map.RelativeProjective.projectiveCoordinateOpen R n i).ι ≫ Map.RelativeProjective.projectiveSpaceToBase R n := by |
| 110 | change ((projectiveCoordinateIsoSpec R n i).hom ≫ |
| 111 | (AffineSpace.SpecIso {j : Fin (n + 1) // j ≠ i} (.of R)).inv) ≫ _ = _ |
| 112 | rw [Category.assoc, AffineSpace.SpecIso_inv_over] |
| 113 | exact projectiveCoordinateIsoSpec_over R n i |
| 114 | |
| 115 | end |
| 116 | |
| 117 | end OAI.RepresentationTheory.Theta.Geometric.Projective.ChartSchemes.RelativeProjective |