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.AdelicSplitting.Characters |
| 2 | |
| 3 | /-! # Unramified Character -/ |
| 4 | |
| 5 | namespace OAI.RepresentationTheory.Weil.AdelicSplitting.UnramifiedCharacter.Construction |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Continuity forces a unitary adelic additive character to be trivial |
| 10 | on the integer rings at all but finitely many finite places. -/ |
| 11 | |
| 12 | open Filter |
| 13 | open scoped Classical _root_.NumberField _root_.Topology |
| 14 | |
| 15 | theorem eventually_cofinite_sum_right {I J : Type*} (p : J → Prop) |
| 16 | (hp : ∀ᶠ j in cofinite, p j) : |
| 17 | ∀ᶠ v : I ⊕ J in cofinite, match v with | .inl _ => True | .inr j => p j := by |
| 18 | rw [eventually_cofinite] |
| 19 | have h := (eventually_cofinite.mp hp).image (Sum.inr : J → I ⊕ J) |
| 20 | convert h using 1 |
| 21 | ext v |
| 22 | cases v <;> simp |
| 23 | |
| 24 | theorem circle_character_product_tail |
| 25 | {I : Type*} {A : I → Type*} [∀ i, AddCommGroup (A i)] |
| 26 | [∀ i, TopologicalSpace (A i)] |
| 27 | (χ : AddChar (∀ i, A i) Circle) (hχ : Continuous χ) : |
| 28 | ∃ s : Finset I, ∀ i ∉ s, ∀ a : A i, χ (Pi.single i a) = 1 := by |
| 29 | have hz : χ 0 ∈ Circle.centeredArc (Real.pi / 2) := by |
| 30 | rw [χ.map_zero_eq_one] |
| 31 | exact ⟨0, by simpa using (half_pos Real.pi_pos), Circle.exp_zero⟩ |
| 32 | obtain ⟨s, U, hU, hs⟩ := isOpen_pi_iff.mp |
| 33 | ((Circle.isOpen_centeredArc _).preimage hχ) 0 hz |
| 34 | have hsingle (i : I) (hi : i ∉ s) (a : A i) : |
| 35 | χ (Pi.single i a) ∈ Circle.centeredArc (Real.pi / 2) := by |
| 36 | apply hs |
| 37 | intro j hj |
| 38 | rw [Pi.single_eq_of_ne (show j ≠ i from fun h => hi (h ▸ hj))] |
| 39 | exact (hU j hj).2 |
| 40 | refine ⟨s, ?_⟩ |
| 41 | intro i hi a |
| 42 | apply Circle.eq_one_of_forall_pow_mem_centeredArc_pi_div_two |
| 43 | intro n _ |
| 44 | rw [← χ.map_nsmul_eq_pow] |
| 45 | have he : n • Pi.single i a = Pi.single i (n • a) := by |
| 46 | funext j |
| 47 | by_cases h : j = i |
| 48 | · subst j; simp |
| 49 | · simp [Pi.single_eq_of_ne h] |
| 50 | rw [he] |
| 51 | exact hsingle i hi _ |
| 52 | |
| 53 | variable (F : Type) [Field F] [NumberField F] |
| 54 | |
| 55 | def integralFiniteAdeles : |
| 56 | (∀ v : IsDedekindDomain.HeightOneSpectrum (𝓞 F), v.adicCompletionIntegers F) →+ ArchimedeanAdeles.Construction.Adeles F where |
| 57 | toFun x := (0, ⟨fun v => (x v).val, Filter.Eventually.of_forall (fun v => (x v).property)⟩) |
| 58 | map_zero' := by |
| 59 | apply Prod.ext |
| 60 | · rfl |
| 61 | · apply RestrictedProduct.ext; intro v; rfl |
| 62 | map_add' x y := by |
| 63 | apply Prod.ext |
| 64 | · exact (add_zero 0).symm |
| 65 | · apply RestrictedProduct.ext; intro v; rfl |
| 66 | |
| 67 | theorem integralFiniteAdeles_continuous : Continuous (integralFiniteAdeles F) := by |
| 68 | let f : (∀ v : IsDedekindDomain.HeightOneSpectrum (𝓞 F), v.adicCompletionIntegers F) → |
| 69 | RestrictedProduct (fun v : IsDedekindDomain.HeightOneSpectrum (𝓞 F) => v.adicCompletion F) |
| 70 | (fun v => (v.adicCompletionIntegers F : Set (v.adicCompletion F))) ⊤ := |
| 71 | fun x => ⟨fun v => (x v).val, fun v => (x v).property⟩ |
| 72 | have hf : Continuous f := by |
| 73 | apply RestrictedProduct.continuous_rng_of_top.mpr |
| 74 | exact continuous_pi (fun v => continuous_subtype_val.comp (continuous_apply v)) |
| 75 | exact continuous_const.prodMk ((RestrictedProduct.continuous_inclusion le_top).comp hf) |
| 76 | |
| 77 | theorem integralFiniteAdeles_single |
| 78 | (v : IsDedekindDomain.HeightOneSpectrum (𝓞 F)) (a : v.adicCompletionIntegers F) : |
| 79 | integralFiniteAdeles F (Pi.single v a) = ArchimedeanAdeles.Construction.localAdd F (Sum.inr v) a.val := by |
| 80 | apply Prod.ext |
| 81 | · rfl |
| 82 | · apply RestrictedProduct.ext |
| 83 | intro w |
| 84 | change ((Pi.single v a : ∀ p : IsDedekindDomain.HeightOneSpectrum (𝓞 F), |
| 85 | p.adicCompletionIntegers F) w).val = |
| 86 | RestrictedProduct.single |
| 87 | (fun p : IsDedekindDomain.HeightOneSpectrum (𝓞 F) => p.adicCompletionIntegers F) v a.val w |
| 88 | by_cases h : w = v |
| 89 | · subst w; simp |
| 90 | · simp [Pi.single_eq_of_ne h, RestrictedProduct.single_eq_of_ne _ _ h] |
| 91 | |
| 92 | theorem localAdditiveCharacter_unramified_finite |
| 93 | (ψ : AddChar (ArchimedeanAdeles.Construction.Adeles F) ℂ) (hu : ∀ x, ‖ψ x‖ = 1) (hc : Continuous ψ) : |
| 94 | ∀ᶠ v : IsDedekindDomain.HeightOneSpectrum (𝓞 F) in cofinite, |
| 95 | ∀ x ∈ v.adicCompletionIntegers F, Characters.Construction.localAdditiveCharacter F ψ (Sum.inr v) x = 1 := by |
| 96 | let χ : AddChar (ArchimedeanAdeles.Construction.Adeles F) Circle := |
| 97 | { toFun := fun x => ⟨ψ x, mem_sphere_zero_iff_norm.mpr (hu x)⟩ |
| 98 | map_zero_eq_one' := Subtype.ext ψ.map_zero_eq_one |
| 99 | map_add_eq_mul' := fun x y => Subtype.ext (ψ.map_add_eq_mul x y) } |
| 100 | have hχ : Continuous χ := hc.subtype_mk _ |
| 101 | obtain ⟨s, hs⟩ := circle_character_product_tail |
| 102 | (χ.compAddMonoidHom (integralFiniteAdeles F)) (hχ.comp (integralFiniteAdeles_continuous F)) |
| 103 | have ht : ∀ᶠ v : IsDedekindDomain.HeightOneSpectrum (𝓞 F) in cofinite, v ∉ s := |
| 104 | s.finite_toSet.compl_mem_cofinite |
| 105 | filter_upwards [ht] with v hv |
| 106 | intro x hx |
| 107 | have h := hs v hv ⟨x, hx⟩ |
| 108 | change χ (integralFiniteAdeles F (Pi.single v ⟨x, hx⟩)) = 1 at h |
| 109 | rw [integralFiniteAdeles_single] at h |
| 110 | exact congrArg (fun z : Circle => (z : ℂ)) h |
| 111 | |
| 112 | end |
| 113 | |
| 114 | end OAI.RepresentationTheory.Weil.AdelicSplitting.UnramifiedCharacter.Construction |