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.RationalClosed |
| 2 | import OAI.RepresentationTheory.Theta.Adelic.IdeleClassInjection |
| 3 | import OAI.RepresentationTheory.Theta.Adelic.QuadraticHilbert |
| 4 | |
| 5 | /-! # Idele Class Closed -/ |
| 6 | |
| 7 | namespace OAI.RepresentationTheory.Theta.Adelic.IdeleClassClosed |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! The scalar idele-class image is closed. Its preimage in quadratic |
| 12 | ideles is characterized by rationality of a/star(a), using an explicit |
| 13 | quadratic Hilbert 90 calculation. -/ |
| 14 | |
| 15 | open scoped _root_.NumberField |
| 16 | |
| 17 | open OAI.RepresentationTheory.Theta.Adelic.IdeleClassInjection |
| 18 | open OAI.RepresentationTheory.Theta.Adelic.IdeleClassInjection.ScalarFixed OAI.RepresentationTheory.Theta.Adelic.RationalClosed |
| 19 | open OAI.RepresentationTheory.Theta.Adelic.QuadraticHilbert |
| 20 | |
| 21 | variable (F : Type) [Field F] [NumberField F] (d : F) (hd : d ≠ 0) (hns : ¬ IsSquare d) |
| 22 | |
| 23 | include hd hns in |
| 24 | theorem scalar_class_range_iff (a : (Weil.AdelicSplitting.ArchimedeanAdeles.Construction.adelicQuadratic F d)ˣ) : |
| 25 | QuotientGroup.mk' (IdeleClassInjection.quadraticPrincipal F d).range a ∈ (IdeleClassInjection.scalarIdeleClass F d).range ↔ |
| 26 | (IdeleClassInjection.ScalarFixed.conjugationRatio F d a).val ∈ Set.range (Weil.AdelicSplitting.ArchimedeanAdeles.Construction.quadraticRational F d) := by |
| 27 | constructor |
| 28 | · rintro ⟨x, hx⟩ |
| 29 | obtain ⟨x, rfl⟩ := QuotientGroup.mk_surjective x |
| 30 | change QuotientGroup.mk' (IdeleClassInjection.quadraticPrincipal F d).range (IdeleClassInjection.scalarIdele F d x) = |
| 31 | QuotientGroup.mk' (IdeleClassInjection.quadraticPrincipal F d).range a at hx |
| 32 | obtain ⟨b, hb⟩ := QuotientGroup.eq_iff_div_mem.mp hx.symm |
| 33 | have he := congrArg (IdeleClassInjection.ScalarFixed.conjugationRatio F d) hb |
| 34 | rw [IdeleClassInjection.ScalarFixed.conjugationRatio_principal, (IdeleClassInjection.ScalarFixed.conjugationRatio F d).map_div, |
| 35 | (IdeleClassInjection.ScalarFixed.conjugationRatio_eq_one_iff F d _).mpr ⟨x, rfl⟩, div_one] at he |
| 36 | exact ⟨(b / star b).val, congrArg Units.val he⟩ |
| 37 | · rintro ⟨y, hy⟩ |
| 38 | let : Fact (∀ r : F, r ^ 2 ≠ d + 0 * r) := ⟨by |
| 39 | intro r hr |
| 40 | apply hns |
| 41 | exact ⟨r, by simpa only [zero_mul, add_zero, pow_two] using hr.symm⟩⟩ |
| 42 | have hy0 : y ≠ 0 := by |
| 43 | intro h |
| 44 | exact (IdeleClassInjection.ScalarFixed.conjugationRatio F d a).ne_zero (hy.symm.trans (h ▸ map_zero _)) |
| 45 | let u : (Weil.AdelicSplitting.UnitaryBase.Construction.Quadratic F d)ˣ := Units.mk0 y hy0 |
| 46 | have hu : IdeleClassInjection.quadraticPrincipal F d u = IdeleClassInjection.ScalarFixed.conjugationRatio F d a := Units.ext hy |
| 47 | have hunorm : u * star u = 1 := by |
| 48 | apply IdeleClassInjection.quadraticPrincipal_injective F d |
| 49 | rw [map_mul, IdeleClassInjection.ScalarFixed.quadraticPrincipal_star, hu, map_one] |
| 50 | exact IdeleClassInjection.ScalarFixed.conjugationRatio_norm_one F d a |
| 51 | obtain ⟨b, hb⟩ := QuadraticHilbert.quadratic_hilbert90 d hd hns u hunorm |
| 52 | have hr : IdeleClassInjection.ScalarFixed.conjugationRatio F d a = IdeleClassInjection.ScalarFixed.conjugationRatio F d (IdeleClassInjection.quadraticPrincipal F d b) := by |
| 53 | rw [IdeleClassInjection.ScalarFixed.conjugationRatio_principal, hb, hu] |
| 54 | have hk : IdeleClassInjection.ScalarFixed.conjugationRatio F d (a / IdeleClassInjection.quadraticPrincipal F d b) = 1 := by |
| 55 | rw [map_div, hr] |
| 56 | simp only [div_eq_mul_inv, mul_inv_cancel] |
| 57 | obtain ⟨x, hx⟩ := (IdeleClassInjection.ScalarFixed.conjugationRatio_eq_one_iff F d _).mp hk |
| 58 | refine ⟨QuotientGroup.mk' (NumberTheory.Adeles.LocalCompletions.CompletionFactors.principalIdele F).range x, ?_⟩ |
| 59 | change QuotientGroup.mk' (IdeleClassInjection.quadraticPrincipal F d).range (IdeleClassInjection.scalarIdele F d x) = _ |
| 60 | rw [hx, map_div] |
| 61 | have hp : QuotientGroup.mk' (IdeleClassInjection.quadraticPrincipal F d).range (IdeleClassInjection.quadraticPrincipal F d b) = 1 := |
| 62 | (QuotientGroup.eq_one_iff _).mpr ⟨b, rfl⟩ |
| 63 | rw [hp, div_one] |
| 64 | |
| 65 | include hd hns in |
| 66 | theorem scalarIdeleClass_range_closed : |
| 67 | IsClosed ((IdeleClassInjection.scalarIdeleClass F d).range : Set (IdeleClassInjection.QuadraticIdeleClass F d)) := by |
| 68 | rw [← (QuotientGroup.isQuotientMap_mk (IdeleClassInjection.quadraticPrincipal F d).range).isClosed_preimage] |
| 69 | have hc : Continuous (fun a : (Weil.AdelicSplitting.ArchimedeanAdeles.Construction.adelicQuadratic F d)ˣ => (IdeleClassInjection.ScalarFixed.conjugationRatio F d a).val) := |
| 70 | Units.continuous_val.comp (IdeleClassInjection.ScalarFixed.conjugationRatio_continuous F d) |
| 71 | convert (RationalClosed.quadraticRational_range_closed F d).preimage hc using 1 |
| 72 | ext a |
| 73 | exact scalar_class_range_iff F d hd hns a |
| 74 | |
| 75 | end |
| 76 | |
| 77 | end OAI.RepresentationTheory.Theta.Adelic.IdeleClassClosed |