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.AlgebraicGeometry.ComplexGroups.HolomorphicAlgebraicity.Immersion |
| 2 | import OAI.Geometry.ComplexTorus.RiemannProjectivity.Fin |
| 3 | |
| 4 | /-! # Immersion Factor At -/ |
| 5 | |
| 6 | namespace OAI.Geometry.ComplexTorus.RiemannProjectivity.ImmersionFactorAt.Constructions.ImmersionFactor |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! # RiemannProjectivity: holomorphicity can be checked after an immersion -/ |
| 11 | |
| 12 | open Set Filter |
| 13 | open scoped _root_.Topology |
| 14 | |
| 15 | variable {V W Z : Type*} |
| 16 | [NormedAddCommGroup V] [NormedSpace ℂ V] |
| 17 | [NormedAddCommGroup W] [NormedSpace ℂ W] [FiniteDimensional ℂ W] |
| 18 | [NormedAddCommGroup Z] [NormedSpace ℂ Z] [FiniteDimensional ℂ Z] |
| 19 | |
| 20 | theorem differentiableAt_of_comp {g : V → W} {f : W → Z} {x : V} {U : Set W} |
| 21 | (hU : IsOpen U) (hx : g x ∈ U) (hf : DifferentiableOn ℂ f U) |
| 22 | (hi : Function.Injective (fderiv ℂ f (g x))) |
| 23 | (hg : ContinuousAt g x) (hcomp : DifferentiableAt ℂ (f ∘ g) x) : DifferentiableAt ℂ g x := by |
| 24 | obtain ⟨C, q, hxq, hq, _, hqi⟩ := AlgebraicGeometry.ComplexGroups.HolomorphicAlgebraicity.Immersion.Constructions.Regularity.exists_holomorphic_normal_chart hU hf hx hi |
| 25 | have hzero (w : W) : q (w, 0) = f w := by |
| 26 | simpa only [ZeroMemClass.coe_zero, add_zero] using hq (w, 0) |
| 27 | have htarget : f (g x) ∈ q.target := hzero (g x) ▸ q.map_source hxq |
| 28 | have hd := differentiableAt_fst.comp x |
| 29 | ((hqi.differentiableAt (q.open_target.mem_nhds htarget)).comp x hcomp) |
| 30 | apply hd.congr_of_eventuallyEq |
| 31 | have hnear : ∀ᶠ y in 𝓝 x, (g y, (0 : C)) ∈ q.source := |
| 32 | (hg.prodMk continuousAt_const).preimage_mem_nhds (q.open_source.mem_nhds hxq) |
| 33 | filter_upwards [hnear] with y hy |
| 34 | change g y = (q.symm (f (g y))).1 |
| 35 | rw [← hzero, q.left_inv hy] |
| 36 | |
| 37 | end |
| 38 | |
| 39 | end OAI.Geometry.ComplexTorus.RiemannProjectivity.ImmersionFactorAt.Constructions.ImmersionFactor |