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.AbelianModuli.HilbertConstruction.FreeCech.TupleHomotopyIdentity |
| 8 | |
| 9 | /-! # Tuple Support -/ |
| 10 | |
| 11 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.FreeCech |
| 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 | open Set |
| 19 | |
| 20 | /-- Every tuple occurring in a chain uses indices from `N`. -/ |
| 21 | def TupleChains.CechTupleChain.SupportedBy {ι : Type u} {n : ℕ} |
| 22 | (x : TupleChains.CechTupleChain ι n) (N : Set ι) : Prop := |
| 23 | ∀ ⦃i⦄, i ∈ x.support → Set.range i ⊆ N |
| 24 | |
| 25 | theorem TupleChains.CechTupleChain.supportedBy_zero {ι : Type u} {n : ℕ} {N : Set ι} : |
| 26 | TupleChains.CechTupleChain.SupportedBy (0 : TupleChains.CechTupleChain ι n) N := by |
| 27 | intro i hi |
| 28 | simp at hi |
| 29 | |
| 30 | theorem TupleChains.CechTupleChain.SupportedBy.add {ι : Type u} {n : ℕ} {N : Set ι} |
| 31 | {x y : TupleChains.CechTupleChain ι n} (hx : TupleChains.CechTupleChain.SupportedBy x N) |
| 32 | (hy : TupleChains.CechTupleChain.SupportedBy y N) : |
| 33 | TupleChains.CechTupleChain.SupportedBy (x + y) N := by |
| 34 | classical |
| 35 | intro i hi |
| 36 | rcases Finset.mem_union.mp (Finsupp.support_add hi) with hi | hi |
| 37 | · exact hx hi |
| 38 | · exact hy hi |
| 39 | |
| 40 | theorem TupleChains.CechTupleChain.SupportedBy.sub {ι : Type u} {n : ℕ} {N : Set ι} |
| 41 | {x y : TupleChains.CechTupleChain ι n} (hx : TupleChains.CechTupleChain.SupportedBy x N) |
| 42 | (hy : TupleChains.CechTupleChain.SupportedBy y N) : |
| 43 | TupleChains.CechTupleChain.SupportedBy (x - y) N := by |
| 44 | classical |
| 45 | intro i hi |
| 46 | rcases Finset.mem_union.mp (Finsupp.support_sub hi) with hi | hi |
| 47 | · exact hx hi |
| 48 | · exact hy hi |
| 49 | |
| 50 | theorem TupleChains.CechTupleChain.SupportedBy.smul {ι : Type u} {n : ℕ} {N : Set ι} |
| 51 | {x : TupleChains.CechTupleChain ι n} (hx : TupleChains.CechTupleChain.SupportedBy x N) (a : ℤ) : |
| 52 | TupleChains.CechTupleChain.SupportedBy (a • x) N := by |
| 53 | intro i hi |
| 54 | exact hx (Finsupp.support_smul hi) |
| 55 | |
| 56 | theorem TupleChains.CechTupleChain.SupportedBy.mono {ι : Type u} {n : ℕ} {N N' : Set ι} |
| 57 | {x : TupleChains.CechTupleChain ι n} (hx : TupleChains.CechTupleChain.SupportedBy x N) |
| 58 | (hNN' : N ⊆ N') : |
| 59 | TupleChains.CechTupleChain.SupportedBy x N' := by |
| 60 | intro i hi |
| 61 | exact (hx hi).trans hNN' |
| 62 | |
| 63 | theorem TupleChains.CechTupleChain.supportedBy_single {ι : Type u} {n : ℕ} {N : Set ι} |
| 64 | (i : Fin (n + 1) → ι) (a : ℤ) (hi : Set.range i ⊆ N) : |
| 65 | TupleChains.CechTupleChain.SupportedBy (Finsupp.single i a) N := by |
| 66 | intro j hj |
| 67 | have hji := Finsupp.support_single_subset hj |
| 68 | simp only [Finset.mem_singleton] at hji |
| 69 | subst j |
| 70 | exact hi |
| 71 | |
| 72 | theorem TupleChains.CechTupleChain.supportedBy_sum {ι : Type u} {n : ℕ} {N : Set ι} |
| 73 | {κ : Type*} (s : Finset κ) (f : κ → TupleChains.CechTupleChain ι n) |
| 74 | (hf : ∀ k ∈ s, TupleChains.CechTupleChain.SupportedBy (f k) N) : |
| 75 | TupleChains.CechTupleChain.SupportedBy (∑ k ∈ s, f k) N := by |
| 76 | classical |
| 77 | induction s using Finset.induction_on with |
| 78 | | empty => simp [TupleChains.CechTupleChain.supportedBy_zero] |
| 79 | | @insert k s hk ih => |
| 80 | rw [Finset.sum_insert hk] |
| 81 | exact (hf k (Finset.mem_insert_self k s)).add |
| 82 | (ih fun l hl => hf l (Finset.mem_insert_of_mem hl)) |
| 83 | |
| 84 | theorem TupleChains.CechTupleChain.supportedBy_linearExtension |
| 85 | {ι : Type u} {n m : ℕ} {N : Set ι} |
| 86 | (f : (Fin (n + 1) → ι) → TupleChains.CechTupleChain ι m) |
| 87 | (x : TupleChains.CechTupleChain ι n) |
| 88 | (hf : ∀ i ∈ x.support, TupleChains.CechTupleChain.SupportedBy (f i) N) : |
| 89 | TupleChains.CechTupleChain.SupportedBy (TupleChains.cechTupleLinearExtension f x) N := by |
| 90 | classical |
| 91 | intro j hj |
| 92 | rw [TupleChains.cechTupleLinearExtension, Finsupp.lsum_apply] at hj |
| 93 | change j ∈ (x.sum fun i a => a • f i).support at hj |
| 94 | obtain ⟨i, hi, hj⟩ := |
| 95 | Finset.mem_biUnion.mp (Finsupp.support_sum hj) |
| 96 | exact hf i hi (Finsupp.support_smul hj) |
| 97 | |
| 98 | end |
| 99 | |
| 100 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.FreeCech |