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.HeckeCycles.Source.FilledLattice |
| 2 | import OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.Source.FilledLocalLattice |
| 3 | import OAI.AlgebraicGeometry.HodgeConjecture.CMExtraction.PEL.PrincipalBasis |
| 4 | import OAI.AlgebraicGeometry.HodgeConjecture.CMExtraction.PrincipalCoordinateGluing |
| 5 | |
| 6 | /-! # Principal Coordinates -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.Source.PrincipalCoordinates.CM |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! The literal principal PEL level of the actual filled source matrix |
| 13 | is exactly the marked q-inverted reference lattice level and all retained |
| 14 | integral local blocks. -/ |
| 15 | |
| 16 | open scoped Classical _root_.NumberField _root_.Matrix |
| 17 | open OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.GeometricSource.CM |
| 18 | open OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.Source.IntrinsicFilledPEL.CM.Intrinsic |
| 19 | |
| 20 | variable (E : IntermediateField ℚ ℂ) [NumberField E] [NumberField.IsCMField E] [IsGalois ℚ E] |
| 21 | {B : GeometricSource.CM.BallDatum E} {places : GeometricSource.CM.Places E} (Q : GeometricSource.CM.SymplecticCoordinates E B places) |
| 22 | {K : Type} [Field K] [NumberField K] {s q : ℕ} [Fact q.Prime] |
| 23 | (D : AbelianScheme.TateComparison.Data.SphericalPELAlbaneseData E K s q) (hb : D.reference.b = B.b) |
| 24 | (hg : D.HasIntegralModelGeometry) (hq : D.IsGoodCompletelySplitPrime) |
| 25 | (hstandard : ∀ v, CMExtraction.SplitLatticeProduct.TestTransport.splitLatticeLocal (R := PadicInt q) (CMExtraction.LocalEmbedding.ParameterChoices.nativeFieldEmbedding D) D.reference.lattice v = |
| 26 | RepresentationTheory.Theta.Geometric.Data.ActiveHeckeThetaData.standardLocalLattice (q := q)) |
| 27 | {J : Type*} [Fintype J] [DecidableEq J] [Submodule.IsLattice ℚ D.reference.lattice] |
| 28 | (b : Module.Basis J ℤ D.reference.lattice) |
| 29 | |
| 30 | include hg hq hstandard b in |
| 31 | theorem principal_iff (N : ℕ) (hN : 0 < N) (hcop : q.Coprime N) |
| 32 | (g : Geometry.ComplexBall.ArithmeticQuotientEquationsData.RationalSU B.b) : |
| 33 | IntrinsicFilledPEL.CM.Intrinsic.hom E Q D hb g ∈ D.reference.adelicPrincipalLevel N ↔ |
| 34 | (Matrix.SpecialLinearGroup.toLin' g.val).restrictScalars ℚ ∈ |
| 35 | AbelianModuli.ReferenceFamily.Groups.principalLatticeSubgroup (CMExtraction.LocalizedLatticeMaps.TestTransport.powerLocalizedLattice D.reference.lattice q).toAddSubgroup N ∧ |
| 36 | ∀ v : Fin s × Bool, v.1 ≠ D.reference.distinguished → |
| 37 | Matrix.SpecialLinearGroup.map (CMExtraction.LocalEmbedding.ParameterChoices.nativeFieldEmbedding D v) g.val ∈ RepresentationTheory.Theta.Geometric.SphericalGU.Spherical.integralSL3 q := by |
| 38 | have hi : (IntrinsicFilledPEL.CM.Intrinsic.hom E Q D hb g).val.symm = (IntrinsicFilledPEL.CM.Intrinsic.hom E Q D hb g⁻¹).val := |
| 39 | (congrArg (fun h : D.reference.FiniteSpecialUnitary => h.val) (map_inv (IntrinsicFilledPEL.CM.Intrinsic.hom E Q D hb) g)).symm |
| 40 | have hforward := forall_congr' (fun j => FilledLattice.CM.image_iff E Q D hb hg hq b g (b j).val) |
| 41 | have hinverse := forall_congr' (fun j => |
| 42 | (Iff.of_eq (congrArg (fun f : (Fin 3 → AbelianModuli.ReferenceFamily.AdelicData.FiniteCoefficients E) ≃ₗ[AbelianModuli.ReferenceFamily.AdelicData.FiniteCoefficients E] |
| 43 | (Fin 3 → AbelianModuli.ReferenceFamily.AdelicData.FiniteCoefficients E) => f (CMExtraction.LatticeGenerators.TestTransport.completedVectorBasis E D.reference.lattice b j) ∈ |
| 44 | D.reference.completedLattice) hi)).trans |
| 45 | (FilledLattice.CM.image_iff E Q D hb hg hq b g⁻¹ (b j).val)) |
| 46 | have hdifference := forall_congr' (fun j => |
| 47 | FilledLattice.CM.difference_iff E Q D hb hg hq b g (N : ℚ)⁻¹ (b j).val) |
| 48 | have hsplit := CMExtraction.PrincipalCoordinateGluing.TestTransport.principal_coordinate_conditions |
| 49 | (fun j => g.val.val *ᵥ (b j).val ∈ CMExtraction.LocalizedLatticeMaps.TestTransport.powerLocalizedLattice D.reference.lattice q) |
| 50 | (fun j => (g⁻¹).val.val *ᵥ (b j).val ∈ CMExtraction.LocalizedLatticeMaps.TestTransport.powerLocalizedLattice D.reference.lattice q) |
| 51 | (fun j => (N : ℚ)⁻¹ • (g.val.val *ᵥ (b j).val - (b j).val) ∈ |
| 52 | CMExtraction.LocalizedLatticeMaps.TestTransport.powerLocalizedLattice D.reference.lattice q) _ _ _ |
| 53 | (FilledLocalLattice.CM.inverse_basis E D hg hq hstandard b g) |
| 54 | (FilledLocalLattice.CM.difference_basis E D b N hcop g) |
| 55 | have haway := CMExtraction.PrincipalLatticeDivision.TestTransport.principalPowerLocalizedLattice_iff_basis D.reference.lattice b q N hN |
| 56 | ((Matrix.SpecialLinearGroup.toLin' g.val).restrictScalars ℚ) |
| 57 | have hlocal := (FilledLocalLattice.CM.basis_iff E D hg hq hstandard b g).trans |
| 58 | (FilledLocalLattice.CM.integral_iff E D g) |
| 59 | exact (CMExtraction.PEL.PrincipalBasis.TestTransport.pelPrincipalLevel_iff_basis E D.reference b N hN (IntrinsicFilledPEL.CM.Intrinsic.hom E Q D hb g)).trans |
| 60 | ((and_congr hforward (and_congr hinverse hdifference)).trans |
| 61 | (hsplit.trans (and_congr haway.symm hlocal))) |
| 62 | |
| 63 | end |
| 64 | |
| 65 | end OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.Source.PrincipalCoordinates.CM |