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.HodgeConjecture.ThetaCycle.SingleComparisonTensor |
| 2 | import OAI.AlgebraicGeometry.HodgeConjecture.ThetaCycle.ComparisonReturnTensor |
| 3 | |
| 4 | /-! # Single Comparison Return -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.HodgeConjecture.ThetaCycle.SingleComparisonReturn.CM |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Every actual native one-line finite input returns to one fixed source |
| 11 | input. Its full tensor and literal cotangent coefficients agree with the |
| 12 | source form through one explicit nonzero constant on the ball. -/ |
| 13 | |
| 14 | open scoped Classical _root_.NumberField _root_.Matrix _root_.Matrix.Norms.Elementwise |
| 15 | open _root_.NumberField OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.GeometricSource.CM |
| 16 | open OAI.RepresentationTheory.Theta.Adelic.BallGeometryData OAI.RepresentationTheory.Theta.Adelic.DataTheta |
| 17 | open OAI.RepresentationTheory.Theta.Kernel.Definitions.DerivativeFactorization |
| 18 | |
| 19 | attribute [local instance] BallArithmetic.CM.directNativeRealNumberField |
| 20 | |
| 21 | variable (K : IntermediateField ℚ ℂ) [NumberField K] [IsCMField K] [IsGalois ℚ K] |
| 22 | {B : HeckeCycles.GeometricSource.CM.BallDatum K} {places : HeckeCycles.GeometricSource.CM.Places K} (d : Fin 2 → Gal(K/ℚ) → Bool) |
| 23 | (Q : Lagrangians.CM.LagrangianPair K B places (fun k v => d k (places.representative v))) |
| 24 | (hμ : ∀ k, d k (places.representative places.distinguished) = true) (j : Fin 2) |
| 25 | (N : RepresentationTheory.Theta.Adelic.DataTheta.ComparisonData _ _ _ (SingleLineArithmetic.CM.directSingleLineArithmetic K Q hμ j)) |
| 26 | (hN : RepresentationTheory.Theta.Adelic.DataTheta.CoordinateIdentification N (SingleLineComponents.CM.directSingleLineFrames K Q j)) |
| 27 | (hG : RepresentationTheory.Theta.Adelic.DataTheta.GeometryIdentification N) |
| 28 | (L : HeckeCycles.GeometricSource.CM.LinePeriod K B places (d j)) (hL : L.coordinates.a = Q.a j ∧ L.coordinates.delta = Q.delta) |
| 29 | |
| 30 | def singleComparisonReturnedInput |
| 31 | (f : RepresentationTheory.Theta.Adelic.FiniteSchwartz.finiteSchwartz (maximalRealSubfield K) (3 * 1)) : |
| 32 | RepresentationTheory.Theta.Kernel.Definitions.DerivativeFactorization.Input (HeckeCycles.GeometricSource.CM.Positions K places) := |
| 33 | ComparisonReturnTensor.CM.comparisonReturnInput N (SingleLineFrame.CM.sourceSingleIndexEquiv K places) |
| 34 | (SingleComparisonCoordinates.CM.singleComparisonSymplecticTransition K Q hμ j N hN L.coordinates hL) f |
| 35 | |
| 36 | def singleComparisonReturnConstant (z₀ : B.Domain) : ℂ := |
| 37 | (IndexedInverseMultiplier.CM.indexedInverseMultiplier (SingleComparisonCoordinates.CM.singleComparisonSymplecticTransition K Q hμ j N hN L.coordinates hL) |
| 38 | (L.period z₀.val))⁻¹ * SingleComparisonHalfRatio.CM.singleComparisonHalfRatio K d Q hμ j N hN L hL z₀ |
| 39 | |
| 40 | include hG in |
| 41 | theorem single_comparison_return_constant_ne_zero (z₀ : B.Domain) : |
| 42 | singleComparisonReturnConstant K d Q hμ j N hN L hL z₀ ≠ 0 := |
| 43 | mul_ne_zero (inv_ne_zero (IndexedInverseMultiplier.CM.indexed_inverse_multiplier_ne_zero _ _)) |
| 44 | (SingleComparisonHalfRatio.CM.single_comparison_half_ratio_ne_zero K d Q hμ j N hN hG L hL z₀) |
| 45 | |
| 46 | include hG in |
| 47 | theorem single_comparison_return_tensor |
| 48 | (f : RepresentationTheory.Theta.Adelic.FiniteSchwartz.finiteSchwartz (maximalRealSubfield K) (3 * 1)) |
| 49 | (z₀ z : B.Domain) (a : ℕ) (u : Fin a → HeckeCycles.GeometricSource.CM.Positions K places → ℂ) : |
| 50 | RepresentationTheory.Theta.Adelic.DataTheta.geometricTensor N f a (SourceIntrinsicBall.CM.sourceNativeBallPoint K B z) |
| 51 | (fun k => SingleLineGeometricTensor.CM.directSingleNativeDualCoordinates K d Q j (u k)) = |
| 52 | ((Nat.factorial a : ℂ)⁻¹) * singleComparisonReturnConstant K d Q hμ j N hN L hL z₀ * |
| 53 | (L.halfDet z.val : ℂ) * iteratedFDeriv ℂ a |
| 54 | (RepresentationTheory.Theta.Kernel.Definitions.DerivativeFactorization.completed (singleComparisonReturnedInput K d Q hμ j N hN L hL f) (L.period z.val)) 0 |
| 55 | (fun k => (SourceHalfDetAction.CM.sourceAdaptedGraphMatrix K L z.val)ᵀ.mulVec (u k)) := by |
| 56 | let γ := SingleComparisonCoordinates.CM.singleComparisonSymplecticTransition K Q hμ j N hN L.coordinates hL |
| 57 | let φ := singleComparisonReturnedInput K d Q hμ j N hN L hL f |
| 58 | let σ := IndexedInverseMultiplier.CM.indexedInverseMultiplier γ (L.period z₀.val) |
| 59 | have hσ : σ ≠ 0 := IndexedInverseMultiplier.CM.indexed_inverse_multiplier_ne_zero _ _ |
| 60 | have : ConnectedSpace B.domain := BallConnected.CM.ball_domain_connected B |
| 61 | have : Nonempty (HeckeCycles.GeometricSource.CM.Positions K places) := ⟨(places.distinguished, 0)⟩ |
| 62 | have hc := IndexedInverseMultiplier.CM.indexed_inverse_multiplier_constant γ L.period L.holomorphic z₀ z |
| 63 | have hr := ComparisonReturnTensor.CM.comparison_return_geometric_tensor N (SingleLineFrame.CM.sourceSingleIndexEquiv K places) γ f |
| 64 | (SourceIntrinsicBall.CM.sourceNativeBallPoint K B z) (L.period z.val) |
| 65 | (SingleComparisonPeriod.CM.single_comparison_period_transform K d Q hμ j N hN hG L hL z) a |
| 66 | (fun k => SingleLineGeometricTensor.CM.directSingleNativeDualCoordinates K d Q j (u k)) |
| 67 | have hs := SingleComparisonTensor.CM.single_comparison_geometric_tensor K d Q hμ j N hN hG L hL φ z₀ z a u |
| 68 | have hp := congrArg (fun c : ℂ => c * RepresentationTheory.Theta.Adelic.DataTheta.geometricTensor N f a (SourceIntrinsicBall.CM.sourceNativeBallPoint K B z) |
| 69 | (fun k => SingleLineGeometricTensor.CM.directSingleNativeDualCoordinates K d Q j (u k))) hc |
| 70 | have he := hp.symm.trans (hr.symm.trans hs) |
| 71 | have h := congrArg (fun c : ℂ => σ⁻¹ * c) he |
| 72 | rw [inv_mul_cancel_left₀ hσ] at h |
| 73 | exact h.trans (by dsimp only [singleComparisonReturnConstant]; ring) |
| 74 | |
| 75 | include hG in |
| 76 | theorem single_comparison_return_source_slot |
| 77 | (f : RepresentationTheory.Theta.Adelic.FiniteSchwartz.finiteSchwartz (maximalRealSubfield K) (3 * 1)) |
| 78 | (z₀ z : B.Domain) (i : Fin 2) : |
| 79 | RepresentationTheory.Theta.Adelic.DataTheta.geometricTensor N f 1 (SourceIntrinsicBall.CM.sourceNativeBallPoint K B z) |
| 80 | (fun _ => SingleLineGeometricTensor.CM.directSingleNativeDualCoordinates K d Q j (SingleAdaptedDualSlots.CM.singleAdaptedDualSlot K places i)) = |
| 81 | singleComparisonReturnConstant K d Q hμ j N hN L hL z₀ * |
| 82 | Slots.CM.sourceThetaCoordinates K L (singleComparisonReturnedInput K d Q hμ j N hN L hL f) z.val i := by |
| 83 | have h := single_comparison_return_tensor K d Q hμ j N hN hG L hL f z₀ z 1 |
| 84 | (fun _ => SingleAdaptedDualSlots.CM.singleAdaptedDualSlot K places i) |
| 85 | simp only [Nat.factorial_one, Nat.cast_one, inv_one, one_mul, iteratedFDeriv_one_apply, |
| 86 | ← SingleAdaptedDualSlots.CM.theta_jacobi_slot_adapted_transpose] at h |
| 87 | exact h.trans (by rw [Slots.CM.source_coordinates_completed_slots]; exact mul_assoc _ _ _) |
| 88 | |
| 89 | end |
| 90 | |
| 91 | end OAI.AlgebraicGeometry.HodgeConjecture.ThetaCycle.SingleComparisonReturn.CM |