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.FiniteQuadraticDyadic |
| 2 | import Mathlib.GroupTheory.Perm.Cycle.Type |
| 3 | |
| 4 | /-! # Finite Quadratic Pieces -/ |
| 5 | |
| 6 | namespace OAI.RepresentationTheory.Weil.Local |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Finding a nondegenerate piece when no nonzero isotropic element exists. -/ |
| 11 | |
| 12 | open scoped Classical |
| 13 | |
| 14 | variable {A : Type*} [AddCommGroup A] |
| 15 | |
| 16 | def FiniteQuadratic.Construction.QuadraticCharacter.HasPhasePiece (q : FiniteQuadratic.Construction.QuadraticCharacter A) : Prop := |
| 17 | ∃ H : AddSubgroup A, Nontrivial H ∧ (q.restrict H).Nondegenerate ∧ |
| 18 | ∀ [Fintype H], FunctionsMetaplectic.Construction.phase (q.restrict H).gauss ^ 8 = 1 |
| 19 | |
| 20 | theorem FiniteQuadratic.Construction.QuadraticCharacter.cyclic_phase_piece (q : FiniteQuadratic.Construction.QuadraticCharacter A) {x : A} (hx : x ≠ 0) |
| 21 | {n : ℕ} [NeZero n] (hn : addOrderOf x = n) |
| 22 | (hnd : ((q.restrict (AddSubgroup.zmultiples x)).pullback |
| 23 | (FiniteQuadratic.Construction.QuadraticCharacter.cyclicEquiv x hn).toAddMonoidHom).Nondegenerate) |
| 24 | (hp : ∀ p : FiniteQuadratic.Construction.QuadraticCharacter (ZMod n), p.Nondegenerate → FunctionsMetaplectic.Construction.phase p.gauss ^ 8 = 1) : |
| 25 | q.HasPhasePiece := by |
| 26 | let H := AddSubgroup.zmultiples x |
| 27 | let e := FiniteQuadratic.Construction.QuadraticCharacter.cyclicEquiv x hn |
| 28 | refine ⟨H, ⟨⟨⟨x, AddSubgroup.mem_zmultiples x⟩, 0, |
| 29 | fun h => hx (congrArg Subtype.val h)⟩⟩, ?_, ?_⟩ |
| 30 | · exact ((q.restrict H).nondegenerate_pullback e).mp hnd |
| 31 | · intro _ |
| 32 | rw [← (q.restrict H).gauss_pullback e] |
| 33 | exact hp _ hnd |
| 34 | |
| 35 | theorem FiniteQuadratic.Construction.QuadraticCharacter.odd_prime_phase_piece (q : FiniteQuadratic.Construction.QuadraticCharacter A) {x : A} {p : ℕ} |
| 36 | (hp : p.Prime) (hp2 : p ≠ 2) (horder : addOrderOf x = p) (hx : q x ≠ 1) : |
| 37 | q.HasPhasePiece := by |
| 38 | let : Fact p.Prime := ⟨hp⟩ |
| 39 | have hx0 : x ≠ 0 := by intro h; apply hx; rw [h, q.map_zero] |
| 40 | apply q.cyclic_phase_piece hx0 horder |
| 41 | · exact ((q.restrict _).nondegenerate_pullback _).mpr |
| 42 | (q.nondegenerate_prime_cyclic hp hp2 horder hx) |
| 43 | · intro r _ |
| 44 | rw [show (8 : ℕ) = 4 * 2 from rfl, pow_mul, r.phase_gauss_zmod_odd p hp2, one_pow] |
| 45 | |
| 46 | theorem FiniteQuadratic.Construction.QuadraticCharacter.two_phase_piece (q : FiniteQuadratic.Construction.QuadraticCharacter A) {x : A} |
| 47 | (horder : addOrderOf x = 2) (hx : q x ^ 2 ≠ 1) : q.HasPhasePiece := by |
| 48 | have hx0 : x ≠ 0 := by intro h; subst x; simp at horder |
| 49 | apply q.cyclic_phase_piece hx0 horder |
| 50 | · apply FiniteQuadratic.Construction.QuadraticCharacter.nondegenerate_zmod_two |
| 51 | change q (FiniteQuadratic.Construction.QuadraticCharacter.cyclicEquiv x horder 1).val ^ 2 ≠ 1 |
| 52 | rwa [FiniteQuadratic.Construction.QuadraticCharacter.cyclicEquiv_one] |
| 53 | · intro r hr |
| 54 | exact r.phase_gauss_zmod_two (r.gauss_ne_zero hr) |
| 55 | |
| 56 | theorem FiniteQuadratic.Construction.QuadraticCharacter.four_phase_piece (q : FiniteQuadratic.Construction.QuadraticCharacter A) {x : A} |
| 57 | (horder : addOrderOf x = 4) (hx : q x ^ 4 = -1) : q.HasPhasePiece := by |
| 58 | have hx0 : x ≠ 0 := by intro h; subst x; simp at horder |
| 59 | apply q.cyclic_phase_piece hx0 horder |
| 60 | · apply FiniteQuadratic.Construction.QuadraticCharacter.nondegenerate_zmod_four |
| 61 | change q (FiniteQuadratic.Construction.QuadraticCharacter.cyclicEquiv x horder 1).val ^ 4 = -1 |
| 62 | rwa [FiniteQuadratic.Construction.QuadraticCharacter.cyclicEquiv_one] |
| 63 | · intro r hr |
| 64 | exact r.phase_gauss_zmod_four (r.gauss_ne_zero hr) |
| 65 | |
| 66 | theorem FiniteQuadratic.Construction.QuadraticCharacter.anisotropic_two_piece [Fintype A] (q : FiniteQuadratic.Construction.QuadraticCharacter A) (hG : q.gauss ≠ 0) |
| 67 | (hani : ∀ z, q z = 1 → z = 0) {x : A} (horder : addOrderOf x = 2) : |
| 68 | q.HasPhasePiece := by |
| 69 | by_cases hsq : q x ^ 2 = 1 |
| 70 | · have hx0 : x ≠ 0 := by intro h; subst x; simp at horder |
| 71 | have hqx : q x = -1 := (sq_eq_one_iff.mp hsq).resolve_left (fun h => hx0 (hani x h)) |
| 72 | have hx2 : 2 • x = 0 := horder ▸ addOrderOf_nsmul_eq_zero x |
| 73 | obtain ⟨y, hy⟩ := q.pairing_witness hG (fun h => hx0 (hani x h)) |
| 74 | obtain ⟨z, r, hz, hb⟩ := q.two_primary_pairing_witness hx2 hy |
| 75 | have hr : r < 3 := by |
| 76 | by_contra h |
| 77 | obtain ⟨w, hw, hqw⟩ := q.isotropic_of_large_two_power hz (by omega) |
| 78 | exact hw (hani w hqw) |
| 79 | have hz0 : z ≠ 0 := by intro h; rw [h, (q.polar x).map_zero_eq_one] at hb; norm_num at hb |
| 80 | interval_cases r |
| 81 | · have he : z = 0 := by |
| 82 | have hh := addOrderOf_nsmul_eq_zero z |
| 83 | simpa [hz] using hh |
| 84 | exact False.elim (hz0 he) |
| 85 | · have hz2 : addOrderOf z = 2 := by simpa using hz |
| 86 | by_cases hs : q z ^ 2 = 1 |
| 87 | · have hqz : q z = -1 := (sq_eq_one_iff.mp hs).resolve_left (fun h => hz0 (hani z h)) |
| 88 | exact q.anisotropic_plane_subgroup hx2 (hz2 ▸ addOrderOf_nsmul_eq_zero z) hqx hqz hb |
| 89 | · exact q.two_phase_piece hz2 hs |
| 90 | · have hz4 : addOrderOf z = 4 := by simpa using hz |
| 91 | have h8 : q z ^ 8 = 1 := by simpa only [hz4, Nat.reduceMul] using q.value_pow_twice_order z |
| 92 | have hs : q z ^ 4 = -1 := by |
| 93 | apply (sq_eq_one_iff.mp (show (q z ^ 4) ^ 2 = 1 by rw [← pow_mul]; exact h8)).resolve_left |
| 94 | intro h |
| 95 | have he : 2 • z = 0 := hani _ (by simpa only [q.map_nsmul, Nat.reducePow] using h) |
| 96 | have hd := addOrderOf_dvd_iff_nsmul_eq_zero.mpr he |
| 97 | norm_num [hz4] at hd |
| 98 | exact q.four_phase_piece hz4 hs |
| 99 | · exact q.two_phase_piece horder hsq |
| 100 | |
| 101 | theorem FiniteQuadratic.Construction.QuadraticCharacter.anisotropic_has_phase_piece [Fintype A] [Nontrivial A] (q : FiniteQuadratic.Construction.QuadraticCharacter A) |
| 102 | (hG : q.gauss ≠ 0) (hani : ∀ x, q x = 1 → x = 0) : q.HasPhasePiece := by |
| 103 | obtain ⟨p, hp, hdiv⟩ := Nat.exists_prime_and_dvd (ne_of_gt (Fintype.one_lt_card (α := A))) |
| 104 | let : Fact p.Prime := ⟨hp⟩ |
| 105 | obtain ⟨x, hx⟩ := exists_prime_addOrderOf_dvd_card (G := A) p hdiv |
| 106 | by_cases hp2 : p = 2 |
| 107 | · exact q.anisotropic_two_piece hG hani (hx.trans hp2) |
| 108 | · apply q.odd_prime_phase_piece hp hp2 hx |
| 109 | intro h |
| 110 | have h0 := hani x h |
| 111 | subst x |
| 112 | exact hp.ne_one (by simpa using hx.symm) |
| 113 | |
| 114 | end |
| 115 | |
| 116 | end OAI.RepresentationTheory.Weil.Local |