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.Adelic |
| 2 | import OAI.NumberTheory.Quaternion.Arithmetic.RationalIntegralStabilizer |
| 3 | import OAI.NumberTheory.ArithmeticGroups.Lattices.Discrete |
| 4 | |
| 5 | /-! # Archimedean Projection -/ |
| 6 | |
| 7 | namespace OAI.NumberTheory.Quaternion.Arithmetic.ArchimedeanProjection |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! The archimedean projection of the actual S-arithmetic subgroup |
| 12 | is faithful. Its integral part lands in the standard arithmetic lattice. -/ |
| 13 | |
| 14 | open scoped Classical _root_.NumberField |
| 15 | open OAI.NumberTheory.ArithmeticGroups.Lattices.Discrete.Construction _root_.NumberField IsDedekindDomain Set |
| 16 | |
| 17 | variable {F : Type} [Field F] [NumberField F] {n : ℕ} |
| 18 | |
| 19 | def localProductArchimedeanMap (G : ArithmeticGroups.Lattices.Algebraic.MatrixAlgebraicGroup F n) (S : Finset (LocalAdeles.Place F)) |
| 20 | (harch : ∀ v : InfinitePlace F, Sum.inl v ∈ S) : |
| 21 | Ambient.OmittedLocalProduct G S →* G.ArchimedeanProduct Set.univ where |
| 22 | toFun g v := g ⟨Sum.inl v.val, harch v.val⟩ |
| 23 | map_one' := rfl |
| 24 | map_mul' _ _ := rfl |
| 25 | |
| 26 | theorem localProductArchimedeanMap_continuous (G : ArithmeticGroups.Lattices.Algebraic.MatrixAlgebraicGroup F n) (S : Finset (LocalAdeles.Place F)) |
| 27 | (harch : ∀ v : InfinitePlace F, Sum.inl v ∈ S) : Continuous (localProductArchimedeanMap G S harch) := |
| 28 | continuous_pi (fun v : (Set.univ : Set (InfinitePlace F)) => |
| 29 | continuous_apply (⟨Sum.inl v.val, harch v.val⟩ : (S : Set (LocalAdeles.Place F)))) |
| 30 | |
| 31 | theorem arithmetic_archimedeanProjection_injective (G : ArithmeticGroups.Lattices.Algebraic.MatrixAlgebraicGroup F n) (S : Finset (LocalAdeles.Place F)) |
| 32 | (harch : ∀ v : InfinitePlace F, Sum.inl v ∈ S) : |
| 33 | Function.Injective ((localProductArchimedeanMap G S harch).comp (Adelic.sArithmeticLocalSubgroup G S).subtype) := by |
| 34 | intro y z he |
| 35 | obtain ⟨q, _, hq⟩ := (Adelic.sArithmeticLocalSubgroup_mem G S y.val).mp y.property |
| 36 | obtain ⟨r, _, hr⟩ := (Adelic.sArithmeticLocalSubgroup_mem G S z.val).mp z.property |
| 37 | let v : InfinitePlace F := Classical.choice inferInstance |
| 38 | have hv := congrFun he (⟨v, mem_univ v⟩ : (Set.univ : Set (InfinitePlace F))) |
| 39 | have hqr : q = r := LocalAdeles.diagonalLocal_injective G (.inl v) |
| 40 | ((hq ⟨Sum.inl v, harch v⟩).trans (hv.trans (hr ⟨Sum.inl v, harch v⟩).symm)) |
| 41 | apply Subtype.ext |
| 42 | funext w |
| 43 | exact (hq w).symm.trans ((congrArg (LocalAdeles.diagonalLocal G w.val) hqr).trans (hr w)) |
| 44 | |
| 45 | def integralLocalProductSubgroup (G : ArithmeticGroups.Lattices.Algebraic.MatrixAlgebraicGroup F n) (S : Finset (LocalAdeles.Place F)) : |
| 46 | Subgroup (Ambient.OmittedLocalProduct G S) where |
| 47 | carrier := {g | ∀ v, g v ∈ LocalAdeles.integralLocalSubgroup G v.val} |
| 48 | one_mem' v := (LocalAdeles.integralLocalSubgroup G v.val).one_mem |
| 49 | mul_mem' hg hh v := (LocalAdeles.integralLocalSubgroup G v.val).mul_mem (hg v) (hh v) |
| 50 | inv_mem' hg v := (LocalAdeles.integralLocalSubgroup G v.val).inv_mem (hg v) |
| 51 | |
| 52 | theorem integralLocalProductSubgroup_isOpen (G : ArithmeticGroups.Lattices.Algebraic.MatrixAlgebraicGroup F n) (S : Finset (LocalAdeles.Place F)) : |
| 53 | IsOpen (integralLocalProductSubgroup G S : Set (Ambient.OmittedLocalProduct G S)) := by |
| 54 | change IsOpen {g : Ambient.OmittedLocalProduct G S | ∀ v, g v ∈ LocalAdeles.integralLocalSubgroup G v.val} |
| 55 | simp only [Set.ofPred_forall] |
| 56 | exact isOpen_iInter_of_finite (fun v => (LocalAdeles.integralLocalSubgroup_isOpen G v.val).preimage (continuous_apply v)) |
| 57 | |
| 58 | theorem integral_arithmetic_archimedean_mem (G : ArithmeticGroups.Lattices.Algebraic.MatrixAlgebraicGroup F n) (S : Finset (LocalAdeles.Place F)) |
| 59 | (harch : ∀ v : InfinitePlace F, Sum.inl v ∈ S) (g : Adelic.sArithmeticLocalSubgroup G S) |
| 60 | (hg : g.val ∈ integralLocalProductSubgroup G S) : |
| 61 | localProductArchimedeanMap G S harch g.val ∈ |
| 62 | (G.latticeStabilizer (ArithmeticGroups.Lattices.IntegralLattice.FullLattice.standard F n)).map (G.diagonal Set.univ) := by |
| 63 | obtain ⟨q, hq, he⟩ := (Adelic.sArithmeticLocalSubgroup_mem G S g.val).mp g.property |
| 64 | have hstd : q ∈ G.latticeStabilizer (ArithmeticGroups.Lattices.IntegralLattice.FullLattice.standard F n) := by |
| 65 | apply RationalIntegralStabilizer.rational_integralAtAll_mem_standard_stabilizer G q |
| 66 | intro v |
| 67 | by_cases hv : Sum.inr v ∈ S |
| 68 | · exact (he ⟨Sum.inr v, hv⟩).symm ▸ hg ⟨Sum.inr v, hv⟩ |
| 69 | · exact hq (.inr v) hv |
| 70 | refine ⟨q, hstd, ?_⟩ |
| 71 | funext v |
| 72 | exact he ⟨Sum.inl v.val, harch v.val⟩ |
| 73 | |
| 74 | end |
| 75 | |
| 76 | end OAI.NumberTheory.Quaternion.Arithmetic.ArchimedeanProjection |