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.AbelianModuli.ReferenceFamily.Family.CommonOpenProducts |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.Family.ProductRestrictionMaps |
| 3 | import OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.Tensor.AlgebraMapDetermination |
| 4 | import OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.Dual.TensorCoefficientNaturality |
| 5 | |
| 6 | /-! # Common Open Product Naturality -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.Family.CommonOpenProductNaturality |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! Product charts constructed from a restricted affine tangent |
| 13 | lift commute with the original tensor restriction maps on both sides. |
| 14 | This is a literal square of algebra homomorphisms. -/ |
| 15 | |
| 16 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 17 | open scoped TensorProduct |
| 18 | |
| 19 | variable (k R : Type) [Field k] [CommRing R] [Algebra k R] [Algebra R k] |
| 20 | [IsScalarTower k R k] (X : Over (Spec (.of R))) [Smooth X.hom] |
| 21 | |
| 22 | attribute [local irreducible] CommonOpenProducts.familyCommonOpenProductEquiv |
| 23 | |
| 24 | theorem familyCommonOpenProductEquiv_restrict {U V W : X.left.affineOpens} |
| 25 | (t : U.1 ≤ V.1) (h : V.1 ≤ W.1) (d : Derivation k R k) : |
| 26 | letI qD := BaseTangentTensorLifts.baseTangentDualAlgebra k R d |
| 27 | letI : Module R (DualNumber k) := qD.toModule |
| 28 | letI : SMul R (DualNumber k) := qD.toSMul |
| 29 | (CommonOpenProducts.familyCommonOpenProductEquiv k R X (t.trans h) d).toAlgHom.comp (ProductRestrictionMaps.familyTangentTensorRestriction k R X t d) = |
| 30 | (ProductRestrictionMaps.familyProductTensorRestriction k R X t).comp (CommonOpenProducts.familyCommonOpenProductEquiv k R X h d).toAlgHom := by |
| 31 | let qD := BaseTangentTensorLifts.baseTangentDualAlgebra k R d |
| 32 | let : Module R (DualNumber k) := qD.toModule |
| 33 | let : SMul R (DualNumber k) := qD.toSMul |
| 34 | apply Tensor.AlgebraMapDetermination.tensorAlgebraMap_ext_original R (DualNumber k) (AffineTangentLifts.familyAffineRing R X V) |
| 35 | (DualNumber k ⊗[k] (k ⊗[R] AffineTangentLifts.familyAffineRing R X U)) |
| 36 | intro a |
| 37 | change CommonOpenProducts.familyCommonOpenProductEquiv k R X (t.trans h) d |
| 38 | (ProductRestrictionMaps.familyTangentTensorRestriction k R X t d ((1 : DualNumber k) ⊗ₜ[R] a)) = |
| 39 | ProductRestrictionMaps.familyProductTensorRestriction k R X t |
| 40 | (CommonOpenProducts.familyCommonOpenProductEquiv k R X h d ((1 : DualNumber k) ⊗ₜ[R] a)) |
| 41 | rw [ProductRestrictionMaps.familyTangentTensorRestriction_original] |
| 42 | apply (Dual.NumberCoefficients.dualTensorCoefficientEquiv k (k ⊗[R] AffineTangentLifts.familyAffineRing R X U)).injective |
| 43 | change Dual.NumberCoefficients.dualTensorCoefficientEquiv k (k ⊗[R] AffineTangentLifts.familyAffineRing R X U) |
| 44 | (CommonOpenProducts.familyCommonOpenProductEquiv k R X (t.trans h) d |
| 45 | ((1 : DualNumber k) ⊗ₜ[R] Affine.OpenDiagram.familyAffineCoordinateMap R X t a)) = |
| 46 | Dual.NumberCoefficients.dualTensorCoefficientEquiv k (k ⊗[R] AffineTangentLifts.familyAffineRing R X U) |
| 47 | (Algebra.TensorProduct.map (AlgHom.id (DualNumber k) (DualNumber k)) (FixedFiber.DerivationPresheaf.fixedFiberTensorRestriction R k X t) |
| 48 | (CommonOpenProducts.familyCommonOpenProductEquiv k R X h d ((1 : DualNumber k) ⊗ₜ[R] a))) |
| 49 | rw [Dual.TensorCoefficientNaturality.dualTensorCoefficientEquiv_natural] |
| 50 | apply TrivSqZeroExt.ext |
| 51 | · change Dual.TensorReduction.dualTensorReduction k (k ⊗[R] AffineTangentLifts.familyAffineRing R X U) |
| 52 | (CommonOpenProducts.familyCommonOpenProductEquiv k R X (t.trans h) d |
| 53 | ((1 : DualNumber k) ⊗ₜ[R] Affine.OpenDiagram.familyAffineCoordinateMap R X t a)) = |
| 54 | FixedFiber.DerivationPresheaf.fixedFiberTensorRestriction R k X t (Dual.TensorReduction.dualTensorReduction k (k ⊗[R] AffineTangentLifts.familyAffineRing R X V) |
| 55 | (CommonOpenProducts.familyCommonOpenProductEquiv k R X h d ((1 : DualNumber k) ⊗ₜ[R] a))) |
| 56 | rw [CommonOpenProducts.familyCommonOpenProductEquiv_reduction, CommonOpenProducts.familyCommonOpenProductEquiv_reduction, |
| 57 | BaseTangentTensor.baseTangentScalarReduction_tmul, BaseTangentTensor.baseTangentScalarReduction_tmul] |
| 58 | rfl |
| 59 | · change (Dual.NumberCoefficients.dualTensorCoefficientEquiv k (k ⊗[R] AffineTangentLifts.familyAffineRing R X U) |
| 60 | (CommonOpenProducts.familyCommonOpenProductEquiv k R X (t.trans h) d |
| 61 | ((1 : DualNumber k) ⊗ₜ[R] Affine.OpenDiagram.familyAffineCoordinateMap R X t a))).snd = |
| 62 | FixedFiber.DerivationPresheaf.fixedFiberTensorRestriction R k X t |
| 63 | (Dual.NumberCoefficients.dualTensorCoefficientEquiv k (k ⊗[R] AffineTangentLifts.familyAffineRing R X V) |
| 64 | (CommonOpenProducts.familyCommonOpenProductEquiv k R X h d ((1 : DualNumber k) ⊗ₜ[R] a))).snd |
| 65 | rw [CommonOpenProducts.familyCommonOpenProductEquiv_snd, CommonOpenProducts.familyCommonOpenProductEquiv_snd] |
| 66 | exact FamilyTangent.DifferenceNaturality.familyRestrictedTangent_restrict_apply k R X t h d a |
| 67 | |
| 68 | end |
| 69 | |
| 70 | end OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.Family.CommonOpenProductNaturality |