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 | /- |
| 2 | Copyright (c) 2026 The AINTLIB contributors. All rights reserved. |
| 3 | Released under Apache 2.0 license as described in the file LICENSE. |
| 4 | Authors: AINTLIB ModularCurves project |
| 5 | This file has been modified. |
| 6 | -/ |
| 7 | import OAI.AlgebraicGeometry.SheafCohomology.Projective.TwistCechWeightComponents |
| 8 | |
| 9 | /-! # Twist Cech Weight Assembly -/ |
| 10 | |
| 11 | namespace OAI.AlgebraicGeometry.SheafCohomology.Projective.TwistCechWeightAssembly.MvPolynomial |
| 12 | |
| 13 | noncomputable section |
| 14 | |
| 15 | open _root_.MvPolynomial |
| 16 | |
| 17 | /-! |
| 18 | # Finite assembly of projective twist Cech weight components |
| 19 | |
| 20 | For a finite coordinate set, every cochain in the ordered projective twist Cech complex has only |
| 21 | finitely many active global Laurent weights. This file records those weights and reconstructs the |
| 22 | cochain as the finite sum of its fixed-weight components. |
| 23 | -/ |
| 24 | |
| 25 | open _root_.AlgebraicGeometry _root_.CategoryTheory _root_.CategoryTheory.Limits Opposite _root_.TopologicalSpace |
| 26 | |
| 27 | universe u |
| 28 | |
| 29 | variable {R : Type u} {σ : Type} [CommRing R] |
| 30 | |
| 31 | attribute [local instance] MvPolynomial.gradedAlgebra |
| 32 | |
| 33 | local instance : DecidableEq σ := Classical.decEq σ |
| 34 | |
| 35 | /-- The finite set of global Laurent weights occurring in a homogeneous ordered Cech cochain. -/ |
| 36 | noncomputable def coordinateHomogeneousLaurentActiveWeights |
| 37 | [Fintype σ] [LinearOrder σ] (d : ℤ) (n : ℕ) |
| 38 | (x : LaurentCechData.MvPolynomial.coordinateHomogeneousLaurentOrderedCechObject |
| 39 | (R := R) (σ := σ) d n) : |
| 40 | Finset (LaurentWeight.MvPolynomial.HomogeneousLaurentExponent σ d) := by |
| 41 | classical |
| 42 | letI : Fintype (OrderedBaseCech.Scheme.Modules.OrderedCechIndex (ULift.{u} σ) n) := by |
| 43 | unfold OrderedBaseCech.Scheme.Modules.OrderedCechIndex |
| 44 | infer_instance |
| 45 | exact Finset.univ.biUnion fun a => |
| 46 | (((Pi.π (fun b : OrderedBaseCech.Scheme.Modules.OrderedCechIndex (ULift.{u} σ) n => |
| 47 | ModuleCat.of |
| 48 | Γ(Spec (CommRingCat.of R), (⊤ : (Spec (CommRingCat.of R)).Opens)) |
| 49 | (AddMonoidAlgebra |
| 50 | Γ(Spec (CommRingCat.of R), (⊤ : (Spec (CommRingCat.of R)).Opens)) |
| 51 | {e : LaurentWeight.MvPolynomial.HomogeneousLaurentExponent σ d // |
| 52 | e.IsAllowedOn (fun k => (b.1 k).down)})) a).hom x).coeff.support.image |
| 53 | (fun e => e.1)) |
| 54 | |
| 55 | /-- A global Laurent weight is active exactly when one ordered Cech factor has a nonzero |
| 56 | coefficient at that weight. -/ |
| 57 | theorem mem_coordinateHomogeneousLaurentActiveWeights_iff |
| 58 | [Fintype σ] [LinearOrder σ] (d : ℤ) (n : ℕ) |
| 59 | (x : LaurentCechData.MvPolynomial.coordinateHomogeneousLaurentOrderedCechObject |
| 60 | (R := R) (σ := σ) d n) (e : LaurentWeight.MvPolynomial.HomogeneousLaurentExponent σ d) : |
| 61 | e ∈ coordinateHomogeneousLaurentActiveWeights d n x ↔ |
| 62 | ∃ (a : OrderedBaseCech.Scheme.Modules.OrderedCechIndex (ULift.{u} σ) n) |
| 63 | (h : e.IsAllowedOn (fun k => (a.1 k).down)), |
| 64 | ((Pi.π (fun b : OrderedBaseCech.Scheme.Modules.OrderedCechIndex (ULift.{u} σ) n => |
| 65 | ModuleCat.of |
| 66 | Γ(Spec (CommRingCat.of R), (⊤ : (Spec (CommRingCat.of R)).Opens)) |
| 67 | (AddMonoidAlgebra |
| 68 | Γ(Spec (CommRingCat.of R), (⊤ : (Spec (CommRingCat.of R)).Opens)) |
| 69 | {e : LaurentWeight.MvPolynomial.HomogeneousLaurentExponent σ d // |
| 70 | e.IsAllowedOn (fun k => (b.1 k).down)})) a).hom x).coeff |
| 71 | (⟨e, h⟩ : {e : LaurentWeight.MvPolynomial.HomogeneousLaurentExponent σ d // |
| 72 | e.IsAllowedOn (fun k => (a.1 k).down)}) ≠ 0 := by |
| 73 | classical |
| 74 | let : Fintype (OrderedBaseCech.Scheme.Modules.OrderedCechIndex (ULift.{u} σ) n) := by |
| 75 | unfold OrderedBaseCech.Scheme.Modules.OrderedCechIndex |
| 76 | infer_instance |
| 77 | rw [coordinateHomogeneousLaurentActiveWeights] |
| 78 | simp only [Finset.mem_biUnion] |
| 79 | constructor |
| 80 | · rintro ⟨a, _, ha⟩ |
| 81 | rcases Finset.mem_image.mp ha with ⟨f, hf, rfl⟩ |
| 82 | exact ⟨a, f.2, Finsupp.mem_support_iff.mp hf⟩ |
| 83 | · rintro ⟨a, h, ha⟩ |
| 84 | refine ⟨a, Finset.mem_univ _, ?_⟩ |
| 85 | apply Finset.mem_image.mpr |
| 86 | exact ⟨⟨e, h⟩, Finsupp.mem_support_iff.mpr ha, rfl⟩ |
| 87 | |
| 88 | /-- Every homogeneous ordered Cech cochain is the finite sum of its active Laurent-weight |
| 89 | components. -/ |
| 90 | theorem coordinateHomogeneousLaurentActiveWeights_reconstruct |
| 91 | [Fintype σ] [LinearOrder σ] (d : ℤ) (n : ℕ) |
| 92 | (x : LaurentCechData.MvPolynomial.coordinateHomogeneousLaurentOrderedCechObject |
| 93 | (R := R) (σ := σ) d n) : |
| 94 | (∑ e ∈ coordinateHomogeneousLaurentActiveWeights d n x, |
| 95 | TwistCechWeightComponents.MvPolynomial.coordinateHomogeneousLaurentWeightInclusion (R := R) d e n |
| 96 | (TwistCechWeightComponents.MvPolynomial.coordinateHomogeneousLaurentWeightComponent (R := R) d e n x)) = x := by |
| 97 | classical |
| 98 | let : Fintype (OrderedBaseCech.Scheme.Modules.OrderedCechIndex (ULift.{u} σ) n) := by |
| 99 | unfold OrderedBaseCech.Scheme.Modules.OrderedCechIndex |
| 100 | infer_instance |
| 101 | apply Concrete.limit_ext (Discrete.functor fun |
| 102 | a : OrderedBaseCech.Scheme.Modules.OrderedCechIndex (ULift.{u} σ) n => |
| 103 | ModuleCat.of |
| 104 | Γ(Spec (CommRingCat.of R), (⊤ : (Spec (CommRingCat.of R)).Opens)) |
| 105 | (AddMonoidAlgebra |
| 106 | Γ(Spec (CommRingCat.of R), (⊤ : (Spec (CommRingCat.of R)).Opens)) |
| 107 | {e : LaurentWeight.MvPolynomial.HomogeneousLaurentExponent σ d // |
| 108 | e.IsAllowedOn (fun k => (a.1 k).down)})) |
| 109 | intro a |
| 110 | rcases a with ⟨a⟩ |
| 111 | let p : LaurentCechData.MvPolynomial.coordinateHomogeneousLaurentOrderedCechObject |
| 112 | (R := R) (σ := σ) d n ⟶ |
| 113 | ModuleCat.of |
| 114 | Γ(Spec (CommRingCat.of R), (⊤ : (Spec (CommRingCat.of R)).Opens)) |
| 115 | (AddMonoidAlgebra |
| 116 | Γ(Spec (CommRingCat.of R), (⊤ : (Spec (CommRingCat.of R)).Opens)) |
| 117 | {e : LaurentWeight.MvPolynomial.HomogeneousLaurentExponent σ d // |
| 118 | e.IsAllowedOn (fun k => (a.1 k).down)}) := |
| 119 | Pi.π _ a |
| 120 | change p.hom |
| 121 | (∑ e ∈ coordinateHomogeneousLaurentActiveWeights d n x, |
| 122 | TwistCechWeightComponents.MvPolynomial.coordinateHomogeneousLaurentWeightInclusion (R := R) d e n |
| 123 | (TwistCechWeightComponents.MvPolynomial.coordinateHomogeneousLaurentWeightComponent (R := R) d e n x)) = p.hom x |
| 124 | rw [map_sum] |
| 125 | apply AddMonoidAlgebra.coeff_injective |
| 126 | ext f |
| 127 | let c : AddMonoidAlgebra |
| 128 | Γ(Spec (CommRingCat.of R), (⊤ : (Spec (CommRingCat.of R)).Opens)) |
| 129 | {e : LaurentWeight.MvPolynomial.HomogeneousLaurentExponent σ d // |
| 130 | e.IsAllowedOn (fun k => (a.1 k).down)} →ₗ[ |
| 131 | Γ(Spec (CommRingCat.of R), (⊤ : (Spec (CommRingCat.of R)).Opens))] |
| 132 | Γ(Spec (CommRingCat.of R), (⊤ : (Spec (CommRingCat.of R)).Opens)) := |
| 133 | (Finsupp.lapply f).comp |
| 134 | (AddMonoidAlgebra.coeffLinearEquiv |
| 135 | Γ(Spec (CommRingCat.of R), (⊤ : (Spec (CommRingCat.of R)).Opens))).toLinearMap |
| 136 | change c (∑ e ∈ coordinateHomogeneousLaurentActiveWeights d n x, |
| 137 | p.hom (TwistCechWeightComponents.MvPolynomial.coordinateHomogeneousLaurentWeightInclusion (R := R) d e n |
| 138 | (TwistCechWeightComponents.MvPolynomial.coordinateHomogeneousLaurentWeightComponent (R := R) d e n x))) = c (p.hom x) |
| 139 | rw [map_sum] |
| 140 | have hcoefficient |
| 141 | (y : LaurentCechData.MvPolynomial.coordinateHomogeneousLaurentOrderedCechObject |
| 142 | (R := R) (σ := σ) d n) : |
| 143 | c (p.hom y) = |
| 144 | (TwistCechWeightComponents.MvPolynomial.coordinateHomogeneousLaurentWeightComponent |
| 145 | (R := R) d f.1 n y).1 a := by |
| 146 | symm |
| 147 | rw [TwistCechWeightComponents.MvPolynomial.coordinateHomogeneousLaurentWeightComponent_apply_of_allowed |
| 148 | (R := R) (σ := σ) (d := d) (e := f.1) (n := n) (a := a) (h := f.2)] |
| 149 | rfl |
| 150 | have hterm_ne (e : LaurentWeight.MvPolynomial.HomogeneousLaurentExponent σ d) (hef : e ≠ f.1) : |
| 151 | c (p.hom (TwistCechWeightComponents.MvPolynomial.coordinateHomogeneousLaurentWeightInclusion (R := R) d e n |
| 152 | (TwistCechWeightComponents.MvPolynomial.coordinateHomogeneousLaurentWeightComponent (R := R) d e n x))) = 0 := by |
| 153 | rw [hcoefficient, |
| 154 | TwistCechWeightComponents.MvPolynomial.coordinateHomogeneousLaurentWeightComponent_inclusion_ne |
| 155 | (R := R) (σ := σ) (d := d) (e := e) (f := f.1) |
| 156 | (hef := Ne.symm hef) (n := n)] |
| 157 | rfl |
| 158 | have hterm_self : |
| 159 | c (p.hom (TwistCechWeightComponents.MvPolynomial.coordinateHomogeneousLaurentWeightInclusion (R := R) d f.1 n |
| 160 | (TwistCechWeightComponents.MvPolynomial.coordinateHomogeneousLaurentWeightComponent (R := R) d f.1 n x))) = c (p.hom x) := by |
| 161 | rw [hcoefficient, |
| 162 | TwistCechWeightComponents.MvPolynomial.coordinateHomogeneousLaurentWeightComponent_inclusion |
| 163 | (R := R) (σ := σ) (d := d) (e := f.1) (n := n), |
| 164 | hcoefficient] |
| 165 | by_cases hf : f.1 ∈ coordinateHomogeneousLaurentActiveWeights d n x |
| 166 | · rw [Finset.sum_eq_single_of_mem f.1 hf] |
| 167 | · exact hterm_self |
| 168 | · intro e _ hef |
| 169 | exact hterm_ne e hef |
| 170 | · rw [Finset.sum_eq_zero] |
| 171 | · symm |
| 172 | by_contra hcoeff |
| 173 | apply hf |
| 174 | apply (mem_coordinateHomogeneousLaurentActiveWeights_iff d n x f.1).2 |
| 175 | refine ⟨a, f.2, ?_⟩ |
| 176 | rw [hcoefficient] at hcoeff |
| 177 | rw [TwistCechWeightComponents.MvPolynomial.coordinateHomogeneousLaurentWeightComponent_apply_of_allowed |
| 178 | (R := R) (σ := σ) (d := d) (e := f.1) (n := n) (a := a) (h := f.2)] at hcoeff |
| 179 | exact hcoeff |
| 180 | · intro e he |
| 181 | exact hterm_ne e (fun hef => hf (hef ▸ he)) |
| 182 | |
| 183 | end |
| 184 | |
| 185 | end OAI.AlgebraicGeometry.SheafCohomology.Projective.TwistCechWeightAssembly.MvPolynomial |