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 Mathlib.Algebra.Homology.ShortComplex.HomologicalComplex |
| 8 | import Mathlib.Algebra.Homology.ShortComplex.ModuleCat |
| 9 | import Mathlib.AlgebraicGeometry.Noetherian |
| 10 | import OAI.AlgebraicGeometry.SheafCohomology.Projective.LaurentExceptionalWeights |
| 11 | import OAI.AlgebraicGeometry.SheafCohomology.Projective.OrderedCechSupportAlternating |
| 12 | |
| 13 | /-! # Laurent Cocycle Decomposition -/ |
| 14 | |
| 15 | namespace OAI.AlgebraicGeometry.SheafCohomology.Projective.LaurentCocycleDecomposition.MvPolynomial |
| 16 | |
| 17 | noncomputable section |
| 18 | |
| 19 | open _root_.MvPolynomial |
| 20 | |
| 21 | /-! |
| 22 | # Higher exactness for nonnegative projective twists |
| 23 | |
| 24 | This file assembles the all-degree support contraction from |
| 25 | [Stacks Project, Lemma 30.8.1 (Tag 01XT)](https://stacks.math.columbia.edu/tag/01XT) weight by |
| 26 | weight in the homogeneous Laurent presentation of the ordered Cech complex. |
| 27 | -/ |
| 28 | |
| 29 | open _root_.AlgebraicGeometry _root_.CategoryTheory _root_.CategoryTheory.Limits Opposite _root_.TopologicalSpace |
| 30 | |
| 31 | universe u |
| 32 | |
| 33 | variable {R : Type u} {σ : Type} [CommRing R] |
| 34 | |
| 35 | attribute [local instance] MvPolynomial.gradedAlgebra |
| 36 | |
| 37 | local instance : DecidableEq σ := Classical.decEq σ |
| 38 | |
| 39 | /-- Every positive-degree cocycle in the homogeneous Laurent presentation is a boundary modulo |
| 40 | the active weights that are negative in every coordinate. -/ |
| 41 | theorem exists_boundary_add_fullNegativeWeights_eq_coordinateHomogeneousLaurentCocycle |
| 42 | [Fintype σ] [LinearOrder σ] (d : ℤ) (n : ℕ) |
| 43 | (s : LaurentCechData.MvPolynomial.coordinateHomogeneousLaurentOrderedCechObject |
| 44 | (R := R) (σ := σ) d (n + 1)) |
| 45 | (hs : (LaurentCechData.MvPolynomial.coordinateHomogeneousLaurentOrderedCechDifferential |
| 46 | (R := R) (σ := σ) d (n + 1)).hom s = 0) : |
| 47 | ∃ t : LaurentCechData.MvPolynomial.coordinateHomogeneousLaurentOrderedCechObject |
| 48 | (R := R) (σ := σ) d n, |
| 49 | (LaurentCechData.MvPolynomial.coordinateHomogeneousLaurentOrderedCechDifferential |
| 50 | (R := R) (σ := σ) d n).hom t + |
| 51 | (∑ e ∈ (TwistCechWeightAssembly.MvPolynomial.coordinateHomogeneousLaurentActiveWeights d (n + 1) s).filter |
| 52 | fun e => e.liftedNegativeSupport = (Set.univ : Set (ULift.{u} σ)), |
| 53 | TwistCechWeightComponents.MvPolynomial.coordinateHomogeneousLaurentWeightInclusion (R := R) d e (n + 1) |
| 54 | (TwistCechWeightComponents.MvPolynomial.coordinateHomogeneousLaurentWeightComponent |
| 55 | (R := R) d e (n + 1) s)) = s := by |
| 56 | classical |
| 57 | let A := TwistCechWeightAssembly.MvPolynomial.coordinateHomogeneousLaurentActiveWeights d (n + 1) s |
| 58 | let N := A.filter fun e => |
| 59 | e.liftedNegativeSupport ≠ (Set.univ : Set (ULift.{u} σ)) |
| 60 | have hcomponent_cycle (e : LaurentWeight.MvPolynomial.HomogeneousLaurentExponent σ d) : |
| 61 | OrderedCechSupportContraction.orderedCechSupportDifferential |
| 62 | Γ(Spec (CommRingCat.of R), (⊤ : (Spec (CommRingCat.of R)).Opens)) |
| 63 | e.liftedNegativeSupport (n + 1) |
| 64 | (TwistCechWeightComponents.MvPolynomial.coordinateHomogeneousLaurentWeightComponent |
| 65 | (R := R) d e (n + 1) s) = 0 := by |
| 66 | rw [← TwistCechWeightComponents.MvPolynomial.coordinateHomogeneousLaurentWeightComponent_differential |
| 67 | (R := R) (σ := σ) (d := d) (e := e) (n := n + 1), hs] |
| 68 | exact map_zero |
| 69 | (TwistCechWeightComponents.MvPolynomial.coordinateHomogeneousLaurentWeightComponent (R := R) d e (n + 2)) |
| 70 | have hpreimage (e : {e : LaurentWeight.MvPolynomial.HomogeneousLaurentExponent σ d // e ∈ N}) : |
| 71 | ∃ t : OrderedCechSupportContraction.OrderedCechSupportCochain |
| 72 | Γ(Spec (CommRingCat.of R), (⊤ : (Spec (CommRingCat.of R)).Opens)) |
| 73 | e.1.liftedNegativeSupport n, |
| 74 | OrderedCechSupportContraction.orderedCechSupportDifferential |
| 75 | Γ(Spec (CommRingCat.of R), (⊤ : (Spec (CommRingCat.of R)).Opens)) |
| 76 | e.1.liftedNegativeSupport n t = |
| 77 | TwistCechWeightComponents.MvPolynomial.coordinateHomogeneousLaurentWeightComponent |
| 78 | (R := R) d e.1 (n + 1) s := by |
| 79 | have he : e.1.liftedNegativeSupport ≠ (Set.univ : Set (ULift.{u} σ)) := by |
| 80 | exact (Finset.mem_filter.mp e.2).2 |
| 81 | obtain ⟨i, hi⟩ := (Set.ne_univ_iff_exists_notMem _).mp he |
| 82 | exact OrderedCechSupportAlternating.exists_preimage_orderedCechSupportDifferential |
| 83 | Γ(Spec (CommRingCat.of R), (⊤ : (Spec (CommRingCat.of R)).Opens)) |
| 84 | e.1.liftedNegativeSupport i hi n |
| 85 | (TwistCechWeightComponents.MvPolynomial.coordinateHomogeneousLaurentWeightComponent (R := R) d e.1 (n + 1) s) |
| 86 | (hcomponent_cycle e.1) |
| 87 | choose t ht using hpreimage |
| 88 | refine ⟨∑ e : {e : LaurentWeight.MvPolynomial.HomogeneousLaurentExponent σ d // e ∈ N}, |
| 89 | TwistCechWeightComponents.MvPolynomial.coordinateHomogeneousLaurentWeightInclusion (R := R) d e.1 n (t e), ?_⟩ |
| 90 | rw [map_sum] |
| 91 | simp only [TwistCechWeightComponents.MvPolynomial.coordinateHomogeneousLaurentWeightInclusion_differential, ht] |
| 92 | rw [Finset.univ_eq_attach N] |
| 93 | have hsum : |
| 94 | (∑ x ∈ N.attach, |
| 95 | TwistCechWeightComponents.MvPolynomial.coordinateHomogeneousLaurentWeightInclusion (R := R) d x.1 (n + 1) |
| 96 | (TwistCechWeightComponents.MvPolynomial.coordinateHomogeneousLaurentWeightComponent |
| 97 | (R := R) d x.1 (n + 1) s)) = |
| 98 | ∑ e ∈ N, |
| 99 | TwistCechWeightComponents.MvPolynomial.coordinateHomogeneousLaurentWeightInclusion (R := R) d e (n + 1) |
| 100 | (TwistCechWeightComponents.MvPolynomial.coordinateHomogeneousLaurentWeightComponent |
| 101 | (R := R) d e (n + 1) s) := |
| 102 | Finset.sum_attach N fun e => |
| 103 | TwistCechWeightComponents.MvPolynomial.coordinateHomogeneousLaurentWeightInclusion (R := R) d e (n + 1) |
| 104 | (TwistCechWeightComponents.MvPolynomial.coordinateHomogeneousLaurentWeightComponent |
| 105 | (R := R) d e (n + 1) s) |
| 106 | rw [hsum] |
| 107 | change (∑ e ∈ N, |
| 108 | TwistCechWeightComponents.MvPolynomial.coordinateHomogeneousLaurentWeightInclusion (R := R) d e (n + 1) |
| 109 | (TwistCechWeightComponents.MvPolynomial.coordinateHomogeneousLaurentWeightComponent |
| 110 | (R := R) d e (n + 1) s)) + |
| 111 | (∑ e ∈ A.filter (fun e => |
| 112 | e.liftedNegativeSupport = (Set.univ : Set (ULift.{u} σ))), |
| 113 | TwistCechWeightComponents.MvPolynomial.coordinateHomogeneousLaurentWeightInclusion (R := R) d e (n + 1) |
| 114 | (TwistCechWeightComponents.MvPolynomial.coordinateHomogeneousLaurentWeightComponent |
| 115 | (R := R) d e (n + 1) s)) = s |
| 116 | rw [show N = A.filter (fun e => |
| 117 | ¬e.liftedNegativeSupport = (Set.univ : Set (ULift.{u} σ))) by rfl] |
| 118 | calc |
| 119 | _ = (∑ e ∈ A.filter (fun e => |
| 120 | e.liftedNegativeSupport = (Set.univ : Set (ULift.{u} σ))), |
| 121 | TwistCechWeightComponents.MvPolynomial.coordinateHomogeneousLaurentWeightInclusion (R := R) d e (n + 1) |
| 122 | (TwistCechWeightComponents.MvPolynomial.coordinateHomogeneousLaurentWeightComponent |
| 123 | (R := R) d e (n + 1) s)) + |
| 124 | (∑ e ∈ A.filter (fun e => |
| 125 | ¬e.liftedNegativeSupport = (Set.univ : Set (ULift.{u} σ))), |
| 126 | TwistCechWeightComponents.MvPolynomial.coordinateHomogeneousLaurentWeightInclusion (R := R) d e (n + 1) |
| 127 | (TwistCechWeightComponents.MvPolynomial.coordinateHomogeneousLaurentWeightComponent |
| 128 | (R := R) d e (n + 1) s)) := add_comm _ _ |
| 129 | _ = ∑ e ∈ A, |
| 130 | TwistCechWeightComponents.MvPolynomial.coordinateHomogeneousLaurentWeightInclusion (R := R) d e (n + 1) |
| 131 | (TwistCechWeightComponents.MvPolynomial.coordinateHomogeneousLaurentWeightComponent |
| 132 | (R := R) d e (n + 1) s) := |
| 133 | Finset.sum_filter_add_sum_filter_not A |
| 134 | (fun e => e.liftedNegativeSupport = (Set.univ : Set (ULift.{u} σ))) _ |
| 135 | _ = s := TwistCechWeightAssembly.MvPolynomial.coordinateHomogeneousLaurentActiveWeights_reconstruct d (n + 1) s |
| 136 | |
| 137 | end |
| 138 | |
| 139 | end OAI.AlgebraicGeometry.SheafCohomology.Projective.LaurentCocycleDecomposition.MvPolynomial |