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.DivisorClass.Chern.Logarithms |
| 2 | import Mathlib.Geometry.Manifold.Sheaf.Smooth |
| 3 | import Mathlib.Analysis.SpecialFunctions.Complex.LogDeriv |
| 4 | |
| 5 | /-! # Exponential -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.DivisorClass.Chern.Holomorphic.Exponential |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | section |
| 12 | |
| 13 | /-! Actual holomorphic local logarithms for the analytic exponential sequence. -/ |
| 14 | |
| 15 | open _root_.CategoryTheory _root_.TopologicalSpace |
| 16 | open scoped _root_.Manifold ContDiff |
| 17 | |
| 18 | set_option backward.isDefEq.respectTransparency false |
| 19 | set_option backward.isDefEq.respectTransparency.types false |
| 20 | set_option backward.defeqAttrib.useBackward true |
| 21 | |
| 22 | variable {E : Type} [NormedAddCommGroup E] [NormedSpace ℂ E] |
| 23 | variable {M : Type} [TopologicalSpace M] [ChartedSpace E M] |
| 24 | |
| 25 | abbrev HolomorphicFunction := C^∞⟮𝓘(ℂ, E), M; 𝓘(ℂ), ℂ⟯ |
| 26 | |
| 27 | def holomorphicLogarithmOpen (g : HolomorphicFunction (E := E) (M := M)) (p : M) : Opens M := |
| 28 | ⟨Logarithms.Construction.logarithmNeighborhood (⟨g.val, g.property.continuous⟩ : C(M, ℂ)) p, |
| 29 | Logarithms.Construction.isOpen_logarithmNeighborhood (⟨g.val, g.property.continuous⟩ : C(M, ℂ)) p⟩ |
| 30 | |
| 31 | theorem mem_holomorphicLogarithmOpen (g : HolomorphicFunction (E := E) (M := M)) |
| 32 | (p : M) (hp : g p ≠ 0) : p ∈ holomorphicLogarithmOpen g p := |
| 33 | Logarithms.Construction.mem_logarithmNeighborhood (⟨g.val, g.property.continuous⟩ : C(M, ℂ)) p hp |
| 34 | |
| 35 | def holomorphicLocalLogarithm (g : HolomorphicFunction (E := E) (M := M)) (p : M) : |
| 36 | C^∞⟮𝓘(ℂ, E), holomorphicLogarithmOpen g p; 𝓘(ℂ), ℂ⟯ where |
| 37 | val q := Complex.log (g q / g p) + Complex.log (g p) |
| 38 | property := by |
| 39 | have hg : ContMDiff 𝓘(ℂ, E) 𝓘(ℂ) ∞ |
| 40 | (fun q : holomorphicLogarithmOpen g p => g q) := |
| 41 | g.property.comp contMDiff_subtype_val |
| 42 | intro q |
| 43 | have hq : g q / g p ∈ Complex.slitPlane := q.property |
| 44 | have hr : ContMDiffAt 𝓘(ℂ, E) 𝓘(ℂ) ∞ |
| 45 | (fun r : holomorphicLogarithmOpen g p => g r / g p) q := by |
| 46 | simpa only [div_eq_mul_inv] using! (hg.mul contMDiff_const).contMDiffAt |
| 47 | exact ((Complex.contDiffAt_log hq).contMDiffAt.comp q hr).add contMDiffAt_const |
| 48 | |
| 49 | theorem exp_holomorphicLocalLogarithm (g : HolomorphicFunction (E := E) (M := M)) |
| 50 | (p : M) (hp : g p ≠ 0) (q : holomorphicLogarithmOpen g p) : |
| 51 | Complex.exp (holomorphicLocalLogarithm g p q) = g q := |
| 52 | Logarithms.Construction.exp_localLogarithm (⟨g.val, g.property.continuous⟩ : C(M, ℂ)) p hp q |
| 53 | |
| 54 | theorem exists_local_holomorphic_logarithm (g : HolomorphicFunction (E := E) (M := M)) |
| 55 | (p : M) (hp : g p ≠ 0) : |
| 56 | ∃ (U : Opens M), p ∈ U ∧ ∃ l : C^∞⟮𝓘(ℂ, E), U; 𝓘(ℂ), ℂ⟯, |
| 57 | ∀ q : U, Complex.exp (l q) = g q := |
| 58 | ⟨holomorphicLogarithmOpen g p, mem_holomorphicLogarithmOpen g p hp, |
| 59 | holomorphicLocalLogarithm g p, exp_holomorphicLocalLogarithm g p hp⟩ |
| 60 | |
| 61 | end |
| 62 | |
| 63 | /-! The actual holomorphic exponential and its exact integral-period kernel. -/ |
| 64 | |
| 65 | open _root_.CategoryTheory _root_.TopologicalSpace |
| 66 | open scoped _root_.Manifold ContDiff _root_.Topology |
| 67 | |
| 68 | set_option backward.isDefEq.respectTransparency false |
| 69 | set_option backward.isDefEq.respectTransparency.types false |
| 70 | set_option backward.defeqAttrib.useBackward true |
| 71 | |
| 72 | variable {E : Type} [NormedAddCommGroup E] [NormedSpace ℂ E] |
| 73 | variable {M : Type} [TopologicalSpace M] [ChartedSpace E M] |
| 74 | |
| 75 | def holomorphicExpFunction (g : HolomorphicFunction (E := E) (M := M)) : |
| 76 | HolomorphicFunction (E := E) (M := M) := |
| 77 | ⟨fun x => Complex.exp (g x), Complex.contDiff_exp.contMDiff.comp g.property⟩ |
| 78 | |
| 79 | def holomorphicExpUnit (g : HolomorphicFunction (E := E) (M := M)) : |
| 80 | (HolomorphicFunction (E := E) (M := M))ˣ where |
| 81 | val := holomorphicExpFunction g |
| 82 | inv := holomorphicExpFunction (-g) |
| 83 | val_inv := by |
| 84 | apply ContMDiffMap.ext |
| 85 | intro x |
| 86 | change Complex.exp (g x) * Complex.exp (-g x) = 1 |
| 87 | rw [← Complex.exp_add, add_neg_cancel, Complex.exp_zero] |
| 88 | inv_val := by |
| 89 | apply ContMDiffMap.ext |
| 90 | intro x |
| 91 | change Complex.exp (-g x) * Complex.exp (g x) = 1 |
| 92 | rw [← Complex.exp_add, neg_add_cancel, Complex.exp_zero] |
| 93 | |
| 94 | theorem holomorphicExpUnit_zero : holomorphicExpUnit (0 : HolomorphicFunction (E := E) (M := M)) = 1 := by |
| 95 | apply Units.ext |
| 96 | apply ContMDiffMap.ext |
| 97 | intro x |
| 98 | exact Complex.exp_zero |
| 99 | |
| 100 | theorem holomorphicExpUnit_add (g h : HolomorphicFunction (E := E) (M := M)) : |
| 101 | holomorphicExpUnit (g+h) = holomorphicExpUnit g * holomorphicExpUnit h := by |
| 102 | apply Units.ext |
| 103 | apply ContMDiffMap.ext |
| 104 | intro x |
| 105 | exact Complex.exp_add (g x) (h x) |
| 106 | |
| 107 | def holomorphicExponential : HolomorphicFunction (E := E) (M := M) →+ |
| 108 | Additive (HolomorphicFunction (E := E) (M := M))ˣ where |
| 109 | toFun g := Additive.ofMul (holomorphicExpUnit g) |
| 110 | map_zero' := holomorphicExpUnit_zero |
| 111 | map_add' := holomorphicExpUnit_add |
| 112 | |
| 113 | def holomorphicPeriodFunction (n : LocallyConstant M ℤ) : HolomorphicFunction (E := E) (M := M) where |
| 114 | val x := (n x : ℂ) * (2 * (Real.pi : ℂ) * Complex.I) |
| 115 | property := by |
| 116 | intro x |
| 117 | apply (contMDiffAt_const (c := (n x : ℂ) * (2 * (Real.pi : ℂ) * Complex.I))).congr_of_eventuallyEq |
| 118 | filter_upwards [n.isLocallyConstant.eventually_eq x] with y hy |
| 119 | change n y = n x at hy |
| 120 | rw [hy] |
| 121 | |
| 122 | theorem holomorphicPeriodFunction_injective : Function.Injective (holomorphicPeriodFunction (E := E) (M := M)) := by |
| 123 | intro n m h |
| 124 | apply LocallyConstant.ext |
| 125 | intro x |
| 126 | have hx := congrArg (fun f : HolomorphicFunction (E := E) (M := M) => f x) h |
| 127 | change (n x : ℂ) * (2 * (Real.pi : ℂ) * Complex.I) = |
| 128 | (m x : ℂ) * (2 * (Real.pi : ℂ) * Complex.I) at hx |
| 129 | exact_mod_cast (mul_right_cancel₀ Complex.two_pi_I_ne_zero hx) |
| 130 | |
| 131 | theorem exp_holomorphicPeriodFunction (n : LocallyConstant M ℤ) : |
| 132 | holomorphicExpUnit (holomorphicPeriodFunction (E := E) n) = 1 := by |
| 133 | apply Units.ext |
| 134 | apply ContMDiffMap.ext |
| 135 | intro x |
| 136 | exact Complex.exp_eq_one_iff.mpr ⟨n x, rfl⟩ |
| 137 | |
| 138 | def holomorphicKernelInteger (g : HolomorphicFunction (E := E) (M := M)) |
| 139 | (h : ∀ x, Complex.exp (g x) = 1) : LocallyConstant M ℤ := |
| 140 | ⟨fun x => Logarithms.Construction.logarithmicDefect (g x) 0 0 (by simpa only [Complex.exp_zero, mul_one] using h x), |
| 141 | Logarithms.Construction.isLocallyConstant_logarithmicDefect (⟨g.val, g.property.continuous⟩ : C(M, ℂ)) 0 0 |
| 142 | (fun x => by simpa only [ContinuousMap.zero_apply, Complex.exp_zero, mul_one] using! h x)⟩ |
| 143 | |
| 144 | theorem holomorphicKernelInteger_spec (g : HolomorphicFunction (E := E) (M := M)) |
| 145 | (h : ∀ x, Complex.exp (g x) = 1) : |
| 146 | holomorphicPeriodFunction (E := E) (holomorphicKernelInteger g h) = g := by |
| 147 | apply ContMDiffMap.ext |
| 148 | intro x |
| 149 | have hs := Logarithms.Construction.logarithmicDefect_spec (g x) 0 0 |
| 150 | (by simpa only [Complex.exp_zero, mul_one] using h x) |
| 151 | simpa only [add_zero, sub_zero] using! hs.symm |
| 152 | |
| 153 | theorem holomorphicExponential_kernel (g : HolomorphicFunction (E := E) (M := M)) : |
| 154 | holomorphicExpUnit g = 1 ↔ ∃ n : LocallyConstant M ℤ, holomorphicPeriodFunction (E := E) n = g := by |
| 155 | constructor |
| 156 | · intro h |
| 157 | have hp : ∀ x, Complex.exp (g x) = 1 := fun x => |
| 158 | congrArg (fun u : (HolomorphicFunction (E := E) (M := M))ˣ => (u : HolomorphicFunction (E := E) (M := M)) x) h |
| 159 | exact ⟨holomorphicKernelInteger g hp, holomorphicKernelInteger_spec g hp⟩ |
| 160 | · rintro ⟨n, rfl⟩ |
| 161 | exact exp_holomorphicPeriodFunction n |
| 162 | |
| 163 | end |
| 164 | |
| 165 | end OAI.AlgebraicGeometry.DivisorClass.Chern.Holomorphic.Exponential |