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 Chris Birkbeck. All rights reserved. |
| 3 | Released under Apache 2.0 license as described in the file LICENSE. |
| 4 | Authors: Chris Birkbeck |
| 5 | This file has been modified. |
| 6 | -/ |
| 7 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.CoefficientCech.AlternatingExtension |
| 8 | |
| 9 | /-! # Pair Cancellation -/ |
| 10 | |
| 11 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.CoefficientCech.PairCancellation |
| 12 | |
| 13 | noncomputable section |
| 14 | |
| 15 | open _root_.AlgebraicGeometry _root_.CategoryTheory _root_.CategoryTheory.Category _root_.CategoryTheory.Limits _root_.CategoryTheory.Preadditive Opposite _root_.TopologicalSpace |
| 16 | universe u |
| 17 | |
| 18 | theorem orderedToCoefficientCechAlternatingF_comp_coface_π_pair |
| 19 | {X : Scheme.{u}} {R : Type u} [CommRing R] (coefficientMap : R →+* Γ(X, ⊤)) (M : X.Modules) |
| 20 | {ι : Type u} [LinearOrder ι] (U : ι → X.Opens) (n : ℕ) |
| 21 | (i : Fin (n + 2) → ι) (k l : Fin (n + 2)) |
| 22 | (hki : i k = i l) : |
| 23 | AlternatingExtension.orderedToCoefficientCechAlternatingF coefficientMap M U n ≫ |
| 24 | Pi.π (fun j : Fin (n + 1) → ι => |
| 25 | Ordered.CoefficientCechTerms.coefficientCechFactor coefficientMap M U n j) (i ∘ k.succAbove) ≫ |
| 26 | (Coefficient.ModulePresheaf.coefficientModulePresheaf coefficientMap M).map |
| 27 | (((FormalCoproduct.mk _ U).mapPower k.succAbove).φ i).op = |
| 28 | (Equiv.Perm.sign (Cech.DeletedTupleSigns.cechDeleteSwapPerm k l) : ℤ) • |
| 29 | (AlternatingExtension.orderedToCoefficientCechAlternatingF coefficientMap M U n ≫ |
| 30 | Pi.π (fun j : Fin (n + 1) → ι => |
| 31 | Ordered.CoefficientCechTerms.coefficientCechFactor coefficientMap M U n j) (i ∘ l.succAbove) ≫ |
| 32 | (Coefficient.ModulePresheaf.coefficientModulePresheaf coefficientMap M).map |
| 33 | (((FormalCoproduct.mk _ U).mapPower l.succAbove).φ i).op) := by |
| 34 | let ρ := Cech.DeletedTupleSigns.cechDeleteSwapPerm k l |
| 35 | let p : (Intrinsic.CoefficientCechComplex.coefficientCechComplex coefficientMap M U).X n ⟶ |
| 36 | Ordered.CoefficientCechTerms.coefficientCechFactor coefficientMap M U n (i ∘ l.succAbove) := |
| 37 | Pi.π (fun j : Fin (n + 1) → ι => |
| 38 | Ordered.CoefficientCechTerms.coefficientCechFactor coefficientMap M U n j) (i ∘ l.succAbove) |
| 39 | let r : Ordered.CoefficientCechTerms.coefficientCechFactor coefficientMap M U n (i ∘ l.succAbove) ⟶ |
| 40 | Ordered.CoefficientCechTerms.coefficientCechFactor coefficientMap M U (n + 1) i := |
| 41 | (Coefficient.ModulePresheaf.coefficientModulePresheaf coefficientMap M).map |
| 42 | (((FormalCoproduct.mk _ U).mapPower l.succAbove).φ i).op |
| 43 | let pk : (Intrinsic.CoefficientCechComplex.coefficientCechComplex coefficientMap M U).X n ⟶ |
| 44 | Ordered.CoefficientCechTerms.coefficientCechFactor coefficientMap M U n (i ∘ k.succAbove) := |
| 45 | Pi.π (fun j : Fin (n + 1) → ι => |
| 46 | Ordered.CoefficientCechTerms.coefficientCechFactor coefficientMap M U n j) (i ∘ k.succAbove) |
| 47 | let rk : Ordered.CoefficientCechTerms.coefficientCechFactor coefficientMap M U n (i ∘ k.succAbove) ⟶ |
| 48 | Ordered.CoefficientCechTerms.coefficientCechFactor coefficientMap M U (n + 1) i := |
| 49 | (Coefficient.ModulePresheaf.coefficientModulePresheaf coefficientMap M).map |
| 50 | (((FormalCoproduct.mk _ U).mapPower k.succAbove).φ i).op |
| 51 | have htuple : (i ∘ l.succAbove) ∘ ρ = i ∘ k.succAbove := |
| 52 | Cech.DeletedTupleSigns.comp_succAbove_cechDeleteSwapPerm_of_eq i k l hki |
| 53 | let pρ : (Intrinsic.CoefficientCechComplex.coefficientCechComplex coefficientMap M U).X n ⟶ |
| 54 | Ordered.CoefficientCechTerms.coefficientCechFactor coefficientMap M U n ((i ∘ l.succAbove) ∘ ρ) := |
| 55 | Pi.π (fun j : Fin (n + 1) → ι => |
| 56 | Ordered.CoefficientCechTerms.coefficientCechFactor coefficientMap M U n j) ((i ∘ l.succAbove) ∘ ρ) |
| 57 | let rρ : Ordered.CoefficientCechTerms.coefficientCechFactor coefficientMap M U n ((i ∘ l.succAbove) ∘ ρ) ⟶ |
| 58 | Ordered.CoefficientCechTerms.coefficientCechFactor coefficientMap M U n (i ∘ l.succAbove) := |
| 59 | (Coefficient.ModulePresheaf.coefficientModulePresheaf coefficientMap M).map |
| 60 | (((FormalCoproduct.mk _ U).mapPower ρ).φ (i ∘ l.succAbove)).op |
| 61 | have hρp : Permutations.coefficientCechPermutationF coefficientMap M U n ρ ≫ p = pρ ≫ rρ := by |
| 62 | dsimp only [p, pρ, rρ] |
| 63 | exact Permutations.coefficientCechPermutationF_comp_π |
| 64 | coefficientMap M U n ρ (i ∘ l.succAbove) |
| 65 | let a : (∏ᶜ fun x : Fin (n + 2) => U (i x)) ⟶ |
| 66 | ∏ᶜ fun x : Fin (n + 1) => U (((i ∘ l.succAbove) ∘ ρ) x) := |
| 67 | ((FormalCoproduct.mk _ U).mapPower l.succAbove).φ i ≫ |
| 68 | ((FormalCoproduct.mk _ U).mapPower ρ).φ (i ∘ l.succAbove) |
| 69 | let b : (∏ᶜ fun x : Fin (n + 2) => U (i x)) ⟶ |
| 70 | ∏ᶜ fun x : Fin (n + 1) => U ((i ∘ k.succAbove) x) := |
| 71 | ((FormalCoproduct.mk _ U).mapPower k.succAbove).φ i |
| 72 | have hrmaps : rρ ≫ r = (Coefficient.ModulePresheaf.coefficientModulePresheaf coefficientMap M).map a.op := by |
| 73 | let f := ((FormalCoproduct.mk _ U).mapPower ρ).φ (i ∘ l.succAbove) |
| 74 | let g := ((FormalCoproduct.mk _ U).mapPower l.succAbove).φ i |
| 75 | change (Coefficient.ModulePresheaf.coefficientModulePresheaf coefficientMap M).map f.op ≫ |
| 76 | (Coefficient.ModulePresheaf.coefficientModulePresheaf coefficientMap M).map g.op = |
| 77 | (Coefficient.ModulePresheaf.coefficientModulePresheaf coefficientMap M).map (g ≫ f).op |
| 78 | calc |
| 79 | (Coefficient.ModulePresheaf.coefficientModulePresheaf coefficientMap M).map f.op ≫ |
| 80 | (Coefficient.ModulePresheaf.coefficientModulePresheaf coefficientMap M).map g.op = |
| 81 | (Coefficient.ModulePresheaf.coefficientModulePresheaf coefficientMap M).map (f.op ≫ g.op) := |
| 82 | ((Coefficient.ModulePresheaf.coefficientModulePresheaf coefficientMap M).map_comp f.op g.op).symm |
| 83 | _ = (Coefficient.ModulePresheaf.coefficientModulePresheaf coefficientMap M).map (g ≫ f).op := by |
| 84 | exact congrArg (Coefficient.ModulePresheaf.coefficientModulePresheaf coefficientMap M).map |
| 85 | (Subsingleton.elim _ _) |
| 86 | have hproj : pρ ≫ (Coefficient.ModulePresheaf.coefficientModulePresheaf coefficientMap M).map a.op = |
| 87 | pk ≫ (Coefficient.ModulePresheaf.coefficientModulePresheaf coefficientMap M).map b.op := by |
| 88 | dsimp only [pρ, pk] |
| 89 | exact AlternatingExtension.coefficientCechProjection_comp_map_eq_of_eq |
| 90 | coefficientMap M U n ((i ∘ l.succAbove) ∘ ρ) (i ∘ k.succAbove) |
| 91 | htuple a b |
| 92 | have hrest : (pρ ≫ rρ) ≫ r = pk ≫ rk := by |
| 93 | calc |
| 94 | (pρ ≫ rρ) ≫ r = pρ ≫ (rρ ≫ r) := Category.assoc _ _ _ |
| 95 | _ = pρ ≫ (Coefficient.ModulePresheaf.coefficientModulePresheaf coefficientMap M).map a.op := by rw [hrmaps] |
| 96 | _ = pk ≫ (Coefficient.ModulePresheaf.coefficientModulePresheaf coefficientMap M).map b.op := hproj |
| 97 | _ = pk ≫ rk := by rfl |
| 98 | have hface : Permutations.coefficientCechPermutationF coefficientMap M U n ρ ≫ p ≫ r = pk ≫ rk := by |
| 99 | calc |
| 100 | Permutations.coefficientCechPermutationF coefficientMap M U n ρ ≫ p ≫ r = (pρ ≫ rρ) ≫ r := by |
| 101 | exact congrArg (fun f => f ≫ r) hρp |
| 102 | _ = pk ≫ rk := hrest |
| 103 | have hperm := AlternatingExtension.orderedToCoefficientCechAlternatingF_comp_permutation |
| 104 | coefficientMap M U n ρ |
| 105 | change AlternatingExtension.orderedToCoefficientCechAlternatingF coefficientMap M U n ≫ pk ≫ rk = |
| 106 | (Equiv.Perm.sign ρ : ℤ) • |
| 107 | (AlternatingExtension.orderedToCoefficientCechAlternatingF coefficientMap M U n ≫ p ≫ r) |
| 108 | calc |
| 109 | AlternatingExtension.orderedToCoefficientCechAlternatingF coefficientMap M U n ≫ pk ≫ rk = |
| 110 | AlternatingExtension.orderedToCoefficientCechAlternatingF coefficientMap M U n ≫ |
| 111 | ((Permutations.coefficientCechPermutationF coefficientMap M U n ρ ≫ p) ≫ r) := by |
| 112 | simp only [Category.assoc] |
| 113 | rw [hface] |
| 114 | _ = (AlternatingExtension.orderedToCoefficientCechAlternatingF coefficientMap M U n ≫ |
| 115 | Permutations.coefficientCechPermutationF coefficientMap M U n ρ) ≫ (p ≫ r) := by |
| 116 | simp only [Category.assoc] |
| 117 | _ = ((Equiv.Perm.sign ρ : ℤ) • |
| 118 | AlternatingExtension.orderedToCoefficientCechAlternatingF coefficientMap M U n) ≫ (p ≫ r) := by |
| 119 | rw [hperm] |
| 120 | _ = (Equiv.Perm.sign ρ : ℤ) • |
| 121 | (AlternatingExtension.orderedToCoefficientCechAlternatingF coefficientMap M U n ≫ p ≫ r) := by |
| 122 | rw [zsmul_comp] |
| 123 | |
| 124 | theorem orderedToCoefficientCechAlternatingF_comp_coface_π_pair_cancel |
| 125 | {X : Scheme.{u}} {R : Type u} [CommRing R] (coefficientMap : R →+* Γ(X, ⊤)) (M : X.Modules) |
| 126 | {ι : Type u} [LinearOrder ι] (U : ι → X.Opens) (n : ℕ) |
| 127 | (i : Fin (n + 2) → ι) (k l : Fin (n + 2)) |
| 128 | (hki : i k = i l) (hkl : k ≠ l) : |
| 129 | (-1 : ℤ) ^ (k : ℕ) • |
| 130 | (AlternatingExtension.orderedToCoefficientCechAlternatingF coefficientMap M U n ≫ |
| 131 | Pi.π (fun j : Fin (n + 1) → ι => |
| 132 | Ordered.CoefficientCechTerms.coefficientCechFactor coefficientMap M U n j) (i ∘ k.succAbove) ≫ |
| 133 | (Coefficient.ModulePresheaf.coefficientModulePresheaf coefficientMap M).map |
| 134 | (((FormalCoproduct.mk _ U).mapPower k.succAbove).φ i).op) + |
| 135 | (-1 : ℤ) ^ (l : ℕ) • |
| 136 | (AlternatingExtension.orderedToCoefficientCechAlternatingF coefficientMap M U n ≫ |
| 137 | Pi.π (fun j : Fin (n + 1) → ι => |
| 138 | Ordered.CoefficientCechTerms.coefficientCechFactor coefficientMap M U n j) (i ∘ l.succAbove) ≫ |
| 139 | (Coefficient.ModulePresheaf.coefficientModulePresheaf coefficientMap M).map |
| 140 | (((FormalCoproduct.mk _ U).mapPower l.succAbove).φ i).op) = 0 := by |
| 141 | let t := AlternatingExtension.orderedToCoefficientCechAlternatingF coefficientMap M U n ≫ |
| 142 | Pi.π (fun j : Fin (n + 1) → ι => |
| 143 | Ordered.CoefficientCechTerms.coefficientCechFactor coefficientMap M U n j) (i ∘ l.succAbove) ≫ |
| 144 | (Coefficient.ModulePresheaf.coefficientModulePresheaf coefficientMap M).map |
| 145 | (((FormalCoproduct.mk _ U).mapPower l.succAbove).φ i).op |
| 146 | have hpair := orderedToCoefficientCechAlternatingF_comp_coface_π_pair |
| 147 | coefficientMap M U n i k l hki |
| 148 | change (-1 : ℤ) ^ (k : ℕ) • _ + (-1 : ℤ) ^ (l : ℕ) • t = 0 |
| 149 | rw [hpair, smul_smul, Cech.DeletedTupleSigns.cechDeleteSwapPerm_sign k l hkl] |
| 150 | have hcoef : |
| 151 | (-1 : ℤ) ^ (k : ℕ) * |
| 152 | -((-1 : ℤ) ^ (k : ℕ) * (-1 : ℤ) ^ (l : ℕ)) = |
| 153 | -((-1 : ℤ) ^ (l : ℕ)) := by |
| 154 | rw [mul_neg, ← mul_assoc, ← pow_add, |
| 155 | (Even.add_self (k : ℕ)).neg_one_pow, one_mul] |
| 156 | rw [hcoef, neg_smul, neg_add_cancel] |
| 157 | |
| 158 | end |
| 159 | |
| 160 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.CoefficientCech.PairCancellation |