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.HilbertScheme.Presentations.Coordinate.ChartBaseChange |
| 2 | import OAI.AlgebraicGeometry.HilbertScheme.Presentations.ModuleCech.Terms |
| 3 | import Mathlib.LinearAlgebra.TensorProduct.Pi |
| 4 | |
| 5 | /-! # Cech Base Change -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.Coordinate.CechBaseChange.GradedHilbert |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Base change of actual finite homogeneous Čech terms of a coordinate quotient. -/ |
| 12 | |
| 13 | open _root_.MvPolynomial TensorProduct |
| 14 | |
| 15 | open OAI.AlgebraicGeometry.HilbertScheme.Presentations.ModuleCech.Terms.ProjectiveCech |
| 16 | |
| 17 | universe u v |
| 18 | |
| 19 | variable {R : Type u} [CommRing R] {S : Type v} [CommRing S] [Algebra R S] {n : ℕ} |
| 20 | |
| 21 | attribute [local instance] MvPolynomial.algebraMvPolynomial |
| 22 | |
| 23 | variable (I : HomogeneousIdeal (Hilbert.Polynomial.GradedHilbert.grading R n)) |
| 24 | |
| 25 | def coordinateModuleCechTermBaseChangeEquiv (d : ℤ) (q : ℕ) : |
| 26 | S ⊗[R] ModuleCech.Terms.ProjectiveCech.moduleCechTerm (σ := Fin (n + 1)) R (Hilbert.Polynomial.GradedHilbert.CoordinateRing R n ⧸ I.toIdeal) (IntegerQuotient.GradedHilbert.integerQuotientGrading I) d q ≃ₗ[R] |
| 27 | ModuleCech.Terms.ProjectiveCech.moduleCechTerm (σ := Fin (n + 1)) S (Hilbert.Polynomial.GradedHilbert.CoordinateRing S n ⧸ (Graded.BaseChange.GradedHilbert.extendedHomogeneousIdeal (S := S) I).toIdeal) |
| 28 | (IntegerQuotient.GradedHilbert.integerQuotientGrading (Graded.BaseChange.GradedHilbert.extendedHomogeneousIdeal (S := S) I)) d q := |
| 29 | ((ModuleCech.Terms.ProjectiveCech.moduleCechTermEquiv (σ := Fin (n + 1)) R (Hilbert.Polynomial.GradedHilbert.CoordinateRing R n ⧸ I.toIdeal) (IntegerQuotient.GradedHilbert.integerQuotientGrading I) d q).lTensor S).trans |
| 30 | ((TensorProduct.piRight R R S (fun s : {s : Finset (Fin (n + 1)) // s.card = q} => |
| 31 | Graded.ModuleRestriction.ProjectiveCech.moduleChartDegree R (Hilbert.Polynomial.GradedHilbert.CoordinateRing R n ⧸ I.toIdeal) (IntegerQuotient.GradedHilbert.integerQuotientGrading I) s.val d)).trans |
| 32 | ((LinearEquiv.piCongrRight (fun s : {s : Finset (Fin (n + 1)) // s.card = q} => |
| 33 | ChartBaseChange.GradedHilbert.coordinateModuleChartDegreeBaseChangeEquiv (S := S) I s.val d)).trans |
| 34 | ((ModuleCech.Terms.ProjectiveCech.moduleCechTermEquiv (σ := Fin (n + 1)) S (Hilbert.Polynomial.GradedHilbert.CoordinateRing S n ⧸ (Graded.BaseChange.GradedHilbert.extendedHomogeneousIdeal (S := S) I).toIdeal) |
| 35 | (IntegerQuotient.GradedHilbert.integerQuotientGrading (Graded.BaseChange.GradedHilbert.extendedHomogeneousIdeal (S := S) I)) d q).symm.restrictScalars R))) |
| 36 | |
| 37 | theorem coordinateModuleCechTermBaseChangeEquiv_tmul (d : ℤ) (q : ℕ) (r : S) |
| 38 | (f : ModuleCech.Terms.ProjectiveCech.moduleCechTerm (σ := Fin (n + 1)) R (Hilbert.Polynomial.GradedHilbert.CoordinateRing R n ⧸ I.toIdeal) (IntegerQuotient.GradedHilbert.integerQuotientGrading I) d q) |
| 39 | (s : Finset (Fin (n + 1))) : |
| 40 | (coordinateModuleCechTermBaseChangeEquiv (S := S) I d q (r ⊗ₜ[R] f)).val s = |
| 41 | ChartBaseChange.GradedHilbert.coordinateModuleChartBaseChangeEquiv (S := S) I s (r ⊗ₜ[R] f.val s) := by |
| 42 | classical |
| 43 | by_cases hs : s.card = q |
| 44 | · change (if h : s.card = q then |
| 45 | (ChartBaseChange.GradedHilbert.coordinateModuleChartDegreeBaseChangeEquiv (S := S) I s d |
| 46 | (r ⊗ₜ[R] (⟨f.val s, f.property.1 s⟩ : Graded.ModuleRestriction.ProjectiveCech.moduleChartDegree R |
| 47 | (Hilbert.Polynomial.GradedHilbert.CoordinateRing R n ⧸ I.toIdeal) (IntegerQuotient.GradedHilbert.integerQuotientGrading I) s d))).val else 0) = _ |
| 48 | rw [dite_eq_left hs, ChartBaseChange.GradedHilbert.coordinateModuleChartDegreeBaseChangeEquiv_val, LinearMap.lTensor_tmul] |
| 49 | rfl |
| 50 | · rw [(coordinateModuleCechTermBaseChangeEquiv (S := S) I d q (r ⊗ₜ[R] f)).property.2 s hs, |
| 51 | f.property.2 s hs, TensorProduct.tmul_zero, LinearEquiv.map_zero] |
| 52 | |
| 53 | theorem coordinateModuleCechTermBaseChangeEquiv_differential (d : ℤ) (q : ℕ) |
| 54 | (x : S ⊗[R] ModuleCech.Terms.ProjectiveCech.moduleCechTerm (σ := Fin (n + 1)) R (Hilbert.Polynomial.GradedHilbert.CoordinateRing R n ⧸ I.toIdeal) |
| 55 | (IntegerQuotient.GradedHilbert.integerQuotientGrading I) d q) : |
| 56 | coordinateModuleCechTermBaseChangeEquiv (S := S) I d (q + 1) |
| 57 | ((ModuleCech.Terms.ProjectiveCech.moduleCechTermDifferential (σ := Fin (n + 1)) R (Hilbert.Polynomial.GradedHilbert.CoordinateRing R n ⧸ I.toIdeal) |
| 58 | (IntegerQuotient.GradedHilbert.integerQuotientGrading I) d q).lTensor S x) = |
| 59 | ModuleCech.Terms.ProjectiveCech.moduleCechTermDifferential (σ := Fin (n + 1)) S |
| 60 | (Hilbert.Polynomial.GradedHilbert.CoordinateRing S n ⧸ (Graded.BaseChange.GradedHilbert.extendedHomogeneousIdeal (S := S) I).toIdeal) |
| 61 | (IntegerQuotient.GradedHilbert.integerQuotientGrading (Graded.BaseChange.GradedHilbert.extendedHomogeneousIdeal (S := S) I)) d q |
| 62 | (coordinateModuleCechTermBaseChangeEquiv (S := S) I d q x) := by |
| 63 | induction x using TensorProduct.inductionOn with |
| 64 | | tmul r f => |
| 65 | apply Subtype.ext |
| 66 | funext s |
| 67 | rw [LinearMap.lTensor_tmul, coordinateModuleCechTermBaseChangeEquiv_tmul] |
| 68 | change ChartBaseChange.GradedHilbert.coordinateModuleChartBaseChangeEquiv (S := S) I s |
| 69 | (r ⊗ₜ[R] (∑ i ∈ s, Cech.Signs.ProjectiveCech.alternatingSign R s i • |
| 70 | Graded.ModuleRestriction.ProjectiveCech.moduleChartRestriction R (Hilbert.Polynomial.GradedHilbert.CoordinateRing R n ⧸ I.toIdeal) (Finset.erase_subset i s) (f.val (s.erase i)))) = |
| 71 | ∑ i ∈ s, Cech.Signs.ProjectiveCech.alternatingSign S s i • |
| 72 | Graded.ModuleRestriction.ProjectiveCech.moduleChartRestriction S (Hilbert.Polynomial.GradedHilbert.CoordinateRing S n ⧸ (Graded.BaseChange.GradedHilbert.extendedHomogeneousIdeal (S := S) I).toIdeal) |
| 73 | (Finset.erase_subset i s) ((coordinateModuleCechTermBaseChangeEquiv (S := S) I d q (r ⊗ₜ[R] f)).val (s.erase i)) |
| 74 | rw [TensorProduct.tmul_sum, map_sum] |
| 75 | apply Finset.sum_congr rfl |
| 76 | intro i _ |
| 77 | rw [coordinateModuleCechTermBaseChangeEquiv_tmul, TensorProduct.tmul_smul, map_smul, |
| 78 | ← LinearMap.lTensor_tmul, ChartBaseChange.GradedHilbert.coordinateModuleChartBaseChangeEquiv_restriction, |
| 79 | ← algebraMap_smul S, CoefficientModuleCharts.ProjectiveCech.alternatingSign_algebraMap] |
| 80 | | add x y hx hy => simp only [LinearEquiv.map_add, LinearMap.map_add, hx, hy] |
| 81 | |
| 82 | end |
| 83 | |
| 84 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.Coordinate.CechBaseChange.GradedHilbert |