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 | |
| 3 | /-! # Free Degrees -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.Localized.FreeDegrees.ProjectiveCech |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Homogeneous localization of a weighted free module is coordinatewise Laurent grading. -/ |
| 10 | |
| 11 | open _root_.MvPolynomial _root_.Module |
| 12 | |
| 13 | universe u v w |
| 14 | |
| 15 | variable {σ : Type u} [Fintype σ] [DecidableEq σ] |
| 16 | variable (R : Type v) [CommRing R] {ι : Type w} (w : ι → ℤ) |
| 17 | |
| 18 | def weightedLaurentGrading (s : Finset σ) : ℤ → Submodule R (ι →₀ LaurentMonomials.ProjectiveCech.ChartLocalization R s) := |
| 19 | BasisGrading.GradedModules.basisPiece (Finsupp.basis (fun _ : ι => LaurentBasis.ProjectiveCech.laurentBasis R s)) |
| 20 | (fun p => LaurentDegree.ProjectiveCech.exponentDegree p.2.val + w p.1) |
| 21 | |
| 22 | theorem mem_weightedLaurentGrading (s : Finset σ) (d : ℤ) (f : ι →₀ LaurentMonomials.ProjectiveCech.ChartLocalization R s) : |
| 23 | f ∈ weightedLaurentGrading R w s d ↔ ∀ i, f i ∈ LaurentDegree.ProjectiveCech.laurentDegreeSubmodule R s (d - w i) := by |
| 24 | rw [weightedLaurentGrading, BasisGrading.GradedModules.mem_basisPiece_iff] |
| 25 | simp only [LaurentDegree.ProjectiveCech.mem_laurentDegreeSubmodule_iff, Finsupp.basis_repr] |
| 26 | constructor |
| 27 | · intro h i a ha |
| 28 | apply h ⟨i, a⟩ |
| 29 | change LaurentDegree.ProjectiveCech.exponentDegree a.val + w i ≠ d |
| 30 | omega |
| 31 | · intro h p hp |
| 32 | apply h p.1 p.2 |
| 33 | change LaurentDegree.ProjectiveCech.exponentDegree p.2.val + w p.1 ≠ d at hp |
| 34 | omega |
| 35 | |
| 36 | theorem freeLocalizedEquiv_degree (s : Finset σ) (d : ℤ) |
| 37 | (x : Graded.ModuleRestriction.ProjectiveCech.ModuleChart R (ι →₀ MvPolynomial σ R) s) |
| 38 | (hx : x ∈ Graded.ModuleRestriction.ProjectiveCech.moduleChartDegree R _ (WeightedFreeModules.GradedModules.weightedFreeGrading R w) s d) : |
| 39 | ∀ i, FreeCoordinates.ProjectiveCech.freeLocalizedEquiv R ι s x i ∈ LaurentDegree.ProjectiveCech.laurentDegreeSubmodule R s (d - w i) := by |
| 40 | obtain ⟨k, p, hp, rfl⟩ := (DegreePieces.GradedModules.mem_localizedDegreePiece_iff (WeightedFreeModules.GradedModules.polynomialIntegerGrading R) |
| 41 | (WeightedFreeModules.GradedModules.weightedFreeGrading R w) (LaurentMonomials.ProjectiveCech.inversionMonomial R s) (s.card : ℤ) |
| 42 | (Graded.ModuleRestriction.ProjectiveCech.inversionMonomial_integer_degree R s) d x).mp hx |
| 43 | intro i |
| 44 | rw [FreeCoordinates.ProjectiveCech.freeLocalizedEquiv_fraction] |
| 45 | apply Polynomial.FractionDegrees.ProjectiveCech.chartFractionLinearMap_homogeneous |
| 46 | have h := (WeightedFreeModules.GradedModules.mem_weightedFreeGrading R w _ p).mp hp i |
| 47 | have he : d + (k : ℤ) * (s.card : ℤ) - w i = d - w i + (k : ℤ) * (s.card : ℤ) := by ring |
| 48 | exact he ▸ h |
| 49 | |
| 50 | theorem single_laurent_in_localized_degree_image (s : Finset σ) (i : ι) (a : LaurentExponents.ProjectiveCech.LaurentExponent s) : |
| 51 | Finsupp.single i (LaurentMonomials.ProjectiveCech.laurentMonomial R a) ∈ |
| 52 | (Graded.ModuleRestriction.ProjectiveCech.moduleChartDegree R (ι →₀ MvPolynomial σ R) (WeightedFreeModules.GradedModules.weightedFreeGrading R w) s |
| 53 | (LaurentDegree.ProjectiveCech.exponentDegree a.val + w i)).map (FreeCoordinates.ProjectiveCech.freeLocalizedEquiv R ι s).toLinearMap := by |
| 54 | classical |
| 55 | let k := LaurentExponents.ProjectiveCech.denominatorBound a |
| 56 | let p : MvPolynomial σ R := monomial (LaurentExponents.ProjectiveCech.numeratorExponent a k) 1 |
| 57 | have hp : p ∈ WeightedFreeModules.GradedModules.polynomialIntegerGrading R (LaurentDegree.ProjectiveCech.exponentDegree a.val + (k : ℤ) * (s.card : ℤ)) := |
| 58 | isWeightedHomogeneous_monomial _ _ _ (Polynomial.FractionDegrees.ProjectiveCech.numeratorExponent_weight a k le_rfl) |
| 59 | have hs : Finsupp.single i p ∈ WeightedFreeModules.GradedModules.weightedFreeGrading R w |
| 60 | (LaurentDegree.ProjectiveCech.exponentDegree a.val + w i + (k : ℤ) * (s.card : ℤ)) := by |
| 61 | rw [WeightedFreeModules.GradedModules.mem_weightedFreeGrading] |
| 62 | intro j |
| 63 | by_cases hij : i = j |
| 64 | · subst j |
| 65 | rw [Finsupp.single_eq_same] |
| 66 | have he : LaurentDegree.ProjectiveCech.exponentDegree a.val + w i + (k : ℤ) * (s.card : ℤ) - w i = |
| 67 | LaurentDegree.ProjectiveCech.exponentDegree a.val + (k : ℤ) * (s.card : ℤ) := by ring |
| 68 | rw [he] |
| 69 | exact hp |
| 70 | · rw [Finsupp.single_eq_of_ne (Ne.symm hij)] |
| 71 | exact Submodule.zero_mem _ |
| 72 | refine ⟨Module.Fractions.GradedModules.moduleFractionMap (R := R) (LaurentMonomials.ProjectiveCech.inversionMonomial R s) k (Finsupp.single i p), |
| 73 | DegreePieces.GradedModules.moduleFractionMap_mem_degree (WeightedFreeModules.GradedModules.weightedFreeGrading R w) _ _ _ k _ hs, ?_⟩ |
| 74 | apply Finsupp.ext |
| 75 | intro j |
| 76 | rw [LinearEquiv.coe_coe, FreeCoordinates.ProjectiveCech.freeLocalizedEquiv_fraction] |
| 77 | by_cases hij : i = j |
| 78 | · subst j |
| 79 | rw [Finsupp.single_eq_same, Finsupp.single_eq_same, LaurentBasis.ProjectiveCech.chartFractionLinearMap_apply] |
| 80 | rfl |
| 81 | · rw [Finsupp.single_eq_of_ne (Ne.symm hij), Finsupp.single_eq_of_ne (Ne.symm hij), map_zero] |
| 82 | |
| 83 | theorem weightedLaurentGrading_le_localized_degree_image (s : Finset σ) (d : ℤ) : |
| 84 | weightedLaurentGrading R w s d ≤ |
| 85 | (Graded.ModuleRestriction.ProjectiveCech.moduleChartDegree R (ι →₀ MvPolynomial σ R) (WeightedFreeModules.GradedModules.weightedFreeGrading R w) s d).map |
| 86 | (FreeCoordinates.ProjectiveCech.freeLocalizedEquiv R ι s).toLinearMap := by |
| 87 | apply Submodule.span_le.mpr |
| 88 | rintro x ⟨⟨i, a⟩, ha, rfl⟩ |
| 89 | simp only [Finsupp.coe_basis, LaurentBasis.ProjectiveCech.laurentBasis_apply] |
| 90 | exact ha ▸ single_laurent_in_localized_degree_image R w s i a |
| 91 | |
| 92 | theorem freeLocalizedEquiv_degree_iff (s : Finset σ) (d : ℤ) |
| 93 | (x : Graded.ModuleRestriction.ProjectiveCech.ModuleChart R (ι →₀ MvPolynomial σ R) s) : |
| 94 | x ∈ Graded.ModuleRestriction.ProjectiveCech.moduleChartDegree R _ (WeightedFreeModules.GradedModules.weightedFreeGrading R w) s d ↔ |
| 95 | ∀ i, FreeCoordinates.ProjectiveCech.freeLocalizedEquiv R ι s x i ∈ LaurentDegree.ProjectiveCech.laurentDegreeSubmodule R s (d - w i) := by |
| 96 | constructor |
| 97 | · exact freeLocalizedEquiv_degree R w s d x |
| 98 | · intro hx |
| 99 | have hmem := (mem_weightedLaurentGrading R w s d _).mpr hx |
| 100 | obtain ⟨y, hy, he⟩ := weightedLaurentGrading_le_localized_degree_image R w s d hmem |
| 101 | exact (FreeCoordinates.ProjectiveCech.freeLocalizedEquiv R ι s).injective he ▸ hy |
| 102 | |
| 103 | end |
| 104 | |
| 105 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.Localized.FreeDegrees.ProjectiveCech |