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.Module.ModuleRestriction |
| 2 | import OAI.AlgebraicGeometry.HilbertScheme.Presentations.Localized.DegreePieces |
| 3 | import OAI.AlgebraicGeometry.HilbertScheme.Presentations.WeightedFreeModules |
| 4 | import OAI.AlgebraicGeometry.HilbertScheme.Presentations.LaurentRestriction |
| 5 | |
| 6 | /-! # Module Restriction -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.Graded.ModuleRestriction |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! Restriction along projective chart inclusions preserves homogeneous module degrees. -/ |
| 13 | |
| 14 | open _root_.MvPolynomial |
| 15 | |
| 16 | namespace GradedModules |
| 17 | |
| 18 | universe u v w |
| 19 | |
| 20 | variable {R : Type u} [CommRing R] {A : Type v} [CommRing A] [Algebra R A] |
| 21 | variable {M : Type w} [AddCommGroup M] [Module R M] [Module A M] [IsScalarTower R A M] |
| 22 | variable (𝒜 : ℤ → Submodule R A) [GradedAlgebra 𝒜] |
| 23 | variable (ℳ : ℤ → Submodule R M) [SetLike.GradedSMul 𝒜 ℳ] |
| 24 | |
| 25 | theorem awayModuleRestriction_homogeneous (a b c : A) (h : b = a * c) |
| 26 | (e f : ℤ) (ha : a ∈ 𝒜 e) (hc : c ∈ 𝒜 f) (d : ℤ) (x : Presentations.Module.Fractions.GradedModules.AwayModule a M) |
| 27 | (hx : x ∈ Localized.DegreePieces.GradedModules.localizedDegreePiece ℳ a e d) : |
| 28 | Presentations.Module.ModuleRestriction.GradedModules.awayModuleRestriction M a b c h x ∈ Localized.DegreePieces.GradedModules.localizedDegreePiece ℳ b (e + f) d := by |
| 29 | obtain ⟨k, m, hm, rfl⟩ := (Localized.DegreePieces.GradedModules.mem_localizedDegreePiece_iff 𝒜 ℳ a e ha d x).mp hx |
| 30 | rw [Presentations.Module.Fractions.GradedModules.moduleFractionMap_apply, Presentations.Module.ModuleRestriction.GradedModules.awayModuleRestriction_fraction] |
| 31 | have hpow : c ^ k ∈ 𝒜 ((k : ℤ) * f) := by |
| 32 | simpa only [nsmul_eq_mul] using SetLike.pow_mem_graded k hc |
| 33 | have hmem := SetLike.GradedSMul.smul_mem hpow hm |
| 34 | have heq : (k : ℤ) * f + (d + (k : ℤ) * e) = d + (k : ℤ) * (e + f) := by ring |
| 35 | have hm' : c ^ k • m ∈ ℳ (d + (k : ℤ) * (e + f)) := heq ▸ hmem |
| 36 | simpa only [Presentations.Module.Fractions.GradedModules.moduleFractionMap_apply] using |
| 37 | Localized.DegreePieces.GradedModules.moduleFractionMap_mem_degree ℳ b (e + f) d k (c ^ k • m) hm' |
| 38 | |
| 39 | end GradedModules |
| 40 | |
| 41 | namespace ProjectiveCech |
| 42 | |
| 43 | universe u v w |
| 44 | |
| 45 | variable {σ : Type u} [Fintype σ] [DecidableEq σ] |
| 46 | variable (R : Type v) [CommRing R] |
| 47 | |
| 48 | omit [Fintype σ] [DecidableEq σ] in |
| 49 | theorem inversionMonomial_integer_degree (s : Finset σ) : |
| 50 | LaurentMonomials.ProjectiveCech.inversionMonomial R s ∈ WeightedFreeModules.GradedModules.polynomialIntegerGrading R (s.card : ℤ) := by |
| 51 | apply isWeightedHomogeneous_monomial |
| 52 | simp [LaurentExponents.ProjectiveCech.inversionExponent, map_sum, Finsupp.weight_single] |
| 53 | |
| 54 | variable (M : Type w) [AddCommGroup M] [Module R M] [Module (MvPolynomial σ R) M] |
| 55 | [IsScalarTower R (MvPolynomial σ R) M] |
| 56 | |
| 57 | abbrev ModuleChart (s : Finset σ) := Presentations.Module.Fractions.GradedModules.AwayModule (LaurentMonomials.ProjectiveCech.inversionMonomial R s) M |
| 58 | |
| 59 | def moduleChartRestriction {s t : Finset σ} (h : s ⊆ t) : |
| 60 | ModuleChart R M s →ₗ[R] ModuleChart R M t := |
| 61 | (Presentations.Module.ModuleRestriction.GradedModules.awayModuleRestriction M (LaurentMonomials.ProjectiveCech.inversionMonomial R s) (LaurentMonomials.ProjectiveCech.inversionMonomial R t) |
| 62 | (LaurentMonomials.ProjectiveCech.inversionMonomial R (t \ s)) (LaurentRestriction.ProjectiveCech.inversionMonomial_sdiff R h).symm).restrictScalars R |
| 63 | |
| 64 | variable (ℳ : ℤ → Submodule R M) |
| 65 | [SetLike.GradedSMul (WeightedFreeModules.GradedModules.polynomialIntegerGrading (σ := σ) R) ℳ] |
| 66 | |
| 67 | def moduleChartDegree (s : Finset σ) (d : ℤ) : Submodule R (ModuleChart R M s) := |
| 68 | Localized.DegreePieces.GradedModules.localizedDegreePiece ℳ (LaurentMonomials.ProjectiveCech.inversionMonomial R s) (s.card : ℤ) d |
| 69 | |
| 70 | omit [Fintype σ] in |
| 71 | theorem moduleChartRestriction_degree {s t : Finset σ} (h : s ⊆ t) (d : ℤ) |
| 72 | (x : ModuleChart R M s) (hx : x ∈ moduleChartDegree R M ℳ s d) : |
| 73 | moduleChartRestriction R M h x ∈ moduleChartDegree R M ℳ t d := by |
| 74 | have he : (s.card : ℤ) + ((t \ s).card : ℤ) = (t.card : ℤ) := by |
| 75 | have hc := Finset.card_sdiff_add_card_eq_card h |
| 76 | rw [Nat.add_comm] at hc |
| 77 | exact_mod_cast hc |
| 78 | have hz := GradedModules.awayModuleRestriction_homogeneous (WeightedFreeModules.GradedModules.polynomialIntegerGrading R) ℳ |
| 79 | (LaurentMonomials.ProjectiveCech.inversionMonomial R s) (LaurentMonomials.ProjectiveCech.inversionMonomial R t) (LaurentMonomials.ProjectiveCech.inversionMonomial R (t \ s)) |
| 80 | (LaurentRestriction.ProjectiveCech.inversionMonomial_sdiff R h).symm (s.card : ℤ) ((t \ s).card : ℤ) |
| 81 | (inversionMonomial_integer_degree R s) (inversionMonomial_integer_degree R (t \ s)) d x hx |
| 82 | rw [he] at hz |
| 83 | exact hz |
| 84 | |
| 85 | end ProjectiveCech |
| 86 | |
| 87 | end |
| 88 | |
| 89 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.Graded.ModuleRestriction |