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.Comparison.Betti.Holomorphic.Restrictions |
| 2 | |
| 3 | /-! # Function Units -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.Comparison.Betti.Holomorphic.FunctionUnits |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Pointwise nonvanishing is exactly invertibility for actual holomorphic functions. -/ |
| 10 | |
| 11 | open _root_.TopologicalSpace |
| 12 | open scoped ContDiff _root_.Topology |
| 13 | |
| 14 | variable {E : Type} [NormedAddCommGroup E] [NormedSpace ℂ E] {U : Opens E} |
| 15 | |
| 16 | def holomorphicFunctionInverse (f : FunctionPure.holomorphicFunctions U) (hf : ∀ x, f.val x ≠ 0) : |
| 17 | FunctionPure.holomorphicFunctions U := |
| 18 | ⟨fun x => (f.val x)⁻¹, by |
| 19 | have hs : ContDiffOn ℂ ∞ (CoefficientMem.openCoefficientExtension U f.val) (U : Set E) := f.property |
| 20 | apply (hs.inv (fun x hx => by |
| 21 | rw [CoefficientMem.openCoefficientExtension_apply U _ ⟨x, hx⟩] |
| 22 | exact hf ⟨x, hx⟩)).congr |
| 23 | intro x hx |
| 24 | simp only [Pi.inv_apply, CoefficientMem.openCoefficientExtension_apply U _ ⟨x, hx⟩]⟩ |
| 25 | |
| 26 | theorem isUnit_holomorphicFunction_iff (f : FunctionPure.holomorphicFunctions U) : |
| 27 | IsUnit f ↔ ∀ x, f.val x ≠ 0 := by |
| 28 | constructor |
| 29 | · rintro ⟨u, rfl⟩ x hx |
| 30 | have h := congrArg (fun g : FunctionPure.holomorphicFunctions U => g.val x) u.val_inv |
| 31 | change u.val.val x * u.inv.val x = 1 at h |
| 32 | rw [hx, zero_mul] at h |
| 33 | exact zero_ne_one h |
| 34 | · intro hf |
| 35 | refine ⟨⟨f, holomorphicFunctionInverse f hf, ?_, ?_⟩, rfl⟩ |
| 36 | · apply Subtype.ext |
| 37 | funext x |
| 38 | exact mul_inv_cancel₀ (hf x) |
| 39 | · apply Subtype.ext |
| 40 | funext x |
| 41 | exact inv_mul_cancel₀ (hf x) |
| 42 | |
| 43 | theorem exists_restrict_holomorphicFunction_isUnit (f : FunctionPure.holomorphicFunctions U) |
| 44 | (x : U) (hx : f.val x ≠ 0) : |
| 45 | ∃ (V : Opens E) (h : V ≤ U), (x : E) ∈ V ∧ IsUnit (Restrictions.holomorphicFunctionRestrict h f) := by |
| 46 | have hs : ContDiffOn ℂ ∞ (CoefficientMem.openCoefficientExtension U f.val) (U : Set E) := f.property |
| 47 | have hc := (hs.contDiffAt (U.isOpen.mem_nhds x.property)).continuousAt |
| 48 | have hx' : CoefficientMem.openCoefficientExtension U f.val x ≠ 0 := by |
| 49 | rw [CoefficientMem.openCoefficientExtension_apply] |
| 50 | exact hx |
| 51 | have hn : ∀ᶠ y in 𝓝 (x : E), CoefficientMem.openCoefficientExtension U f.val y ≠ 0 := |
| 52 | hc.eventually_ne hx' |
| 53 | obtain ⟨s, hs, ho, hxs⟩ := mem_nhds_iff.mp hn |
| 54 | let V : Opens E := ⟨s ∩ U, ho.inter U.isOpen⟩ |
| 55 | refine ⟨V, fun _ h => h.2, ⟨hxs, x.property⟩, ?_⟩ |
| 56 | apply (isUnit_holomorphicFunction_iff _).mpr |
| 57 | intro y |
| 58 | have h := hs y.property.1 |
| 59 | change CoefficientMem.openCoefficientExtension U f.val y ≠ 0 at h |
| 60 | rwa [CoefficientMem.openCoefficientExtension_apply U _ ⟨y, y.property.2⟩] at h |
| 61 | |
| 62 | end |
| 63 | |
| 64 | end OAI.AlgebraicGeometry.Comparison.Betti.Holomorphic.FunctionUnits |