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.NumberTheory.Quaternion.Arithmetic.FiniteSpecialLinearCorrection |
| 2 | import OAI.NumberTheory.ArithmeticGroups.Lattices.QuotientMeasure |
| 3 | import OAI.NumberTheory.Quaternion.Arithmetic.Ambient |
| 4 | |
| 5 | /-! # Adelic Group -/ |
| 6 | |
| 7 | namespace OAI.NumberTheory.Quaternion.Arithmetic.AdelicGroup |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | section |
| 12 | |
| 13 | /-! The product of all archimedean points and the finite restricted |
| 14 | product, with its actual rational diagonal. -/ |
| 15 | |
| 16 | open scoped Classical |
| 17 | open OAI.NumberTheory.ArithmeticGroups.Lattices.QuotientMeasure.Construction Set |
| 18 | |
| 19 | variable {F : Type} [Field F] [NumberField F] {n : ℕ} |
| 20 | |
| 21 | abbrev FullAdelicGroupPoints (G : ArithmeticGroups.Lattices.Algebraic.MatrixAlgebraicGroup F n) := |
| 22 | G.ArchimedeanProduct Set.univ × FiniteAdelicMatrices.FiniteAdelicGroupPoints G |
| 23 | |
| 24 | def diagonalFullAdelic (G : ArithmeticGroups.Lattices.Algebraic.MatrixAlgebraicGroup F n) : G.RationalPoints →* FullAdelicGroupPoints G := |
| 25 | (G.diagonal Set.univ).prod (FiniteAdelicComparison.diagonalFiniteAdelic G) |
| 26 | |
| 27 | theorem fullAdelic_quotient_compact_of_corrections (G : ArithmeticGroups.Lattices.Algebraic.MatrixAlgebraicGroup F n) |
| 28 | (K : Set (FullAdelicGroupPoints G)) (hK : IsCompact K) |
| 29 | (hc : ∀ g : FullAdelicGroupPoints G, ∃ q : G.RationalPoints, g * diagonalFullAdelic G q ∈ K) : |
| 30 | CompactSpace (FullAdelicGroupPoints G ⧸ (diagonalFullAdelic G).range) := by |
| 31 | apply ArithmeticGroups.Lattices.QuotientMeasure.Construction.compact_quotient_of_compact_cover (diagonalFullAdelic G).range K hK |
| 32 | intro g |
| 33 | obtain ⟨q, hq⟩ := hc g |
| 34 | refine ⟨g * diagonalFullAdelic G q, hq, diagonalFullAdelic G q⁻¹, ⟨q⁻¹, rfl⟩, ?_⟩ |
| 35 | rw [map_inv, mul_inv_cancel_right] |
| 36 | |
| 37 | end |
| 38 | |
| 39 | /-! Open adelic subgroups integral outside a finite set of places, |
| 40 | and their surjective projections to the selected local product. -/ |
| 41 | |
| 42 | open scoped Classical _root_.NumberField |
| 43 | open IsDedekindDomain Set Filter |
| 44 | |
| 45 | variable {F : Type} [Field F] [NumberField F] {n : ℕ} |
| 46 | |
| 47 | def fullAdelicEvaluation (G : ArithmeticGroups.Lattices.Algebraic.MatrixAlgebraicGroup F n) (v : LocalAdeles.Place F) : |
| 48 | FullAdelicGroupPoints G →* LocalAdeles.LocalPoints G v where |
| 49 | toFun g := match v with |
| 50 | | .inl w => g.1 ⟨w, mem_univ w⟩ |
| 51 | | .inr w => g.2 w |
| 52 | map_one' := by cases v <;> rfl |
| 53 | map_mul' g h := by cases v <;> rfl |
| 54 | |
| 55 | theorem fullAdelicEvaluation_continuous (G : ArithmeticGroups.Lattices.Algebraic.MatrixAlgebraicGroup F n) (v : LocalAdeles.Place F) : |
| 56 | Continuous (fullAdelicEvaluation G v) := by |
| 57 | cases v with |
| 58 | | inl w => exact (continuous_apply (⟨w, mem_univ w⟩ : (Set.univ : Set (NumberField.InfinitePlace F)))).comp continuous_fst |
| 59 | | inr w => exact (RestrictedProduct.continuous_eval w).comp continuous_snd |
| 60 | |
| 61 | theorem fullAdelicEvaluation_diagonal (G : ArithmeticGroups.Lattices.Algebraic.MatrixAlgebraicGroup F n) (v : LocalAdeles.Place F) (q : G.RationalPoints) : |
| 62 | fullAdelicEvaluation G v (diagonalFullAdelic G q) = LocalAdeles.diagonalLocal G v q := by |
| 63 | cases v <;> rfl |
| 64 | |
| 65 | def fullAdelicIntegralOutside (G : ArithmeticGroups.Lattices.Algebraic.MatrixAlgebraicGroup F n) (S : Finset (LocalAdeles.Place F)) : |
| 66 | Subgroup (FullAdelicGroupPoints G) where |
| 67 | carrier := {g | ∀ v : HeightOneSpectrum (𝓞 F), Sum.inr v ∉ S → g.2 v ∈ LocalAdeles.integralLocalSubgroup G (.inr v)} |
| 68 | one_mem' v _ := (LocalAdeles.integralLocalSubgroup G (.inr v)).one_mem |
| 69 | mul_mem' hg hh v hv := (LocalAdeles.integralLocalSubgroup G (.inr v)).mul_mem (hg v hv) (hh v hv) |
| 70 | inv_mem' hg v hv := (LocalAdeles.integralLocalSubgroup G (.inr v)).inv_mem (hg v hv) |
| 71 | |
| 72 | theorem fullAdelicIntegralOutside_isOpen (G : ArithmeticGroups.Lattices.Algebraic.MatrixAlgebraicGroup F n) (S : Finset (LocalAdeles.Place F)) : |
| 73 | IsOpen (fullAdelicIntegralOutside G S : Set (FullAdelicGroupPoints G)) := |
| 74 | (RestrictedProduct.isOpen_forall_imp_mem |
| 75 | (fun v : HeightOneSpectrum (𝓞 F) => LocalAdeles.integralLocalSubgroup_isOpen G (.inr v))).preimage continuous_snd |
| 76 | |
| 77 | def fullAdelicProjection (G : ArithmeticGroups.Lattices.Algebraic.MatrixAlgebraicGroup F n) (S : Finset (LocalAdeles.Place F)) : |
| 78 | FullAdelicGroupPoints G →* Ambient.OmittedLocalProduct G S := |
| 79 | MonoidHom.pi (fun v => fullAdelicEvaluation G v.val) |
| 80 | |
| 81 | theorem fullAdelicProjection_continuous (G : ArithmeticGroups.Lattices.Algebraic.MatrixAlgebraicGroup F n) (S : Finset (LocalAdeles.Place F)) : |
| 82 | Continuous (fullAdelicProjection G S) := |
| 83 | continuous_pi (fun v => fullAdelicEvaluation_continuous G v.val) |
| 84 | |
| 85 | def selectedLocalExtension (G : ArithmeticGroups.Lattices.Algebraic.MatrixAlgebraicGroup F n) (S : Finset (LocalAdeles.Place F)) |
| 86 | (x : Ambient.OmittedLocalProduct G S) (v : LocalAdeles.Place F) : LocalAdeles.LocalPoints G v := |
| 87 | if hv : v ∈ S then x ⟨v, hv⟩ else 1 |
| 88 | |
| 89 | theorem selectedLocalExtension_of_mem (G : ArithmeticGroups.Lattices.Algebraic.MatrixAlgebraicGroup F n) (S : Finset (LocalAdeles.Place F)) |
| 90 | (x : Ambient.OmittedLocalProduct G S) (v : LocalAdeles.Place F) (hv : v ∈ S) : |
| 91 | selectedLocalExtension G S x v = x ⟨v, hv⟩ := dite_eq_left hv |
| 92 | |
| 93 | theorem selectedLocalExtension_of_not_mem (G : ArithmeticGroups.Lattices.Algebraic.MatrixAlgebraicGroup F n) (S : Finset (LocalAdeles.Place F)) |
| 94 | (x : Ambient.OmittedLocalProduct G S) (v : LocalAdeles.Place F) (hv : v ∉ S) : |
| 95 | selectedLocalExtension G S x v = 1 := dite_eq_right hv |
| 96 | |
| 97 | def finiteAdelicExtension (G : ArithmeticGroups.Lattices.Algebraic.MatrixAlgebraicGroup F n) (S : Finset (LocalAdeles.Place F)) |
| 98 | (x : Ambient.OmittedLocalProduct G S) : FiniteAdelicMatrices.FiniteAdelicGroupPoints G := |
| 99 | ⟨fun v : HeightOneSpectrum (𝓞 F) => selectedLocalExtension G S x (.inr v), by |
| 100 | have hfin : {v : HeightOneSpectrum (𝓞 F) | Sum.inr v ∈ S}.Finite := |
| 101 | S.finite_toSet.preimage Sum.inr_injective.injOn |
| 102 | filter_upwards [hfin.compl_mem_cofinite] with v hv |
| 103 | rw [selectedLocalExtension_of_not_mem G S x (.inr v) hv] |
| 104 | exact (LocalAdeles.integralLocalSubgroup G (.inr v)).one_mem⟩ |
| 105 | |
| 106 | def fullAdelicExtension (G : ArithmeticGroups.Lattices.Algebraic.MatrixAlgebraicGroup F n) (S : Finset (LocalAdeles.Place F)) |
| 107 | (x : Ambient.OmittedLocalProduct G S) : FullAdelicGroupPoints G := |
| 108 | (fun w => selectedLocalExtension G S x (.inl w.val), |
| 109 | finiteAdelicExtension G S x) |
| 110 | |
| 111 | theorem fullAdelicExtension_integralOutside (G : ArithmeticGroups.Lattices.Algebraic.MatrixAlgebraicGroup F n) (S : Finset (LocalAdeles.Place F)) |
| 112 | (x : Ambient.OmittedLocalProduct G S) : fullAdelicExtension G S x ∈ fullAdelicIntegralOutside G S := by |
| 113 | intro v hv |
| 114 | change selectedLocalExtension G S x (.inr v) ∈ LocalAdeles.integralLocalSubgroup G (.inr v) |
| 115 | rw [selectedLocalExtension_of_not_mem G S x (.inr v) hv] |
| 116 | exact (LocalAdeles.integralLocalSubgroup G (.inr v)).one_mem |
| 117 | |
| 118 | theorem fullAdelicProjection_extension (G : ArithmeticGroups.Lattices.Algebraic.MatrixAlgebraicGroup F n) (S : Finset (LocalAdeles.Place F)) |
| 119 | (x : Ambient.OmittedLocalProduct G S) : fullAdelicProjection G S (fullAdelicExtension G S x) = x := by |
| 120 | funext v |
| 121 | rcases v with ⟨v, hv⟩ |
| 122 | cases v with |
| 123 | | inl w => exact selectedLocalExtension_of_mem G S x (.inl w) hv |
| 124 | | inr w => exact selectedLocalExtension_of_mem G S x (.inr w) hv |
| 125 | |
| 126 | def integralOutsideProjection (G : ArithmeticGroups.Lattices.Algebraic.MatrixAlgebraicGroup F n) (S : Finset (LocalAdeles.Place F)) : |
| 127 | fullAdelicIntegralOutside G S →* Ambient.OmittedLocalProduct G S := |
| 128 | (fullAdelicProjection G S).comp (fullAdelicIntegralOutside G S).subtype |
| 129 | |
| 130 | theorem integralOutsideProjection_continuous (G : ArithmeticGroups.Lattices.Algebraic.MatrixAlgebraicGroup F n) (S : Finset (LocalAdeles.Place F)) : |
| 131 | Continuous (integralOutsideProjection G S) := |
| 132 | (fullAdelicProjection_continuous G S).comp continuous_subtype_val |
| 133 | |
| 134 | theorem integralOutsideProjection_surjective (G : ArithmeticGroups.Lattices.Algebraic.MatrixAlgebraicGroup F n) (S : Finset (LocalAdeles.Place F)) : |
| 135 | Function.Surjective (integralOutsideProjection G S) := fun x => |
| 136 | ⟨⟨fullAdelicExtension G S x, fullAdelicExtension_integralOutside G S x⟩, fullAdelicProjection_extension G S x⟩ |
| 137 | |
| 138 | theorem diagonalFullAdelic_mem_integralOutside (G : ArithmeticGroups.Lattices.Algebraic.MatrixAlgebraicGroup F n) |
| 139 | (S : Finset (LocalAdeles.Place F)) (q : G.RationalPoints) : |
| 140 | diagonalFullAdelic G q ∈ fullAdelicIntegralOutside G S ↔ q ∈ Groups.sIntegralPoints G (S : Set (LocalAdeles.Place F)) := by |
| 141 | constructor |
| 142 | · intro h v hv |
| 143 | cases v with |
| 144 | | inl w => exact ⟨fun _ _ => Subring.mem_top _, fun _ _ => Subring.mem_top _⟩ |
| 145 | | inr w => exact h w hv |
| 146 | · intro h v hv |
| 147 | exact h (.inr v) hv |
| 148 | |
| 149 | end |
| 150 | |
| 151 | end OAI.NumberTheory.Quaternion.Arithmetic.AdelicGroup |