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.ComplexMultiplication.HodgeComparison.RationalCoordinates |
| 2 | import Mathlib.Algebra.Module.ZLattice.Basic |
| 3 | import Mathlib.Topology.Algebra.Group.Quotient |
| 4 | import Mathlib.Topology.Algebra.Module.FiniteDimension |
| 5 | |
| 6 | /-! # Period Lattice -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.ComplexMultiplication.HodgeComparison.PeriodLattice.CM.Construction |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! The genuine degree-one Hodge coordinates define a finite-dimensional |
| 13 | complex period space, a discrete full lattice, and a compact Hausdorff quotient. -/ |
| 14 | |
| 15 | variable {ι : Type} [Fintype ι] |
| 16 | (V : Foundations.Scheme.IntegralProjective.IntegralProjectiveVariety) (b : Module.Basis ι ℚ (V.rationalCohomology 1)) |
| 17 | |
| 18 | abbrev RationalH1PeriodSpace := |
| 19 | Fin (Module.finrank ℂ (Module.Dual ℂ (RationalCoordinates.CM.Construction.rationalH1HolomorphicCoordinates V b))) → ℂ |
| 20 | |
| 21 | def rationalPeriodComplexEquiv : |
| 22 | Module.Dual ℂ (RationalCoordinates.CM.Construction.rationalH1HolomorphicCoordinates V b) ≃ₗ[ℂ] RationalH1PeriodSpace V b := |
| 23 | (Module.finBasis ℂ (Module.Dual ℂ (RationalCoordinates.CM.Construction.rationalH1HolomorphicCoordinates V b))).equivFun |
| 24 | |
| 25 | def rationalPeriodRealEquiv : (ι → ℝ) ≃ₗ[ℝ] RationalH1PeriodSpace V b := |
| 26 | (RationalCoordinates.CM.Construction.rationalH1PeriodEquiv V b).trans |
| 27 | ((rationalPeriodComplexEquiv V b).restrictScalars ℝ) |
| 28 | |
| 29 | def rationalPeriodProjection : (ι → ℂ) →L[ℂ] RationalH1PeriodSpace V b := |
| 30 | ⟨(rationalPeriodComplexEquiv V b).toLinearMap.comp |
| 31 | (PeriodCoordinateDuality.CM.Construction.complexCoordinateEvaluation (RationalCoordinates.CM.Construction.rationalH1HolomorphicCoordinates V b)), |
| 32 | LinearMap.continuous_of_finiteDimensional _⟩ |
| 33 | |
| 34 | theorem rationalPeriodProjection_real (r : ι → ℝ) : |
| 35 | rationalPeriodProjection V b (fun i => (r i : ℂ)) = rationalPeriodRealEquiv V b r := rfl |
| 36 | |
| 37 | def rationalPeriodBasis : Module.Basis ι ℝ (RationalH1PeriodSpace V b) := |
| 38 | (Pi.basisFun ℝ ι).map (rationalPeriodRealEquiv V b) |
| 39 | |
| 40 | def rationalPeriodLattice : Submodule ℤ (RationalH1PeriodSpace V b) := |
| 41 | Submodule.span ℤ (Set.range (rationalPeriodBasis V b)) |
| 42 | |
| 43 | instance rationalPeriodLattice_discrete : DiscreteTopology (rationalPeriodLattice V b) := by |
| 44 | unfold rationalPeriodLattice |
| 45 | infer_instance |
| 46 | |
| 47 | instance rationalPeriodLattice_full : IsZLattice ℝ (rationalPeriodLattice V b) := by |
| 48 | unfold rationalPeriodLattice |
| 49 | infer_instance |
| 50 | |
| 51 | instance rationalPeriodLattice_add_discrete : |
| 52 | DiscreteTopology (rationalPeriodLattice V b).toAddSubgroup := |
| 53 | rationalPeriodLattice_discrete V b |
| 54 | |
| 55 | theorem rationalPeriodProjection_integer_mem (z : ι → ℤ) : |
| 56 | rationalPeriodProjection V b (fun i => (z i : ℂ)) ∈ rationalPeriodLattice V b := by |
| 57 | apply ((rationalPeriodBasis V b).mem_span_iff_repr_mem ℤ _).mpr |
| 58 | intro i |
| 59 | refine ⟨z i, ?_⟩ |
| 60 | have hz : rationalPeriodProjection V b (fun i => (z i : ℂ)) = |
| 61 | rationalPeriodRealEquiv V b (fun i => (z i : ℝ)) := by |
| 62 | simpa only [Complex.ofReal_intCast] using rationalPeriodProjection_real V b (fun i => (z i : ℝ)) |
| 63 | change algebraMap ℤ ℝ (z i) = (Pi.basisFun ℝ ι).repr |
| 64 | ((rationalPeriodRealEquiv V b).symm |
| 65 | (rationalPeriodProjection V b (fun i => (z i : ℂ)))) i |
| 66 | rw [hz, LinearEquiv.symm_apply_apply, Pi.basisFun_repr, algebraMap_int_eq] |
| 67 | rfl |
| 68 | |
| 69 | abbrev RationalH1PeriodTorus := RationalH1PeriodSpace V b ⧸ (rationalPeriodLattice V b).toAddSubgroup |
| 70 | |
| 71 | instance rationalH1PeriodTorus_compact : CompactSpace (RationalH1PeriodTorus V b) := by |
| 72 | apply isCompact_univ_iff.mp |
| 73 | have hc := IsZLattice.isCompact_range_of_periodic (rationalPeriodLattice V b) |
| 74 | (QuotientAddGroup.mk : RationalH1PeriodSpace V b → RationalH1PeriodTorus V b) |
| 75 | QuotientAddGroup.continuous_mk (by |
| 76 | intro z w hw |
| 77 | rw [QuotientAddGroup.mk_add, (QuotientAddGroup.eq_zero_iff w).mpr hw, add_zero]) |
| 78 | rwa [Set.range_eq_univ.mpr QuotientAddGroup.mk_surjective] at hc |
| 79 | |
| 80 | instance rationalH1PeriodTorus_t2 : T2Space (RationalH1PeriodTorus V b) := by |
| 81 | let : DiscreteTopology (rationalPeriodLattice V b).toAddSubgroup := rationalPeriodLattice_discrete V b |
| 82 | let : IsClosed ((rationalPeriodLattice V b).toAddSubgroup : Set (RationalH1PeriodSpace V b)) := |
| 83 | AddSubgroup.isClosed_of_discreteTopology |
| 84 | infer_instance |
| 85 | |
| 86 | end |
| 87 | |
| 88 | end OAI.AlgebraicGeometry.ComplexMultiplication.HodgeComparison.PeriodLattice.CM.Construction |