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