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.IdeleClassClosed |
| 2 | import OAI.RepresentationTheory.Theta.Adelic.SpecialUnitary |
| 3 | import OAI.RepresentationTheory.Weil.AdelicSplitting.CompactQuotient |
| 4 | |
| 5 | /-! # Idele Class Embedding -/ |
| 6 | |
| 7 | namespace OAI.RepresentationTheory.Theta.Adelic.IdeleClassEmbedding |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! The base idele-class map is a closed topological embedding. The |
| 12 | open-mapping step uses a countable compact covering of the actual adele |
| 13 | ring, obtained from its rational translates of compact representatives. -/ |
| 14 | |
| 15 | open scoped _root_.NumberField |
| 16 | |
| 17 | open OAI.RepresentationTheory.Weil.AdelicSplitting.CompactQuotient.Construction OAI.RepresentationTheory.Theta.Adelic.IdeleClassInjection |
| 18 | open OAI.RepresentationTheory.Theta.Adelic.IdeleClassClosed OAI.RepresentationTheory.Theta.Adelic.RationalClosed |
| 19 | |
| 20 | variable (F : Type) [Field F] [NumberField F] |
| 21 | |
| 22 | instance adelesSigmaCompact : SigmaCompactSpace (Weil.AdelicSplitting.ArchimedeanAdeles.Construction.Adeles F) := by |
| 23 | let : Countable F := (Module.finBasis ℚ F).repr.injective.countable |
| 24 | let K : F → Set (Weil.AdelicSplitting.ArchimedeanAdeles.Construction.Adeles F) := fun q => |
| 25 | (fun x => algebraMap F (Weil.AdelicSplitting.ArchimedeanAdeles.Construction.Adeles F) q + x) '' Weil.AdelicSplitting.CompactQuotient.Construction.adelicCompactRepresentatives F |
| 26 | have hK : ∀ q, IsCompact (K q) := fun q => |
| 27 | (Weil.AdelicSplitting.CompactQuotient.Construction.isCompact_adelicCompactRepresentatives F).image (continuous_const.add continuous_id) |
| 28 | have hcover : (⋃ q, K q) = Set.univ := by |
| 29 | apply Set.eq_univ_of_forall |
| 30 | intro a |
| 31 | obtain ⟨q, hq⟩ := Weil.AdelicSplitting.CompactQuotient.Construction.rational_translates_cover_adeles F a |
| 32 | exact Set.mem_iUnion.mpr ⟨q, a - algebraMap F (Weil.AdelicSplitting.ArchimedeanAdeles.Construction.Adeles F) q, hq, add_sub_cancel _ _⟩ |
| 33 | apply isSigmaCompact_univ_iff.mp |
| 34 | rw [← hcover] |
| 35 | exact isSigmaCompact_iUnion_of_isCompact K hK |
| 36 | |
| 37 | instance idelesSigmaCompact : SigmaCompactSpace (Weil.AdelicSplitting.ArchimedeanAdeles.Construction.Adeles F)ˣ := by |
| 38 | let : SigmaCompactSpace (Weil.AdelicSplitting.ArchimedeanAdeles.Construction.Adeles F)ᵐᵒᵖ := |
| 39 | MulOpposite.opHomeomorph.symm.isClosedEmbedding.sigmaCompactSpace |
| 40 | exact Units.isClosedEmbedding_embedProduct.sigmaCompactSpace |
| 41 | |
| 42 | instance ideleClassSigmaCompact : SigmaCompactSpace (NumberTheory.Adeles.LocalCompletions.CompletionFactors.IdeleClass F) := by |
| 43 | apply isSigmaCompact_univ_iff.mp |
| 44 | have h := isSigmaCompact_range (QuotientGroup.continuous_mk |
| 45 | (N := (NumberTheory.Adeles.LocalCompletions.CompletionFactors.principalIdele F).range)) |
| 46 | simpa only [Set.range_eq_univ.mpr QuotientGroup.mk_surjective] using h |
| 47 | |
| 48 | variable (d : F) (hd : d ≠ 0) (hns : ¬ IsSquare d) |
| 49 | |
| 50 | include hns in |
| 51 | theorem quadraticPrincipal_range_closed : |
| 52 | IsClosed ((IdeleClassInjection.quadraticPrincipal F d).range : Set (Weil.AdelicSplitting.ArchimedeanAdeles.Construction.adelicQuadratic F d)ˣ) := by |
| 53 | have he : ((IdeleClassInjection.quadraticPrincipal F d).range : Set (Weil.AdelicSplitting.ArchimedeanAdeles.Construction.adelicQuadratic F d)ˣ) = |
| 54 | Units.val ⁻¹' Set.range (Weil.AdelicSplitting.ArchimedeanAdeles.Construction.quadraticRational F d) := by |
| 55 | ext a |
| 56 | constructor |
| 57 | · rintro ⟨b, rfl⟩ |
| 58 | exact ⟨b.val, rfl⟩ |
| 59 | · rintro ⟨b, hb⟩ |
| 60 | let : Fact (∀ r : F, r ^ 2 ≠ d + 0 * r) := ⟨by |
| 61 | intro r hr |
| 62 | apply hns |
| 63 | exact ⟨r, by simpa only [zero_mul, add_zero, pow_two] using hr.symm⟩⟩ |
| 64 | have hb0 : b ≠ 0 := by |
| 65 | intro h |
| 66 | exact a.ne_zero (hb.symm.trans (h ▸ map_zero _)) |
| 67 | exact ⟨Units.mk0 b hb0, Units.ext hb⟩ |
| 68 | rw [he] |
| 69 | exact (RationalClosed.quadraticRational_range_closed F d).preimage Units.continuous_val |
| 70 | |
| 71 | include hd hns in |
| 72 | theorem scalarIdeleClass_closedEmbedding : Topology.IsClosedEmbedding (IdeleClassInjection.scalarIdeleClass F d) := by |
| 73 | let : IsClosed ((IdeleClassInjection.quadraticPrincipal F d).range : Set (Weil.AdelicSplitting.ArchimedeanAdeles.Construction.adelicQuadratic F d)ˣ) := |
| 74 | quadraticPrincipal_range_closed F d hns |
| 75 | let : T2Space (IdeleClassInjection.QuadraticIdeleClass F d) := inferInstance |
| 76 | let : LocallyCompactSpace (IdeleClassInjection.QuadraticIdeleClass F d) := inferInstance |
| 77 | let : LocallyCompactSpace (IdeleClassInjection.scalarIdeleClass F d).range := |
| 78 | (IdeleClassClosed.scalarIdeleClass_range_closed F d hd hns).isClosedEmbedding_subtypeVal.locallyCompactSpace |
| 79 | let f := (IdeleClassInjection.scalarIdeleClass F d).rangeRestrict |
| 80 | have hc : Continuous f := (IdeleClassInjection.scalarIdeleClass_continuous F d).subtype_mk _ |
| 81 | have hs : Function.Surjective f := by |
| 82 | rintro ⟨y, ⟨x, rfl⟩⟩ |
| 83 | exact ⟨x, rfl⟩ |
| 84 | have hi : Function.Injective f := fun x y h => |
| 85 | IdeleClassInjection.scalarIdeleClass_injective F d (congrArg Subtype.val h) |
| 86 | have ho : IsOpenMap f := f.isOpenMap_of_sigmaCompact hs hc |
| 87 | exact ⟨Topology.IsEmbedding.subtypeVal.comp |
| 88 | (Topology.IsOpenEmbedding.of_continuous_injective_isOpenMap hc hi ho).isEmbedding, |
| 89 | IdeleClassClosed.scalarIdeleClass_range_closed F d hd hns⟩ |
| 90 | |
| 91 | end |
| 92 | |
| 93 | end OAI.RepresentationTheory.Theta.Adelic.IdeleClassEmbedding |