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.Localized.FreeCoordinates |
| 2 | import OAI.AlgebraicGeometry.HilbertScheme.Presentations.ChartFractionRestriction |
| 3 | |
| 4 | /-! # Chart Compatibility -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.Module.ChartCompatibility.ProjectiveCech |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Compatibility of module charts and their free coordinates under restriction. -/ |
| 11 | |
| 12 | open _root_.MvPolynomial |
| 13 | |
| 14 | universe u v w t |
| 15 | |
| 16 | variable {σ : Type u} [Fintype σ] [DecidableEq σ] |
| 17 | variable (R : Type v) [CommRing R] |
| 18 | variable (M : Type w) [AddCommGroup M] [Module R M] [Module (MvPolynomial σ R) M] |
| 19 | [IsScalarTower R (MvPolynomial σ R) M] |
| 20 | |
| 21 | omit [Fintype σ] in |
| 22 | theorem moduleChartRestriction_refl (s : Finset σ) : |
| 23 | Graded.ModuleRestriction.ProjectiveCech.moduleChartRestriction R M (Finset.Subset.refl s) = LinearMap.id := by |
| 24 | have he : ModuleRestriction.GradedModules.awayModuleRestriction M (LaurentMonomials.ProjectiveCech.inversionMonomial R s) (LaurentMonomials.ProjectiveCech.inversionMonomial R s) |
| 25 | (LaurentMonomials.ProjectiveCech.inversionMonomial R (s \ s)) (LaurentRestriction.ProjectiveCech.inversionMonomial_sdiff R (Finset.Subset.refl s)).symm = |
| 26 | LinearMap.id := by |
| 27 | apply ModuleRestriction.GradedModules.awayModuleRestriction_unique |
| 28 | rfl |
| 29 | exact congrArg (fun f => f.restrictScalars R) he |
| 30 | |
| 31 | omit [Fintype σ] in |
| 32 | theorem moduleChartRestriction_comp {s t z : Finset σ} (hst : s ⊆ t) (htz : t ⊆ z) : |
| 33 | (Graded.ModuleRestriction.ProjectiveCech.moduleChartRestriction R M htz).comp (Graded.ModuleRestriction.ProjectiveCech.moduleChartRestriction R M hst) = |
| 34 | Graded.ModuleRestriction.ProjectiveCech.moduleChartRestriction R M (hst.trans htz) := by |
| 35 | have he : (ModuleRestriction.GradedModules.awayModuleRestriction M (LaurentMonomials.ProjectiveCech.inversionMonomial R t) (LaurentMonomials.ProjectiveCech.inversionMonomial R z) |
| 36 | (LaurentMonomials.ProjectiveCech.inversionMonomial R (z \ t)) (LaurentRestriction.ProjectiveCech.inversionMonomial_sdiff R htz).symm).comp |
| 37 | (ModuleRestriction.GradedModules.awayModuleRestriction M (LaurentMonomials.ProjectiveCech.inversionMonomial R s) (LaurentMonomials.ProjectiveCech.inversionMonomial R t) |
| 38 | (LaurentMonomials.ProjectiveCech.inversionMonomial R (t \ s)) (LaurentRestriction.ProjectiveCech.inversionMonomial_sdiff R hst).symm) = |
| 39 | ModuleRestriction.GradedModules.awayModuleRestriction M (LaurentMonomials.ProjectiveCech.inversionMonomial R s) (LaurentMonomials.ProjectiveCech.inversionMonomial R z) |
| 40 | (LaurentMonomials.ProjectiveCech.inversionMonomial R (z \ s)) (LaurentRestriction.ProjectiveCech.inversionMonomial_sdiff R (hst.trans htz)).symm := by |
| 41 | symm |
| 42 | apply ModuleRestriction.GradedModules.awayModuleRestriction_unique |
| 43 | rw [LinearMap.comp_assoc, ModuleRestriction.GradedModules.awayModuleRestriction_comp_mk, ModuleRestriction.GradedModules.awayModuleRestriction_comp_mk] |
| 44 | exact congrArg (fun f => f.restrictScalars R) he |
| 45 | |
| 46 | omit [Fintype σ] in |
| 47 | theorem moduleChartRestriction_fraction {s t : Finset σ} (h : s ⊆ t) (k : ℕ) (m : M) : |
| 48 | Graded.ModuleRestriction.ProjectiveCech.moduleChartRestriction R M h (Fractions.GradedModules.moduleFractionMap (R := R) (LaurentMonomials.ProjectiveCech.inversionMonomial R s) k m) = |
| 49 | Fractions.GradedModules.moduleFractionMap (R := R) (LaurentMonomials.ProjectiveCech.inversionMonomial R t) k (LaurentMonomials.ProjectiveCech.inversionMonomial R (t \ s) ^ k • m) := by |
| 50 | rw [Fractions.GradedModules.moduleFractionMap_apply, Fractions.GradedModules.moduleFractionMap_apply] |
| 51 | exact ModuleRestriction.GradedModules.awayModuleRestriction_fraction M _ _ _ (LaurentRestriction.ProjectiveCech.inversionMonomial_sdiff R h).symm k m |
| 52 | |
| 53 | variable (ι : Type t) |
| 54 | |
| 55 | theorem freeLocalizedEquiv_restriction {s t : Finset σ} (h : s ⊆ t) |
| 56 | (x : Graded.ModuleRestriction.ProjectiveCech.ModuleChart R (ι →₀ MvPolynomial σ R) s) (i : ι) : |
| 57 | Localized.FreeCoordinates.ProjectiveCech.freeLocalizedEquiv R ι t (Graded.ModuleRestriction.ProjectiveCech.moduleChartRestriction R (ι →₀ MvPolynomial σ R) h x) i = |
| 58 | LaurentRestriction.ProjectiveCech.chartRestriction R h (Localized.FreeCoordinates.ProjectiveCech.freeLocalizedEquiv R ι s x i) := by |
| 59 | obtain ⟨k, p, rfl⟩ := Fractions.GradedModules.moduleFractionMap_surj (R := R) (LaurentMonomials.ProjectiveCech.inversionMonomial R s) x |
| 60 | rw [moduleChartRestriction_fraction, Localized.FreeCoordinates.ProjectiveCech.freeLocalizedEquiv_fraction, |
| 61 | Localized.FreeCoordinates.ProjectiveCech.freeLocalizedEquiv_fraction, ChartFractionRestriction.ProjectiveCech.chartRestriction_fraction] |
| 62 | apply congrArg (LaurentBasis.ProjectiveCech.chartFractionLinearMap R t k) |
| 63 | change LaurentMonomials.ProjectiveCech.inversionMonomial R (t \ s) ^ k * p i = p i * LaurentMonomials.ProjectiveCech.inversionMonomial R (t \ s) ^ k |
| 64 | exact mul_comm _ _ |
| 65 | |
| 66 | end |
| 67 | |
| 68 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.Module.ChartCompatibility.ProjectiveCech |