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.Hecke.RadialDilation.SplitPairedTrace |
| 2 | |
| 3 | /-! # Representative Embeddings -/ |
| 4 | |
| 5 | namespace OAI.RepresentationTheory.Hecke.RadialDilation.RepresentativeEmbeddings.Realization |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | section |
| 10 | |
| 11 | /-! The Galois representative set supplies both archimedean and split local embedding labels. -/ |
| 12 | |
| 13 | open scoped Classical |
| 14 | |
| 15 | variable (E : IntermediateField ℚ ℂ) [NumberField E] [NumberField.IsCMField E] [IsGalois ℚ E] |
| 16 | |
| 17 | def representativePair (reps : Finset Gal(E/ℚ)) : reps × Bool → Gal(E/ℚ) := |
| 18 | fun p => if p.2 then AlgebraicGeometry.ComplexMultiplication.GaloisSigns.CM.CMCoefficientField.conjugation E * p.1.val else p.1.val |
| 19 | |
| 20 | omit [IsGalois ℚ E] in |
| 21 | theorem conjugation_mul_twice (τ : Gal(E/ℚ)) : AlgebraicGeometry.ComplexMultiplication.GaloisSigns.CM.CMCoefficientField.conjugation E * (AlgebraicGeometry.ComplexMultiplication.GaloisSigns.CM.CMCoefficientField.conjugation E * τ) = τ := by |
| 22 | apply AlgEquiv.ext |
| 23 | intro x |
| 24 | exact AlgebraicGeometry.ComplexMultiplication.GaloisSigns.CM.CMCoefficientField.conjugation_apply_apply E (τ x) |
| 25 | |
| 26 | omit [IsGalois ℚ E] in |
| 27 | theorem representativePair_bijective (reps : Finset Gal(E/ℚ)) |
| 28 | (hreps : ∀ τ, τ ∈ reps ↔ AlgebraicGeometry.ComplexMultiplication.GaloisSigns.CM.CMCoefficientField.conjugation E * τ ∉ reps) : |
| 29 | Function.Bijective (representativePair E reps) := by |
| 30 | constructor |
| 31 | · rintro ⟨a, i⟩ ⟨b, j⟩ h |
| 32 | cases i <;> cases j |
| 33 | · have he : a.val = b.val := h |
| 34 | exact Prod.ext (Subtype.ext he) rfl |
| 35 | · have he : a.val = AlgebraicGeometry.ComplexMultiplication.GaloisSigns.CM.CMCoefficientField.conjugation E * b.val := h |
| 36 | exact False.elim (((hreps b.val).mp b.property) (he ▸ a.property)) |
| 37 | · have he : AlgebraicGeometry.ComplexMultiplication.GaloisSigns.CM.CMCoefficientField.conjugation E * a.val = b.val := h |
| 38 | exact False.elim (((hreps a.val).mp a.property) (he.symm ▸ b.property)) |
| 39 | · have he : AlgebraicGeometry.ComplexMultiplication.GaloisSigns.CM.CMCoefficientField.conjugation E * a.val = AlgebraicGeometry.ComplexMultiplication.GaloisSigns.CM.CMCoefficientField.conjugation E * b.val := h |
| 40 | exact Prod.ext (Subtype.ext (mul_left_cancel he)) rfl |
| 41 | · intro τ |
| 42 | by_cases hτ : τ ∈ reps |
| 43 | · exact ⟨(⟨τ, hτ⟩, false), rfl⟩ |
| 44 | · have hc : AlgebraicGeometry.ComplexMultiplication.GaloisSigns.CM.CMCoefficientField.conjugation E * τ ∈ reps := by |
| 45 | apply (hreps _).mpr |
| 46 | rw [conjugation_mul_twice] |
| 47 | exact hτ |
| 48 | exact ⟨(⟨AlgebraicGeometry.ComplexMultiplication.GaloisSigns.CM.CMCoefficientField.conjugation E * τ, hc⟩, true), conjugation_mul_twice E τ⟩ |
| 49 | |
| 50 | def complexRepresentativeEmbeddings (reps : Finset Gal(E/ℚ)) : reps → E →ₐ[ℚ] ℂ := |
| 51 | fun τ => AlgebraicGeometry.ComplexMultiplication.GaloisCMType.CM.CMCoefficientField.galoisEmbeddingEquiv E τ.val |
| 52 | |
| 53 | theorem complexRepresentativeEmbeddings_paired (reps : Finset Gal(E/ℚ)) |
| 54 | (hreps : ∀ τ, τ ∈ reps ↔ AlgebraicGeometry.ComplexMultiplication.GaloisSigns.CM.CMCoefficientField.conjugation E * τ ∉ reps) : |
| 55 | Function.Bijective (Complexification.Realization.pairingEmbeddings (complexRepresentativeEmbeddings E reps)) := by |
| 56 | have he : Complexification.Realization.pairingEmbeddings (complexRepresentativeEmbeddings E reps) = |
| 57 | (AlgebraicGeometry.ComplexMultiplication.GaloisCMType.CM.CMCoefficientField.galoisEmbeddingEquiv E) ∘ representativePair E reps := by |
| 58 | funext p |
| 59 | rcases p with ⟨τ, b⟩ |
| 60 | cases b |
| 61 | · rfl |
| 62 | · exact (AlgebraicGeometry.ComplexMultiplication.GaloisCMType.CM.CMCoefficientField.galoisEmbeddingEquiv_conjugation E τ.val).symm |
| 63 | rw [he] |
| 64 | exact (AlgebraicGeometry.ComplexMultiplication.GaloisCMType.CM.CMCoefficientField.galoisEmbeddingEquiv E).bijective.comp (representativePair_bijective E reps hreps) |
| 65 | |
| 66 | variable (K : Type*) [Field K] [Algebra ℚ K] [Algebra E K] [IsScalarTower ℚ E K] |
| 67 | |
| 68 | def splitGaloisEmbeddingEquiv : Gal(E/ℚ) ≃ (E →ₐ[ℚ] K) := (Normal.algHomEquivAut ℚ K E).symm |
| 69 | |
| 70 | theorem splitGaloisEmbeddingEquiv_conjugation (τ : Gal(E/ℚ)) : |
| 71 | splitGaloisEmbeddingEquiv E K (AlgebraicGeometry.ComplexMultiplication.GaloisSigns.CM.CMCoefficientField.conjugation E * τ) = |
| 72 | SplitTrace.Realization.conjugateSplitEmbedding E K (splitGaloisEmbeddingEquiv E K τ) := by |
| 73 | ext x |
| 74 | change algebraMap E K ((AlgebraicGeometry.ComplexMultiplication.GaloisSigns.CM.CMCoefficientField.conjugation E * τ) x) = algebraMap E K ((τ * AlgebraicGeometry.ComplexMultiplication.GaloisSigns.CM.CMCoefficientField.conjugation E) x) |
| 75 | rw [(AlgebraicGeometry.ComplexMultiplication.GaloisSigns.CM.CMCoefficientField.conjugation_commute E τ).eq] |
| 76 | |
| 77 | def splitRepresentativeEmbeddings (reps : Finset Gal(E/ℚ)) : reps → E →ₐ[ℚ] K := |
| 78 | fun τ => splitGaloisEmbeddingEquiv E K τ.val |
| 79 | |
| 80 | theorem splitRepresentativeEmbeddings_paired (reps : Finset Gal(E/ℚ)) |
| 81 | (hreps : ∀ τ, τ ∈ reps ↔ AlgebraicGeometry.ComplexMultiplication.GaloisSigns.CM.CMCoefficientField.conjugation E * τ ∉ reps) : |
| 82 | Function.Bijective (SplitPairedTrace.Realization.splitPairingEmbeddings E K (splitRepresentativeEmbeddings E K reps)) := by |
| 83 | have he : SplitPairedTrace.Realization.splitPairingEmbeddings E K (splitRepresentativeEmbeddings E K reps) = |
| 84 | (splitGaloisEmbeddingEquiv E K) ∘ representativePair E reps := by |
| 85 | funext p |
| 86 | rcases p with ⟨τ, b⟩ |
| 87 | cases b |
| 88 | · rfl |
| 89 | · exact (splitGaloisEmbeddingEquiv_conjugation E K τ.val).symm |
| 90 | rw [he] |
| 91 | exact (splitGaloisEmbeddingEquiv E K).bijective.comp (representativePair_bijective E reps hreps) |
| 92 | |
| 93 | end |
| 94 | |
| 95 | /-! Convert the concrete representative-index determinant into RadialDilation's Galois-index product. -/ |
| 96 | |
| 97 | open scoped Classical |
| 98 | |
| 99 | theorem representative_erase_product {I A : Type*} [DecidableEq I] [CommMonoid A] |
| 100 | (s : Finset I) (i : s) (f : I → A) : |
| 101 | ∏ j ∈ (Finset.univ : Finset s).erase i, f j.val = ∏ j ∈ s.erase i.val, f j := by |
| 102 | rw [Finset.univ_eq_attach] |
| 103 | exact Finset.prod_erase_attach f i |
| 104 | |
| 105 | theorem representative_erase_product_with_decidable {I A : Type*} [DecidableEq I] [CommMonoid A] |
| 106 | (s : Finset I) (ds : DecidableEq s) (i : s) (f : I → A) : |
| 107 | ∏ j ∈ @Finset.erase s ds Finset.univ i, f j.val = ∏ j ∈ s.erase i.val, f j := by |
| 108 | have hd : ds = (fun a b : s => a.instDecidableEq b) := Subsingleton.elim _ _ |
| 109 | subst ds |
| 110 | rw [Finset.univ_eq_attach] |
| 111 | exact Finset.prod_erase_attach f i |
| 112 | |
| 113 | theorem representative_halfDet_identity |
| 114 | (E : IntermediateField ℚ ℂ) [NumberField E] [NumberField.IsCMField E] [IsGalois ℚ E] |
| 115 | (reps : Finset Gal(E/ℚ)) (hactive : (1 : Gal(E/ℚ)) ∈ reps) |
| 116 | (d : Gal(E/ℚ) → Bool) (r : Eˣ) (h : ℂ) |
| 117 | (hh : h ^ 2 = (complexRepresentativeEmbeddings E reps ⟨1, hactive⟩ (r : E))⁻¹ * |
| 118 | ∏ τ ∈ @Finset.erase reps (Classical.decEq reps) Finset.univ ⟨1, hactive⟩, |
| 119 | complexRepresentativeEmbeddings E reps τ (r : E) ^ (-3 * AlgebraicGeometry.ComplexMultiplication.SignSwitch.CM.signValue (d τ.val))) : |
| 120 | h ^ 2 = (AlgebraicGeometry.ComplexMultiplication.GaloisCMType.CM.CMCoefficientField.galoisEmbeddingEquiv E 1 (r : E)) ^ (1 - 2 : ℤ) * |
| 121 | ∏ τ ∈ reps.erase 1, AlgebraicGeometry.ComplexMultiplication.GaloisCMType.CM.CMCoefficientField.galoisEmbeddingEquiv E τ (r : E) ^ (-3 * AlgebraicGeometry.ComplexMultiplication.SignSwitch.CM.signValue (d τ)) := by |
| 122 | rw [show (1 - 2 : ℤ) = -1 from rfl, zpow_neg_one] |
| 123 | have hp := representative_erase_product_with_decidable reps (Classical.decEq reps) ⟨1, hactive⟩ |
| 124 | (fun τ => AlgebraicGeometry.ComplexMultiplication.GaloisCMType.CM.CMCoefficientField.galoisEmbeddingEquiv E τ (r : E) ^ (-3 * AlgebraicGeometry.ComplexMultiplication.SignSwitch.CM.signValue (d τ))) |
| 125 | simp only [complexRepresentativeEmbeddings] at hh |
| 126 | rw [hp] at hh |
| 127 | exact hh |
| 128 | |
| 129 | end |
| 130 | |
| 131 | end OAI.RepresentationTheory.Hecke.RadialDilation.RepresentativeEmbeddings.Realization |