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.Cech.PermutedTupleSigns |
| 8 | |
| 9 | /-! # Repeated Tuple Partners -/ |
| 10 | |
| 11 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Cech.RepeatedTuplePartners |
| 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 exists_eq_ne_of_not_injective |
| 19 | {α β : Type*} (f : α → β) (hf : ¬ Function.Injective f) : |
| 20 | ∃ a b, f a = f b ∧ a ≠ b := by |
| 21 | by_contra h |
| 22 | apply hf |
| 23 | intro a b hab |
| 24 | by_contra hne |
| 25 | exact h ⟨a, b, hab, hne⟩ |
| 26 | |
| 27 | theorem exists_partner_of_delete_injective {n : ℕ} |
| 28 | {ι : Type*} (i : Fin (n + 2) → ι) (hi : ¬ Function.Injective i) |
| 29 | (k : Fin (n + 2)) (hk : Function.Injective (i ∘ k.succAbove)) : |
| 30 | ∃ l, l ≠ k ∧ i l = i k := by |
| 31 | obtain ⟨a, b, hab, hne⟩ := exists_eq_ne_of_not_injective i hi |
| 32 | by_cases ha : a = k |
| 33 | · subst a |
| 34 | exact ⟨b, hne.symm, hab.symm⟩ |
| 35 | by_cases hb : b = k |
| 36 | · subst b |
| 37 | exact ⟨a, ha, hab⟩ |
| 38 | obtain ⟨a', ha'⟩ := Fin.exists_succAbove_eq ha |
| 39 | obtain ⟨b', hb'⟩ := Fin.exists_succAbove_eq hb |
| 40 | exfalso |
| 41 | apply hne |
| 42 | rw [← ha', ← hb'] |
| 43 | exact congrArg k.succAbove (hk (by simpa [ha', hb'] using hab)) |
| 44 | |
| 45 | theorem eq_partner_of_delete_injective {n : ℕ} |
| 46 | {ι : Type*} (i : Fin (n + 2) → ι) (k l x : Fin (n + 2)) |
| 47 | (hk : Function.Injective (i ∘ k.succAbove)) |
| 48 | (hlk : l ≠ k) (hxk : x ≠ k) (hil : i l = i k) (hix : i x = i k) : |
| 49 | x = l := by |
| 50 | obtain ⟨x', hx'⟩ := Fin.exists_succAbove_eq hxk |
| 51 | obtain ⟨l', hl'⟩ := Fin.exists_succAbove_eq hlk |
| 52 | rw [← hx', ← hl'] |
| 53 | apply congrArg k.succAbove |
| 54 | apply hk |
| 55 | simp [hx', hl', hix, hil] |
| 56 | |
| 57 | theorem delete_partner_injective {n : ℕ} |
| 58 | {ι : Type*} (i : Fin (n + 2) → ι) (k l : Fin (n + 2)) |
| 59 | (hk : Function.Injective (i ∘ k.succAbove)) |
| 60 | (hlk : l ≠ k) (hil : i l = i k) : |
| 61 | Function.Injective (i ∘ l.succAbove) := by |
| 62 | intro a b hab |
| 63 | apply Fin.succAbove_right_injective |
| 64 | let x := l.succAbove a |
| 65 | let y := l.succAbove b |
| 66 | change x = y |
| 67 | by_cases hxk : x = k |
| 68 | · by_cases hyk : y = k |
| 69 | · exact hxk.trans hyk.symm |
| 70 | · have hyl : y = l := eq_partner_of_delete_injective |
| 71 | i k l y hk hlk hyk hil (by simpa [x, y, hxk] using hab.symm) |
| 72 | exact (l.succAbove_ne b hyl).elim |
| 73 | · by_cases hyk : y = k |
| 74 | · have hxl : x = l := eq_partner_of_delete_injective |
| 75 | i k l x hk hlk hxk hil (by simpa [x, y, hyk] using hab) |
| 76 | exact (l.succAbove_ne a hxl).elim |
| 77 | · obtain ⟨a', ha'⟩ := Fin.exists_succAbove_eq hxk |
| 78 | obtain ⟨b', hb'⟩ := Fin.exists_succAbove_eq hyk |
| 79 | rw [← ha', ← hb'] |
| 80 | exact congrArg k.succAbove (hk (by simpa [x, y, ha', hb'] using hab)) |
| 81 | |
| 82 | theorem delete_not_injective_of_ne {n : ℕ} |
| 83 | {ι : Type*} (i : Fin (n + 2) → ι) (k l m : Fin (n + 2)) |
| 84 | (hkl : k ≠ l) (hkm : k ≠ m) (hlm : l ≠ m) (hil : i l = i k) : |
| 85 | ¬ Function.Injective (i ∘ m.succAbove) := by |
| 86 | obtain ⟨a, ha⟩ := Fin.exists_succAbove_eq hkm |
| 87 | obtain ⟨b, hb⟩ := Fin.exists_succAbove_eq hlm |
| 88 | intro hm |
| 89 | apply hkl |
| 90 | rw [← ha, ← hb] |
| 91 | exact congrArg m.succAbove (hm (by simpa [ha, hb] using hil.symm)) |
| 92 | |
| 93 | end |
| 94 | |
| 95 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Cech.RepeatedTuplePartners |