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.Adeles.LocalIntegers |
| 2 | |
| 3 | /-! # Finite Norm -/ |
| 4 | |
| 5 | namespace OAI.NumberTheory.Adeles.FiniteNorm.CompletionFactors |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | section |
| 10 | |
| 11 | /-! The product of local relative norms over the places above a finite place. -/ |
| 12 | |
| 13 | open _root_.NumberField IsDedekindDomain HeightOneSpectrum |
| 14 | open scoped _root_.NumberField _root_.Topology OAI.NumberTheory.Adeles.LocalCompletions.CompletionFactors.FiniteLiesOver |
| 15 | |
| 16 | variable {F E : Type*} [Field F] [NumberField F] |
| 17 | [Field E] [NumberField E] [Algebra F E] |
| 18 | |
| 19 | abbrev FinitePlacesOver (E : Type*) [Field E] [NumberField E] [Algebra F E] |
| 20 | (v : HeightOneSpectrum (𝓞 F)) := |
| 21 | {w : HeightOneSpectrum (𝓞 E) // w.asIdeal.LiesOver v.asIdeal} |
| 22 | |
| 23 | instance finitePlacesOver_liesOver (v : HeightOneSpectrum (𝓞 F)) |
| 24 | (w : FinitePlacesOver E v) : w.val.asIdeal.LiesOver v.asIdeal := w.property |
| 25 | |
| 26 | instance finitePlacesOver_fintype (v : HeightOneSpectrum (𝓞 F)) : |
| 27 | Fintype (FinitePlacesOver E v) := |
| 28 | Fintype.ofInjective |
| 29 | (fun w : FinitePlacesOver E v => |
| 30 | (⟨w.val.asIdeal, w.val.isPrime, w.property⟩ : v.asIdeal.primesOver (𝓞 E))) (by |
| 31 | intro a b h |
| 32 | apply Subtype.ext |
| 33 | apply HeightOneSpectrum.ext |
| 34 | exact congrArg Subtype.val h) |
| 35 | |
| 36 | omit [NumberField F] in |
| 37 | theorem finitePlace_under_eq (v : HeightOneSpectrum (𝓞 F)) |
| 38 | (w : FinitePlacesOver E v) : w.val.under (𝓞 F) = v := by |
| 39 | apply HeightOneSpectrum.ext |
| 40 | exact (Ideal.over_def w.val.asIdeal v.asIdeal).symm |
| 41 | |
| 42 | /-- The `v` coordinate of the finite adelic norm. -/ |
| 43 | def finiteNormCoordinate (v : HeightOneSpectrum (𝓞 F)) : |
| 44 | LocalCompletions.CompletionFactors.FiniteAdele E →* v.adicCompletion F where |
| 45 | toFun a := ∏ w : FinitePlacesOver E v, LocalNorms.CompletionFactors.finiteLocalNorm v w.val (a w.val) |
| 46 | map_one' := by |
| 47 | change (∏ w : FinitePlacesOver E v, LocalNorms.CompletionFactors.finiteLocalNorm v w.val 1) = 1 |
| 48 | simp |
| 49 | map_mul' a b := by |
| 50 | change (∏ w : FinitePlacesOver E v, LocalNorms.CompletionFactors.finiteLocalNorm v w.val (a w.val * b w.val)) = _ |
| 51 | simp only [map_mul, Finset.prod_mul_distrib] |
| 52 | |
| 53 | theorem continuous_finiteNormCoordinate (v : HeightOneSpectrum (𝓞 F)) : |
| 54 | Continuous (finiteNormCoordinate (E := E) v) := by |
| 55 | apply continuous_finsetProd |
| 56 | intro w _ |
| 57 | have he : Continuous (fun a : LocalCompletions.CompletionFactors.FiniteAdele E => a w.val) := |
| 58 | RestrictedProduct.continuous_eval w.val |
| 59 | exact (LocalNorms.CompletionFactors.continuous_finiteLocalNorm v w.val).comp he |
| 60 | |
| 61 | theorem finiteNormCoordinate_integer (v : HeightOneSpectrum (𝓞 F)) (a : LocalCompletions.CompletionFactors.FiniteAdele E) |
| 62 | (ha : ∀ w : FinitePlacesOver E v, a w.val ∈ w.val.adicCompletionIntegers E) : |
| 63 | finiteNormCoordinate v a ∈ v.adicCompletionIntegers F := by |
| 64 | apply Submonoid.prod_mem (Submonoid.ofClass (v.adicCompletionIntegers F)) |
| 65 | intro w _ |
| 66 | exact LocalIntegers.CompletionFactors.finiteLocalNorm_integer v w.val (a w.val) (ha w) |
| 67 | |
| 68 | /-- Only finitely many target coordinates can fail to be integral. -/ |
| 69 | theorem finiteNormCoordinate_eventually_integer (a : LocalCompletions.CompletionFactors.FiniteAdele E) : |
| 70 | ∀ᶠ v : HeightOneSpectrum (𝓞 F) in Filter.cofinite, |
| 71 | finiteNormCoordinate v a ∈ v.adicCompletionIntegers F := by |
| 72 | have hbad : {w : HeightOneSpectrum (𝓞 E) | a w ∉ w.adicCompletionIntegers E}.Finite := a.2 |
| 73 | have hbase := hbad.image (HeightOneSpectrum.under (𝓞 F)) |
| 74 | filter_upwards [hbase.compl_mem_cofinite] with v hv |
| 75 | apply finiteNormCoordinate_integer v a |
| 76 | intro w |
| 77 | by_contra hn |
| 78 | exact hv ⟨w.val, hn, finitePlace_under_eq v w⟩ |
| 79 | |
| 80 | /-- The canonical relative norm on the finite adele rings, as a multiplicative map. -/ |
| 81 | def finiteAdeleNorm : LocalCompletions.CompletionFactors.FiniteAdele E →* LocalCompletions.CompletionFactors.FiniteAdele F where |
| 82 | toFun a := ⟨fun v => finiteNormCoordinate v a, finiteNormCoordinate_eventually_integer a⟩ |
| 83 | map_one' := by |
| 84 | apply FiniteAdeleRing.ext |
| 85 | intro v |
| 86 | exact map_one (finiteNormCoordinate v) |
| 87 | map_mul' a b := by |
| 88 | apply FiniteAdeleRing.ext |
| 89 | intro v |
| 90 | exact map_mul (finiteNormCoordinate v) a b |
| 91 | |
| 92 | @[simp] theorem finiteAdeleNorm_apply (a : LocalCompletions.CompletionFactors.FiniteAdele E) (v : HeightOneSpectrum (𝓞 F)) : |
| 93 | finiteAdeleNorm a v = finiteNormCoordinate v a := rfl |
| 94 | |
| 95 | end |
| 96 | |
| 97 | /-! Continuity of the finite adelic norm for the restricted-product topology. -/ |
| 98 | |
| 99 | open _root_.NumberField IsDedekindDomain HeightOneSpectrum Filter |
| 100 | open scoped _root_.NumberField _root_.Topology RestrictedProduct |
| 101 | |
| 102 | abbrev FiniteAdeleStage (K : Type*) [Field K] [NumberField K] |
| 103 | (S : Set (HeightOneSpectrum (𝓞 K))) := |
| 104 | Πʳ v : HeightOneSpectrum (𝓞 K), [v.adicCompletion K, v.adicCompletionIntegers K]_[principal S] |
| 105 | |
| 106 | variable {F E : Type*} [Field F] [NumberField F] |
| 107 | [Field E] [NumberField E] [Algebra F E] |
| 108 | |
| 109 | theorem continuous_finiteAdeleNorm : Continuous (finiteAdeleNorm (F := F) (E := E)) := by |
| 110 | apply (RestrictedProduct.continuous_dom |
| 111 | (R := fun w : HeightOneSpectrum (𝓞 E) => w.adicCompletion E) |
| 112 | (A := fun w => (w.adicCompletionIntegers E : Set (w.adicCompletion E))) |
| 113 | (𝓕 := cofinite)).mpr |
| 114 | intro S hS |
| 115 | let T : Set (HeightOneSpectrum (𝓞 F)) := |
| 116 | (HeightOneSpectrum.under (𝓞 F) '' Sᶜ)ᶜ |
| 117 | have hSc : Sᶜ.Finite := mem_cofinite.mp (le_principal_iff.mp hS) |
| 118 | have hT : cofinite ≤ principal T := |
| 119 | le_principal_iff.mpr (hSc.image (HeightOneSpectrum.under (𝓞 F))).compl_mem_cofinite |
| 120 | let inc : FiniteAdeleStage E S → LocalCompletions.CompletionFactors.FiniteAdele E := |
| 121 | RestrictedProduct.inclusion _ _ hS |
| 122 | let fT : FiniteAdeleStage E S → FiniteAdeleStage F T := fun a => |
| 123 | ⟨fun v => finiteNormCoordinate v (inc a), by |
| 124 | intro v hv |
| 125 | apply finiteNormCoordinate_integer v (inc a) |
| 126 | intro w |
| 127 | have hw : w.val ∈ S := by |
| 128 | by_contra hn |
| 129 | exact hv ⟨w.val, hn, finitePlace_under_eq v w⟩ |
| 130 | exact a.2 hw⟩ |
| 131 | have hfT : Continuous fT := by |
| 132 | apply RestrictedProduct.continuous_rng_of_principal_iff_forall.mpr |
| 133 | intro v |
| 134 | exact (continuous_finiteNormCoordinate v).comp (RestrictedProduct.continuous_inclusion hS) |
| 135 | have h := (RestrictedProduct.continuous_inclusion (R := fun v : HeightOneSpectrum (𝓞 F) => |
| 136 | v.adicCompletion F) (A := fun v => (v.adicCompletionIntegers F : Set (v.adicCompletion F))) hT).comp hfT |
| 137 | exact h |
| 138 | |
| 139 | /-- The continuous relative norm on finite ideles. -/ |
| 140 | def finiteIdeleNorm : (LocalCompletions.CompletionFactors.FiniteAdele E)ˣ →ₜ* (LocalCompletions.CompletionFactors.FiniteAdele F)ˣ where |
| 141 | toMonoidHom := Units.map finiteAdeleNorm |
| 142 | continuous_toFun := Continuous.units_map _ continuous_finiteAdeleNorm |
| 143 | |
| 144 | end |
| 145 | |
| 146 | end OAI.NumberTheory.Adeles.FiniteNorm.CompletionFactors |