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.CycleClass.Thom.RationalDivisorNeighborhood |
| 2 | import OAI.AlgebraicGeometry.CycleClass.Thom.RationalBoundary |
| 3 | import OAI.AlgebraicGeometry.CycleClass.Thom.DivisorIsolation |
| 4 | import OAI.AlgebraicGeometry.HodgeConjecture.DegreeTwo.PrimeRegularNeighborhood |
| 5 | import OAI.AlgebraicGeometry.HodgeConjecture.DegreeTwo.DivisorSmooth |
| 6 | |
| 7 | /-! # Principal Divisor Comparison -/ |
| 8 | |
| 9 | namespace OAI.AlgebraicGeometry.CycleClass.Thom.PrincipalDivisorComparison |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | /-! The actual supported principal-divisor sum equals the global boundary |
| 14 | of the rational function on its actual unit domain. -/ |
| 15 | |
| 16 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.TopologicalSpace |
| 17 | set_option backward.isDefEq.respectTransparency false |
| 18 | set_option backward.isDefEq.respectTransparency.types false |
| 19 | set_option backward.defeqAttrib.useBackward true |
| 20 | |
| 21 | namespace Constructions |
| 22 | open OAI.AlgebraicGeometry.CycleClass.Thom.RationalBoundary.Constructions.Restriction OAI.AlgebraicGeometry.CycleClass.Thom.RationalBoundary.Constructions.Unit |
| 23 | RationalRegularNormal.Constructions RationalDivisorNeighborhood.Constructions Finite.DivisorDetection.Constructions |
| 24 | Supported.PrincipalDivisor.Constructions DivisorIsolation.Constructions |
| 25 | |
| 26 | variable (V : Foundations.Scheme.IntegralProjective.IntegralProjectiveVariety) {g : V.carrier.functionField} |
| 27 | (D : RationalFunctionBoundary.Constructions.Principal.RationalUnitRepresentative V.carrier g) (hg : g ≠ 0) |
| 28 | |
| 29 | local notation "T" => TopCat.of V.analyticSpace |
| 30 | local notation "O" => OAI.AlgebraicGeometry.DivisorClass.Chern.Line.Bundles.AlgebraicLineBundle.analyticOpen V.presentation D.domain |
| 31 | |
| 32 | include hg in |
| 33 | theorem principalDivisor_comparison_neighborhood_nonzero |
| 34 | (z : Finite.DivisorDetection.Constructions.ComplementDivisorPoint V.presentation D.domain) (hm : V.carrier.ord g z.val ≠ 0) : |
| 35 | ∃ W : V.carrier.Opens, z.val ∈ W ∧ |
| 36 | Geometric.RelativeCohomologySections.Cycles.relativeCohomologyOpenRestriction (ModuleCat.of ℚ ℚ) T (O : Set T) |
| 37 | (DivisorClass.Chern.Line.Bundles.AlgebraicLineBundle.analyticOpen V.presentation W) 2 (RationalBoundary.Constructions.Restriction.rationalGlobalBoundary V.presentation D) = |
| 38 | Geometric.RelativeCohomologySections.Cycles.relativeCohomologyOpenRestriction (ModuleCat.of ℚ ℚ) T (O : Set T) |
| 39 | (DivisorClass.Chern.Line.Bundles.AlgebraicLineBundle.analyticOpen V.presentation W) 2 (Supported.PrincipalDivisor.Constructions.principalDivisorSupportedClass V.presentation D.domain g) := by |
| 40 | let : Smooth V.structureMap := V.presentation.smooth |
| 41 | let z' : {w : V.carrier // Order.coheight w = 1} := ⟨z.val, z.property.1⟩ |
| 42 | let Z : Geometric.DimensionCycles.DimensionCycleSupport V 1 := Supported.PrincipalDivisor.Constructions.complementDivisorSupport V.presentation D.domain z |
| 43 | have heZ : HodgeConjecture.DegreeTwo.PrimeDivisorCycleSupport.Constructions.primeDivisorCycleSupport V z' = Z := by |
| 44 | apply Subtype.ext |
| 45 | rfl |
| 46 | obtain ⟨U, hU, hzU, hUi, p, v, hp, he⟩ := |
| 47 | HodgeConjecture.DegreeTwo.DivisorEquations.Constructions.smooth_rationalFunction_local_equation V.structureMap z.val z.property.1 |
| 48 | (DivisorIsolation.Constructions.complementDivisorIsolatingOpen V.presentation D.domain z) |
| 49 | (DivisorIsolation.Constructions.complementDivisorPoint_mem_isolatingOpen V.presentation D.domain z) g hg |
| 50 | let : Nonempty U := ⟨⟨z.val, hzU⟩⟩ |
| 51 | obtain ⟨b, hb, hsm⟩ := HodgeConjecture.DegreeTwo.DivisorSmooth.Constructions.smooth_uniformizer_section_neighborhood V.structureMap U hU z.val hzU z.property.1 p hp |
| 52 | obtain ⟨c, hc, hsupp⟩ := HodgeConjecture.DegreeTwo.PrimeDivisorCycleSupport.Constructions.section_uniformizer_primeCycleSupport_neighborhood V U hU z' hzU p hp |
| 53 | have hbc : IsUnit (V.carrier.presheaf.germ U z.val hzU (b * c)) := by |
| 54 | rw [map_mul] |
| 55 | exact hb.mul hc |
| 56 | obtain ⟨W, hzW, hWU, hW⟩ := HodgeConjecture.DegreeTwo.PrimeRegularNeighborhood.Constructions.exists_prime_regular_neighborhood V z' U hU hzU (b * c) hbc |
| 57 | have hgood : ∀ y : DivisorClass.Chern.Line.Bundles.AlgebraicLineBundle.analyticOpen V.presentation W, |
| 58 | y.val ∈ Z.regularAmbientOpen ∧ |
| 59 | DivisorClass.Chern.Line.Bundles.AlgebraicLineBundle.sectionEvaluationOn V.presentation U b ⟨y.val, hWU y.property⟩ ≠ 0 ∧ |
| 60 | DivisorClass.Chern.Line.Bundles.AlgebraicLineBundle.sectionEvaluationOn V.presentation U c ⟨y.val, hWU y.property⟩ ≠ 0 := by |
| 61 | intro y |
| 62 | have hy := hW y |
| 63 | rw [heZ] at hy |
| 64 | refine ⟨hy.1, ?_⟩ |
| 65 | have hn := hy.2 |
| 66 | rw [DivisorClass.Chern.Line.Bundles.AlgebraicLineBundle.sectionEvaluationOn_mul] at hn |
| 67 | exact mul_ne_zero_iff.mp hn |
| 68 | have hsupp' : ∀ y : DivisorClass.Chern.Line.Bundles.AlgebraicLineBundle.analyticOpen V.presentation U, |
| 69 | DivisorClass.Chern.Line.Bundles.AlgebraicLineBundle.sectionEvaluationOn V.presentation U c y ≠ 0 → |
| 70 | (DivisorClass.Chern.Line.Bundles.AlgebraicLineBundle.sectionEvaluationOn V.presentation U p y = 0 ↔ y.val ∈ Set.range Z.analyticInclusion) := by |
| 71 | intro y hy |
| 72 | rw [← heZ] |
| 73 | exact hsupp y hy |
| 74 | have hp0 : p ≠ 0 := by |
| 75 | intro h |
| 76 | apply hp.ne_zero |
| 77 | rw [h, map_zero] |
| 78 | have hlocal := RationalDivisorNeighborhood.Constructions.rationalGlobalBoundary_eq_supportedCycle_on_neighborhood D Z |
| 79 | (Supported.PrincipalDivisor.Constructions.complementDivisorSupport_complement V.presentation D.domain z) U hU p b c hp0 v |
| 80 | (V.carrier.ord g z.val) hm he hsm hsupp' W hWU hgood |
| 81 | refine ⟨W, hzW, ?_⟩ |
| 82 | rw [DivisorIsolation.Constructions.principalDivisorSupportedClass_restrict_isolated V.presentation D.domain g z W (hWU.trans hUi)] |
| 83 | rw [map_zsmul] at hlocal |
| 84 | exact hlocal.trans (Int.cast_smul_eq_zsmul ℚ (V.carrier.ord g z.val) _).symm |
| 85 | |
| 86 | include hg in |
| 87 | theorem principalDivisor_comparison_neighborhood_zero |
| 88 | (z : Finite.DivisorDetection.Constructions.ComplementDivisorPoint V.presentation D.domain) (hm : V.carrier.ord g z.val = 0) : |
| 89 | ∃ W : V.carrier.Opens, z.val ∈ W ∧ |
| 90 | Geometric.RelativeCohomologySections.Cycles.relativeCohomologyOpenRestriction (ModuleCat.of ℚ ℚ) T (O : Set T) |
| 91 | (DivisorClass.Chern.Line.Bundles.AlgebraicLineBundle.analyticOpen V.presentation W) 2 (RationalBoundary.Constructions.Restriction.rationalGlobalBoundary V.presentation D) = |
| 92 | Geometric.RelativeCohomologySections.Cycles.relativeCohomologyOpenRestriction (ModuleCat.of ℚ ℚ) T (O : Set T) |
| 93 | (DivisorClass.Chern.Line.Bundles.AlgebraicLineBundle.analyticOpen V.presentation W) 2 (Supported.PrincipalDivisor.Constructions.principalDivisorSupportedClass V.presentation D.domain g) := by |
| 94 | obtain ⟨W, _, hzW, hWi, hzero⟩ := RationalBoundary.Constructions.Unit.rationalGlobalBoundary_local_zero_of_order_zero V.presentation D |
| 95 | z.val z.property.1 (DivisorIsolation.Constructions.complementDivisorIsolatingOpen V.presentation D.domain z) |
| 96 | (DivisorIsolation.Constructions.complementDivisorPoint_mem_isolatingOpen V.presentation D.domain z) hg hm |
| 97 | refine ⟨W, hzW, ?_⟩ |
| 98 | rw [DivisorIsolation.Constructions.principalDivisorSupportedClass_restrict_isolated V.presentation D.domain g z W hWi, |
| 99 | hm, Int.cast_zero, zero_smul] |
| 100 | exact hzero |
| 101 | |
| 102 | include hg in |
| 103 | theorem rationalGlobalBoundary_eq_principalDivisorSupportedClass : |
| 104 | RationalBoundary.Constructions.Restriction.rationalGlobalBoundary V.presentation D = Supported.PrincipalDivisor.Constructions.principalDivisorSupportedClass V.presentation D.domain g := by |
| 105 | classical |
| 106 | have h (z : Finite.DivisorDetection.Constructions.ComplementDivisorPoint V.presentation D.domain) : ∃ W : V.carrier.Opens, z.val ∈ W ∧ |
| 107 | Geometric.RelativeCohomologySections.Cycles.relativeCohomologyOpenRestriction (ModuleCat.of ℚ ℚ) T (O : Set T) |
| 108 | (DivisorClass.Chern.Line.Bundles.AlgebraicLineBundle.analyticOpen V.presentation W) 2 (RationalBoundary.Constructions.Restriction.rationalGlobalBoundary V.presentation D) = |
| 109 | Geometric.RelativeCohomologySections.Cycles.relativeCohomologyOpenRestriction (ModuleCat.of ℚ ℚ) T (O : Set T) |
| 110 | (DivisorClass.Chern.Line.Bundles.AlgebraicLineBundle.analyticOpen V.presentation W) 2 (Supported.PrincipalDivisor.Constructions.principalDivisorSupportedClass V.presentation D.domain g) := by |
| 111 | by_cases hm : V.carrier.ord g z.val = 0 |
| 112 | · exact principalDivisor_comparison_neighborhood_zero V D hg z hm |
| 113 | · exact principalDivisor_comparison_neighborhood_nonzero V D hg z hm |
| 114 | choose W hW he using h |
| 115 | exact Finite.DivisorDetection.Constructions.relativeClass_eq_of_finite_divisor_restrictions V.presentation D.domain W hW _ _ he |
| 116 | |
| 117 | include hg in |
| 118 | theorem principalDivisorCycle_rationalCycleClass_zero : |
| 119 | V.rationalCycleClass 1 (Supported.PrincipalDivisor.Constructions.principalDivisorCycle V.presentation D.domain g) = 0 := by |
| 120 | have h := RationalBoundary.Constructions.Restriction.rationalGlobalBoundary_absolute_zero V.presentation D |
| 121 | rw [rationalGlobalBoundary_eq_principalDivisorSupportedClass V D hg] at h |
| 122 | exact (Supported.PrincipalDivisor.Constructions.principalDivisorSupportedClass_absolute V.presentation D.domain g).symm.trans h |
| 123 | |
| 124 | end Constructions |
| 125 | |
| 126 | end |
| 127 | |
| 128 | end OAI.AlgebraicGeometry.CycleClass.Thom.PrincipalDivisorComparison |