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.Cech.VariableEmbedding |
| 2 | import OAI.AlgebraicGeometry.HilbertScheme.Presentations.LocalizationDenominatorImage |
| 3 | import OAI.AlgebraicGeometry.HilbertScheme.Presentations.ZeroScalarLocalization |
| 4 | import OAI.AlgebraicGeometry.HilbertScheme.Presentations.Graded.ModuleRestriction |
| 5 | import Mathlib.Data.Finset.Preimage |
| 6 | |
| 7 | /-! # Embedded Module Charts -/ |
| 8 | |
| 9 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.EmbeddedModuleCharts.ProjectiveCech |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | /-! Actual projective module charts after deleting complementary variables. -/ |
| 14 | |
| 15 | open _root_.MvPolynomial |
| 16 | |
| 17 | universe u v w t |
| 18 | |
| 19 | variable {σ : Type v} {τ : Type w} |
| 20 | |
| 21 | theorem finset_not_range_map (e : σ ↪ τ) (s : Finset τ) |
| 22 | (hs : s ∉ Set.range (Finset.map e)) : ∃ j ∈ s, j ∉ Set.range e := by |
| 23 | classical |
| 24 | by_contra! h |
| 25 | apply hs |
| 26 | refine ⟨s.preimage e e.injective.injOn, ?_⟩ |
| 27 | rw [Finset.map_eq_image, Finset.image_preimage] |
| 28 | exact Finset.filter_eq_self.mpr h |
| 29 | |
| 30 | variable (R : Type u) [CommRing R] (e : σ ↪ τ) |
| 31 | variable [Algebra (MvPolynomial τ R) (MvPolynomial σ R)] |
| 32 | [IsScalarTower R (MvPolynomial τ R) (MvPolynomial σ R)] |
| 33 | variable (he : algebraMap (MvPolynomial τ R) (MvPolynomial σ R) = (MvPolynomial.killCompl e.injective).toRingHom) |
| 34 | |
| 35 | include he in |
| 36 | omit [IsScalarTower R (MvPolynomial τ R) (MvPolynomial σ R)] in |
| 37 | theorem embeddedChartDenominator (s : Finset σ) : |
| 38 | algebraMap (MvPolynomial τ R) (MvPolynomial σ R) (LaurentMonomials.ProjectiveCech.inversionMonomial R (s.map e)) = |
| 39 | LaurentMonomials.ProjectiveCech.inversionMonomial R s := by |
| 40 | rw [he] |
| 41 | exact Cech.VariableEmbedding.ProjectiveCech.killVariables_inversionMonomial_map R e s |
| 42 | |
| 43 | variable (M : Type t) [AddCommGroup M] [Module R M] |
| 44 | [Module (MvPolynomial τ R) M] [Module (MvPolynomial σ R) M] |
| 45 | [IsScalarTower R (MvPolynomial τ R) M] [IsScalarTower R (MvPolynomial σ R) M] |
| 46 | [IsScalarTower (MvPolynomial τ R) (MvPolynomial σ R) M] |
| 47 | |
| 48 | def embeddedModuleChartEquiv (s : Finset σ) : |
| 49 | Graded.ModuleRestriction.ProjectiveCech.ModuleChart (σ := τ) R M (s.map e) ≃ₗ[R] Graded.ModuleRestriction.ProjectiveCech.ModuleChart (σ := σ) R M s := |
| 50 | LocalizationDenominatorImage.GradedModules.awayModuleScalarEquivOfEq (R := R) M (LaurentMonomials.ProjectiveCech.inversionMonomial R (s.map e)) (LaurentMonomials.ProjectiveCech.inversionMonomial R s) |
| 51 | (embeddedChartDenominator R e he s) |
| 52 | |
| 53 | theorem embeddedModuleChartEquiv_fraction (s : Finset σ) (k : ℕ) (m : M) : |
| 54 | embeddedModuleChartEquiv R e he M s (Presentations.Module.Fractions.GradedModules.moduleFractionMap (R := R) (LaurentMonomials.ProjectiveCech.inversionMonomial R (s.map e)) k m) = |
| 55 | Presentations.Module.Fractions.GradedModules.moduleFractionMap (R := R) (LaurentMonomials.ProjectiveCech.inversionMonomial R s) k m := |
| 56 | LocalizationDenominatorImage.GradedModules.awayModuleScalarEquivOfEq_fraction M _ _ _ k m |
| 57 | |
| 58 | theorem embeddedModuleChartEquiv_degree (ℳ : ℤ → Submodule R M) (s : Finset σ) (d : ℤ) : |
| 59 | (Graded.ModuleRestriction.ProjectiveCech.moduleChartDegree R M ℳ (s.map e) d).map (embeddedModuleChartEquiv R e he M s).toLinearMap = |
| 60 | Graded.ModuleRestriction.ProjectiveCech.moduleChartDegree R M ℳ s d := by |
| 61 | change (Localized.DegreePieces.GradedModules.localizedDegreePiece ℳ _ ((s.map e).card : ℤ) d).map _ = Localized.DegreePieces.GradedModules.localizedDegreePiece ℳ _ (s.card : ℤ) d |
| 62 | rw [Finset.card_map] |
| 63 | exact LocalizationDenominatorImage.GradedModules.awayModuleScalarEquivOfEq_degree M ℳ _ _ _ (s.card : ℤ) d |
| 64 | |
| 65 | def embeddedModuleChartDegreeEquiv (ℳ : ℤ → Submodule R M) (s : Finset σ) (d : ℤ) : |
| 66 | Graded.ModuleRestriction.ProjectiveCech.moduleChartDegree R M ℳ (s.map e) d ≃ₗ[R] Graded.ModuleRestriction.ProjectiveCech.moduleChartDegree R M ℳ s d := |
| 67 | (embeddedModuleChartEquiv R e he M s).ofSubmodules _ _ (embeddedModuleChartEquiv_degree R e he M ℳ s d) |
| 68 | |
| 69 | include he in |
| 70 | omit [IsScalarTower R (MvPolynomial τ R) (MvPolynomial σ R)] [Module R M] |
| 71 | [IsScalarTower R (MvPolynomial τ R) M] [IsScalarTower R (MvPolynomial σ R) M] in |
| 72 | theorem moduleChart_subsingleton_outside_embedding (s : Finset τ) (hs : s ∉ Set.range (Finset.map e)) : |
| 73 | Subsingleton (Graded.ModuleRestriction.ProjectiveCech.ModuleChart (σ := τ) R M s) := by |
| 74 | obtain ⟨j, hj, hje⟩ := finset_not_range_map e s hs |
| 75 | apply ZeroScalarLocalization.GradedModules.awayModule_subsingleton_of_algebraMap_zero (B := MvPolynomial σ R) M (LaurentMonomials.ProjectiveCech.inversionMonomial R s) |
| 76 | rw [he] |
| 77 | exact Cech.VariableEmbedding.ProjectiveCech.killVariables_inversionMonomial_zero R e s j hj hje |
| 78 | |
| 79 | end |
| 80 | |
| 81 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.EmbeddedModuleCharts.ProjectiveCech |