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.Analysis.Complex.BranchLogRoot |
| 2 | import Mathlib.Analysis.Convex.Topology |
| 3 | import Mathlib.Topology.Homotopy.Lifting |
| 4 | |
| 5 | /-! # Continuous Square Root -/ |
| 6 | |
| 7 | namespace OAI.RepresentationTheory.Theta.Adelic.ContinuousSquareRoot |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Parameter-continuous square roots on convex domains. The prescribed |
| 12 | root at one point is transported by the square covering along straight |
| 13 | segments; no connectedness of the parameter space is required. -/ |
| 14 | |
| 15 | open scoped Classical unitInterval |
| 16 | |
| 17 | theorem continuous_square_roots_eq {X : Type*} [TopologicalSpace X] [PreconnectedSpace X] |
| 18 | (f g : X → ℂ) (hf : Continuous f) (hg : Continuous g) |
| 19 | (hn : ∀ x, f x ≠ 0) (hs : ∀ x, f x ^ 2 = g x ^ 2) |
| 20 | (x₀ : X) (h₀ : f x₀ = g x₀) : f = g := by |
| 21 | let s : Set ℂ := {0}ᶜ |
| 22 | let p : ℂ → ℂ := fun z => z ^ 2 |
| 23 | have cov : IsCoveringMap (s.restrictPreimage p) := |
| 24 | (isCoveringMapOn_npow (𝕜 := ℂ) 2 (by norm_num)).isCoveringMap_restrictPreimage |
| 25 | have hfn (x : X) : p (f x) ∈ s := pow_ne_zero _ (hn x) |
| 26 | have hgn (x : X) : p (g x) ∈ s := by |
| 27 | change g x ^ 2 ≠ 0 |
| 28 | rw [← hs x] |
| 29 | exact hfn x |
| 30 | let F : X → p ⁻¹' s := fun x => ⟨f x, hfn x⟩ |
| 31 | let G : X → p ⁻¹' s := fun x => ⟨g x, hgn x⟩ |
| 32 | have he : F = G := cov.eq_of_comp_eq (hf.subtype_mk _) (hg.subtype_mk _) (by |
| 33 | funext x |
| 34 | exact Subtype.ext (hs x)) x₀ (Subtype.ext h₀) |
| 35 | exact funext (fun x => congrArg Subtype.val (congrFun he x)) |
| 36 | |
| 37 | theorem parameter_square_root {G V : Type*} [TopologicalSpace G] |
| 38 | [NormedAddCommGroup V] [NormedSpace ℝ V] |
| 39 | (s : Set V) (hs : Convex ℝ s) (z₀ : s) |
| 40 | (f : G × s → ℂ) (hf : Continuous f) (hn : ∀ p, f p ≠ 0) |
| 41 | (a : G → ℂ) (ha : Continuous a) (has : ∀ g, a g ^ 2 = f (g, z₀)) : |
| 42 | ∃ J : G × s → ℂ, Continuous J ∧ |
| 43 | (∀ p, J p ^ 2 = f p) ∧ (∀ g, J (g, z₀) = a g) := by |
| 44 | let segment : unitInterval × s → s := fun q => |
| 45 | ⟨(1 - (q.1 : ℝ)) • z₀.val + (q.1 : ℝ) • q.2.val, |
| 46 | hs z₀.property q.2.property (sub_nonneg.mpr q.1.property.2) q.1.property.1 (by ring)⟩ |
| 47 | have hc : Continuous segment := by fun_prop |
| 48 | have hzero (z : s) : segment (0, z) = z₀ := by |
| 49 | apply Subtype.ext |
| 50 | simp [segment] |
| 51 | have hone (z : s) : segment (1, z) = z := by |
| 52 | apply Subtype.ext |
| 53 | simp [segment] |
| 54 | have hfixed (t : unitInterval) : segment (t, z₀) = z₀ := by |
| 55 | apply Subtype.ext |
| 56 | change (1 - (t : ℝ)) • z₀.val + (t : ℝ) • z₀.val = z₀.val |
| 57 | rw [← add_smul, sub_add_cancel, one_smul] |
| 58 | let nz : Set ℂ := {0}ᶜ |
| 59 | let p : ℂ → ℂ := fun z => z ^ 2 |
| 60 | have cov : IsCoveringMap (nz.restrictPreimage p) := |
| 61 | (isCoveringMapOn_npow (𝕜 := ℂ) 2 (by norm_num)).isCoveringMap_restrictPreimage |
| 62 | let H : C(unitInterval × (G × s), nz) := |
| 63 | ⟨fun q => ⟨f (q.2.1, segment (q.1, q.2.2)), hn _⟩, |
| 64 | (hf.comp (continuous_snd.fst.prodMk (hc.comp |
| 65 | (continuous_fst.prodMk continuous_snd.snd)))).subtype_mk _⟩ |
| 66 | have han (g : G) : a g ^ 2 ≠ 0 := by rw [has]; exact hn _ |
| 67 | let initial : C(G × s, p ⁻¹' nz) := |
| 68 | ⟨fun q => ⟨a q.1, han q.1⟩, (ha.comp continuous_fst).subtype_mk _⟩ |
| 69 | have hstart (q : G × s) : H (0, q) = nz.restrictPreimage p (initial q) := by |
| 70 | apply Subtype.ext |
| 71 | change f (q.1, segment (0, q.2)) = a q.1 ^ 2 |
| 72 | rw [hzero, has] |
| 73 | let lift := cov.liftHomotopy H initial hstart |
| 74 | have hlift (t : unitInterval) (q : G × s) : |
| 75 | (lift (t, q)).val ^ 2 = f (q.1, segment (t, q.2)) := |
| 76 | congrArg Subtype.val (congrFun (cov.liftHomotopy_lifts H initial hstart) (t, q)) |
| 77 | have hliftzero (q : G × s) : (lift (0, q)).val = a q.1 := |
| 78 | congrArg Subtype.val (cov.liftHomotopy_zero H initial hstart q) |
| 79 | refine ⟨fun q => (lift (1, q)).val, ?_, ?_, ?_⟩ |
| 80 | · exact continuous_subtype_val.comp (lift.continuous.comp (continuous_const.prodMk continuous_id)) |
| 81 | · intro q |
| 82 | rw [hlift, hone] |
| 83 | · intro g |
| 84 | have he := continuous_square_roots_eq |
| 85 | (fun t : unitInterval => (lift (t, (g, z₀))).val) (fun _ => a g) |
| 86 | (continuous_subtype_val.comp (lift.continuous.comp (continuous_id.prodMk continuous_const))) |
| 87 | continuous_const (fun t h => by |
| 88 | have hn' := han g |
| 89 | rw [has, ← hfixed t, ← hlift t (g, z₀), h] at hn' |
| 90 | exact hn' (by norm_num)) |
| 91 | (fun t => by rw [hlift, hfixed, has]) 0 (hliftzero (g, z₀)) |
| 92 | exact congrFun he 1 |
| 93 | |
| 94 | end |
| 95 | |
| 96 | end OAI.RepresentationTheory.Theta.Adelic.ContinuousSquareRoot |