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.NumberTheory.PadicHodge.IntegralComparison.FiniteEtale.TraceBasis |
| 2 | |
| 3 | /-! # Trace Basis Restriction -/ |
| 4 | |
| 5 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.FiniteEtale.TraceBasisRestriction |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Genuine finite étale trace charts remain valid on affine subopens. -/ |
| 10 | |
| 11 | open _root_.CategoryTheory _root_.AlgebraicGeometry Opposite |
| 12 | |
| 13 | open OAI.NumberTheory.PadicHodge.IntegralComparison.FiniteEtale.TraceBasis |
| 14 | open OAI.NumberTheory.PadicHodge.IntegralComparison.AffineOpen.DeRhamTraceRestriction |
| 15 | |
| 16 | universe u |
| 17 | variable (R : Type u) [CommRing R] |
| 18 | (X Y : Over (Spec (CommRingCat.of R))) (f : X ⟶ Y) |
| 19 | [IsFinite f.left] [Etale f.left] |
| 20 | |
| 21 | omit [Etale (Over.Hom.left f)] in |
| 22 | theorem good (U V : Y.left.Opens) (hU : TraceBasis.Good R X Y f U) |
| 23 | (hV : IsAffineOpen V) (hVU : V ≤ U) : TraceBasis.Good R X Y f V := by |
| 24 | let a : TraceBasis.Index R X Y f := ⟨U, hU⟩ |
| 25 | let : Fact (IsAffineOpen U) := ⟨hU.1⟩ |
| 26 | let : Fact (IsAffineOpen V) := ⟨hV⟩ |
| 27 | let : Fact (V ≤ U) := ⟨hVU⟩ |
| 28 | let := AffineOpen.DeRhamTrace.sectionAlgebra R X Y f U |
| 29 | let := AffineOpen.DeRhamTrace.sectionAlgebra R X Y f V |
| 30 | let : Module.Free (AffineOpen.DeRhamTrace.targetRing R Y U) (AffineOpen.DeRhamTrace.sourceRing R X Y f U) := hU.2.2 |
| 31 | let := AffineOpen.DeRhamTraceRestriction.targetAlgebra R Y U V |
| 32 | let := AffineOpen.DeRhamTraceRestriction.sourceAlgebra R X Y f U V |
| 33 | let := AffineOpen.DeRhamTraceRestriction.diagonalAlgebra R X Y f U V |
| 34 | let := AffineOpen.DeRhamTraceRestriction.firstDiagonalTower R X Y f U V |
| 35 | let := AffineOpen.DeRhamTraceRestriction.secondDiagonalTower R X Y f U V |
| 36 | let := AffineOpen.DeRhamTraceRestriction.sectionPushout R X Y f U V |
| 37 | have hfree : FreeNeighborhood.IsFreeOn R X Y f V := |
| 38 | Module.Free.of_equiv (Algebra.IsPushout.equiv (AffineOpen.DeRhamTrace.targetRing R Y U) (AffineOpen.DeRhamTrace.targetRing R Y V) |
| 39 | (AffineOpen.DeRhamTrace.sourceRing R X Y f U) (AffineOpen.DeRhamTrace.sourceRing R X Y f V)).toLinearEquiv |
| 40 | let σ := TraceBasis.coordinateIndex R X Y f a |
| 41 | let : LinearOrder σ := TraceBasis.coordinateOrder R X Y f a |
| 42 | let : Algebra (MvPolynomial σ R) (AffineOpen.DeRhamTrace.targetRing R Y U) := TraceBasis.polynomialAlgebra R X Y f a |
| 43 | let : IsScalarTower R (MvPolynomial σ R) (AffineOpen.DeRhamTrace.targetRing R Y U) := TraceBasis.coordinateTower R X Y f a |
| 44 | let : Algebra.Etale (MvPolynomial σ R) (AffineOpen.DeRhamTrace.targetRing R Y U) := TraceBasis.coordinateEtale R X Y f a |
| 45 | let : Algebra (MvPolynomial σ R) (AffineOpen.DeRhamTrace.targetRing R Y V) := |
| 46 | ((algebraMap (AffineOpen.DeRhamTrace.targetRing R Y U) (AffineOpen.DeRhamTrace.targetRing R Y V)).comp |
| 47 | (algebraMap (MvPolynomial σ R) (AffineOpen.DeRhamTrace.targetRing R Y U))).toAlgebra |
| 48 | let : IsScalarTower (MvPolynomial σ R) (AffineOpen.DeRhamTrace.targetRing R Y U) (AffineOpen.DeRhamTrace.targetRing R Y V) := |
| 49 | IsScalarTower.of_algebraMap_eq (fun _ => rfl) |
| 50 | let : IsScalarTower R (MvPolynomial σ R) (AffineOpen.DeRhamTrace.targetRing R Y V) := |
| 51 | IsScalarTower.of_algebraMap_eq (fun r => by |
| 52 | change algebraMap R (AffineOpen.DeRhamTrace.targetRing R Y V) r = |
| 53 | algebraMap (AffineOpen.DeRhamTrace.targetRing R Y U) (AffineOpen.DeRhamTrace.targetRing R Y V) |
| 54 | (algebraMap (MvPolynomial σ R) (AffineOpen.DeRhamTrace.targetRing R Y U) (algebraMap R (MvPolynomial σ R) r)) |
| 55 | rw [← IsScalarTower.algebraMap_apply R (MvPolynomial σ R) (AffineOpen.DeRhamTrace.targetRing R Y U)] |
| 56 | exact (((AlgebraicGeometry.Crystalline.Cohomology.AlgebraicForms.AlgebraicDeRham.sectionAlgebras R Y).map (AffineOpen.DeRhamTraceRestriction.targetInclusion R Y U V).op).hom.commutes r).symm) |
| 57 | exact ⟨hV, ⟨σ, inferInstance, inferInstance, inferInstance, |
| 58 | AffineOpen.DeRhamTraceRestriction.smallerEtale R Y U V σ⟩, hfree⟩ |
| 59 | |
| 60 | end |
| 61 | |
| 62 | end OAI.NumberTheory.PadicHodge.IntegralComparison.FiniteEtale.TraceBasisRestriction |