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.Theta.Adelic.IdeleClassEmbedding |
| 2 | import OAI.Topology.Pontryagin.CharacterExtension |
| 3 | |
| 4 | /-! # Idele Character Extension -/ |
| 5 | |
| 6 | namespace OAI.RepresentationTheory.Theta.Adelic.IdeleCharacterExtension |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Character extension on the concrete base and quadratic idele classes, |
| 11 | using the proved closed embedding and the checked Pontryagin theorem. -/ |
| 12 | |
| 13 | open scoped _root_.NumberField |
| 14 | |
| 15 | open OAI.RepresentationTheory.Theta.Adelic.IdeleClassInjection |
| 16 | open OAI.RepresentationTheory.Theta.Adelic.IdeleClassEmbedding OAI.RepresentationTheory.Theta.Adelic.RationalClosed |
| 17 | |
| 18 | variable (F : Type) [Field F] [NumberField F] (d : F) (hd : d ≠ 0) (hns : ¬ IsSquare d) |
| 19 | |
| 20 | include hd hns in |
| 21 | theorem extend_ideleClass_character (χ : NumberTheory.Adeles.LocalCompletions.CompletionFactors.IdeleClass F →ₜ* Circle) : |
| 22 | ∃ χE : IdeleClassInjection.QuadraticIdeleClass F d →ₜ* Circle, |
| 23 | ∀ x, χE (IdeleClassInjection.scalarIdeleClass F d x) = χ x := by |
| 24 | let : IsClosed ((IdeleClassInjection.quadraticPrincipal F d).range : Set (Weil.AdelicSplitting.ArchimedeanAdeles.Construction.adelicQuadratic F d)ˣ) := |
| 25 | IdeleClassEmbedding.quadraticPrincipal_range_closed F d hns |
| 26 | let : T2Space (IdeleClassInjection.QuadraticIdeleClass F d) := inferInstance |
| 27 | let : LocallyCompactSpace (IdeleClassInjection.QuadraticIdeleClass F d) := inferInstance |
| 28 | let f := (IdeleClassInjection.scalarIdeleClass F d).rangeRestrict |
| 29 | have hs : Function.Surjective f := by |
| 30 | rintro ⟨y, ⟨x, rfl⟩⟩ |
| 31 | exact ⟨x, rfl⟩ |
| 32 | have hi : Function.Injective f := fun x y h => |
| 33 | IdeleClassInjection.scalarIdeleClass_injective F d (congrArg Subtype.val h) |
| 34 | let e : NumberTheory.Adeles.LocalCompletions.CompletionFactors.IdeleClass F ≃* (IdeleClassInjection.scalarIdeleClass F d).range := |
| 35 | MulEquiv.ofBijective f ⟨hi, hs⟩ |
| 36 | have he : Topology.IsEmbedding e := |
| 37 | Topology.IsEmbedding.subtypeVal.of_comp_iff.mp |
| 38 | (IdeleClassEmbedding.scalarIdeleClass_closedEmbedding F d hd hns).isEmbedding |
| 39 | have hei : Continuous e.symm := by |
| 40 | apply he.continuous_iff.mpr |
| 41 | change Continuous (fun x => e (e.symm x)) |
| 42 | have heq : (fun x => e (e.symm x)) = (id : (IdeleClassInjection.scalarIdeleClass F d).range → _) := |
| 43 | funext e.apply_symm_apply |
| 44 | rw [heq] |
| 45 | exact continuous_id |
| 46 | let χH : (IdeleClassInjection.scalarIdeleClass F d).range →ₜ* Circle := |
| 47 | χ.comp { e.symm.toMonoidHom with continuous_toFun := hei } |
| 48 | obtain ⟨χE, hχE⟩ := OAI.Topology.Pontryagin.CharacterExtension.Constructions.pontryagin_character_extension |
| 49 | (G := IdeleClassInjection.QuadraticIdeleClass F d) |
| 50 | (IdeleClassInjection.scalarIdeleClass F d).range |
| 51 | (IdeleClassClosed.scalarIdeleClass_range_closed F d hd hns) χH |
| 52 | refine ⟨χE, ?_⟩ |
| 53 | intro x |
| 54 | have h := hχE (e x) |
| 55 | change χE (IdeleClassInjection.scalarIdeleClass F d x) = χ (e.symm (e x)) at h |
| 56 | simpa only [e.symm_apply_apply] using h |
| 57 | |
| 58 | include hd hns in |
| 59 | theorem extend_to_quadratic_Hecke_character (χ : NumberTheory.Adeles.LocalCompletions.CompletionFactors.IdeleClass F →ₜ* Circle) : |
| 60 | ∃ χE : (Weil.AdelicSplitting.ArchimedeanAdeles.Construction.adelicQuadratic F d)ˣ →ₜ* Circle, |
| 61 | (∀ a : (Weil.AdelicSplitting.UnitaryBase.Construction.Quadratic F d)ˣ, χE (IdeleClassInjection.quadraticPrincipal F d a) = 1) ∧ |
| 62 | ∀ x : (Weil.AdelicSplitting.ArchimedeanAdeles.Construction.Adeles F)ˣ, |
| 63 | χE (IdeleClassInjection.scalarIdele F d x) = χ (QuotientGroup.mk' (NumberTheory.Adeles.LocalCompletions.CompletionFactors.principalIdele F).range x) := by |
| 64 | obtain ⟨χC, hχC⟩ := extend_ideleClass_character F d hd hns χ |
| 65 | let q : (Weil.AdelicSplitting.ArchimedeanAdeles.Construction.adelicQuadratic F d)ˣ →ₜ* IdeleClassInjection.QuadraticIdeleClass F d := |
| 66 | { QuotientGroup.mk' (IdeleClassInjection.quadraticPrincipal F d).range with |
| 67 | continuous_toFun := QuotientGroup.continuous_mk } |
| 68 | refine ⟨χC.comp q, ?_, ?_⟩ |
| 69 | · intro a |
| 70 | have h : q (IdeleClassInjection.quadraticPrincipal F d a) = 1 := (QuotientGroup.eq_one_iff _).mpr ⟨a, rfl⟩ |
| 71 | change χC (q (IdeleClassInjection.quadraticPrincipal F d a)) = 1 |
| 72 | rw [h, map_one] |
| 73 | · intro x |
| 74 | exact hχC (QuotientGroup.mk' (NumberTheory.Adeles.LocalCompletions.CompletionFactors.principalIdele F).range x) |
| 75 | |
| 76 | end |
| 77 | |
| 78 | end OAI.RepresentationTheory.Theta.Adelic.IdeleCharacterExtension |