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.Divisors.LineBundles.Branch.ImageEuler |
| 2 | import OAI.AlgebraicGeometry.Divisors.LineBundles.Branch.PowerFiniteness |
| 3 | import OAI.AlgebraicGeometry.Divisors.LineBundles.Branch.PowerExact |
| 4 | import OAI.AlgebraicGeometry.Divisors.LineBundles.Branch.FamilyEuler |
| 5 | import OAI.AlgebraicGeometry.Divisors.LineBundles.Periodic.ScalingScale |
| 6 | |
| 7 | /-! # Euler Eq -/ |
| 8 | |
| 9 | namespace OAI.AlgebraicGeometry.Divisors.LineBundles.Branch.EulerEq.BundleCycles |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | section |
| 14 | |
| 15 | /-! # LineBundleCycles: branch Euler comparison with complementary powers -/ |
| 16 | |
| 17 | variable {R : Type*} [CommRing R] [IsDomain R] |
| 18 | |
| 19 | variable [IsLocalRing R] [Ring.KrullDimLE 2 R] [IsNoetherianRing R] |
| 20 | |
| 21 | theorem productBranchEuler_scaled_comparison (a b r q x y u v : R) |
| 22 | (ha : a ≠ 0) (hb : b ≠ 0) (hdim : ringKrullDim R = 2) |
| 23 | (P : Diagonal.BundleCycles.minimalBranchIndex (a * b)) |
| 24 | (hx : x ∉ P.1) (hy : y ∉ P.1) (hu : u ∉ P.1) (hv : v ∉ P.1) |
| 25 | (heφ : x * a = u * r) (heψ : y * b = v * q) |
| 26 | (hk : ∀ z : PeriodicComplex.BundleCycles.productBranchModule a b P.1, (r * q) • z = 0) |
| 27 | (h₀ : Module.length R ((EquationPeriodicComplex.BundleCycles.equationPeriodicComplex (M := PeriodicComplex.BundleCycles.productBranchModule a b P.1) r q hk).homology false) ≠ ⊤) |
| 28 | (h₁ : Module.length R ((EquationPeriodicComplex.BundleCycles.equationPeriodicComplex (M := PeriodicComplex.BundleCycles.productBranchModule a b P.1) r q hk).homology true) ≠ ⊤) : |
| 29 | FamilyEuler.BundleCycles.productBranchEuler a b ha hb P = |
| 30 | Periodic.PeriodicComplex.BundleCycles.periodicEulerLength (EquationPeriodicComplex.BundleCycles.equationPeriodicComplex (M := PeriodicComplex.BundleCycles.productBranchModule a b P.1) r q hk) h₀ h₁ + |
| 31 | ImageEuler.BundleCycles.branchImageEuler a b a x ha hb hdim P.1 P.2 hx - |
| 32 | ImageEuler.BundleCycles.branchImageEuler a b b y ha hb hdim P.1 P.2 hy - |
| 33 | ImageEuler.BundleCycles.branchImageEuler a b r u ha hb hdim P.1 P.2 hu + |
| 34 | ImageEuler.BundleCycles.branchImageEuler a b q v ha hb hdim P.1 P.2 hv := by |
| 35 | let M := PeriodicComplex.BundleCycles.productBranchModule a b P.1 |
| 36 | have hφ : x • MultiplicationSequence.BundleCycles.equationEndomorphism a M = u • MultiplicationSequence.BundleCycles.equationEndomorphism r M := by |
| 37 | apply LinearMap.ext |
| 38 | intro z |
| 39 | change x • (a • z) = u • (r • z) |
| 40 | rw [← mul_smul, heφ, mul_smul] |
| 41 | have hψ : y • MultiplicationSequence.BundleCycles.equationEndomorphism b M = v • MultiplicationSequence.BundleCycles.equationEndomorphism q M := by |
| 42 | apply LinearMap.ext |
| 43 | intro z |
| 44 | change y • (b • z) = v • (q • z) |
| 45 | rw [← mul_smul, heψ, mul_smul] |
| 46 | exact Periodic.ScalingScale.BundleCycles.periodicEulerLength_factorized x y u v |
| 47 | (MultiplicationSequence.BundleCycles.equationEndomorphism a M) (MultiplicationSequence.BundleCycles.equationEndomorphism b M) |
| 48 | (MultiplicationSequence.BundleCycles.equationEndomorphism r M) (MultiplicationSequence.BundleCycles.equationEndomorphism q M) |
| 49 | (EquationPeriodicComplex.BundleCycles.equationPeriodic_comp_zero a b (Diagonal.BundleCycles.productBranch_annihilated a b P.1)) |
| 50 | (EquationPeriodicComplex.BundleCycles.equationPeriodic_comp_zero b a (EquationPeriodicComplex.BundleCycles.equationPeriodic_kill_swap a b (Diagonal.BundleCycles.productBranch_annihilated a b P.1))) |
| 51 | (EquationPeriodicComplex.BundleCycles.equationPeriodic_comp_zero r q hk) |
| 52 | (EquationPeriodicComplex.BundleCycles.equationPeriodic_comp_zero q r (EquationPeriodicComplex.BundleCycles.equationPeriodic_kill_swap r q hk)) hφ hψ |
| 53 | (PeriodicComplex.BundleCycles.productBranch_denominator_injective a b P.1 x hx) (PeriodicComplex.BundleCycles.productBranch_denominator_injective a b P.1 y hy) |
| 54 | (PeriodicComplex.BundleCycles.productBranch_denominator_injective a b P.1 u hu) (PeriodicComplex.BundleCycles.productBranch_denominator_injective a b P.1 v hv) |
| 55 | (Diagonal.BundleCycles.productBranchPeriodicComplex_homology_length_ne_top a b ha hb P.1 P.2 false) |
| 56 | (Diagonal.BundleCycles.productBranchPeriodicComplex_homology_length_ne_top a b ha hb P.1 P.2 true) h₀ h₁ |
| 57 | (ImageEuler.BundleCycles.branchImage_equation_lengths_finite a b a x ha hb hdim P.1 P.2 hx).1 |
| 58 | (ImageEuler.BundleCycles.branchImage_equation_lengths_finite a b a x ha hb hdim P.1 P.2 hx).2 |
| 59 | (ImageEuler.BundleCycles.branchImage_equation_lengths_finite a b b y ha hb hdim P.1 P.2 hy).1 |
| 60 | (ImageEuler.BundleCycles.branchImage_equation_lengths_finite a b b y ha hb hdim P.1 P.2 hy).2 |
| 61 | (ImageEuler.BundleCycles.branchImage_equation_lengths_finite a b r u ha hb hdim P.1 P.2 hu).1 |
| 62 | (ImageEuler.BundleCycles.branchImage_equation_lengths_finite a b r u ha hb hdim P.1 P.2 hu).2 |
| 63 | (ImageEuler.BundleCycles.branchImage_equation_lengths_finite a b q v ha hb hdim P.1 P.2 hv).1 |
| 64 | (ImageEuler.BundleCycles.branchImage_equation_lengths_finite a b q v ha hb hdim P.1 P.2 hv).2 |
| 65 | |
| 66 | end |
| 67 | |
| 68 | section |
| 69 | |
| 70 | /-! # LineBundleCycles: branch Euler comparison with complementary powers -/ |
| 71 | |
| 72 | variable {R : Type*} [CommRing R] [IsDomain R] |
| 73 | |
| 74 | variable [IsLocalRing R] [Ring.KrullDimLE 2 R] [IsNoetherianRing R] |
| 75 | |
| 76 | theorem productBranchEuler_factorized (a b t u s v w : R) (ha : a ≠ 0) (hb : b ≠ 0) |
| 77 | (hdim : ringKrullDim R = 2) (m n : ℕ) (P : Diagonal.BundleCycles.minimalBranchIndex (a * b)) |
| 78 | [IsDiscreteValuationRing (Localization P.1.primeCompl)] |
| 79 | (ht : Irreducible (algebraMap R (Localization P.1.primeCompl) t)) |
| 80 | (hu : u ∉ P.1) (hs : s ∉ P.1) (hv : v ∉ P.1) (hw : w ∉ P.1) |
| 81 | (hsa : s * a = u * t ^ m) (hwb : w * b = v * t ^ n) : |
| 82 | FamilyEuler.BundleCycles.productBranchEuler a b ha hb P = |
| 83 | ImageEuler.BundleCycles.branchImageEuler a b a s ha hb hdim P.1 P.2 hs - |
| 84 | ImageEuler.BundleCycles.branchImageEuler a b b w ha hb hdim P.1 P.2 hw - |
| 85 | ImageEuler.BundleCycles.branchImageEuler a b (t ^ m) u ha hb hdim P.1 P.2 hu + |
| 86 | ImageEuler.BundleCycles.branchImageEuler a b (t ^ n) v ha hb hdim P.1 P.2 hv := by |
| 87 | have hI := PowerExact.BundleCycles.branchUniformizer_localized_product_ideal a b t u s v w m n P.1 hu hs hv hw hsa hwb |
| 88 | have hk := PowerExact.BundleCycles.branchUniformizerPower_annihilates a b t u s v w m n P.1 hu hv hsa hwb |
| 89 | have hp := PowerFiniteness.BundleCycles.branchPowerPair_kill a b t m n P.1 hk |
| 90 | have hp₀ := PowerFiniteness.BundleCycles.branchPowerPair_homology_finite a b t ha hb m n P.1 P.2 ht.ne_zero hI hk false |
| 91 | have hp₁ := PowerFiniteness.BundleCycles.branchPowerPair_homology_finite a b t ha hb m n P.1 P.2 ht.ne_zero hI hk true |
| 92 | have he := productBranchEuler_scaled_comparison a b (t ^ m) (t ^ n) s w u v ha hb hdim P |
| 93 | hs hw hu hv hsa hwb hp hp₀ hp₁ |
| 94 | rw [PowerFiniteness.BundleCycles.branchPowerPair_Euler_zero a b t ha hb m n P.1 P.2 ht.ne_zero hI hk hp₀ hp₁, zero_add] at he |
| 95 | exact he |
| 96 | |
| 97 | end |
| 98 | |
| 99 | /-! |
| 100 | # LineBundleCycles: the actual branch Euler coefficient |
| 101 | |
| 102 | Cleared DVR factorizations identify two scaled pairs of actual |
| 103 | differentials. Scaling, nilpotent-power vanishing, and the computed |
| 104 | image lengths give the branch coefficient in prime quotient lengths. |
| 105 | -/ |
| 106 | |
| 107 | variable {R : Type*} [CommRing R] [IsDomain R] |
| 108 | |
| 109 | theorem branchFactor_order (P : Ideal R) [P.IsPrime] |
| 110 | [IsDiscreteValuationRing (Localization P.primeCompl)] |
| 111 | (a t u s : R) (m : ℕ) (ht : Irreducible (algebraMap R (Localization P.primeCompl) t)) |
| 112 | (hu : u ∉ P) (hs : s ∉ P) (ha : s * a = u * t ^ m) : |
| 113 | Ring.ord (Localization P.primeCompl) (algebraMap R (Localization P.primeCompl) a) = m := by |
| 114 | let A := Localization P.primeCompl |
| 115 | have he : algebraMap R A s * algebraMap R A a = algebraMap R A u * (algebraMap R A t) ^ m := by |
| 116 | rw [← map_mul, ha, map_mul, map_pow] |
| 117 | have ho := congrArg (Ring.ord A) he |
| 118 | rw [Ring.ord_mul_of_isUnit_left (IsLocalization.map_units A (⟨s, hs⟩ : P.primeCompl)), |
| 119 | Ring.ord_mul_of_isUnit_left (IsLocalization.map_units A (⟨u, hu⟩ : P.primeCompl)), |
| 120 | Ring.ord_pow (mem_nonZeroDivisors_iff_ne_zero.mpr ht.ne_zero), Ring.ord_of_irreducible ht] at ho |
| 121 | simpa only [nsmul_eq_mul, mul_one] using ho |
| 122 | |
| 123 | variable [IsLocalRing R] [Ring.KrullDimLE 2 R] [IsNoetherianRing R] |
| 124 | |
| 125 | theorem productBranchEuler_eq_factor_orders (a b t u s v w : R) (ha : a ≠ 0) (hb : b ≠ 0) |
| 126 | (hdim : ringKrullDim R = 2) (m n : ℕ) (P : Diagonal.BundleCycles.minimalBranchIndex (a * b)) |
| 127 | [IsDiscreteValuationRing (Localization P.1.primeCompl)] |
| 128 | (ht : Irreducible (algebraMap R (Localization P.1.primeCompl) t)) |
| 129 | (hu : u ∉ P.1) (hs : s ∉ P.1) (hv : v ∉ P.1) (hw : w ∉ P.1) |
| 130 | (hsa : s * a = u * t ^ m) (hwb : w * b = v * t ^ n) : |
| 131 | FamilyEuler.BundleCycles.productBranchEuler a b ha hb P = |
| 132 | (n : ℤ) * (PrimeIntersectionLength.BundleCycles.primeIntersectionQuotientLength s P.1 - PrimeIntersectionLength.BundleCycles.primeIntersectionQuotientLength u P.1) + |
| 133 | (m : ℤ) * (PrimeIntersectionLength.BundleCycles.primeIntersectionQuotientLength v P.1 - PrimeIntersectionLength.BundleCycles.primeIntersectionQuotientLength w P.1) := by |
| 134 | have hI := PowerExact.BundleCycles.branchUniformizer_localized_product_ideal a b t u s v w m n P.1 hu hs hv hw hsa hwb |
| 135 | have hI' : (Ideal.span {a * b}).map (algebraMap R (Localization P.1.primeCompl)) = |
| 136 | Ideal.span {(algebraMap R (Localization P.1.primeCompl) t) ^ (n + m)} := by |
| 137 | simpa only [Nat.add_comm n m] using hI |
| 138 | rw [productBranchEuler_factorized a b t u s v w ha hb hdim m n P ht hu hs hv hw hsa hwb, |
| 139 | ImageEuler.BundleCycles.branchImageEuler_eq_local_length a b a s ha hb hdim P.1 P.2 hs, |
| 140 | ImageEuler.BundleCycles.branchImageEuler_eq_local_length a b b w ha hb hdim P.1 P.2 hw, |
| 141 | ImageEuler.BundleCycles.branchImageEuler_eq_local_length a b (t ^ m) u ha hb hdim P.1 P.2 hu, |
| 142 | ImageEuler.BundleCycles.branchImageEuler_eq_local_length a b (t ^ n) v ha hb hdim P.1 P.2 hv, |
| 143 | ImageLength.BundleCycles.productBranchImage_local_length_left a b ha P.1, |
| 144 | ImageLength.BundleCycles.productBranchImage_local_length_right a b hb P.1, |
| 145 | branchFactor_order P.1 b t v w n ht hv hw hwb, |
| 146 | branchFactor_order P.1 a t u s m ht hu hs hsa, |
| 147 | ImageLength.BundleCycles.branchPowersImage_local_length a b t m n P.1 ht hI, |
| 148 | ImageLength.BundleCycles.branchPowersImage_local_length a b t n m P.1 ht hI'] |
| 149 | simp only [ENat.toNat_natCast] |
| 150 | ring |
| 151 | |
| 152 | end |
| 153 | |
| 154 | end OAI.AlgebraicGeometry.Divisors.LineBundles.Branch.EulerEq.BundleCycles |