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 Mathlib.Topology.Algebra.Module.LinearPMap |
| 2 | import Mathlib.Analysis.Normed.Operator.ContinuousLinearMap |
| 3 | import Mathlib.Analysis.Complex.Basic |
| 4 | |
| 5 | /-! # Closed Operator Coordinates -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.DivisorClass.Chern.ClosedOperatorCoordinates |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Native partially defined closed operators under actual continuous linear changes of coordinates. -/ |
| 12 | |
| 13 | set_option backward.isDefEq.respectTransparency false |
| 14 | set_option backward.isDefEq.respectTransparency.types false |
| 15 | set_option backward.defeqAttrib.useBackward true |
| 16 | |
| 17 | variable {A B C D : Type*} |
| 18 | [NormedAddCommGroup A] [NormedSpace ℂ A] [NormedAddCommGroup B] [NormedSpace ℂ B] |
| 19 | [NormedAddCommGroup C] [NormedSpace ℂ C] [NormedAddCommGroup D] [NormedSpace ℂ D] |
| 20 | (e : A ≃L[ℂ] C) (f : B ≃L[ℂ] D) (T : C →ₗ.[ℂ] D) |
| 21 | |
| 22 | def linearPMapCoordinateGraph : Submodule ℂ (A × B) := |
| 23 | T.graph.comap (e.prodCongr f).toLinearMap |
| 24 | |
| 25 | theorem linearPMapCoordinateGraph_zero_source (z : A × B) |
| 26 | (hz : z ∈ linearPMapCoordinateGraph e f T) (hs : z.1 = 0) : z.2 = 0 := by |
| 27 | change (e z.1, f z.2) ∈ T.graph at hz |
| 28 | have hf : f z.2 = 0 := T.graph_fst_eq_zero_snd hz (by rw [hs, map_zero]) |
| 29 | exact f.injective (hf.trans f.map_zero.symm) |
| 30 | |
| 31 | def linearPMapInCoordinates : A →ₗ.[ℂ] B := |
| 32 | (linearPMapCoordinateGraph e f T).toLinearPMap |
| 33 | |
| 34 | theorem linearPMapInCoordinates_graph : |
| 35 | (linearPMapInCoordinates e f T).graph = linearPMapCoordinateGraph e f T := |
| 36 | Submodule.toLinearPMap_graph_eq _ (linearPMapCoordinateGraph_zero_source e f T) |
| 37 | |
| 38 | theorem linearPMapInCoordinates_mem_graph (x : A) (y : B) : |
| 39 | (x, y) ∈ (linearPMapInCoordinates e f T).graph ↔ (e x, f y) ∈ T.graph := by |
| 40 | rw [linearPMapInCoordinates_graph] |
| 41 | rfl |
| 42 | |
| 43 | theorem linearPMapInCoordinates_isClosed (hT : T.IsClosed) : |
| 44 | (linearPMapInCoordinates e f T).IsClosed := by |
| 45 | change IsClosed ((linearPMapInCoordinates e f T).graph : Set (A × B)) |
| 46 | rw [linearPMapInCoordinates_graph] |
| 47 | exact hT.preimage (e.prodCongr f).continuous |
| 48 | |
| 49 | theorem linearPMapInCoordinates_mem_domain (x : A) : |
| 50 | x ∈ (linearPMapInCoordinates e f T).domain ↔ e x ∈ T.domain := by |
| 51 | rw [LinearPMap.mem_domain_iff, LinearPMap.mem_domain_iff] |
| 52 | constructor |
| 53 | · rintro ⟨y, hy⟩ |
| 54 | exact ⟨f y, (linearPMapInCoordinates_mem_graph e f T x y).mp hy⟩ |
| 55 | · rintro ⟨y, hy⟩ |
| 56 | exact ⟨f.symm y, (linearPMapInCoordinates_mem_graph e f T x (f.symm y)).mpr (by simpa using hy)⟩ |
| 57 | |
| 58 | theorem linearPMapInCoordinates_domain_dense (hT : Dense (T.domain : Set C)) : |
| 59 | Dense ((linearPMapInCoordinates e f T).domain : Set A) := by |
| 60 | have he : ((linearPMapInCoordinates e f T).domain : Set A) = e ⁻¹' (T.domain : Set C) := by |
| 61 | ext x |
| 62 | exact linearPMapInCoordinates_mem_domain e f T x |
| 63 | rw [he] |
| 64 | exact hT.preimage e.toHomeomorph.isOpenMap |
| 65 | |
| 66 | theorem linearPMapCoordinateGraph_closure_range {S : Type*} [AddCommGroup S] [Module ℂ S] |
| 67 | (p : S →ₗ[ℂ] A × B) (q : S →ₗ[ℂ] C × D) |
| 68 | (he : ∀ s, (e.prodCongr f) (p s) = q s) |
| 69 | (hT : T.graph = (LinearMap.range q).topologicalClosure) : |
| 70 | linearPMapCoordinateGraph e f T = (LinearMap.range p).topologicalClosure := by |
| 71 | have hp : (e.prodCongr f) ⁻¹' Set.range q = Set.range p := by |
| 72 | ext z |
| 73 | constructor |
| 74 | · rintro ⟨s, hs⟩ |
| 75 | exact ⟨s, (e.prodCongr f).injective ((he s).trans hs)⟩ |
| 76 | · rintro ⟨s, rfl⟩ |
| 77 | exact ⟨s, (he s).symm⟩ |
| 78 | apply SetLike.coe_injective |
| 79 | change (e.prodCongr f) ⁻¹' (T.graph : Set (C × D)) = closure (Set.range p) |
| 80 | rw [hT] |
| 81 | change (e.prodCongr f).toHomeomorph ⁻¹' closure (Set.range q) = closure (Set.range p) |
| 82 | rw [(e.prodCongr f).toHomeomorph.preimage_closure] |
| 83 | exact congrArg closure hp |
| 84 | |
| 85 | end |
| 86 | |
| 87 | end OAI.AlgebraicGeometry.DivisorClass.Chern.ClosedOperatorCoordinates |