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.ComplexMultiplication.HodgeComparison.MetricIntegration |
| 2 | import Mathlib.MeasureTheory.Measure.WithDensity |
| 3 | import Mathlib.MeasureTheory.Integral.Lebesgue.Map |
| 4 | |
| 5 | /-! # Metric Chart Measure -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.ComplexMultiplication.HodgeComparison.MetricChartMeasure.CM.Construction |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | section |
| 12 | |
| 13 | /-! The actual positive projective metric density defines a Borel measure |
| 14 | on every chart source by pushforward of weighted Euclidean volume. -/ |
| 15 | |
| 16 | open _root_.MeasureTheory Set |
| 17 | open scoped ENNReal _root_.Manifold |
| 18 | |
| 19 | instance varietyAnalyticSpaceMeasurable (V : Foundations.Scheme.IntegralProjective.IntegralProjectiveVariety) : |
| 20 | MeasurableSpace V.analyticSpace := borel V.analyticSpace |
| 21 | |
| 22 | instance varietyAnalyticSpaceBorel (V : Foundations.Scheme.IntegralProjective.IntegralProjectiveVariety) : BorelSpace V.analyticSpace := |
| 23 | ⟨rfl⟩ |
| 24 | |
| 25 | def varietyEuclideanChartPoint (V : Foundations.Scheme.IntegralProjective.IntegralProjectiveVariety) |
| 26 | (e : OpenPartialHomeomorph V.analyticSpace V.analyticModel) |
| 27 | (z : EuclideanMetric.CM.Construction.varietyEuclideanDomain V e) : V.analyticSpace := |
| 28 | e.symm (EuclideanMetric.CM.Construction.varietyEuclideanCoordinates V z.val) |
| 29 | |
| 30 | theorem varietyEuclideanChartPoint_continuous (V : Foundations.Scheme.IntegralProjective.IntegralProjectiveVariety) |
| 31 | (e : OpenPartialHomeomorph V.analyticSpace V.analyticModel) : |
| 32 | Continuous (varietyEuclideanChartPoint V e) := |
| 33 | e.continuousOn_symm.comp_continuous |
| 34 | ((EuclideanMetric.CM.Construction.varietyEuclideanCoordinates V).continuous.comp continuous_subtype_val) (fun z => z.property) |
| 35 | |
| 36 | theorem varietyEuclideanChartPoint_mem_source (V : Foundations.Scheme.IntegralProjective.IntegralProjectiveVariety) |
| 37 | (e : OpenPartialHomeomorph V.analyticSpace V.analyticModel) (z : EuclideanMetric.CM.Construction.varietyEuclideanDomain V e) : |
| 38 | varietyEuclideanChartPoint V e z ∈ e.source := e.map_target z.property |
| 39 | |
| 40 | def varietyMetricChartMeasure (V : Foundations.Scheme.IntegralProjective.IntegralProjectiveVariety) |
| 41 | (e : OpenPartialHomeomorph V.analyticSpace V.analyticModel) : Measure V.analyticSpace := |
| 42 | Measure.map (varietyEuclideanChartPoint V e) |
| 43 | (((volume : Measure (EuclideanMetric.CM.Construction.varietyEuclideanModel V)).comap |
| 44 | (Subtype.val : EuclideanMetric.CM.Construction.varietyEuclideanDomain V e → EuclideanMetric.CM.Construction.varietyEuclideanModel V)).withDensity |
| 45 | (fun z => ENNReal.ofReal (Metric.CM.Construction.varietyMetricDensity V e z.val))) |
| 46 | |
| 47 | theorem varietyMetricChartMeasure_compl_source (V : Foundations.Scheme.IntegralProjective.IntegralProjectiveVariety) |
| 48 | (e : OpenPartialHomeomorph V.analyticSpace V.analyticModel) : |
| 49 | varietyMetricChartMeasure V e e.sourceᶜ = 0 := by |
| 50 | rw [varietyMetricChartMeasure, Measure.map_apply |
| 51 | (varietyEuclideanChartPoint_continuous V e).measurable e.open_source.measurableSet.compl] |
| 52 | have hpre : varietyEuclideanChartPoint V e ⁻¹' e.sourceᶜ = ∅ := by |
| 53 | ext z |
| 54 | simp only [mem_preimage, mem_compl_iff, varietyEuclideanChartPoint_mem_source, |
| 55 | not_true_eq_false, mem_empty_iff_false] |
| 56 | rw [hpre, measure_empty] |
| 57 | |
| 58 | theorem varietyMetricChartMeasure_lintegral (V : Foundations.Scheme.IntegralProjective.IntegralProjectiveVariety) |
| 59 | (e : OpenPartialHomeomorph V.analyticSpace V.analyticModel) |
| 60 | (he : e ∈ atlas V.analyticModel V.analyticSpace) |
| 61 | (h : V.analyticSpace → ℝ≥0∞) (hh : Measurable h) : |
| 62 | (∫⁻ x, h x ∂ varietyMetricChartMeasure V e) = |
| 63 | ∫⁻ z in (EuclideanMetric.CM.Construction.varietyEuclideanDomain V e : Set (EuclideanMetric.CM.Construction.varietyEuclideanModel V)), |
| 64 | ENNReal.ofReal (Metric.CM.Construction.varietyMetricDensity V e z) * h (e.symm (EuclideanMetric.CM.Construction.varietyEuclideanCoordinates V z)) := by |
| 65 | have hρ : Measurable (fun z : EuclideanMetric.CM.Construction.varietyEuclideanDomain V e => |
| 66 | ENNReal.ofReal (Metric.CM.Construction.varietyMetricDensity V e z.val)) := by |
| 67 | have hcont : Continuous (fun z : EuclideanMetric.CM.Construction.varietyEuclideanDomain V e => Metric.CM.Construction.varietyMetricDensity V e z.val) := |
| 68 | (Metric.CM.Construction.varietyMetricDensity_smooth V e he).continuousOn.comp_continuous continuous_subtype_val |
| 69 | (fun z => z.property) |
| 70 | exact (ENNReal.continuous_ofReal.comp hcont).measurable |
| 71 | rw [varietyMetricChartMeasure, lintegral_map hh (varietyEuclideanChartPoint_continuous V e).measurable] |
| 72 | have hcomp : Measurable (fun z : EuclideanMetric.CM.Construction.varietyEuclideanDomain V e => h (varietyEuclideanChartPoint V e z)) := |
| 73 | hh.comp (varietyEuclideanChartPoint_continuous V e).measurable |
| 74 | rw [lintegral_withDensity_eq_lintegral_mul _ hρ hcomp] |
| 75 | exact lintegral_subtype_comap (EuclideanMetric.CM.Construction.varietyEuclideanDomain V e).isOpen.measurableSet |
| 76 | (fun z => ENNReal.ofReal (Metric.CM.Construction.varietyMetricDensity V e z) * h (e.symm (EuclideanMetric.CM.Construction.varietyEuclideanCoordinates V z))) |
| 77 | |
| 78 | def varietyMetricChartCoordinates (V : Foundations.Scheme.IntegralProjective.IntegralProjectiveVariety) |
| 79 | (e : OpenPartialHomeomorph V.analyticSpace V.analyticModel) (S : Set V.analyticSpace) : |
| 80 | Set (EuclideanMetric.CM.Construction.varietyEuclideanModel V) := |
| 81 | (Subtype.val : EuclideanMetric.CM.Construction.varietyEuclideanDomain V e → EuclideanMetric.CM.Construction.varietyEuclideanModel V) '' |
| 82 | (varietyEuclideanChartPoint V e ⁻¹' S) |
| 83 | |
| 84 | theorem mem_varietyMetricChartCoordinates (V : Foundations.Scheme.IntegralProjective.IntegralProjectiveVariety) |
| 85 | (e : OpenPartialHomeomorph V.analyticSpace V.analyticModel) (S : Set V.analyticSpace) |
| 86 | (z : EuclideanMetric.CM.Construction.varietyEuclideanModel V) : |
| 87 | z ∈ varietyMetricChartCoordinates V e S ↔ z ∈ EuclideanMetric.CM.Construction.varietyEuclideanDomain V e ∧ |
| 88 | e.symm (EuclideanMetric.CM.Construction.varietyEuclideanCoordinates V z) ∈ S := by |
| 89 | constructor |
| 90 | · rintro ⟨w, hw, rfl⟩ |
| 91 | exact ⟨w.property, hw⟩ |
| 92 | · rintro ⟨hz, hs⟩ |
| 93 | exact ⟨⟨z, hz⟩, hs, rfl⟩ |
| 94 | |
| 95 | theorem varietyMetricChartCoordinates_measurable (V : Foundations.Scheme.IntegralProjective.IntegralProjectiveVariety) |
| 96 | (e : OpenPartialHomeomorph V.analyticSpace V.analyticModel) {S : Set V.analyticSpace} |
| 97 | (hS : MeasurableSet S) : MeasurableSet (varietyMetricChartCoordinates V e S) := |
| 98 | (MeasurableEmbedding.subtype_coe (EuclideanMetric.CM.Construction.varietyEuclideanDomain V e).isOpen.measurableSet).measurableSet_image.mpr |
| 99 | (hS.preimage (varietyEuclideanChartPoint_continuous V e).measurable) |
| 100 | |
| 101 | theorem varietyMetricChartMeasure_apply (V : Foundations.Scheme.IntegralProjective.IntegralProjectiveVariety) |
| 102 | (e : OpenPartialHomeomorph V.analyticSpace V.analyticModel) {S : Set V.analyticSpace} |
| 103 | (hS : MeasurableSet S) : |
| 104 | varietyMetricChartMeasure V e S = |
| 105 | ∫⁻ z in varietyMetricChartCoordinates V e S, ENNReal.ofReal (Metric.CM.Construction.varietyMetricDensity V e z) := by |
| 106 | rw [varietyMetricChartMeasure, Measure.map_apply |
| 107 | (varietyEuclideanChartPoint_continuous V e).measurable hS, |
| 108 | withDensity_apply _ (hS.preimage (varietyEuclideanChartPoint_continuous V e).measurable)] |
| 109 | exact setLIntegral_subtype (EuclideanMetric.CM.Construction.varietyEuclideanDomain V e).isOpen.measurableSet |
| 110 | (varietyEuclideanChartPoint V e ⁻¹' S) (fun z => ENNReal.ofReal (Metric.CM.Construction.varietyMetricDensity V e z)) |
| 111 | |
| 112 | end |
| 113 | |
| 114 | /-! The genuine metric chart measures agree on every measurable subset of |
| 115 | an overlap, by the proved Jacobian transformation of their densities. -/ |
| 116 | |
| 117 | open _root_.MeasureTheory Set |
| 118 | open scoped ENNReal _root_.Manifold |
| 119 | |
| 120 | theorem varietyEuclideanTransition_mem_target (V : Foundations.Scheme.IntegralProjective.IntegralProjectiveVariety) |
| 121 | (e f : OpenPartialHomeomorph V.analyticSpace V.analyticModel) (z : EuclideanMetric.CM.Construction.varietyEuclideanModel V) |
| 122 | (hz : e.symm (EuclideanMetric.CM.Construction.varietyEuclideanCoordinates V z) ∈ f.source) : |
| 123 | MetricJacobian.CM.Construction.varietyEuclideanTransition V e f z ∈ EuclideanMetric.CM.Construction.varietyEuclideanDomain V f := by |
| 124 | change EuclideanMetric.CM.Construction.varietyEuclideanCoordinates V (MetricJacobian.CM.Construction.varietyEuclideanTransition V e f z) ∈ f.target |
| 125 | simp only [MetricJacobian.CM.Construction.varietyEuclideanTransition, Function.comp_apply, ContinuousLinearEquiv.apply_symm_apply] |
| 126 | exact f.map_source hz |
| 127 | |
| 128 | theorem varietyEuclideanTransition_inverse (V : Foundations.Scheme.IntegralProjective.IntegralProjectiveVariety) |
| 129 | (e f : OpenPartialHomeomorph V.analyticSpace V.analyticModel) (z : EuclideanMetric.CM.Construction.varietyEuclideanModel V) |
| 130 | (hz : z ∈ EuclideanMetric.CM.Construction.varietyEuclideanDomain V f) |
| 131 | (he : f.symm (EuclideanMetric.CM.Construction.varietyEuclideanCoordinates V z) ∈ e.source) : |
| 132 | MetricJacobian.CM.Construction.varietyEuclideanTransition V e f (MetricJacobian.CM.Construction.varietyEuclideanTransition V f e z) = z := by |
| 133 | apply (EuclideanMetric.CM.Construction.varietyEuclideanCoordinates V).injective |
| 134 | simp only [MetricJacobian.CM.Construction.varietyEuclideanTransition, Function.comp_apply, ContinuousLinearEquiv.apply_symm_apply] |
| 135 | rw [e.left_inv he, f.right_inv hz] |
| 136 | |
| 137 | theorem varietyMetricChartCoordinates_transition (V : Foundations.Scheme.IntegralProjective.IntegralProjectiveVariety) |
| 138 | (e f : OpenPartialHomeomorph V.analyticSpace V.analyticModel) {S : Set V.analyticSpace} |
| 139 | (hSe : S ⊆ e.source) (hSf : S ⊆ f.source) : |
| 140 | MetricJacobian.CM.Construction.varietyEuclideanTransition V e f '' varietyMetricChartCoordinates V e S = |
| 141 | varietyMetricChartCoordinates V f S := by |
| 142 | apply Subset.antisymm |
| 143 | · rintro _ ⟨z, hz, rfl⟩ |
| 144 | have h := (mem_varietyMetricChartCoordinates V e S z).mp hz |
| 145 | apply (mem_varietyMetricChartCoordinates V f S _).mpr |
| 146 | refine ⟨varietyEuclideanTransition_mem_target V e f z (hSf h.2), ?_⟩ |
| 147 | rw [MetricIntegration.CM.Construction.varietyEuclideanTransition_inverse_point V e f (hSf h.2)] |
| 148 | exact h.2 |
| 149 | · intro z hz |
| 150 | have h := (mem_varietyMetricChartCoordinates V f S z).mp hz |
| 151 | refine ⟨MetricJacobian.CM.Construction.varietyEuclideanTransition V f e z, ?_, varietyEuclideanTransition_inverse V e f z h.1 (hSe h.2)⟩ |
| 152 | apply (mem_varietyMetricChartCoordinates V e S _).mpr |
| 153 | refine ⟨varietyEuclideanTransition_mem_target V f e z (hSe h.2), ?_⟩ |
| 154 | rw [MetricIntegration.CM.Construction.varietyEuclideanTransition_inverse_point V f e (hSe h.2)] |
| 155 | exact h.2 |
| 156 | |
| 157 | theorem varietyMetricChartMeasure_eq_on_overlap (V : Foundations.Scheme.IntegralProjective.IntegralProjectiveVariety) |
| 158 | (e f : OpenPartialHomeomorph V.analyticSpace V.analyticModel) |
| 159 | (he : e ∈ atlas V.analyticModel V.analyticSpace) (hf : f ∈ atlas V.analyticModel V.analyticSpace) |
| 160 | {S : Set V.analyticSpace} (hS : MeasurableSet S) (hSe : S ⊆ e.source) (hSf : S ⊆ f.source) : |
| 161 | varietyMetricChartMeasure V e S = varietyMetricChartMeasure V f S := by |
| 162 | rw [varietyMetricChartMeasure_apply V e hS, varietyMetricChartMeasure_apply V f hS] |
| 163 | have h := MetricIntegration.CM.Construction.varietyMetric_lintegral_transition V e f he hf |
| 164 | (varietyMetricChartCoordinates_measurable V e hS) |
| 165 | (fun z hz => ((mem_varietyMetricChartCoordinates V e S z).mp hz).1) |
| 166 | (fun z hz => hSf ((mem_varietyMetricChartCoordinates V e S z).mp hz).2) |
| 167 | (fun _ => (1 : ℝ≥0∞)) |
| 168 | rw [varietyMetricChartCoordinates_transition V e f hSe hSf] at h |
| 169 | simpa only [mul_one] using h.symm |
| 170 | |
| 171 | theorem varietyMetricChartMeasure_restrict_overlap (V : Foundations.Scheme.IntegralProjective.IntegralProjectiveVariety) |
| 172 | (e f : OpenPartialHomeomorph V.analyticSpace V.analyticModel) |
| 173 | (he : e ∈ atlas V.analyticModel V.analyticSpace) (hf : f ∈ atlas V.analyticModel V.analyticSpace) : |
| 174 | (varietyMetricChartMeasure V e).restrict (e.source ∩ f.source) = |
| 175 | (varietyMetricChartMeasure V f).restrict (e.source ∩ f.source) := by |
| 176 | apply (Measure.restrict_congr_meas (e.open_source.measurableSet.inter f.open_source.measurableSet)).mpr |
| 177 | intro S hS hSm |
| 178 | exact varietyMetricChartMeasure_eq_on_overlap V e f he hf hSm |
| 179 | (hS.trans inter_subset_left) (hS.trans inter_subset_right) |
| 180 | |
| 181 | theorem varietyMetricChartMeasure_restrict_source (V : Foundations.Scheme.IntegralProjective.IntegralProjectiveVariety) |
| 182 | (e : OpenPartialHomeomorph V.analyticSpace V.analyticModel) : |
| 183 | (varietyMetricChartMeasure V e).restrict e.source = varietyMetricChartMeasure V e := by |
| 184 | apply Measure.restrict_eq_self_of_ae_mem |
| 185 | exact ae_iff.mpr (varietyMetricChartMeasure_compl_source V e) |
| 186 | |
| 187 | end |
| 188 | |
| 189 | end OAI.AlgebraicGeometry.ComplexMultiplication.HodgeComparison.MetricChartMeasure.CM.Construction |