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.ModuleCech.Card |
| 2 | import OAI.AlgebraicGeometry.HilbertScheme.Presentations.Localized.FreeDegrees |
| 3 | import OAI.AlgebraicGeometry.HilbertScheme.Presentations.Polynomial.CechExactness |
| 4 | |
| 5 | /-! # Free Module Cech Exactness -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.FreeModuleCechExactness.ProjectiveCech |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! High-degree exactness of the Čech complex of an actual weighted free module. -/ |
| 12 | |
| 13 | open _root_.MvPolynomial |
| 14 | |
| 15 | universe u v w |
| 16 | |
| 17 | variable {σ : Type u} [Fintype σ] [LinearOrder σ] [Nonempty σ] |
| 18 | variable (R : Type v) [CommRing R] (ι : Type w) [Fintype ι] |
| 19 | |
| 20 | def freeCechAssemble (g : ι → Polynomial.Cech.ProjectiveCech.PolynomialCechFamily (σ := σ) R) : |
| 21 | ModuleCech.Card.ProjectiveCech.ModuleCechFamily (σ := σ) R (ι →₀ MvPolynomial σ R) := |
| 22 | fun s => (Localized.FreeCoordinates.ProjectiveCech.freeLocalizedEquiv R ι s).symm |
| 23 | (Finsupp.equivFunOnFinite.symm (fun i => g i s)) |
| 24 | |
| 25 | omit [Nonempty σ] [Fintype σ] [LinearOrder σ] in |
| 26 | theorem freeCechCoordinate_assemble (g : ι → Polynomial.Cech.ProjectiveCech.PolynomialCechFamily (σ := σ) R) (i : ι) : |
| 27 | ModuleCech.Card.ProjectiveCech.freeCechCoordinate R ι i (freeCechAssemble R ι g) = g i := by |
| 28 | funext s |
| 29 | change Localized.FreeCoordinates.ProjectiveCech.freeLocalizedEquiv R ι s ((Localized.FreeCoordinates.ProjectiveCech.freeLocalizedEquiv R ι s).symm |
| 30 | (Finsupp.equivFunOnFinite.symm (fun i => g i s))) i = _ |
| 31 | rw [LinearEquiv.apply_symm_apply] |
| 32 | rfl |
| 33 | |
| 34 | omit [Nonempty σ] [Fintype σ] [LinearOrder σ] [Fintype ι] in |
| 35 | theorem freeCechCoordinate_ext |
| 36 | (f g : ModuleCech.Card.ProjectiveCech.ModuleCechFamily (σ := σ) R (ι →₀ MvPolynomial σ R)) |
| 37 | (h : ∀ i, ModuleCech.Card.ProjectiveCech.freeCechCoordinate R ι i f = ModuleCech.Card.ProjectiveCech.freeCechCoordinate R ι i g) : f = g := by |
| 38 | funext s |
| 39 | apply (Localized.FreeCoordinates.ProjectiveCech.freeLocalizedEquiv R ι s).injective |
| 40 | ext i |
| 41 | exact congrFun (h i) s |
| 42 | |
| 43 | omit [Nonempty σ] [Fintype σ] [LinearOrder σ] [Fintype ι] in |
| 44 | theorem freeCechCoordinate_zero (i : ι) : |
| 45 | ModuleCech.Card.ProjectiveCech.freeCechCoordinate (σ := σ) R ι i 0 = 0 := by |
| 46 | funext s |
| 47 | simp only [ModuleCech.Card.ProjectiveCech.freeCechCoordinate, Pi.zero_apply, map_zero, Finsupp.zero_apply] |
| 48 | |
| 49 | omit [Nonempty σ] [Fintype σ] [LinearOrder σ] in |
| 50 | theorem freeCechAssemble_card (q : ℕ) (g : ι → Polynomial.Cech.ProjectiveCech.PolynomialCechFamily (σ := σ) R) |
| 51 | (hg : ∀ i, Polynomial.Cech.ProjectiveCech.CechCardSupported R q (g i)) : |
| 52 | ModuleCech.Card.ProjectiveCech.ModuleCechCardSupported R (ι →₀ MvPolynomial σ R) q (freeCechAssemble R ι g) := by |
| 53 | intro s hs |
| 54 | apply (Localized.FreeCoordinates.ProjectiveCech.freeLocalizedEquiv R ι s).injective |
| 55 | ext i |
| 56 | have he := congrFun (freeCechCoordinate_assemble R ι g i) s |
| 57 | change Localized.FreeCoordinates.ProjectiveCech.freeLocalizedEquiv R ι s (freeCechAssemble R ι g s) i = g i s at he |
| 58 | change Localized.FreeCoordinates.ProjectiveCech.freeLocalizedEquiv R ι s (freeCechAssemble R ι g s) i = Localized.FreeCoordinates.ProjectiveCech.freeLocalizedEquiv R ι s 0 i |
| 59 | rw [map_zero, Finsupp.zero_apply, he] |
| 60 | exact hg i s hs |
| 61 | |
| 62 | omit [Nonempty σ] in |
| 63 | theorem freeCechAssemble_homogeneous (w : ι → ℤ) (d : ℤ) |
| 64 | (g : ι → Polynomial.Cech.ProjectiveCech.PolynomialCechFamily (σ := σ) R) (hg : ∀ i, Polynomial.Cech.ProjectiveCech.CechHomogeneous R (d - w i) (g i)) : |
| 65 | ModuleCech.Card.ProjectiveCech.ModuleCechHomogeneous R (ι →₀ MvPolynomial σ R) (WeightedFreeModules.GradedModules.weightedFreeGrading R w) d |
| 66 | (freeCechAssemble R ι g) := by |
| 67 | intro s |
| 68 | rw [Localized.FreeDegrees.ProjectiveCech.freeLocalizedEquiv_degree_iff] |
| 69 | intro i |
| 70 | have he := congrFun (freeCechCoordinate_assemble R ι g i) s |
| 71 | change Localized.FreeCoordinates.ProjectiveCech.freeLocalizedEquiv R ι s (freeCechAssemble R ι g s) i = g i s at he |
| 72 | change Localized.FreeCoordinates.ProjectiveCech.freeLocalizedEquiv R ι s (freeCechAssemble R ι g s) i ∈ _ |
| 73 | rw [he] |
| 74 | exact hg i s |
| 75 | |
| 76 | theorem freeModuleCech_exact (w : ι → ℤ) (d : ℤ) (hd : ∀ i, w i ≤ d) (q : ℕ) |
| 77 | (f : ModuleCech.Card.ProjectiveCech.ModuleCechFamily (σ := σ) R (ι →₀ MvPolynomial σ R)) |
| 78 | (hf : ModuleCech.Card.ProjectiveCech.ModuleCechHomogeneous R (ι →₀ MvPolynomial σ R) (WeightedFreeModules.GradedModules.weightedFreeGrading R w) d f) |
| 79 | (hcard : ModuleCech.Card.ProjectiveCech.ModuleCechCardSupported R (ι →₀ MvPolynomial σ R) (q + 1) f) |
| 80 | (hcocycle : ModuleCech.Card.ProjectiveCech.moduleCechDifferential R (ι →₀ MvPolynomial σ R) f = 0) : |
| 81 | ∃ g : ModuleCech.Card.ProjectiveCech.ModuleCechFamily (σ := σ) R (ι →₀ MvPolynomial σ R), |
| 82 | ModuleCech.Card.ProjectiveCech.ModuleCechHomogeneous R (ι →₀ MvPolynomial σ R) (WeightedFreeModules.GradedModules.weightedFreeGrading R w) d g ∧ |
| 83 | ModuleCech.Card.ProjectiveCech.ModuleCechCardSupported R (ι →₀ MvPolynomial σ R) q g ∧ |
| 84 | ModuleCech.Card.ProjectiveCech.moduleCechDifferential R (ι →₀ MvPolynomial σ R) g = f := by |
| 85 | have hcoord (i : ι) : Polynomial.Cech.ProjectiveCech.CechHomogeneous R (d - w i) (ModuleCech.Card.ProjectiveCech.freeCechCoordinate R ι i f) := |
| 86 | fun s => Localized.FreeDegrees.ProjectiveCech.freeLocalizedEquiv_degree R w s d (f s) (hf s) i |
| 87 | have hcoordcard (i : ι) : Polynomial.Cech.ProjectiveCech.CechCardSupported R (q + 1) (ModuleCech.Card.ProjectiveCech.freeCechCoordinate R ι i f) := by |
| 88 | intro s hs |
| 89 | change Localized.FreeCoordinates.ProjectiveCech.freeLocalizedEquiv R ι s (f s) i = 0 |
| 90 | rw [hcard s hs, map_zero, Finsupp.zero_apply] |
| 91 | have hcoordcycle (i : ι) : Polynomial.Cech.ProjectiveCech.polynomialCechDifferential R (ModuleCech.Card.ProjectiveCech.freeCechCoordinate R ι i f) = 0 := by |
| 92 | rw [← ModuleCech.Card.ProjectiveCech.freeCechCoordinate_differential, hcocycle, freeCechCoordinate_zero] |
| 93 | choose g hg hgcard hgd using fun i => Polynomial.CechExactness.ProjectiveCech.polynomialCech_exact R (d - w i) |
| 94 | (sub_nonneg.mpr (hd i)) q (ModuleCech.Card.ProjectiveCech.freeCechCoordinate R ι i f) (hcoord i) (hcoordcard i) (hcoordcycle i) |
| 95 | refine ⟨freeCechAssemble R ι g, freeCechAssemble_homogeneous R ι w d g hg, |
| 96 | freeCechAssemble_card R ι q g hgcard, ?_⟩ |
| 97 | apply freeCechCoordinate_ext R ι |
| 98 | intro i |
| 99 | rw [ModuleCech.Card.ProjectiveCech.freeCechCoordinate_differential, freeCechCoordinate_assemble] |
| 100 | exact hgd i |
| 101 | |
| 102 | omit [Fintype ι] in |
| 103 | theorem freeModuleCech_augmentation_injective (w : ι → ℤ) (d : ℤ) (hd : ∀ i, w i ≤ d) |
| 104 | (f : ModuleCech.Card.ProjectiveCech.ModuleCechFamily (σ := σ) R (ι →₀ MvPolynomial σ R)) |
| 105 | (hf : ModuleCech.Card.ProjectiveCech.ModuleCechHomogeneous R (ι →₀ MvPolynomial σ R) (WeightedFreeModules.GradedModules.weightedFreeGrading R w) d f) |
| 106 | (hcard : ModuleCech.Card.ProjectiveCech.ModuleCechCardSupported R (ι →₀ MvPolynomial σ R) 0 f) |
| 107 | (hcocycle : ModuleCech.Card.ProjectiveCech.moduleCechDifferential R (ι →₀ MvPolynomial σ R) f = 0) : f = 0 := by |
| 108 | apply freeCechCoordinate_ext R ι |
| 109 | intro i |
| 110 | rw [freeCechCoordinate_zero] |
| 111 | apply Polynomial.CechExactness.ProjectiveCech.polynomialCech_augmentation_injective R (d - w i) (sub_nonneg.mpr (hd i)) |
| 112 | · exact fun s => Localized.FreeDegrees.ProjectiveCech.freeLocalizedEquiv_degree R w s d (f s) (hf s) i |
| 113 | · intro s hs |
| 114 | change Localized.FreeCoordinates.ProjectiveCech.freeLocalizedEquiv R ι s (f s) i = 0 |
| 115 | rw [hcard s hs, map_zero, Finsupp.zero_apply] |
| 116 | · rw [← ModuleCech.Card.ProjectiveCech.freeCechCoordinate_differential, hcocycle, freeCechCoordinate_zero] |
| 117 | |
| 118 | def freeCechDegreeBound (w : ι → ℤ) : ℕ := ∑ i, (w i).toNat |
| 119 | |
| 120 | omit [Fintype σ] [LinearOrder σ] [Nonempty σ] in |
| 121 | theorem freeCechDegreeBound_ge (w : ι → ℤ) (i : ι) : w i ≤ (freeCechDegreeBound ι w : ℤ) := by |
| 122 | have hi : (w i).toNat ≤ freeCechDegreeBound ι w := |
| 123 | Finset.single_le_sum (f := fun i => (w i).toNat) (fun _ _ => Nat.zero_le _) (Finset.mem_univ i) |
| 124 | have hi' : ((w i).toNat : ℤ) ≤ (freeCechDegreeBound ι w : ℤ) := by exact_mod_cast hi |
| 125 | omega |
| 126 | |
| 127 | theorem freeModuleCech_eventually_exact (w : ι → ℤ) (d : ℤ) |
| 128 | (hd : (freeCechDegreeBound ι w : ℤ) ≤ d) (q : ℕ) |
| 129 | (f : ModuleCech.Card.ProjectiveCech.ModuleCechFamily (σ := σ) R (ι →₀ MvPolynomial σ R)) |
| 130 | (hf : ModuleCech.Card.ProjectiveCech.ModuleCechHomogeneous R (ι →₀ MvPolynomial σ R) (WeightedFreeModules.GradedModules.weightedFreeGrading R w) d f) |
| 131 | (hcard : ModuleCech.Card.ProjectiveCech.ModuleCechCardSupported R (ι →₀ MvPolynomial σ R) (q + 1) f) |
| 132 | (hcocycle : ModuleCech.Card.ProjectiveCech.moduleCechDifferential R (ι →₀ MvPolynomial σ R) f = 0) : |
| 133 | ∃ g : ModuleCech.Card.ProjectiveCech.ModuleCechFamily (σ := σ) R (ι →₀ MvPolynomial σ R), |
| 134 | ModuleCech.Card.ProjectiveCech.ModuleCechHomogeneous R (ι →₀ MvPolynomial σ R) (WeightedFreeModules.GradedModules.weightedFreeGrading R w) d g ∧ |
| 135 | ModuleCech.Card.ProjectiveCech.ModuleCechCardSupported R (ι →₀ MvPolynomial σ R) q g ∧ |
| 136 | ModuleCech.Card.ProjectiveCech.moduleCechDifferential R (ι →₀ MvPolynomial σ R) g = f := |
| 137 | freeModuleCech_exact R ι w d (fun i => (freeCechDegreeBound_ge ι w i).trans hd) q f hf hcard hcocycle |
| 138 | |
| 139 | end |
| 140 | |
| 141 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.FreeModuleCechExactness.ProjectiveCech |