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.IntegralComplement |
| 2 | import OAI.NumberTheory.Quaternion.Arithmetic.Closure |
| 3 | |
| 4 | /-! # Complement -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.Quaternion.Arithmetic.Complement |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Rational points integral away from S and one selected place lie in |
| 11 | the compact integral groups at every other selected place. -/ |
| 12 | |
| 13 | open scoped Classical _root_.NumberField |
| 14 | open IsDedekindDomain Set |
| 15 | |
| 16 | variable {F : Type} [Field F] [NumberField F] {n : ℕ} {ι : Type*} |
| 17 | |
| 18 | theorem singlePlaceArithmetic_integral_elsewhere (G : ArithmeticGroups.Lattices.Algebraic.MatrixAlgebraicGroup F n) |
| 19 | (S : Finset (LocalAdeles.Place F)) (v : ι → HeightOneSpectrum (𝓞 F)) |
| 20 | (hv : Function.Injective v) (haway : ∀ j, Sum.inr (v j) ∉ S) (i : ι) |
| 21 | (g : Groups.sIntegralPoints G (insert (Sum.inr (v i)) (S : Set (LocalAdeles.Place F)))) |
| 22 | (j : {j : ι // j ≠ i}) : LocalAdeles.diagonalLocal G (Sum.inr (v j.val)) g.val ∈ |
| 23 | LocalAdeles.integralLocalSubgroup G (Sum.inr (v j.val)) := by |
| 24 | apply g.property |
| 25 | rintro (he | hs) |
| 26 | · exact j.property (hv (Sum.inr.inj he)) |
| 27 | · exact haway j.val hs |
| 28 | |
| 29 | def arithmeticComplementEmbedding (G : ArithmeticGroups.Lattices.Algebraic.MatrixAlgebraicGroup F n) |
| 30 | (S : Finset (LocalAdeles.Place F)) (v : ι → HeightOneSpectrum (𝓞 F)) |
| 31 | (hv : Function.Injective v) (haway : ∀ j, Sum.inr (v j) ∉ S) (i : ι) : |
| 32 | Groups.sIntegralPoints G (insert (Sum.inr (v i)) (S : Set (LocalAdeles.Place F))) →* |
| 33 | (IntegralComplement.integralComplement G v i × LocalAdeles.LocalPoints G (Sum.inr (v i))) where |
| 34 | toFun g := (fun j => ⟨LocalAdeles.diagonalLocal G (Sum.inr (v j.val)) g.val, |
| 35 | singlePlaceArithmetic_integral_elsewhere G S v hv haway i g j⟩, |
| 36 | LocalAdeles.diagonalLocal G (Sum.inr (v i)) g.val) |
| 37 | map_one' := by |
| 38 | apply Prod.ext |
| 39 | · funext j |
| 40 | apply Subtype.ext |
| 41 | exact map_one _ |
| 42 | · exact map_one _ |
| 43 | map_mul' g h := by |
| 44 | apply Prod.ext |
| 45 | · funext j |
| 46 | apply Subtype.ext |
| 47 | exact map_mul _ _ _ |
| 48 | · exact map_mul _ _ _ |
| 49 | |
| 50 | theorem arithmeticComplementEmbedding_coordinate (G : ArithmeticGroups.Lattices.Algebraic.MatrixAlgebraicGroup F n) |
| 51 | (S : Finset (LocalAdeles.Place F)) (v : ι → HeightOneSpectrum (𝓞 F)) |
| 52 | (hv : Function.Injective v) (haway : ∀ j, Sum.inr (v j) ∉ S) (i j : ι) |
| 53 | (g : Groups.sIntegralPoints G (insert (Sum.inr (v i)) (S : Set (LocalAdeles.Place F)))) : |
| 54 | IntegralComplement.insertIntegralComplement G v i (arithmeticComplementEmbedding G S v hv haway i g) j = |
| 55 | LocalAdeles.diagonalLocal G (Sum.inr (v j)) g.val := by |
| 56 | by_cases h : j = i |
| 57 | · subst j |
| 58 | rw [IntegralComplement.insertIntegralComplement_self] |
| 59 | rfl |
| 60 | · simp only [IntegralComplement.insertIntegralComplement, MonoidHom.coe_mk, OneHom.coe_mk, dite_eq_right h, |
| 61 | arithmeticComplementEmbedding] |
| 62 | |
| 63 | theorem arithmeticComplementEmbedding_projection_range (G : ArithmeticGroups.Lattices.Algebraic.MatrixAlgebraicGroup F n) |
| 64 | (S : Finset (LocalAdeles.Place F)) (v : ι → HeightOneSpectrum (𝓞 F)) |
| 65 | (hv : Function.Injective v) (haway : ∀ j, Sum.inr (v j) ∉ S) (i : ι) : |
| 66 | (arithmeticComplementEmbedding G S v hv haway i).range.map |
| 67 | (MonoidHom.snd (IntegralComplement.integralComplement G v i) (LocalAdeles.LocalPoints G (Sum.inr (v i)))) = |
| 68 | Closure.localArithmeticSubgroup G (insert (Sum.inr (v i)) S) (Sum.inr (v i)) := by |
| 69 | rw [MonoidHom.map_range] |
| 70 | ext x |
| 71 | constructor |
| 72 | · rintro ⟨g, rfl⟩ |
| 73 | refine ⟨g.val, ?_, rfl⟩ |
| 74 | change g.val ∈ Groups.sIntegralPoints G (↑(insert (Sum.inr (v i)) S)) |
| 75 | rw [Finset.coe_insert] |
| 76 | exact g.property |
| 77 | · rintro ⟨g, hg, rfl⟩ |
| 78 | refine ⟨⟨g, ?_⟩, rfl⟩ |
| 79 | change g ∈ Groups.sIntegralPoints G (↑(insert (Sum.inr (v i)) S)) at hg |
| 80 | rw [Finset.coe_insert] at hg |
| 81 | exact hg |
| 82 | |
| 83 | end |
| 84 | |
| 85 | end OAI.NumberTheory.Quaternion.Arithmetic.Complement |