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.ChartSchemes |
| 2 | |
| 3 | /-! # Naturality -/ |
| 4 | |
| 5 | namespace OAI.RepresentationTheory.Theta.Geometric.Projective.Naturality.RelativeProjective |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 10 | |
| 11 | variable {R S : Type} [CommRing R] [CommRing S] |
| 12 | |
| 13 | def chartCoefficientMap (f : R →+* S) (n : ℕ) (i : Fin (n + 1)) : |
| 14 | Charts.RelativeProjective.projectiveChartRing R n i →+* Charts.RelativeProjective.projectiveChartRing S n i := |
| 15 | HomogeneousLocalization.map (Map.RelativeProjective.coordinateGradedMap f n) (by |
| 16 | rintro _ ⟨k, rfl⟩ |
| 17 | exact ⟨k, by simp⟩) |
| 18 | |
| 19 | theorem chartCoefficientMap_mk (f : R →+* S) (n : ℕ) (i : Fin (n + 1)) |
| 20 | (k : ℕ) (p : Charts.RelativeProjective.homogeneousCoordinateRing R n) (hp : p ∈ Charts.RelativeProjective.projectiveGrading R n (k • 1)) : |
| 21 | chartCoefficientMap f n i |
| 22 | (HomogeneousLocalization.Away.mk (Charts.RelativeProjective.projectiveGrading R n) |
| 23 | (Charts.RelativeProjective.projectiveVariable_homogeneous R n i) k p hp) = |
| 24 | HomogeneousLocalization.Away.mk (Charts.RelativeProjective.projectiveGrading S n) |
| 25 | (Charts.RelativeProjective.projectiveVariable_homogeneous S n i) k (MvPolynomial.map f p) (hp.map f) := by |
| 26 | simp [chartCoefficientMap, HomogeneousLocalization.Away.mk, HomogeneousLocalization.map_mk] |
| 27 | rfl |
| 28 | |
| 29 | theorem chartCoefficientMap_dehomogenize (f : R →+* S) (n : ℕ) (i : Fin (n + 1)) : |
| 30 | (Charts.RelativeProjective.projectiveChartToPolynomial S n i).comp (chartCoefficientMap f n i) = |
| 31 | (MvPolynomial.map f).comp (Charts.RelativeProjective.projectiveChartToPolynomial R n i) := by |
| 32 | apply RingHom.ext |
| 33 | intro x |
| 34 | obtain ⟨k, p, hp, rfl⟩ := HomogeneousLocalization.Away.mk_surjective |
| 35 | (Charts.RelativeProjective.projectiveGrading R n) (Charts.RelativeProjective.projectiveVariable_homogeneous R n i) x |
| 36 | simp only [RingHom.comp_apply, chartCoefficientMap_mk, Charts.RelativeProjective.projectiveChartToPolynomial_mk] |
| 37 | rw [Charts.RelativeProjective.projectiveChartToPolynomial_mk S n i k (MvPolynomial.map f p) (hp.map f)] |
| 38 | have h : (AlgebraicGeometry.Foundations.Scheme.DehomogenizationC.Algebraic.Dehomogenization.dehomogenize i).comp |
| 39 | (MvPolynomial.map f) = (MvPolynomial.map f).comp |
| 40 | (AlgebraicGeometry.Foundations.Scheme.DehomogenizationC.Algebraic.Dehomogenization.dehomogenize i) := by |
| 41 | apply MvPolynomial.ringHom_ext |
| 42 | · intro c |
| 43 | simp |
| 44 | · intro j |
| 45 | by_cases hj : j = i <;> simp [hj] |
| 46 | exact RingHom.congr_fun h p |
| 47 | |
| 48 | theorem awayChart_map_of_eq (f : R →+* S) (n : ℕ) |
| 49 | (u : Charts.RelativeProjective.homogeneousCoordinateRing R n) (v : Charts.RelativeProjective.homogeneousCoordinateRing S n) |
| 50 | (hu : u ∈ Charts.RelativeProjective.projectiveGrading R n 1) (hv : v ∈ Charts.RelativeProjective.projectiveGrading S n 1) |
| 51 | (he : Map.RelativeProjective.coordinateGradedMap f n u = v) : |
| 52 | Proj.awayι (Charts.RelativeProjective.projectiveGrading S n) v hv Nat.zero_lt_one ≫ Map.RelativeProjective.coefficientMap f n = |
| 53 | Spec.map (CommRingCat.ofHom (HomogeneousLocalization.map (Map.RelativeProjective.coordinateGradedMap f n) |
| 54 | (P := Submonoid.powers u) (Q := Submonoid.powers v) (by |
| 55 | rintro _ ⟨k, rfl⟩ |
| 56 | exact ⟨k, by simp [he]⟩))) ≫ |
| 57 | Proj.awayι (Charts.RelativeProjective.projectiveGrading R n) u hu Nat.zero_lt_one := by |
| 58 | subst v |
| 59 | exact Proj.awayι_comp_map (Map.RelativeProjective.coordinateGradedMap f n) (Map.RelativeProjective.irrelevant_le_coordinateMap f n) |
| 60 | Nat.zero_lt_one u hu |
| 61 | |
| 62 | theorem awayChart_coefficientMap (f : R →+* S) (n : ℕ) (i : Fin (n + 1)) : |
| 63 | Proj.awayι (Charts.RelativeProjective.projectiveGrading S n) (MvPolynomial.X i) |
| 64 | (Charts.RelativeProjective.projectiveVariable_homogeneous S n i) Nat.zero_lt_one ≫ Map.RelativeProjective.coefficientMap f n = |
| 65 | Spec.map (CommRingCat.ofHom (chartCoefficientMap f n i)) ≫ |
| 66 | Proj.awayι (Charts.RelativeProjective.projectiveGrading R n) (MvPolynomial.X i) |
| 67 | (Charts.RelativeProjective.projectiveVariable_homogeneous R n i) Nat.zero_lt_one := by |
| 68 | exact awayChart_map_of_eq f n (MvPolynomial.X i) (MvPolynomial.X i) |
| 69 | (Charts.RelativeProjective.projectiveVariable_homogeneous R n i) (Charts.RelativeProjective.projectiveVariable_homogeneous S n i) |
| 70 | (Map.RelativeProjective.coordinateGradedMap_X f n i) |
| 71 | |
| 72 | theorem projectiveAffineChartMap_coefficientMap (f : R →+* S) (n : ℕ) (i : Fin (n + 1)) : |
| 73 | ChartSchemes.RelativeProjective.projectiveAffineChartMap S n i ≫ Map.RelativeProjective.coefficientMap f n = |
| 74 | Spec.map (CommRingCat.ofHom (MvPolynomial.map f : |
| 75 | Charts.RelativeProjective.projectiveChartPolynomial R n i →+* Charts.RelativeProjective.projectiveChartPolynomial S n i)) ≫ |
| 76 | ChartSchemes.RelativeProjective.projectiveAffineChartMap R n i := by |
| 77 | unfold ChartSchemes.RelativeProjective.projectiveAffineChartMap |
| 78 | rw [ChartSchemes.RelativeProjective.projectiveCoordinateIsoSpec_inv_ι, ChartSchemes.RelativeProjective.projectiveCoordinateIsoSpec_inv_ι, |
| 79 | Category.assoc, awayChart_coefficientMap, ← Category.assoc, ← Spec.map_comp] |
| 80 | rw [← Spec.map_comp_assoc] |
| 81 | congr 2 |
| 82 | exact CommRingCat.hom_ext (chartCoefficientMap_dehomogenize f n i) |
| 83 | |
| 84 | end |
| 85 | |
| 86 | end OAI.RepresentationTheory.Theta.Geometric.Projective.Naturality.RelativeProjective |