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 | import Mathlib.GroupTheory.Perm.Fin |
| 2 | |
| 3 | /-! # Complement Sign -/ |
| 4 | |
| 5 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Projective.ComplementSign |
| 6 | |
| 7 | /-! The sign of the induced ordering on complementary projective coordinates. -/ |
| 8 | |
| 9 | open Equiv |
| 10 | |
| 11 | variable {n : ℕ} |
| 12 | |
| 13 | def complement (e : Perm (Fin (n + 1))) (i : Fin (n + 1)) : Perm (Fin n) := |
| 14 | (finSuccAboveEquiv i).trans |
| 15 | ((e.subtypeEquiv (fun j => by simp)).trans (finSuccAboveEquiv (e i)).symm) |
| 16 | |
| 17 | @[simp] theorem succAbove_complement (e : Perm (Fin (n + 1))) (i : Fin (n + 1)) |
| 18 | (j : Fin n) : (e i).succAbove (complement e i j) = e (i.succAbove j) := by |
| 19 | exact congrArg Subtype.val ((finSuccAboveEquiv (e i)).apply_symm_apply |
| 20 | ((e.subtypeEquiv (fun j => by simp)) ((finSuccAboveEquiv i) j))) |
| 21 | |
| 22 | theorem extended_complement (e : Perm (Fin (n + 1))) (i : Fin (n + 1)) : |
| 23 | Perm.decomposeFin.symm (0, complement e i) = |
| 24 | (e i).cycleRange * e * i.cycleRange⁻¹ := by |
| 25 | ext j |
| 26 | refine Fin.cases ?_ (fun j => ?_) j |
| 27 | · simp |
| 28 | · simp only [Perm.decomposeFin_symm_apply_succ, swap_self, refl_apply, |
| 29 | Perm.mul_apply, Equiv.Perm.inv_def, Fin.cycleRange_symm_succ] |
| 30 | rw [← succAbove_complement, Fin.cycleRange_succAbove] |
| 31 | |
| 32 | theorem sign_complement (e : Perm (Fin (n + 1))) (i : Fin (n + 1)) : |
| 33 | Perm.sign (complement e i) = (-1) ^ (e i).val * Perm.sign e * (-1) ^ i.val := by |
| 34 | have h := congrArg Perm.sign (extended_complement e i) |
| 35 | simpa only [Perm.decomposeFin.symm_sign, ite_true, one_mul, map_mul, |
| 36 | Perm.sign_inv, Fin.sign_cycleRange] using h |
| 37 | |
| 38 | theorem sign_complement_swap (i k : Fin (n + 1)) (h : i ≠ k) : |
| 39 | Perm.sign (complement (swap i k) i) = (-1) ^ k.val * (-1) * (-1) ^ i.val := by |
| 40 | rw [sign_complement, swap_apply_left, Perm.sign_swap h] |
| 41 | |
| 42 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Projective.ComplementSign |