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 |
| 2 | |
| 3 | /-! # Analytic Countable Selection -/ |
| 4 | |
| 5 | namespace OAI.RepresentationTheory.Theta.Geometric.AnalyticCountableSelection |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | section |
| 10 | |
| 11 | /-! On a connected open complex domain, a holomorphic map that equals |
| 12 | one of countably many holomorphic maps pointwise equals one of them globally. -/ |
| 13 | |
| 14 | theorem analytic_countable_selection |
| 15 | {E F I : Type*} [NormedAddCommGroup E] [NormedSpace ℂ E] [BaireSpace E] |
| 16 | [NormedAddCommGroup F] [NormedSpace ℂ F] [Countable I] |
| 17 | {U : Set E} (hU : IsOpen U) (hc : IsPreconnected U) (hne : U.Nonempty) |
| 18 | {f : E → F} {g : I → E → F} |
| 19 | (hf : AnalyticOnNhd ℂ f U) (hg : ∀ i, AnalyticOnNhd ℂ (g i) U) |
| 20 | (hcover : ∀ x ∈ U, ∃ i, f x = g i x) : ∃ i, Set.EqOn f (g i) U := by |
| 21 | let : BaireSpace U := hU.baireSpace |
| 22 | let : Nonempty U := hne.to_subtype |
| 23 | let Z : I → Set U := fun i => {x | f x.val = g i x.val} |
| 24 | have hZ (i : I) : IsClosed (Z i) := |
| 25 | isClosed_eq (continuousOn_iff_continuous_domRestrict.mp hf.continuousOn) |
| 26 | (continuousOn_iff_continuous_domRestrict.mp (hg i).continuousOn) |
| 27 | have hZU : ⋃ i, Z i = Set.univ := by |
| 28 | ext x |
| 29 | simp only [Set.mem_iUnion, Set.mem_univ, iff_true] |
| 30 | exact hcover x.val x.property |
| 31 | obtain ⟨i, x, hx⟩ := nonempty_interior_of_iUnion_of_closed hZ hZU |
| 32 | refine ⟨i, hf.eqOn_of_preconnected_of_eventuallyEq (hg i) hc x.property ?_⟩ |
| 33 | have hV : IsOpen ((Subtype.val : U → E) '' interior (Z i)) := hU.isOpenMap_subtype_val _ isOpen_interior |
| 34 | have hxV : x.val ∈ ((Subtype.val : U → E) '' interior (Z i)) := ⟨x, hx, rfl⟩ |
| 35 | filter_upwards [hV.mem_nhds hxV] with y hy |
| 36 | obtain ⟨z, hz, rfl⟩ := hy |
| 37 | exact (show z ∈ Z i from interior_subset hz) |
| 38 | |
| 39 | end |
| 40 | |
| 41 | /-! A three-by-three complex matrix fixing every projective line in |
| 42 | an open affine chart is scalar; the proof uses holomorphic identity. -/ |
| 43 | |
| 44 | open Set Filter |
| 45 | open scoped _root_.Topology |
| 46 | |
| 47 | def projectiveMatrixEquation (M : Matrix (Fin 3) (Fin 3) ℂ) |
| 48 | (i : Fin 2) (z : Fin 2 → ℂ) : ℂ := |
| 49 | M i.castSucc 0 * z 0 + M i.castSucc 1 * z 1 + M i.castSucc 2 - |
| 50 | z i * (M 2 0 * z 0 + M 2 1 * z 1 + M 2 2) |
| 51 | |
| 52 | theorem projectiveMatrixEquation_analytic (M : Matrix (Fin 3) (Fin 3) ℂ) (i : Fin 2) : |
| 53 | AnalyticOnNhd ℂ (projectiveMatrixEquation M i) Set.univ := by |
| 54 | intro z _ |
| 55 | have hp (j : Fin 2) : AnalyticAt ℂ (fun w : Fin 2 → ℂ => w j) z := |
| 56 | (ContinuousLinearMap.proj j : (Fin 2 → ℂ) →L[ℂ] ℂ).analyticAt z |
| 57 | have hr (j : Fin 3) : AnalyticAt ℂ |
| 58 | (fun w : Fin 2 → ℂ => M j 0 * w 0 + M j 1 * w 1 + M j 2) z := |
| 59 | ((analyticAt_const.mul (hp 0)).add (analyticAt_const.mul (hp 1))).add analyticAt_const |
| 60 | exact (hr i.castSucc).sub ((hp i).mul (hr 2)) |
| 61 | |
| 62 | theorem projectiveMatrixEquation_global (M : Matrix (Fin 3) (Fin 3) ℂ) |
| 63 | {U : Set (Fin 2 → ℂ)} (hU : IsOpen U) (hne : U.Nonempty) |
| 64 | (h : ∀ z ∈ U, ∀ i, projectiveMatrixEquation M i z = 0) : |
| 65 | ∀ z i, projectiveMatrixEquation M i z = 0 := by |
| 66 | obtain ⟨z₀, hz₀⟩ := hne |
| 67 | intro z i |
| 68 | have hi := (projectiveMatrixEquation_analytic M i).eqOn_of_preconnected_of_eventuallyEq |
| 69 | (analyticOnNhd_const : AnalyticOnNhd ℂ (fun _ : Fin 2 → ℂ => (0 : ℂ)) Set.univ) |
| 70 | isPreconnected_univ (mem_univ z₀) (by |
| 71 | filter_upwards [hU.mem_nhds hz₀] with w hw |
| 72 | exact h w hw i) |
| 73 | exact hi (mem_univ z) |
| 74 | |
| 75 | theorem scalar_matrix_of_projective_open (M : Matrix (Fin 3) (Fin 3) ℂ) |
| 76 | {U : Set (Fin 2 → ℂ)} (hU : IsOpen U) (hne : U.Nonempty) |
| 77 | (h : ∀ z ∈ U, ∀ i, projectiveMatrixEquation M i z = 0) : |
| 78 | M = Matrix.scalar (Fin 3) (M 2 2) := by |
| 79 | have H := projectiveMatrixEquation_global M hU hne h |
| 80 | have h02 := H ![0, 0] 0 |
| 81 | have h12 := H ![0, 0] 1 |
| 82 | have hp0 := H ![1, 0] 0 |
| 83 | have hm0 := H ![-1, 0] 0 |
| 84 | have hp1 := H ![0, 1] 1 |
| 85 | have hm1 := H ![0, -1] 1 |
| 86 | have h10 := H ![1, 0] 1 |
| 87 | have h01 := H ![0, 1] 0 |
| 88 | norm_num [projectiveMatrixEquation] at h02 h12 hp0 hm0 hp1 hm1 h10 h01 |
| 89 | have h20 : M 2 0 = 0 := by linear_combination h02 - (1 / 2 : ℂ) * hp0 - (1 / 2 : ℂ) * hm0 |
| 90 | have h21 : M 2 1 = 0 := by linear_combination h12 - (1 / 2 : ℂ) * hp1 - (1 / 2 : ℂ) * hm1 |
| 91 | have h00 : M 0 0 = M 2 2 := by linear_combination hp0 + h20 - h02 |
| 92 | have h11 : M 1 1 = M 2 2 := by linear_combination hp1 + h21 - h12 |
| 93 | have h10' : M 1 0 = 0 := by linear_combination h10 - h12 |
| 94 | have h01' : M 0 1 = 0 := by linear_combination h01 - h02 |
| 95 | ext i j |
| 96 | fin_cases i <;> fin_cases j <;> |
| 97 | simp [Matrix.scalar_apply, h00, h11, h01', h10', h02, h12, h20, h21] |
| 98 | |
| 99 | end |
| 100 | |
| 101 | end OAI.RepresentationTheory.Theta.Geometric.AnalyticCountableSelection |