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.DeletedTupleSigns |
| 8 | |
| 9 | /-! # Permuted Tuple Signs -/ |
| 10 | |
| 11 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Cech.PermutedTupleSigns |
| 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 | /-- The permutation induced on a tuple after deleting `r` and applying `σ`. -/ |
| 19 | def cechPermDeleteFull {n : ℕ} (σ : Equiv.Perm (Fin (n + 2))) |
| 20 | (r : Fin (n + 2)) : Equiv.Perm (Fin (n + 2)) := |
| 21 | (r.cycleRange.symm.trans σ).trans (σ r).cycleRange |
| 22 | |
| 23 | /-- The restriction of `cechPermDeleteFull` to the positive indices. -/ |
| 24 | def cechPermDelete {n : ℕ} (σ : Equiv.Perm (Fin (n + 2))) |
| 25 | (r : Fin (n + 2)) : Equiv.Perm (Fin (n + 1)) := |
| 26 | (Equiv.Perm.decomposeFin (cechPermDeleteFull σ r)).2 |
| 27 | |
| 28 | theorem cechPermDeleteFull_apply_zero {n : ℕ} |
| 29 | (σ : Equiv.Perm (Fin (n + 2))) (r : Fin (n + 2)) : |
| 30 | cechPermDeleteFull σ r 0 = 0 := by |
| 31 | simp [cechPermDeleteFull] |
| 32 | |
| 33 | theorem cechPermDeleteFull_eq_decomposeFin {n : ℕ} |
| 34 | (σ : Equiv.Perm (Fin (n + 2))) (r : Fin (n + 2)) : |
| 35 | cechPermDeleteFull σ r = |
| 36 | Equiv.Perm.decomposeFin.symm (0, cechPermDelete σ r) := by |
| 37 | apply Equiv.Perm.decomposeFin.injective |
| 38 | apply Prod.ext |
| 39 | · simpa [Equiv.Perm.decomposeFin] using |
| 40 | cechPermDeleteFull_apply_zero σ r |
| 41 | · rfl |
| 42 | |
| 43 | theorem cechPermDeleteFull_apply_succ {n : ℕ} |
| 44 | (σ : Equiv.Perm (Fin (n + 2))) (r : Fin (n + 2)) |
| 45 | (x : Fin (n + 1)) : |
| 46 | cechPermDeleteFull σ r x.succ = (cechPermDelete σ r x).succ := by |
| 47 | rw [cechPermDeleteFull_eq_decomposeFin] |
| 48 | simp |
| 49 | |
| 50 | theorem succAbove_cechPermDelete {n : ℕ} |
| 51 | (σ : Equiv.Perm (Fin (n + 2))) (r : Fin (n + 2)) |
| 52 | (x : Fin (n + 1)) : |
| 53 | (σ r).succAbove (cechPermDelete σ r x) = σ (r.succAbove x) := by |
| 54 | apply (σ r).cycleRange.injective |
| 55 | rw [Fin.cycleRange_succAbove] |
| 56 | rw [← cechPermDeleteFull_apply_succ σ r x] |
| 57 | simp [cechPermDeleteFull] |
| 58 | |
| 59 | theorem cechPermDelete_sign {n : ℕ} |
| 60 | (σ : Equiv.Perm (Fin (n + 2))) (r : Fin (n + 2)) : |
| 61 | (Equiv.Perm.sign (cechPermDelete σ r) : ℤ) = |
| 62 | (-1 : ℤ) ^ (r : ℕ) * (Equiv.Perm.sign σ : ℤ) * |
| 63 | (-1 : ℤ) ^ (σ r : ℕ) := by |
| 64 | have hsign := congrArg Equiv.Perm.sign |
| 65 | (cechPermDeleteFull_eq_decomposeFin σ r) |
| 66 | simp only [Equiv.Perm.decomposeFin.symm_sign, ite_eq_left, one_mul] at hsign |
| 67 | rw [← hsign] |
| 68 | simp [cechPermDeleteFull, Equiv.Perm.sign_trans, Units.val_mul, |
| 69 | mul_comm, mul_left_comm] |
| 70 | |
| 71 | theorem cechPermDelete_signed_coefficient {n : ℕ} |
| 72 | (σ : Equiv.Perm (Fin (n + 2))) (r : Fin (n + 2)) : |
| 73 | (-1 : ℤ) ^ (r : ℕ) * (Equiv.Perm.sign (cechPermDelete σ r) : ℤ) = |
| 74 | (Equiv.Perm.sign σ : ℤ) * (-1 : ℤ) ^ (σ r : ℕ) := by |
| 75 | rw [cechPermDelete_sign] |
| 76 | have hr : (-1 : ℤ) ^ (r : ℕ) * (-1 : ℤ) ^ (r : ℕ) = 1 := by |
| 77 | rw [← pow_add, (Even.add_self (r : ℕ)).neg_one_pow] |
| 78 | rw [← mul_assoc ((-1 : ℤ) ^ (r : ℕ)) |
| 79 | (((-1 : ℤ) ^ (r : ℕ)) * (Equiv.Perm.sign σ : ℤ)) |
| 80 | ((-1 : ℤ) ^ (σ r : ℕ)), |
| 81 | ← mul_assoc ((-1 : ℤ) ^ (r : ℕ)) |
| 82 | ((-1 : ℤ) ^ (r : ℕ)) (Equiv.Perm.sign σ : ℤ), |
| 83 | hr, one_mul] |
| 84 | |
| 85 | end |
| 86 | |
| 87 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Cech.PermutedTupleSigns |