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 OAI.RepresentationTheory.Weil.Local.FiniteQuadraticPieces |
| 2 | |
| 3 | /-! # Finite Quadratic Phase -/ |
| 4 | |
| 5 | namespace OAI.RepresentationTheory.Weil.Local |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! The eighth-root phase theorem for every nonzero finite quadratic Gauss sum. -/ |
| 10 | |
| 11 | open scoped Classical |
| 12 | |
| 13 | universe u |
| 14 | |
| 15 | theorem FiniteQuadratic.Construction.QuadraticCharacter.phase_gauss_eighth {A : Type u} [AddCommGroup A] [Fintype A] |
| 16 | (q : FiniteQuadratic.Construction.QuadraticCharacter A) (hq : q.gauss ≠ 0) : FunctionsMetaplectic.Construction.phase q.gauss ^ 8 = 1 := by |
| 17 | induction hcard : Fintype.card A using Nat.strong_induction_on generalizing A with |
| 18 | | h n ih => |
| 19 | rcases subsingleton_or_nontrivial A with hs | hn |
| 20 | · let : Subsingleton A := hs |
| 21 | have hv : ∀ x : A, q x = 1 := fun x => (Subsingleton.elim x 0) ▸ q.map_zero |
| 22 | simp [FiniteQuadratic.Construction.QuadraticCharacter.gauss, hv, FunctionsMetaplectic.Construction.phase] |
| 23 | · let : Nontrivial A := hn |
| 24 | by_cases hani : ∀ x, q x = 1 → x = 0 |
| 25 | · obtain ⟨H, hH, hnd, hphase⟩ := q.anisotropic_has_phase_piece hq hani |
| 26 | let : Nontrivial H := hH |
| 27 | have hlt : Fintype.card (q.orthogonal H) < n := by |
| 28 | rw [← hcard] |
| 29 | exact q.orthogonal_card_lt H hnd |
| 30 | have hnz : (q.restrict (q.orthogonal H)).gauss ≠ 0 := by |
| 31 | rw [q.gauss_orthogonalSplit H hnd] at hq |
| 32 | exact (mul_ne_zero_iff.mp hq).2 |
| 33 | rw [q.phase_orthogonalSplit H hnd, mul_pow, hphase] |
| 34 | simpa only [one_mul] using ih _ hlt (q.restrict (q.orthogonal H)) hnz rfl |
| 35 | · push Not at hani |
| 36 | obtain ⟨x, hqx, hx⟩ := hani |
| 37 | let H := AddSubgroup.zmultiples x |
| 38 | let : Nontrivial H := ⟨⟨⟨x, AddSubgroup.mem_zmultiples x⟩, 0, |
| 39 | fun h => hx (congrArg Subtype.val h)⟩⟩ |
| 40 | have hH : q.Isotropic H := q.isotropic_zmultiples hqx |
| 41 | have hlt : Fintype.card (q.orthogonal H ⧸ H.addSubgroupOf (q.orthogonal H)) < n := by |
| 42 | rw [← hcard] |
| 43 | exact q.isotropicReduction_card_lt H hH |
| 44 | have hnz : (q.isotropicReduction H hH).gauss ≠ 0 := by |
| 45 | rw [q.gauss_isotropicReduction H hH] at hq |
| 46 | exact (mul_ne_zero_iff.mp hq).2 |
| 47 | rw [q.phase_isotropicReduction H hH] |
| 48 | exact ih _ hlt (q.isotropicReduction H hH) hnz rfl |
| 49 | |
| 50 | end |
| 51 | |
| 52 | end OAI.RepresentationTheory.Weil.Local |