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.Holomorphic.TensorMetric |
| 2 | import OAI.AlgebraicGeometry.DivisorClass.Chern.HolomorphicMetric.Curvature |
| 3 | |
| 4 | /-! # Metric Twists -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.DivisorClass.Chern |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | section |
| 11 | |
| 12 | /-! The actual metric on the sum bundle has exactly the sum of the input curvatures. -/ |
| 13 | |
| 14 | open _root_.TopologicalSpace |
| 15 | open scoped _root_.Manifold ContDiff |
| 16 | |
| 17 | set_option backward.isDefEq.respectTransparency false |
| 18 | set_option backward.isDefEq.respectTransparency.types false |
| 19 | set_option backward.defeqAttrib.useBackward true |
| 20 | |
| 21 | attribute [local instance] Analysis.DifferentialForms.Manifold.ComplexCharts.complexManifold_isRealSmooth |
| 22 | |
| 23 | variable {E M : Type} [NormedAddCommGroup E] [NormedSpace ℂ E] [NormedSpace ℝ E] |
| 24 | [IsScalarTower ℝ ℂ E] [TopologicalSpace M] [ChartedSpace E M] [IsManifold 𝓘(ℂ, E) ∞ M] |
| 25 | (u v : Holomorphic.Connecting.holomorphicUnitCohomology E M) |
| 26 | |
| 27 | omit [IsManifold 𝓘(ℂ, E) ∞ M] in |
| 28 | theorem Holomorphic.MetricTwists.holomorphicTensorMetric_log_difference |
| 29 | (h : HolomorphicMetric.Data.HolomorphicLineMetricData u) (k : HolomorphicMetric.Data.HolomorphicLineMetricData v) |
| 30 | (r : HolomorphicMetric.Data.HolomorphicLineMetricData (u + v)) (i : M) (x : Holomorphic.TensorGaugeTransitions.holomorphicTensorDomain E M u v i) : |
| 31 | h.logFunction i ⟨x.val, x.property.2.1⟩ + k.logFunction i ⟨x.val, x.property.2.2⟩ - |
| 32 | (Holomorphic.TensorMetric.holomorphicTensorMetricWithReference u v h k r).logFunction i ⟨x.val, x.property.1⟩ = |
| 33 | (Real.log (Complex.normSq ((Holomorphic.TensorGaugeTransitions.holomorphicTensorGauge E M u v i).val x)) : ℂ) := by |
| 34 | change (Real.log (h.weight i ⟨x.val, x.property.2.1⟩) : ℂ) + |
| 35 | (Real.log (k.weight i ⟨x.val, x.property.2.2⟩) : ℂ) - |
| 36 | (Real.log ((Holomorphic.TensorMetric.holomorphicTensorMetricWithReference u v h k r).weight i ⟨x.val, x.property.1⟩) : ℂ) = _ |
| 37 | rw [Holomorphic.TensorMetric.holomorphicTensorMetricWithReference_weight, Holomorphic.TensorMetric.holomorphicTensorMetricLocalWeight, |
| 38 | Real.log_div (ne_of_gt (mul_pos (h.positive i _) (k.positive i _))) |
| 39 | (ne_of_gt (Complex.normSq_pos.mpr (Holomorphic.SlitLog.holomorphicUnit_value_ne_zero (Holomorphic.TensorGaugeTransitions.holomorphicTensorGauge E M u v i) x))), |
| 40 | Real.log_mul (ne_of_gt (h.positive i _)) (ne_of_gt (k.positive i _)), Complex.ofReal_sub, Complex.ofReal_add] |
| 41 | ring |
| 42 | |
| 43 | theorem Holomorphic.MetricTwists.holomorphicTensorMetricWithReference_localCurvature |
| 44 | (h : HolomorphicMetric.Data.HolomorphicLineMetricData u) (k : HolomorphicMetric.Data.HolomorphicLineMetricData v) |
| 45 | (r : HolomorphicMetric.Data.HolomorphicLineMetricData (u + v)) (i : M) : |
| 46 | Analysis.DifferentialForms.Manifold.Open.SmoothOpenManifoldForm.restrict (show Holomorphic.TensorGaugeTransitions.holomorphicTensorDomain E M u v i ≤ |
| 47 | Holomorphic.CohomologyTransitions.holomorphicCohomologyDomain E M (u + v) i from inf_le_left) |
| 48 | ((Holomorphic.TensorMetric.holomorphicTensorMetricWithReference u v h k r).localCurvature i) = |
| 49 | Analysis.DifferentialForms.Manifold.Open.SmoothOpenManifoldForm.restrict (show Holomorphic.TensorGaugeTransitions.holomorphicTensorDomain E M u v i ≤ |
| 50 | Holomorphic.CohomologyTransitions.holomorphicCohomologyDomain E M u i from inf_le_right.trans inf_le_left) (h.localCurvature i) + |
| 51 | Analysis.DifferentialForms.Manifold.Open.SmoothOpenManifoldForm.restrict (show Holomorphic.TensorGaugeTransitions.holomorphicTensorDomain E M u v i ≤ |
| 52 | Holomorphic.CohomologyTransitions.holomorphicCohomologyDomain E M v i from inf_le_right.trans inf_le_right) (k.localCurvature i) := by |
| 53 | unfold HolomorphicMetric.Data.HolomorphicLineMetricData.localCurvature |
| 54 | rw [ScalarOpenConnection.smoothScalarOpenCurvature_restrict, ScalarOpenConnection.smoothScalarOpenCurvature_restrict, ScalarOpenConnection.smoothScalarOpenCurvature_restrict] |
| 55 | exact (LogNormCurvatureVanishing.smoothScalarOpenCurvature_eq_of_logNormSq_difference (Holomorphic.TensorGaugeTransitions.holomorphicTensorGauge E M u v i) |
| 56 | (SmoothScalarForm.smoothComplexOpenFunctionRestrict (inf_le_right.trans inf_le_left) (h.logFunction i) + |
| 57 | SmoothScalarForm.smoothComplexOpenFunctionRestrict (inf_le_right.trans inf_le_right) (k.logFunction i)) |
| 58 | (SmoothScalarForm.smoothComplexOpenFunctionRestrict inf_le_left ((Holomorphic.TensorMetric.holomorphicTensorMetricWithReference u v h k r).logFunction i)) |
| 59 | (Holomorphic.MetricTwists.holomorphicTensorMetric_log_difference u v h k r i)).symm.trans (ScalarOpenConnection.smoothScalarOpenCurvature_add _ _) |
| 60 | |
| 61 | theorem HolomorphicMetric.Data.HolomorphicLineMetricData.curvature_onSubopen {u : Holomorphic.Connecting.holomorphicUnitCohomology E M} |
| 62 | (h : HolomorphicMetric.Data.HolomorphicLineMetricData u) (i : M) (W : Opens M) (hW : W ≤ Holomorphic.CohomologyTransitions.holomorphicCohomologyDomain E M u i) : |
| 63 | Analysis.DifferentialForms.Manifold.Algebra.SmoothManifoldForm.onOpen W h.curvature = Analysis.DifferentialForms.Manifold.Open.SmoothOpenManifoldForm.restrict hW (h.localCurvature i) := by |
| 64 | rw [← h.curvature_onOpen i, Analysis.DifferentialForms.Manifold.Algebra.SmoothManifoldForm.restrict_onOpen] |
| 65 | |
| 66 | theorem Holomorphic.MetricTwists.holomorphicTensorMetricWithReference_curvature |
| 67 | (h : HolomorphicMetric.Data.HolomorphicLineMetricData u) (k : HolomorphicMetric.Data.HolomorphicLineMetricData v) |
| 68 | (r : HolomorphicMetric.Data.HolomorphicLineMetricData (u + v)) : |
| 69 | (Holomorphic.TensorMetric.holomorphicTensorMetricWithReference u v h k r).curvature = h.curvature + k.curvature := by |
| 70 | apply Analysis.DifferentialForms.Manifold.Algebra.SmoothManifoldForm.ext |
| 71 | intro x |
| 72 | have he : Analysis.DifferentialForms.Manifold.Algebra.SmoothManifoldForm.onOpen (Holomorphic.TensorGaugeTransitions.holomorphicTensorDomain E M u v x) |
| 73 | (Holomorphic.TensorMetric.holomorphicTensorMetricWithReference u v h k r).curvature = |
| 74 | Analysis.DifferentialForms.Manifold.Algebra.SmoothManifoldForm.onOpen (Holomorphic.TensorGaugeTransitions.holomorphicTensorDomain E M u v x) h.curvature + |
| 75 | Analysis.DifferentialForms.Manifold.Algebra.SmoothManifoldForm.onOpen (Holomorphic.TensorGaugeTransitions.holomorphicTensorDomain E M u v x) k.curvature := by |
| 76 | exact ((Holomorphic.TensorMetric.holomorphicTensorMetricWithReference u v h k r).curvature_onSubopen x |
| 77 | (Holomorphic.TensorGaugeTransitions.holomorphicTensorDomain E M u v x) inf_le_left).trans |
| 78 | ((Holomorphic.MetricTwists.holomorphicTensorMetricWithReference_localCurvature u v h k r x).trans |
| 79 | (congrArg₂ (fun a b : Analysis.DifferentialForms.Manifold.Open.SmoothOpenManifoldForm E (Holomorphic.TensorGaugeTransitions.holomorphicTensorDomain E M u v x) 2 => a + b) |
| 80 | (h.curvature_onSubopen x (Holomorphic.TensorGaugeTransitions.holomorphicTensorDomain E M u v x) (inf_le_right.trans inf_le_left)).symm |
| 81 | (k.curvature_onSubopen x (Holomorphic.TensorGaugeTransitions.holomorphicTensorDomain E M u v x) (inf_le_right.trans inf_le_right)).symm)) |
| 82 | exact congrArg (fun a : Analysis.DifferentialForms.Manifold.Open.SmoothOpenManifoldForm E (Holomorphic.TensorGaugeTransitions.holomorphicTensorDomain E M u v x) 2 => |
| 83 | a ⟨x, Holomorphic.TensorGaugeTransitions.holomorphicTensorDomain_mem E M u v x⟩) he |
| 84 | |
| 85 | variable [FiniteDimensional ℝ E] [CompactSpace M] [T2Space M] |
| 86 | |
| 87 | theorem Holomorphic.MetricTwists.holomorphicTensorMetric_curvature (h : HolomorphicMetric.Data.HolomorphicLineMetricData u) (k : HolomorphicMetric.Data.HolomorphicLineMetricData v) : |
| 88 | (Holomorphic.TensorMetric.holomorphicTensorMetric u v h k).curvature = h.curvature + k.curvature := |
| 89 | Holomorphic.MetricTwists.holomorphicTensorMetricWithReference_curvature u v h k (HolomorphicMetric.Data.holomorphicLineCanonicalMetric (u + v)) |
| 90 | |
| 91 | theorem Holomorphic.MetricTwists.holomorphicCanonicalTensorMetric_curvature : |
| 92 | (Holomorphic.TensorMetric.holomorphicTensorMetric u v (HolomorphicMetric.Data.holomorphicLineCanonicalMetric u) (HolomorphicMetric.Data.holomorphicLineCanonicalMetric v)).curvature = |
| 93 | Holomorphic.GlobalCurvature.holomorphicLineGlobalCurvature u + Holomorphic.GlobalCurvature.holomorphicLineGlobalCurvature v := by |
| 94 | rw [Holomorphic.MetricTwists.holomorphicTensorMetric_curvature, HolomorphicMetric.Curvature.holomorphicLineCanonicalMetric_curvature, |
| 95 | HolomorphicMetric.Curvature.holomorphicLineCanonicalMetric_curvature] |
| 96 | |
| 97 | end |
| 98 | |
| 99 | /-! Actual metrics on all repeated sum-bundle twists, with their exact global curvature. -/ |
| 100 | |
| 101 | open scoped _root_.Manifold ContDiff |
| 102 | |
| 103 | set_option backward.isDefEq.respectTransparency false |
| 104 | set_option backward.isDefEq.respectTransparency.types false |
| 105 | set_option backward.defeqAttrib.useBackward true |
| 106 | |
| 107 | attribute [local instance] Analysis.DifferentialForms.Manifold.ComplexCharts.complexManifold_isRealSmooth |
| 108 | |
| 109 | variable {E M : Type} [NormedAddCommGroup E] [NormedSpace ℂ E] [NormedSpace ℝ E] |
| 110 | [IsScalarTower ℝ ℂ E] [TopologicalSpace M] [ChartedSpace E M] [IsManifold 𝓘(ℂ, E) ∞ M] |
| 111 | |
| 112 | def HolomorphicMetric.Data.HolomorphicLineMetricData.cast {u v : Holomorphic.Connecting.holomorphicUnitCohomology E M} |
| 113 | (h : HolomorphicMetric.Data.HolomorphicLineMetricData u) (e : u = v) : HolomorphicMetric.Data.HolomorphicLineMetricData v := e ▸ h |
| 114 | |
| 115 | theorem HolomorphicMetric.Data.HolomorphicLineMetricData.cast_curvature {u v : Holomorphic.Connecting.holomorphicUnitCohomology E M} |
| 116 | (h : HolomorphicMetric.Data.HolomorphicLineMetricData u) (e : u = v) : (h.cast e).curvature = h.curvature := by |
| 117 | cases e |
| 118 | rfl |
| 119 | |
| 120 | variable [FiniteDimensional ℝ E] [CompactSpace M] [T2Space M] |
| 121 | (u v : Holomorphic.Connecting.holomorphicUnitCohomology E M) |
| 122 | |
| 123 | def Holomorphic.MetricTwists.holomorphicMetricTwist (h : HolomorphicMetric.Data.HolomorphicLineMetricData u) (k : HolomorphicMetric.Data.HolomorphicLineMetricData v) : |
| 124 | (n : ℕ) → HolomorphicMetric.Data.HolomorphicLineMetricData (u + n • v) |
| 125 | | 0 => h.cast (by rw [zero_nsmul, add_zero]) |
| 126 | | n + 1 => (Holomorphic.TensorMetric.holomorphicTensorMetric (u + n • v) v (holomorphicMetricTwist h k n) k).cast |
| 127 | (by rw [succ_nsmul, add_assoc]) |
| 128 | |
| 129 | theorem Holomorphic.MetricTwists.holomorphicMetricTwist_curvature (h : HolomorphicMetric.Data.HolomorphicLineMetricData u) (k : HolomorphicMetric.Data.HolomorphicLineMetricData v) |
| 130 | (n : ℕ) : (Holomorphic.MetricTwists.holomorphicMetricTwist u v h k n).curvature = h.curvature + n • k.curvature := by |
| 131 | induction n with |
| 132 | | zero => rw [Holomorphic.MetricTwists.holomorphicMetricTwist, HolomorphicMetric.Data.HolomorphicLineMetricData.cast_curvature, zero_nsmul, add_zero] |
| 133 | | succ n ih => |
| 134 | rw [Holomorphic.MetricTwists.holomorphicMetricTwist, HolomorphicMetric.Data.HolomorphicLineMetricData.cast_curvature, Holomorphic.MetricTwists.holomorphicTensorMetric_curvature, |
| 135 | ih, succ_nsmul, add_assoc] |
| 136 | |
| 137 | end |
| 138 | |
| 139 | end OAI.AlgebraicGeometry.DivisorClass.Chern |