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.AlgebraicGeometry.HodgeConjecture.CMExtraction.Multiplicity.Period |
| 2 | import OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.ReferenceDatum |
| 3 | |
| 4 | /-! # Representatives -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.HodgeConjecture.CMExtraction.Intrinsic.Representatives.Multiplicity |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! The actual PEL embedding list supplies a complete set of Galois |
| 11 | representatives, with its distinguished embedding equal to identity. -/ |
| 12 | |
| 13 | open OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.GeometricSource.CM |
| 14 | open scoped Classical |
| 15 | |
| 16 | attribute [local instance] Multiplicity.nativePlaceDecidableEq Multiplicity.nativeTripleDecidableEq |
| 17 | |
| 18 | variable (E : IntermediateField ℚ ℂ) [NumberField E] [NumberField.IsCMField E] [IsGalois ℚ E] |
| 19 | {s : ℕ} (P : AbelianModuli.ReferenceFamily.Datum.RankThreePELDatum E s) |
| 20 | |
| 21 | def nativePlaces (hP : P.IsAdmissible) (hμ : P.μ = E.val.toRingHom) : HeckeCycles.GeometricSource.CM.Places E where |
| 22 | count := s |
| 23 | representative := Multiplicity.Period.nativeArchLabel E P |
| 24 | distinguished := P.distinguished |
| 25 | identity := Multiplicity.Period.nativeArchLabel_active E P hμ |
| 26 | complete := by |
| 27 | have he : (fun i : Fin s × Bool => ComplexMultiplication.GaloisCMType.CM.CMCoefficientField.galoisEmbeddingEquiv E |
| 28 | (if i.2 then ComplexMultiplication.GaloisSigns.CM.CMCoefficientField.conjugation E * Multiplicity.Period.nativeArchLabel E P i.1 else Multiplicity.Period.nativeArchLabel E P i.1)) = |
| 29 | (fun i : Fin s × Bool => if i.2 then ComplexMultiplication.EmbeddingHodgeType.CM.conjugateEmbedding (P.embeddings i.1) |
| 30 | else P.embeddings i.1) := by |
| 31 | funext ⟨i, side⟩ |
| 32 | cases side with |
| 33 | | false => exact (ComplexMultiplication.GaloisCMType.CM.CMCoefficientField.galoisEmbeddingEquiv E).apply_symm_apply (P.embeddings i) |
| 34 | | true => |
| 35 | change ComplexMultiplication.GaloisCMType.CM.CMCoefficientField.galoisEmbeddingEquiv E (ComplexMultiplication.GaloisSigns.CM.CMCoefficientField.conjugation E * Multiplicity.Period.nativeArchLabel E P i) = _ |
| 36 | rw [ComplexMultiplication.GaloisCMType.CM.CMCoefficientField.galoisEmbeddingEquiv_conjugation] |
| 37 | exact congrArg ComplexMultiplication.EmbeddingHodgeType.CM.conjugateEmbedding ((ComplexMultiplication.GaloisCMType.CM.CMCoefficientField.galoisEmbeddingEquiv E).apply_symm_apply (P.embeddings i)) |
| 38 | have hb : Function.Bijective ((ComplexMultiplication.GaloisCMType.CM.CMCoefficientField.galoisEmbeddingEquiv E) ∘ |
| 39 | (fun i : Fin s × Bool => if i.2 then ComplexMultiplication.GaloisSigns.CM.CMCoefficientField.conjugation E * Multiplicity.Period.nativeArchLabel E P i.1 |
| 40 | else Multiplicity.Period.nativeArchLabel E P i.1)) := |
| 41 | (congrArg (fun f : (Fin s × Bool) → (E →ₐ[ℚ] ℂ) => Function.Bijective f) he).mpr hP.1 |
| 42 | exact ⟨fun i j hij => hb.1 (congrArg (ComplexMultiplication.GaloisCMType.CM.CMCoefficientField.galoisEmbeddingEquiv E) hij), fun τ => by |
| 43 | obtain ⟨i, hi⟩ := hb.2 (ComplexMultiplication.GaloisCMType.CM.CMCoefficientField.galoisEmbeddingEquiv E τ) |
| 44 | exact ⟨i, (ComplexMultiplication.GaloisCMType.CM.CMCoefficientField.galoisEmbeddingEquiv E).injective hi⟩⟩ |
| 45 | |
| 46 | def nativeRepresentatives : Finset Gal(E/ℚ) := Finset.univ.image (Multiplicity.Period.nativeArchLabel E P) |
| 47 | |
| 48 | theorem nativeArchLabel_injective (hP : P.IsAdmissible) (hμ : P.μ = E.val.toRingHom) : |
| 49 | Function.Injective (Multiplicity.Period.nativeArchLabel E P) := by |
| 50 | intro i j hij |
| 51 | exact congrArg Prod.fst ((nativePlaces E P hP hμ).complete.1 |
| 52 | (a₁ := (i, false)) (a₂ := (j, false)) hij) |
| 53 | |
| 54 | theorem nativeRepresentatives_prod {M : Type*} [CommMonoid M] |
| 55 | (hP : P.IsAdmissible) (hμ : P.μ = E.val.toRingHom) (f : Gal(E/ℚ) → M) : |
| 56 | (∏ τ ∈ nativeRepresentatives E P, f τ) = ∏ i : Fin s, f (Multiplicity.Period.nativeArchLabel E P i) := by |
| 57 | exact Finset.prod_image (nativeArchLabel_injective E P hP hμ).injOn |
| 58 | |
| 59 | theorem nativeRepresentatives_erase_prod {M : Type*} [CommMonoid M] |
| 60 | (hP : P.IsAdmissible) (hμ : P.μ = E.val.toRingHom) (f : Gal(E/ℚ) → M) : |
| 61 | (∏ τ ∈ (nativeRepresentatives E P).erase 1, f τ) = |
| 62 | ∏ i ∈ (Finset.univ : Finset (Fin s)).erase P.distinguished, f (Multiplicity.Period.nativeArchLabel E P i) := by |
| 63 | have he := Finset.image_erase (nativeArchLabel_injective E P hP hμ) Finset.univ P.distinguished |
| 64 | rw [Multiplicity.Period.nativeArchLabel_active E P hμ] at he |
| 65 | change (∏ τ ∈ (Finset.univ.image (Multiplicity.Period.nativeArchLabel E P)).erase 1, f τ) = _ |
| 66 | rw [← he] |
| 67 | exact Finset.prod_image (nativeArchLabel_injective E P hP hμ).injOn |
| 68 | |
| 69 | omit [NumberField E] [NumberField.IsCMField E] in |
| 70 | theorem nativeRepresentatives_active (hμ : P.μ = E.val.toRingHom) : |
| 71 | (1 : Gal(E/ℚ)) ∈ nativeRepresentatives E P := |
| 72 | Finset.mem_image.mpr ⟨P.distinguished, Finset.mem_univ _, Multiplicity.Period.nativeArchLabel_active E P hμ⟩ |
| 73 | |
| 74 | theorem nativeRepresentatives_paired (hP : P.IsAdmissible) (hμ : P.μ = E.val.toRingHom) |
| 75 | (τ : Gal(E/ℚ)) : |
| 76 | τ ∈ nativeRepresentatives E P ↔ ComplexMultiplication.GaloisSigns.CM.CMCoefficientField.conjugation E * τ ∉ nativeRepresentatives E P := by |
| 77 | let places := nativePlaces E P hP hμ |
| 78 | have hi := places.complete.1 |
| 79 | constructor |
| 80 | · intro hτ hct |
| 81 | obtain ⟨i, _, rfl⟩ := Finset.mem_image.mp hτ |
| 82 | obtain ⟨j, _, hj⟩ := Finset.mem_image.mp hct |
| 83 | have hp : (i, true) = (j, false) := hi hj.symm |
| 84 | exact Bool.false_ne_true (congrArg Prod.snd hp).symm |
| 85 | · intro hn |
| 86 | obtain ⟨⟨i, side⟩, he⟩ := places.complete.2 τ |
| 87 | cases side with |
| 88 | | false => exact Finset.mem_image.mpr ⟨i, Finset.mem_univ _, he⟩ |
| 89 | | true => |
| 90 | apply False.elim |
| 91 | apply hn |
| 92 | refine Finset.mem_image.mpr ⟨i, Finset.mem_univ _, ?_⟩ |
| 93 | change ComplexMultiplication.GaloisSigns.CM.CMCoefficientField.conjugation E * Multiplicity.Period.nativeArchLabel E P i = τ at he |
| 94 | rw [← he, ← mul_assoc] |
| 95 | have hc : ComplexMultiplication.GaloisSigns.CM.CMCoefficientField.conjugation E * ComplexMultiplication.GaloisSigns.CM.CMCoefficientField.conjugation E = 1 := by |
| 96 | apply AlgEquiv.ext |
| 97 | exact ComplexMultiplication.GaloisSigns.CM.CMCoefficientField.conjugation_apply_apply E |
| 98 | rw [hc, one_mul] |
| 99 | |
| 100 | theorem native_halfDet_identity (hP : P.IsAdmissible) (hμ : P.μ = E.val.toRingHom) |
| 101 | (v : Multiplicity.Odd.Sign E) (r : Eˣ) (h : ℂ) |
| 102 | (hh : h ^ 2 = (P.embeddings P.distinguished (r : E))⁻¹ * |
| 103 | ∏ i ∈ (Finset.univ : Finset (Fin s)).erase P.distinguished, |
| 104 | (P.embeddings i (r : E)) ^ (-3 * ComplexMultiplication.SignSwitch.CM.signValue (Multiplicity.Period.nativeCompactSigns E P v i))) : |
| 105 | h ^ 2 = (ComplexMultiplication.GaloisCMType.CM.CMCoefficientField.galoisEmbeddingEquiv E 1 (r : E)) ^ (1 - 2 : ℤ) * |
| 106 | ∏ τ ∈ (nativeRepresentatives E P).erase 1, |
| 107 | (ComplexMultiplication.GaloisCMType.CM.CMCoefficientField.galoisEmbeddingEquiv E τ (r : E)) ^ (-3 * ComplexMultiplication.SignSwitch.CM.signValue (v.val τ⁻¹)) := by |
| 108 | rw [show (1 - 2 : ℤ) = -1 from rfl, zpow_neg_one, |
| 109 | nativeRepresentatives_erase_prod E P hP hμ] |
| 110 | simp only [ComplexMultiplication.GaloisCMType.CM.CMCoefficientField.galoisEmbeddingEquiv_apply, Multiplicity.Period.nativeArchLabel_spec] |
| 111 | have hact : P.embeddings P.distinguished (r : E) = ((r : E) : ℂ) := RingHom.congr_fun hμ (r : E) |
| 112 | change h ^ 2 = ((r : E) : ℂ)⁻¹ * _ |
| 113 | rw [← hact] |
| 114 | exact hh |
| 115 | |
| 116 | end |
| 117 | |
| 118 | end OAI.AlgebraicGeometry.HodgeConjecture.CMExtraction.Intrinsic.Representatives.Multiplicity |