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.AnalyticTransitions |
| 2 | import Mathlib.Analysis.SpecialFunctions.Complex.Log |
| 3 | import Mathlib.Topology.LocallyConstant.Basic |
| 4 | import Mathlib.Tactic.Ring |
| 5 | |
| 6 | /-! # Logarithms -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.DivisorClass.Chern |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! |
| 13 | # ChernClass: local logarithms and integral logarithmic defects |
| 14 | |
| 15 | Nonvanishing continuous transition functions admit continuous logarithms |
| 16 | on explicitly constructed neighborhoods. The multiplicative transition |
| 17 | identity makes the additive logarithmic defect an integral multiple of |
| 18 | 2πi. These integers satisfy the degree-two cocycle identity. |
| 19 | |
| 20 | This is local construction data. No identification with singular cohomology |
| 21 | or with the geometric divisor-class map is asserted here. |
| 22 | -/ |
| 23 | |
| 24 | open _root_.Topology |
| 25 | |
| 26 | namespace Logarithms.Construction |
| 27 | |
| 28 | variable {T : Type*} [TopologicalSpace T] |
| 29 | |
| 30 | /-- Rotate and rescale the logarithm's slit plane to the value at the chosen point. -/ |
| 31 | def logarithmNeighborhood (g : C(T, ℂ)) (p : T) : Set T := |
| 32 | {q | g q / g p ∈ Complex.slitPlane} |
| 33 | |
| 34 | theorem isOpen_logarithmNeighborhood (g : C(T, ℂ)) (p : T) : |
| 35 | IsOpen (logarithmNeighborhood g p) := |
| 36 | Complex.isOpen_slitPlane.preimage (g.continuous.div_const (g p)) |
| 37 | |
| 38 | theorem mem_logarithmNeighborhood (g : C(T, ℂ)) (p : T) (hp : g p ≠ 0) : |
| 39 | p ∈ logarithmNeighborhood g p := by |
| 40 | simpa only [logarithmNeighborhood, Set.mem_ofPred_eq, div_self hp] using |
| 41 | Complex.one_mem_slitPlane |
| 42 | |
| 43 | /-- A continuous logarithm on this explicit neighborhood. -/ |
| 44 | def localLogarithm (g : C(T, ℂ)) (p : T) : |
| 45 | C(logarithmNeighborhood g p, ℂ) where |
| 46 | toFun q := Complex.log (g q / g p) + Complex.log (g p) |
| 47 | continuous_toFun := |
| 48 | (((g.continuous.comp continuous_subtype_val).div_const (g p)).clog |
| 49 | (fun q => q.property)).add continuous_const |
| 50 | |
| 51 | theorem exp_localLogarithm (g : C(T, ℂ)) (p : T) (hp : g p ≠ 0) |
| 52 | (q : logarithmNeighborhood g p) : |
| 53 | Complex.exp (localLogarithm g p q) = g q := by |
| 54 | change Complex.exp (Complex.log (g q / g p) + Complex.log (g p)) = g q |
| 55 | rw [Complex.exp_add, Complex.exp_log (Complex.slitPlane_ne_zero q.property), |
| 56 | Complex.exp_log hp, div_mul_cancel₀ _ hp] |
| 57 | |
| 58 | /-- A multiplicative transition relation forces the log defect into 2πiℤ. -/ |
| 59 | theorem exists_logarithmicDefect (a b c : ℂ) |
| 60 | (h : Complex.exp a * Complex.exp b = Complex.exp c) : |
| 61 | ∃ n : ℤ, a + b - c = (n : ℂ) * (2 * (Real.pi : ℂ) * Complex.I) := by |
| 62 | apply Complex.exp_eq_one_iff.mp |
| 63 | rw [Complex.exp_sub, Complex.exp_add, h, div_self (Complex.exp_ne_zero c)] |
| 64 | |
| 65 | /-- The integer is extracted from the actual logarithms and their exponential relation. -/ |
| 66 | def logarithmicDefect (a b c : ℂ) |
| 67 | (h : Complex.exp a * Complex.exp b = Complex.exp c) : ℤ := |
| 68 | (exists_logarithmicDefect a b c h).choose |
| 69 | |
| 70 | theorem logarithmicDefect_spec (a b c : ℂ) |
| 71 | (h : Complex.exp a * Complex.exp b = Complex.exp c) : |
| 72 | a + b - c = (logarithmicDefect a b c h : ℂ) * |
| 73 | (2 * (Real.pi : ℂ) * Complex.I) := |
| 74 | (exists_logarithmicDefect a b c h).choose_spec |
| 75 | |
| 76 | /-- The choice of an integer witness introduces no ambiguity. -/ |
| 77 | theorem logarithmicDefect_unique (a b c : ℂ) |
| 78 | (h : Complex.exp a * Complex.exp b = Complex.exp c) (n : ℤ) |
| 79 | (hn : a + b - c = (n : ℂ) * (2 * (Real.pi : ℂ) * Complex.I)) : |
| 80 | n = logarithmicDefect a b c h := by |
| 81 | have he : (n : ℂ) = (logarithmicDefect a b c h : ℂ) := |
| 82 | mul_right_cancel₀ Complex.two_pi_I_ne_zero |
| 83 | (hn.symm.trans (logarithmicDefect_spec a b c h)) |
| 84 | exact_mod_cast he |
| 85 | |
| 86 | /-- Continuous local logarithms give a continuous integer-valued defect. -/ |
| 87 | theorem continuous_logarithmicDefect (a b c : C(T, ℂ)) |
| 88 | (h : ∀ p, Complex.exp (a p) * Complex.exp (b p) = Complex.exp (c p)) : |
| 89 | Continuous (fun p => logarithmicDefect (a p) (b p) (c p) (h p)) := by |
| 90 | apply Complex.isClosedEmbedding_intCast.isEmbedding.isInducing.continuous_iff.mpr |
| 91 | have he : (fun p => (logarithmicDefect (a p) (b p) (c p) (h p) : ℂ)) = |
| 92 | (fun p => (a p + b p - c p) / (2 * (Real.pi : ℂ) * Complex.I)) := by |
| 93 | funext p |
| 94 | apply (eq_div_iff Complex.two_pi_I_ne_zero).mpr |
| 95 | exact (logarithmicDefect_spec (a p) (b p) (c p) (h p)).symm |
| 96 | change Continuous (fun p => (logarithmicDefect (a p) (b p) (c p) (h p) : ℂ)) |
| 97 | rw [he] |
| 98 | exact ((a.continuous.add b.continuous).sub c.continuous).div_const _ |
| 99 | |
| 100 | /-- The integer defect is locally constant, as required for integral coefficients. -/ |
| 101 | theorem isLocallyConstant_logarithmicDefect (a b c : C(T, ℂ)) |
| 102 | (h : ∀ p, Complex.exp (a p) * Complex.exp (b p) = Complex.exp (c p)) : |
| 103 | IsLocallyConstant (fun p => logarithmicDefect (a p) (b p) (c p) (h p)) := |
| 104 | (IsLocallyConstant.iff_continuous _).mpr (continuous_logarithmicDefect a b c h) |
| 105 | |
| 106 | /-- On a quadruple overlap, the alternating sum of the four defects vanishes. -/ |
| 107 | theorem logarithmicDefect_cocycle |
| 108 | (a01 a02 a03 a12 a13 a23 : ℂ) |
| 109 | (h012 : Complex.exp a01 * Complex.exp a12 = Complex.exp a02) |
| 110 | (h013 : Complex.exp a01 * Complex.exp a13 = Complex.exp a03) |
| 111 | (h023 : Complex.exp a02 * Complex.exp a23 = Complex.exp a03) |
| 112 | (h123 : Complex.exp a12 * Complex.exp a23 = Complex.exp a13) : |
| 113 | logarithmicDefect a12 a23 a13 h123 - logarithmicDefect a02 a23 a03 h023 + |
| 114 | logarithmicDefect a01 a13 a03 h013 - logarithmicDefect a01 a12 a02 h012 = 0 := by |
| 115 | have he : ((logarithmicDefect a12 a23 a13 h123 : ℂ) - |
| 116 | (logarithmicDefect a02 a23 a03 h023 : ℂ) + |
| 117 | (logarithmicDefect a01 a13 a03 h013 : ℂ) - |
| 118 | (logarithmicDefect a01 a12 a02 h012 : ℂ)) * |
| 119 | (2 * (Real.pi : ℂ) * Complex.I) = 0 := by |
| 120 | rw [sub_mul, add_mul, sub_mul, ← logarithmicDefect_spec, |
| 121 | ← logarithmicDefect_spec, ← logarithmicDefect_spec, ← logarithmicDefect_spec] |
| 122 | ring |
| 123 | have hz := (mul_eq_zero.mp he).resolve_right Complex.two_pi_I_ne_zero |
| 124 | exact_mod_cast hz |
| 125 | |
| 126 | end Logarithms.Construction |
| 127 | |
| 128 | /-- Every actual algebraic transition admits a continuous logarithm near each |
| 129 | complex point of the overlap. -/ |
| 130 | theorem Line.Bundles.AlgebraicLineBundle.exists_localLogarithm {X : Foundations.Scheme.SmoothProjective.SmoothProjectivePresentation} |
| 131 | (L : Line.Bundles.AlgebraicLineBundle X) (x y : X.carrier) (W : X.carrier.Opens) |
| 132 | (hx : W ≤ L.trivializingOpen x) (hy : W ≤ L.trivializingOpen y) |
| 133 | (p : ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints (Line.Bundles.AlgebraicLineBundle.openOver W)) : |
| 134 | ∃ U : Set (ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints (Line.Bundles.AlgebraicLineBundle.openOver W)), IsOpen U ∧ p ∈ U ∧ |
| 135 | ∃ l : C(U, ℂ), ∀ q : U, Complex.exp (l q) = L.analyticTransitionOn x y W hx hy q := by |
| 136 | let g := L.analyticTransitionOn x y W hx hy |
| 137 | have hp : g p ≠ 0 := L.analyticTransitionOn_ne_zero x y W hx hy p |
| 138 | exact ⟨Logarithms.Construction.logarithmNeighborhood g p, Logarithms.Construction.isOpen_logarithmNeighborhood g p, |
| 139 | Logarithms.Construction.mem_logarithmNeighborhood g p hp, Logarithms.Construction.localLogarithm g p, |
| 140 | fun q => Logarithms.Construction.exp_localLogarithm g p hp q⟩ |
| 141 | |
| 142 | end |
| 143 | |
| 144 | end OAI.AlgebraicGeometry.DivisorClass.Chern |