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.Satake.NoetherianConnectedComponents |
| 2 | import Mathlib |
| 3 | |
| 4 | /-! # Connected Component Sections -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.ConnectedComponentSections |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Continuous coefficients on a Noetherian space are functions on its actual connected components. -/ |
| 11 | |
| 12 | open _root_.TopologicalSpace |
| 13 | |
| 14 | variable (X : Type*) [TopologicalSpace X] [NoetherianSpace X] |
| 15 | |
| 16 | instance components_discrete : DiscreteTopology (ConnectedComponents X) := |
| 17 | ConnectedComponents.discreteTopology_iff.mpr |
| 18 | RepresentationTheory.Satake.NoetherianConnectedComponents.GL.Zariski.noetherian_connectedComponent_isOpen |
| 19 | |
| 20 | instance components_finite : Finite (ConnectedComponents X) := |
| 21 | RepresentationTheory.Satake.NoetherianConnectedComponents.GL.Zariski.noetherian_connectedComponents_finite |
| 22 | |
| 23 | variable (R V : Type*) [CommRing R] [AddCommGroup V] [Module R V] |
| 24 | [TopologicalSpace V] [IsTopologicalAddGroup V] [ContinuousConstSMul R V] |
| 25 | [TotallyDisconnectedSpace V] |
| 26 | |
| 27 | omit [NoetherianSpace X] [AddCommGroup V] [IsTopologicalAddGroup V] in |
| 28 | theorem constant_on_component (f : C(X, V)) {x y : X} |
| 29 | (h : connectedComponent x = connectedComponent y) : f x = f y := by |
| 30 | have hx : x ∈ connectedComponent y := h ▸ mem_connectedComponent |
| 31 | exact (isPreconnected_connectedComponent.image f f.continuous.continuousOn).subsingleton |
| 32 | ⟨x, hx, rfl⟩ ⟨y, mem_connectedComponent, rfl⟩ |
| 33 | |
| 34 | def equiv : C(X, V) ≃ₗ[R] (ConnectedComponents X → V) where |
| 35 | toFun f := Quotient.lift f (fun _ _ h => constant_on_component X V f h) |
| 36 | invFun f := ⟨fun x => f (ConnectedComponents.mk x), |
| 37 | continuous_of_discreteTopology.comp ConnectedComponents.continuous_coe⟩ |
| 38 | left_inv f := by ext; rfl |
| 39 | right_inv f := by |
| 40 | funext c |
| 41 | obtain ⟨x, rfl⟩ := ConnectedComponents.surjective_coe c |
| 42 | rfl |
| 43 | map_add' f g := by |
| 44 | funext c |
| 45 | obtain ⟨x, rfl⟩ := ConnectedComponents.surjective_coe c |
| 46 | rfl |
| 47 | map_smul' a f := by |
| 48 | funext c |
| 49 | obtain ⟨x, rfl⟩ := ConnectedComponents.surjective_coe c |
| 50 | rfl |
| 51 | |
| 52 | theorem equiv_apply (f : C(X, V)) (x : X) : |
| 53 | equiv X R V f (ConnectedComponents.mk x) = f x := rfl |
| 54 | |
| 55 | variable {X} {Y : Type*} [TopologicalSpace Y] |
| 56 | |
| 57 | def map (f : C(X, Y)) : ConnectedComponents X → ConnectedComponents Y := |
| 58 | Quotient.lift (fun x => ConnectedComponents.mk (f x)) (fun x y h => by |
| 59 | apply ConnectedComponents.coe_eq_coe'.mpr |
| 60 | exact f.continuous.mapsTo_connectedComponent y (h ▸ mem_connectedComponent)) |
| 61 | |
| 62 | omit [NoetherianSpace X] in |
| 63 | theorem map_apply (f : C(X, Y)) (x : X) : |
| 64 | map f (ConnectedComponents.mk x) = ConnectedComponents.mk (f x) := rfl |
| 65 | |
| 66 | def perm (e : X ≃ₜ X) : Equiv.Perm (ConnectedComponents X) where |
| 67 | toFun := map ⟨e, e.continuous⟩ |
| 68 | invFun := map ⟨e.symm, e.symm.continuous⟩ |
| 69 | left_inv c := by |
| 70 | obtain ⟨x, rfl⟩ := ConnectedComponents.surjective_coe c |
| 71 | change ConnectedComponents.mk (e.symm (e x)) = ConnectedComponents.mk x |
| 72 | rw [e.symm_apply_apply] |
| 73 | right_inv c := by |
| 74 | obtain ⟨x, rfl⟩ := ConnectedComponents.surjective_coe c |
| 75 | change ConnectedComponents.mk (e (e.symm x)) = ConnectedComponents.mk x |
| 76 | rw [e.apply_symm_apply] |
| 77 | |
| 78 | theorem equiv_comp (e : X ≃ₜ X) (f : C(X, V)) (c : ConnectedComponents X) : |
| 79 | equiv X R V (f.comp ⟨e, e.continuous⟩) c = equiv X R V f (perm e c) := by |
| 80 | obtain ⟨x, rfl⟩ := ConnectedComponents.surjective_coe c |
| 81 | rfl |
| 82 | |
| 83 | end |
| 84 | |
| 85 | end OAI.NumberTheory.PadicHodge.IntegralComparison.ConnectedComponentSections |