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.CycleClass.Geometric.InjectiveHomotopyRestrictionBetween |
| 2 | import OAI.AlgebraicGeometry.CycleClass.Geometric.RelativeCochainFunctoriality |
| 3 | import OAI.AlgebraicTopology.Cohomology.Singular.PullbackHomotopyNaturality |
| 4 | |
| 5 | /-! # Relative Cochain Homotopy -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.CycleClass.Geometric.RelativeCochainHomotopy.Cohomology |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! |
| 12 | # Actual homotopies on relative singular cochains |
| 13 | |
| 14 | A continuous homotopy preserving a pair restricts to an actual homotopy on |
| 15 | the two subspaces. Naturality of the singular prism homotopy then preserves |
| 16 | the kernel of cochain restriction. Restriction through that kernel gives an |
| 17 | actual relative cochain homotopy, and hence pair homotopy invariance. |
| 18 | -/ |
| 19 | |
| 20 | open _root_.CategoryTheory |
| 21 | |
| 22 | set_option backward.defeqAttrib.useBackward true |
| 23 | set_option backward.isDefEq.respectTransparency false |
| 24 | set_option backward.isDefEq.respectTransparency.types false |
| 25 | |
| 26 | variable {R : Type} [Ring R] |
| 27 | |
| 28 | /-- The genuine relative cochain inclusion is injective in every degree. -/ |
| 29 | theorem relativeCochainInclusion_injective (M : ModuleCat.{0} R) |
| 30 | (X : TopCat.{0}) (A : Set X) (n : ℕ) : |
| 31 | Function.Injective ((AlgebraicTopology.Cohomology.Singular.RelativeSequence.relativeCochainInclusion M X A).f n) := |
| 32 | (ModuleCat.mono_iff_injective _).mp inferInstance |
| 33 | |
| 34 | /-- The actual singular cochain homotopy preserves the relative kernel. |
| 35 | Its restriction to the subspace is the corresponding actual prism homotopy. -/ |
| 36 | theorem singularPullbackHomotopy_preserves_relative (M : ModuleCat.{0} R) |
| 37 | {X Y : TopCat.{0}} {f g : X ⟶ Y} {A : Set X} {B : Set Y} |
| 38 | (hf : Set.MapsTo f A B) (hg : Set.MapsTo g A B) |
| 39 | (H : TopCat.Homotopy f g) |
| 40 | (hH : ∀ t : unitInterval, Set.MapsTo (fun x => H (t, x)) A B) |
| 41 | (a b : ℕ) (c : (AlgebraicTopology.Cohomology.Singular.RelativeSequence.relativeSingularCochains M Y B).X a) : |
| 42 | (AlgebraicTopology.Cohomology.Singular.Homotopy.singularPullbackHomotopy M H).hom a b ((AlgebraicTopology.Cohomology.Singular.RelativeSequence.relativeCochainInclusion M Y B).f a c) ∈ |
| 43 | LinearMap.range ((AlgebraicTopology.Cohomology.Singular.RelativeSequence.relativeCochainInclusion M X A).f b).hom := by |
| 44 | rw [AlgebraicTopology.Cohomology.Singular.RelativeSequence.relativeCochainInclusion_range] |
| 45 | change (AlgebraicTopology.Cohomology.Singular.RelativeSequence.subspaceCochainRestriction M X A).f b |
| 46 | ((AlgebraicTopology.Cohomology.Singular.Homotopy.singularPullbackHomotopy M H).hom a b ((AlgebraicTopology.Cohomology.Singular.RelativeSequence.relativeCochainInclusion M Y B).f a c)) = 0 |
| 47 | have hz : (AlgebraicTopology.Cohomology.Singular.RelativeSequence.subspaceCochainRestriction M Y B).f a |
| 48 | ((AlgebraicTopology.Cohomology.Singular.RelativeSequence.relativeCochainInclusion M Y B).f a c) = 0 := |
| 49 | ConcreteCategory.congr_hom |
| 50 | (HomologicalComplex.congr_hom (AlgebraicTopology.Cohomology.Singular.RelativeSequence.relativeCochainInclusion_restriction M Y B) a) c |
| 51 | have hnat := ConcreteCategory.congr_hom |
| 52 | (AlgebraicTopology.Cohomology.Singular.PullbackHomotopyNaturality.singularPullbackHomotopy_subspace_naturality M hf hg H hH a b) |
| 53 | ((AlgebraicTopology.Cohomology.Singular.RelativeSequence.relativeCochainInclusion M Y B).f a c) |
| 54 | change (AlgebraicTopology.Cohomology.Singular.RelativeSequence.subspaceCochainRestriction M X A).f b |
| 55 | ((AlgebraicTopology.Cohomology.Singular.Homotopy.singularPullbackHomotopy M H).hom a b ((AlgebraicTopology.Cohomology.Singular.RelativeSequence.relativeCochainInclusion M Y B).f a c)) = |
| 56 | (AlgebraicTopology.Cohomology.Singular.Homotopy.singularPullbackHomotopy M (RelativeHomotopy.Cycles.subspaceHomotopy hf hg H hH)).hom a b |
| 57 | ((AlgebraicTopology.Cohomology.Singular.RelativeSequence.subspaceCochainRestriction M Y B).f a ((AlgebraicTopology.Cohomology.Singular.RelativeSequence.relativeCochainInclusion M Y B).f a c)) at hnat |
| 58 | rw [hnat, hz, map_zero] |
| 59 | |
| 60 | /-- A genuine continuous homotopy of pairs induces an actual homotopy |
| 61 | between their relative singular-cochain pullbacks. -/ |
| 62 | def relativeSingularCochainsHomotopy (M : ModuleCat.{0} R) |
| 63 | {X Y : TopCat.{0}} {f g : X ⟶ Y} {A : Set X} {B : Set Y} |
| 64 | (hf : Set.MapsTo f A B) (hg : Set.MapsTo g A B) |
| 65 | (H : TopCat.Homotopy f g) |
| 66 | (hH : ∀ t : unitInterval, Set.MapsTo (fun x => H (t, x)) A B) : |
| 67 | Homotopy (AlgebraicTopology.Cohomology.Singular.RelativeSequence.relativeSingularCochainsMap M f hf) (AlgebraicTopology.Cohomology.Singular.RelativeSequence.relativeSingularCochainsMap M g hg) := |
| 68 | InjectiveHomotopyRestrictionBetween.Cycles.restrictHomotopyBetween (AlgebraicTopology.Cohomology.Singular.RelativeSequence.relativeCochainInclusion M Y B) (AlgebraicTopology.Cohomology.Singular.RelativeSequence.relativeCochainInclusion M X A) |
| 69 | (relativeCochainInclusion_injective M X A) |
| 70 | (AlgebraicTopology.Cohomology.Singular.RelativeSequence.relativeCochainInclusion_naturality M f hf) (AlgebraicTopology.Cohomology.Singular.RelativeSequence.relativeCochainInclusion_naturality M g hg) |
| 71 | (AlgebraicTopology.Cohomology.Singular.Homotopy.singularPullbackHomotopy M H) |
| 72 | (singularPullbackHomotopy_preserves_relative M hf hg H hH) |
| 73 | |
| 74 | /-- The relative homotopy components recover the actual ambient cochain |
| 75 | homotopy after inclusion, rather than merely an abstract homotopy class. -/ |
| 76 | @[reassoc] |
| 77 | theorem relativeSingularCochainsHomotopy_inclusion (M : ModuleCat.{0} R) |
| 78 | {X Y : TopCat.{0}} {f g : X ⟶ Y} {A : Set X} {B : Set Y} |
| 79 | (hf : Set.MapsTo f A B) (hg : Set.MapsTo g A B) |
| 80 | (H : TopCat.Homotopy f g) |
| 81 | (hH : ∀ t : unitInterval, Set.MapsTo (fun x => H (t, x)) A B) (a b : ℕ) : |
| 82 | (relativeSingularCochainsHomotopy M hf hg H hH).hom a b ≫ |
| 83 | (AlgebraicTopology.Cohomology.Singular.RelativeSequence.relativeCochainInclusion M X A).f b = |
| 84 | (AlgebraicTopology.Cohomology.Singular.RelativeSequence.relativeCochainInclusion M Y B).f a ≫ (AlgebraicTopology.Cohomology.Singular.Homotopy.singularPullbackHomotopy M H).hom a b := |
| 85 | InjectiveHomotopyRestrictionBetween.Cycles.restrictedBetweenComponent_comp _ _ _ _ _ a b |
| 86 | |
| 87 | /-- Pair-homotopic maps induce equal pullbacks on relative singular cohomology. -/ |
| 88 | theorem relativeSingularCohomologyMap_eq_of_homotopy (M : ModuleCat.{0} R) |
| 89 | {X Y : TopCat.{0}} {f g : X ⟶ Y} {A : Set X} {B : Set Y} |
| 90 | (hf : Set.MapsTo f A B) (hg : Set.MapsTo g A B) |
| 91 | (H : TopCat.Homotopy f g) |
| 92 | (hH : ∀ t : unitInterval, Set.MapsTo (fun x => H (t, x)) A B) (n : ℕ) : |
| 93 | AlgebraicTopology.Cohomology.Singular.RelativeSequence.relativeSingularCohomologyMap M f hf n = AlgebraicTopology.Cohomology.Singular.RelativeSequence.relativeSingularCohomologyMap M g hg n := |
| 94 | (relativeSingularCochainsHomotopy M hf hg H hH).homologyMap_eq n |
| 95 | |
| 96 | /-- An explicit homotopy equivalence of pairs induces a contravariant |
| 97 | homotopy equivalence of their actual relative singular-cochain complexes. -/ |
| 98 | def relativeSingularCochainsHomotopyEquiv (M : ModuleCat.{0} R) |
| 99 | {X Y : TopCat.{0}} {A : Set X} {B : Set Y} |
| 100 | (f : X ⟶ Y) (g : Y ⟶ X) (hf : Set.MapsTo f A B) (hg : Set.MapsTo g B A) |
| 101 | (HX : TopCat.Homotopy (f ≫ g) (𝟙 X)) (HY : TopCat.Homotopy (g ≫ f) (𝟙 Y)) |
| 102 | (hHX : ∀ t : unitInterval, Set.MapsTo (fun x => HX (t, x)) A A) |
| 103 | (hHY : ∀ t : unitInterval, Set.MapsTo (fun y => HY (t, y)) B B) : |
| 104 | HomotopyEquiv (AlgebraicTopology.Cohomology.Singular.RelativeSequence.relativeSingularCochains M Y B) (AlgebraicTopology.Cohomology.Singular.RelativeSequence.relativeSingularCochains M X A) where |
| 105 | hom := AlgebraicTopology.Cohomology.Singular.RelativeSequence.relativeSingularCochainsMap M f hf |
| 106 | inv := AlgebraicTopology.Cohomology.Singular.RelativeSequence.relativeSingularCochainsMap M g hg |
| 107 | homotopyHomInvId := by |
| 108 | have h := relativeSingularCochainsHomotopy M |
| 109 | (X := Y) (Y := Y) (f := g ≫ f) (g := 𝟙 Y) (A := B) (B := B) |
| 110 | (fun _ hy => hf (hg hy)) (fun _ hy => hy) HY hHY |
| 111 | simpa only [RelativeCochainFunctoriality.Cohomology.relativeSingularCochainsMap_of_comp M g f hg hf, |
| 112 | AlgebraicTopology.Cohomology.Singular.RelativeOpenSupport.relativeSingularCochainsMap_id] using! h |
| 113 | homotopyInvHomId := by |
| 114 | have h := relativeSingularCochainsHomotopy M |
| 115 | (X := X) (Y := X) (f := f ≫ g) (g := 𝟙 X) (A := A) (B := A) |
| 116 | (fun _ hx => hg (hf hx)) (fun _ hx => hx) HX hHX |
| 117 | simpa only [RelativeCochainFunctoriality.Cohomology.relativeSingularCochainsMap_of_comp M f g hf hg, |
| 118 | AlgebraicTopology.Cohomology.Singular.RelativeOpenSupport.relativeSingularCochainsMap_id] using! h |
| 119 | |
| 120 | /-- The corresponding isomorphism on genuine relative cohomology, with |
| 121 | the pair maps and pair-preserving homotopies supplied explicitly. -/ |
| 122 | def relativeSingularCohomologyIsoOfPairHomotopyEquiv (M : ModuleCat.{0} R) |
| 123 | {X Y : TopCat.{0}} {A : Set X} {B : Set Y} |
| 124 | (f : X ⟶ Y) (g : Y ⟶ X) (hf : Set.MapsTo f A B) (hg : Set.MapsTo g B A) |
| 125 | (HX : TopCat.Homotopy (f ≫ g) (𝟙 X)) (HY : TopCat.Homotopy (g ≫ f) (𝟙 Y)) |
| 126 | (hHX : ∀ t : unitInterval, Set.MapsTo (fun x => HX (t, x)) A A) |
| 127 | (hHY : ∀ t : unitInterval, Set.MapsTo (fun y => HY (t, y)) B B) (n : ℕ) : |
| 128 | AlgebraicTopology.Cohomology.Singular.RelativeSequence.relativeSingularCohomology M Y B n ≅ AlgebraicTopology.Cohomology.Singular.RelativeSequence.relativeSingularCohomology M X A n := |
| 129 | (relativeSingularCochainsHomotopyEquiv M f g hf hg HX HY hHX hHY).toHomologyIso n |
| 130 | |
| 131 | end |
| 132 | |
| 133 | end OAI.AlgebraicGeometry.CycleClass.Geometric.RelativeCochainHomotopy.Cohomology |