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.LinearAlgebra.BilinearForm.Properties |
| 2 | import Mathlib.Analysis.SpecialFunctions.Complex.Log |
| 3 | import Mathlib.Tactic.LinearCombination |
| 4 | |
| 5 | /-! # Lattice Semicharacter -/ |
| 6 | |
| 7 | namespace OAI.RepresentationTheory.Theta.Geometric.LatticeSemicharacter |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! An integral basis constructs a semicharacter for every integral |
| 12 | alternating form; the original polarization need not be doubled. -/ |
| 13 | |
| 14 | variable {L I : Type} [AddCommGroup L] [Module ℤ L] [LinearOrder I] |
| 15 | (b : Module.Basis I ℤ L) (B : LinearMap.BilinForm ℤ L) |
| 16 | |
| 17 | def upperLatticeForm : LinearMap.BilinForm ℤ L := |
| 18 | b.constr ℤ (fun i => b.constr ℤ (fun j => if i < j then B (b i) (b j) else 0)) |
| 19 | |
| 20 | @[simp] theorem upperLatticeForm_basis (i j : I) : |
| 21 | upperLatticeForm b B (b i) (b j) = if i < j then B (b i) (b j) else 0 := by |
| 22 | simp only [upperLatticeForm, Module.Basis.constr_basis] |
| 23 | |
| 24 | theorem upperLatticeForm_sub_flip (hB : B.IsAlt) : |
| 25 | upperLatticeForm b B - (upperLatticeForm b B).flip = B := by |
| 26 | apply b.ext |
| 27 | intro i |
| 28 | apply b.ext |
| 29 | intro j |
| 30 | simp only [LinearMap.sub_apply, LinearMap.BilinForm.flip_apply, upperLatticeForm_basis] |
| 31 | rcases lt_trichotomy i j with hij | rfl | hji |
| 32 | · simp only [hij, not_lt.mpr hij.le, ite_true, ite_false, sub_zero] |
| 33 | · simp only [lt_irrefl, ite_false, sub_self, hB (b i)] |
| 34 | · simp only [hji, not_lt.mpr hji.le, ite_true, ite_false, zero_sub] |
| 35 | exact LinearMap.BilinForm.IsAlt.neg_eq hB (b j) (b i) |
| 36 | |
| 37 | def latticeQuadraticRefinement (v : L) : ℤ := upperLatticeForm b B v v |
| 38 | |
| 39 | theorem latticeQuadraticRefinement_add (hB : B.IsAlt) (v w : L) : |
| 40 | latticeQuadraticRefinement b B (v + w) = |
| 41 | latticeQuadraticRefinement b B v + latticeQuadraticRefinement b B w + B v w + |
| 42 | 2 * upperLatticeForm b B w v := by |
| 43 | have h := LinearMap.congr_fun (LinearMap.congr_fun (upperLatticeForm_sub_flip b B hB) v) w |
| 44 | change upperLatticeForm b B v w - upperLatticeForm b B w v = B v w at h |
| 45 | simp only [latticeQuadraticRefinement, map_add, LinearMap.add_apply] |
| 46 | omega |
| 47 | |
| 48 | def latticeSemicharacter (v : L) : ℂ := |
| 49 | Complex.exp ((Real.pi : ℂ) * Complex.I * (latticeQuadraticRefinement b B v : ℂ)) |
| 50 | |
| 51 | theorem latticeSemicharacter_ne_zero (v : L) : latticeSemicharacter b B v ≠ 0 := |
| 52 | Complex.exp_ne_zero _ |
| 53 | |
| 54 | @[simp] theorem latticeSemicharacter_zero : latticeSemicharacter b B 0 = 1 := by |
| 55 | simp [latticeSemicharacter, latticeQuadraticRefinement] |
| 56 | |
| 57 | theorem latticeSemicharacter_add (hB : B.IsAlt) (v w : L) : |
| 58 | latticeSemicharacter b B (v + w) = latticeSemicharacter b B v * latticeSemicharacter b B w * |
| 59 | Complex.exp ((Real.pi : ℂ) * Complex.I * (B v w : ℂ)) := by |
| 60 | have h := latticeQuadraticRefinement_add b B hB v w |
| 61 | unfold latticeSemicharacter |
| 62 | rw [← Complex.exp_add, ← Complex.exp_add] |
| 63 | apply Complex.exp_eq_exp_iff_exists_int.mpr |
| 64 | refine ⟨upperLatticeForm b B w v, ?_⟩ |
| 65 | have hc := congrArg (fun n : ℤ => (n : ℂ)) h |
| 66 | push_cast at hc |
| 67 | linear_combination (Real.pi : ℂ) * Complex.I * hc |
| 68 | |
| 69 | end |
| 70 | |
| 71 | end OAI.RepresentationTheory.Theta.Geometric.LatticeSemicharacter |