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.GradedPositiveMultilinear |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.IntrinsicDeRham.CechScalarCoordinates |
| 3 | import Mathlib.RingTheory.Flat.Basic |
| 4 | |
| 5 | /-! # Scalar Positive Product -/ |
| 6 | |
| 7 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Intrinsic.ScalarPositiveProduct |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Nonzero positive-degree products descend through the actual scalar |
| 12 | comparison by tensor spanning, and ascend through injective scalar units. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 15 | open scoped TensorProduct |
| 16 | |
| 17 | set_option backward.defeqAttrib.useBackward true |
| 18 | set_option backward.isDefEq.respectTransparency false |
| 19 | set_option backward.isDefEq.respectTransparency.types false |
| 20 | |
| 21 | variable (R S : Type) [CommRing R] [CommRing S] [Algebra R S] [Module.Flat R S] |
| 22 | (X : Over (Spec (CommRingCat.of R))) (Y : Over (Spec (CommRingCat.of S))) |
| 23 | (f : Y.left ⟶ X.left) |
| 24 | (h : f ≫ X.hom = Y.hom ≫ Spec.map (CommRingCat.ofHom (algebraMap R S))) |
| 25 | {ι : Type} [Finite ι] (U : ι → X.left.Opens) |
| 26 | |
| 27 | abbrev inverseCover : ι → Y.left.Opens := fun i => f ⁻¹ᵁ U i |
| 28 | |
| 29 | local notation "A" => OAI.NumberTheory.PadicHodge.IntegralComparison.IntegralDeRham.CechProduct.total R X (OAI.NumberTheory.PadicHodge.IntegralComparison.NonemptyCechNerve.nerve U) |
| 30 | local notation "B" => OAI.NumberTheory.PadicHodge.IntegralComparison.IntegralDeRham.CechProduct.total S Y (OAI.NumberTheory.PadicHodge.IntegralComparison.NonemptyCechNerve.nerve (OAI.NumberTheory.PadicHodge.IntegralComparison.Intrinsic.ScalarPositiveProduct.inverseCover R S X Y f U)) |
| 31 | local notation "μ" => OAI.NumberTheory.PadicHodge.IntegralComparison.IntegralDeRham.CechProduct.cohomologyCup R X (OAI.NumberTheory.PadicHodge.IntegralComparison.NonemptyCechNerve.nerve U) |
| 32 | local notation "ν" => OAI.NumberTheory.PadicHodge.IntegralComparison.IntegralDeRham.CechProduct.cohomologyCup S Y (OAI.NumberTheory.PadicHodge.IntegralComparison.NonemptyCechNerve.nerve (OAI.NumberTheory.PadicHodge.IntegralComparison.Intrinsic.ScalarPositiveProduct.inverseCover R S X Y f U)) |
| 33 | |
| 34 | abbrev map := IntrinsicDeRham.CechScalarProduct.Intrinsic.homologyMap R S X Y f h U |
| 35 | |
| 36 | theorem natural (n : ℕ) (v : Fin (n+1) → (A).homology 1) : |
| 37 | ScalarPositiveProduct.map R S X Y f h U (n+1) (GradedPositiveProduct.product (fun i j x y => μ i j x y) n v) = |
| 38 | GradedPositiveProduct.product (fun i j x y => ν i j x y) n |
| 39 | (fun i => ScalarPositiveProduct.map R S X Y f h U 1 (v i)) := |
| 40 | GradedPositiveProduct.natural (fun i j x y => μ i j x y) (fun i j x y => ν i j x y) |
| 41 | (fun i => ScalarPositiveProduct.map R S X Y f h U i) |
| 42 | (IntrinsicDeRham.CechScalarProduct.Intrinsic.homologyMap_cup R S X Y f h U) n v |
| 43 | |
| 44 | theorem pure_input_detection [IsIso (AlgebraicGeometry.Crystalline.Cohomology.Base.IntrinsicCechScalarTotal.BaseIntrinsicCechScalarTotal.homologyMap R S X Y f h U 1)] |
| 45 | (n : ℕ) (hn : ∃ v : Fin (n+1) → (B).homology 1, |
| 46 | GradedPositiveProduct.product (fun i j x y => ν i j x y) n v ≠ 0) : |
| 47 | ∃ v : Fin (n+1) → (A).homology 1, |
| 48 | GradedPositiveProduct.product (fun i j x y => ν i j x y) n |
| 49 | (fun i => ScalarPositiveProduct.map R S X Y f h U 1 (v i)) ≠ 0 := by |
| 50 | have hd := GradedPositiveMultilinear.scalar_exists_nonzero ν |
| 51 | (AlgebraicGeometry.Crystalline.Cohomology.Base.IntrinsicCechScalarTotal.BaseIntrinsicCechScalarTotal.homologyMap R S X Y f h U 1).hom |
| 52 | (ConcreteCategory.bijective_of_isIso (AlgebraicGeometry.Crystalline.Cohomology.Base.IntrinsicCechScalarTotal.BaseIntrinsicCechScalarTotal.homologyMap R S X Y f h U 1)).surjective |
| 53 | n hn |
| 54 | dsimp only [ScalarPositiveProduct.map] |
| 55 | rw [IntrinsicDeRham.CechScalarCoordinates.Intrinsic.homologyMap] |
| 56 | exact hd |
| 57 | |
| 58 | theorem image_exists_nonzero [IsIso (AlgebraicGeometry.Crystalline.Cohomology.Base.IntrinsicCechScalarTotal.BaseIntrinsicCechScalarTotal.homologyMap R S X Y f h U 1)] |
| 59 | (n : ℕ) (hn : ∃ v : Fin (n+1) → (B).homology 1, |
| 60 | GradedPositiveProduct.product (fun i j x y => ν i j x y) n v ≠ 0) : |
| 61 | ∃ v : Fin (n+1) → (A).homology 1, |
| 62 | ScalarPositiveProduct.map R S X Y f h U (n+1) |
| 63 | (GradedPositiveProduct.product (fun i j x y => μ i j x y) n v) ≠ 0 := by |
| 64 | obtain ⟨v, hv⟩ := pure_input_detection R S X Y f h U n hn |
| 65 | exact ⟨v, fun hz => hv ((natural R S X Y f h U n v).symm.trans hz)⟩ |
| 66 | |
| 67 | theorem source_exists_nonzero [IsIso (AlgebraicGeometry.Crystalline.Cohomology.Base.IntrinsicCechScalarTotal.BaseIntrinsicCechScalarTotal.homologyMap R S X Y f h U 1)] |
| 68 | (n : ℕ) (hn : ∃ v : Fin (n+1) → (B).homology 1, |
| 69 | GradedPositiveProduct.product (fun i j x y => ν i j x y) n v ≠ 0) : |
| 70 | ∃ v : Fin (n+1) → (A).homology 1, |
| 71 | GradedPositiveProduct.product (fun i j x y => μ i j x y) n v ≠ 0 := by |
| 72 | obtain ⟨v, hv⟩ := image_exists_nonzero R S X Y f h U n hn |
| 73 | exact ⟨v, fun hz => hv ((congrArg (ScalarPositiveProduct.map R S X Y f h U (n+1)) hz).trans (map_zero _))⟩ |
| 74 | |
| 75 | theorem injective (n : ℕ) [Module.Flat R ((A).homology n)] [FaithfulSMul R S] |
| 76 | [IsIso (AlgebraicGeometry.Crystalline.Cohomology.Base.IntrinsicCechScalarTotal.BaseIntrinsicCechScalarTotal.homologyMap R S X Y f h U n)] : |
| 77 | Function.Injective (ScalarPositiveProduct.map R S X Y f h U n) := by |
| 78 | dsimp only [ScalarPositiveProduct.map] |
| 79 | rw [IntrinsicDeRham.CechScalarCoordinates.Intrinsic.homologyMap] |
| 80 | exact (ConcreteCategory.bijective_of_isIso |
| 81 | (AlgebraicGeometry.Crystalline.Cohomology.Base.IntrinsicCechScalarTotal.BaseIntrinsicCechScalarTotal.homologyMap R S X Y f h U n)).injective.comp |
| 82 | (Module.Flat.tensorProduct_mk_injective R ((A).homology n) S) |
| 83 | |
| 84 | theorem target_exists_nonzero (n : ℕ) [Module.Flat R ((A).homology (n+1))] [FaithfulSMul R S] |
| 85 | [IsIso (AlgebraicGeometry.Crystalline.Cohomology.Base.IntrinsicCechScalarTotal.BaseIntrinsicCechScalarTotal.homologyMap R S X Y f h U (n+1))] |
| 86 | (hn : ∃ v : Fin (n+1) → (A).homology 1, |
| 87 | GradedPositiveProduct.product (fun i j x y => μ i j x y) n v ≠ 0) : |
| 88 | ∃ v : Fin (n+1) → (B).homology 1, |
| 89 | GradedPositiveProduct.product (fun i j x y => ν i j x y) n v ≠ 0 := by |
| 90 | obtain ⟨v, hv⟩ := hn |
| 91 | refine ⟨fun i => ScalarPositiveProduct.map R S X Y f h U 1 (v i), ?_⟩ |
| 92 | intro hz |
| 93 | apply hv |
| 94 | apply ScalarPositiveProduct.injective R S X Y f h U (n+1) |
| 95 | exact (natural R S X Y f h U n v).trans (hz.trans (map_zero _).symm) |
| 96 | |
| 97 | end |
| 98 | |
| 99 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Intrinsic.ScalarPositiveProduct |