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.OrderedCech.ComplexProjection |
| 8 | |
| 9 | /-! # Projection Coordinates -/ |
| 10 | |
| 11 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.OrderedCech.ProjectionCoordinates |
| 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 | /-- Restriction of an all-tuples family to strictly increasing tuples. -/ |
| 19 | noncomputable def coefficientCechPiToOrderedLinearMap |
| 20 | {X : Scheme.{u}} {R : Type u} [CommRing R] (ρ : R →+* Γ(X, ⊤)) (M : X.Modules) |
| 21 | {ι : Type u} [LinearOrder ι] (U : ι → X.Opens) (n : ℕ) : |
| 22 | (∀ i : Fin (n + 1) → ι, Ordered.CoefficientCechTerms.coefficientCechFactor ρ M U n i) →ₗ[R] |
| 23 | Ordered.CoefficientCechTerms.orderedCoefficientCechTerm ρ M U n := |
| 24 | LinearMap.pi fun i => LinearMap.proj i.1 |
| 25 | |
| 26 | /-- Extend a dependent family on a subtype by zero. -/ |
| 27 | noncomputable def piSubtypeZeroExtend |
| 28 | {R I : Type u} [Semiring R] (p : I → Prop) [DecidablePred p] |
| 29 | (Z : I → Type u) [∀ i, AddCommMonoid (Z i)] [∀ i, Module R (Z i)] : |
| 30 | (∀ i : Subtype p, Z i.1) →ₗ[R] ∀ i, Z i where |
| 31 | toFun x i := if h : p i then x ⟨i, h⟩ else 0 |
| 32 | map_add' x y := by |
| 33 | funext i |
| 34 | by_cases h : p i <;> simp [h] |
| 35 | map_smul' r x := by |
| 36 | funext i |
| 37 | by_cases h : p i <;> simp [h] |
| 38 | |
| 39 | theorem piSubtypeRestriction_comp_zeroExtend |
| 40 | {R I : Type u} [Semiring R] (p : I → Prop) [DecidablePred p] |
| 41 | (Z : I → Type u) [∀ i, AddCommMonoid (Z i)] [∀ i, Module R (Z i)] : |
| 42 | (LinearMap.pi fun i : Subtype p => |
| 43 | (LinearMap.proj i.1 : (∀ i, Z i) →ₗ[R] Z i.1)).comp |
| 44 | (piSubtypeZeroExtend p Z) = LinearMap.id := by |
| 45 | ext x i |
| 46 | simp [piSubtypeZeroExtend, i.2] |
| 47 | |
| 48 | /-- Extend an ordered family by zero on tuples that are not strictly increasing. -/ |
| 49 | noncomputable def orderedCoefficientCechZeroExtendLinearMap |
| 50 | {X : Scheme.{u}} {R : Type u} [CommRing R] (ρ : R →+* Γ(X, ⊤)) (M : X.Modules) |
| 51 | {ι : Type u} [LinearOrder ι] (U : ι → X.Opens) (n : ℕ) : |
| 52 | Ordered.CoefficientCechTerms.orderedCoefficientCechTerm ρ M U n →ₗ[R] |
| 53 | (∀ i : Fin (n + 1) → ι, Ordered.CoefficientCechTerms.coefficientCechFactor ρ M U n i) := |
| 54 | piSubtypeZeroExtend (fun i => StrictMono i) |
| 55 | (fun i => Ordered.CoefficientCechTerms.coefficientCechFactor ρ M U n i) |
| 56 | |
| 57 | theorem coefficientCechPiToOrderedLinearMap_comp_zeroExtend |
| 58 | {X : Scheme.{u}} {R : Type u} [CommRing R] (ρ : R →+* Γ(X, ⊤)) (M : X.Modules) |
| 59 | {ι : Type u} [LinearOrder ι] (U : ι → X.Opens) (n : ℕ) : |
| 60 | (coefficientCechPiToOrderedLinearMap ρ M U n).comp |
| 61 | (orderedCoefficientCechZeroExtendLinearMap ρ M U n) = LinearMap.id := by |
| 62 | exact piSubtypeRestriction_comp_zeroExtend (fun i => StrictMono i) |
| 63 | (fun i => Ordered.CoefficientCechTerms.coefficientCechFactor ρ M U n i) |
| 64 | |
| 65 | theorem coefficientCechToOrderedF_comp_π |
| 66 | {X : Scheme.{u}} {R : Type u} [CommRing R] (ρ : R →+* Γ(X, ⊤)) (M : X.Modules) |
| 67 | {ι : Type u} [LinearOrder ι] (U : ι → X.Opens) (n : ℕ) |
| 68 | (i : Ordered.SectionCechIndices.OrderedCechIndex ι n) : |
| 69 | FormalProjection.coefficientCechToOrderedF ρ M U n ≫ |
| 70 | Pi.π (fun j : Ordered.SectionCechIndices.OrderedCechIndex ι n => |
| 71 | Ordered.CoefficientCechTerms.coefficientCechFactor ρ M U n j.1) i = |
| 72 | Pi.π (fun j : Fin (n + 1) → ι => |
| 73 | Ordered.CoefficientCechTerms.coefficientCechFactor ρ M U n j) i.1 := by |
| 74 | change (Pi.lift fun j : Ordered.SectionCechIndices.OrderedCechIndex ι n => |
| 75 | Pi.π (fun k : Fin (n + 1) → ι => |
| 76 | Ordered.CoefficientCechTerms.coefficientCechFactor ρ M U n k) j.1 ≫ |
| 77 | (Coefficient.ModulePresheaf.coefficientModulePresheaf ρ M).map (𝟙 _).op) ≫ _ = _ |
| 78 | simp |
| 79 | |
| 80 | theorem orderedCoefficientCechObjectIsoPi_hom_comp_proj |
| 81 | {X : Scheme.{u}} {R : Type u} [CommRing R] (ρ : R →+* Γ(X, ⊤)) (M : X.Modules) |
| 82 | {ι : Type u} [LinearOrder ι] (U : ι → X.Opens) (n : ℕ) |
| 83 | (i : Ordered.SectionCechIndices.OrderedCechIndex ι n) : |
| 84 | (Ordered.CoefficientCechTerms.orderedCoefficientCechObjectIsoPi ρ M U n).hom ≫ |
| 85 | ModuleCat.ofHom |
| 86 | (LinearMap.proj i : Ordered.CoefficientCechTerms.orderedCoefficientCechTerm ρ M U n →ₗ[ |
| 87 | R] Ordered.CoefficientCechTerms.coefficientCechFactor ρ M U n i.1) = |
| 88 | Pi.π (fun j : Ordered.SectionCechIndices.OrderedCechIndex ι n => |
| 89 | Ordered.CoefficientCechTerms.coefficientCechFactor ρ M U n j.1) i := by |
| 90 | change (ModuleCat.piIsoPi (fun j : Ordered.SectionCechIndices.OrderedCechIndex ι n => |
| 91 | Ordered.CoefficientCechTerms.coefficientCechFactor ρ M U n j.1)).hom ≫ |
| 92 | ModuleCat.ofHom (LinearMap.proj i) = _ |
| 93 | exact ModuleCat.piIsoPi_hom_ker_subtype _ i |
| 94 | |
| 95 | theorem coefficientCechXIsoPi_inv_comp_proj |
| 96 | {X : Scheme.{u}} {R : Type u} [CommRing R] (ρ : R →+* Γ(X, ⊤)) (M : X.Modules) |
| 97 | {ι : Type u} (U : ι → X.Opens) (n : ℕ) |
| 98 | (i : Fin (n + 1) → ι) : |
| 99 | (Intrinsic.CoefficientCechComplex.coefficientCechXIsoPi ρ M U n).inv ≫ |
| 100 | Pi.π (fun j : Fin (n + 1) → ι => |
| 101 | Ordered.CoefficientCechTerms.coefficientCechFactor ρ M U n j) i = |
| 102 | ModuleCat.ofHom |
| 103 | (LinearMap.proj i : |
| 104 | (∀ j : Fin (n + 1) → ι, Ordered.CoefficientCechTerms.coefficientCechFactor ρ M U n j) →ₗ[ |
| 105 | R] Ordered.CoefficientCechTerms.coefficientCechFactor ρ M U n i) := by |
| 106 | exact ModuleCat.piIsoPi_inv_kernel_ι _ i |
| 107 | |
| 108 | end |
| 109 | |
| 110 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.OrderedCech.ProjectionCoordinates |