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.DegreePieces |
| 2 | import Mathlib.LinearAlgebra.Span.Basic |
| 3 | |
| 4 | /-! # Localization Scalars -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.Module.LocalizationScalars.GradedModules |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Module localization and its homogeneous degree pieces are compatible with restriction of the coefficient algebra. -/ |
| 11 | |
| 12 | universe u v w t |
| 13 | |
| 14 | variable {R : Type u} [CommRing R] {A : Type v} [CommRing A] [Algebra R A] |
| 15 | variable {B : Type w} [CommRing B] [Algebra A B] [Algebra R B] [IsScalarTower R A B] |
| 16 | variable (M : Type t) [AddCommGroup M] [Module R M] [Module A M] [Module B M] |
| 17 | [IsScalarTower R A M] [IsScalarTower R B M] [IsScalarTower A B M] |
| 18 | |
| 19 | def awayModuleScalarEquiv (a : A) : |
| 20 | Fractions.GradedModules.AwayModule a M ≃ₗ[R] Fractions.GradedModules.AwayModule (algebraMap A B a) M := by |
| 21 | let f := (LocalizedModule.mkLinearMap (Submonoid.powers (algebraMap A B a)) M).restrictScalars A |
| 22 | let : IsLocalizedModule (Submonoid.powers a) f := |
| 23 | IsLocalizedModule.restrictScalars_powers a (LocalizedModule.mkLinearMap _ M) |
| 24 | exact (IsLocalizedModule.iso (Submonoid.powers a) f).restrictScalars R |
| 25 | |
| 26 | theorem awayModuleScalarEquiv_fraction (a : A) (k : ℕ) (m : M) : |
| 27 | awayModuleScalarEquiv (R := R) (B := B) M a (Fractions.GradedModules.moduleFractionMap (R := R) a k m) = |
| 28 | Fractions.GradedModules.moduleFractionMap (R := R) (algebraMap A B a) k m := by |
| 29 | let f := (LocalizedModule.mkLinearMap (Submonoid.powers (algebraMap A B a)) M).restrictScalars A |
| 30 | let : IsLocalizedModule (Submonoid.powers a) f := |
| 31 | IsLocalizedModule.restrictScalars_powers a (LocalizedModule.mkLinearMap _ M) |
| 32 | rw [Fractions.GradedModules.moduleFractionMap_apply, Fractions.GradedModules.moduleFractionMap_apply] |
| 33 | change IsLocalizedModule.mk' f m (Fractions.GradedModules.moduleDenominator a k) = _ |
| 34 | rw [← IsLocalizedModule.smul_inj f (Fractions.GradedModules.moduleDenominator a k), IsLocalizedModule.mk'_cancel'] |
| 35 | change LocalizedModule.mk m 1 = a ^ k • LocalizedModule.mk m (Fractions.GradedModules.moduleDenominator (algebraMap A B a) k) |
| 36 | rw [← algebraMap_smul B, map_pow, LocalizedModule.smul'_mk] |
| 37 | exact (LocalizedModule.mk_cancel (Fractions.GradedModules.moduleDenominator (algebraMap A B a) k) m).symm |
| 38 | |
| 39 | theorem awayModuleScalarEquiv_degree (ℳ : ℤ → Submodule R M) (a : A) (e d : ℤ) : |
| 40 | (Localized.DegreePieces.GradedModules.localizedDegreePiece ℳ a e d).map (awayModuleScalarEquiv (R := R) (B := B) M a).toLinearMap = |
| 41 | Localized.DegreePieces.GradedModules.localizedDegreePiece ℳ (algebraMap A B a) e d := by |
| 42 | rw [Localized.DegreePieces.GradedModules.localizedDegreePiece, Localized.DegreePieces.GradedModules.localizedDegreePiece, Submodule.map_iSup] |
| 43 | apply iSup_congr |
| 44 | intro k |
| 45 | rw [Localized.DegreePieces.GradedModules.localizedDegreeStage, Localized.DegreePieces.GradedModules.localizedDegreeStage, ← Submodule.map_comp] |
| 46 | congr 1 |
| 47 | apply LinearMap.ext |
| 48 | intro m |
| 49 | exact awayModuleScalarEquiv_fraction M a k m |
| 50 | |
| 51 | def awayModuleScalarDegreeEquiv (ℳ : ℤ → Submodule R M) (a : A) (e d : ℤ) : |
| 52 | Localized.DegreePieces.GradedModules.localizedDegreePiece ℳ a e d ≃ₗ[R] Localized.DegreePieces.GradedModules.localizedDegreePiece ℳ (algebraMap A B a) e d := |
| 53 | (awayModuleScalarEquiv (R := R) (B := B) M a).ofSubmodules _ _ (awayModuleScalarEquiv_degree M ℳ a e d) |
| 54 | |
| 55 | end |
| 56 | |
| 57 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.Module.LocalizationScalars.GradedModules |