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.PrincipalSource.SupportedCoordinates |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Principal.SupportedOpenRestrictionScalar |
| 3 | |
| 4 | /-! # Supported Candidate -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.PrincipalSource.SupportedCandidate |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! A class fixed by the selected source function is the genuine |
| 11 | section-supported extension of its restriction to D(z). The equality |
| 12 | holds in the original ambient principal cohomology before forgetting |
| 13 | support or mapping to de Rham cohomology. -/ |
| 14 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry _root_.TopologicalSpace Opposite _root_.HomologicalComplex |
| 15 | set_option backward.isDefEq.respectTransparency false |
| 16 | set_option backward.isDefEq.respectTransparency.types false |
| 17 | |
| 18 | private theorem transport_section {D : Type*} [Category D] {A B C E : D} |
| 19 | (e : A ≅ C) (f : B ≅ E) (s : E ⟶ C) (r : A ⟶ B) (t : C ⟶ E) |
| 20 | (hs : s ≫ t = 𝟙 E) (hr : r ≫ f.hom = e.hom ≫ t) : |
| 21 | (f.hom ≫ s ≫ e.inv) ≫ r = 𝟙 B := by |
| 22 | apply (cancel_mono f.hom).mp |
| 23 | simp only [Category.assoc, Category.id_comp] |
| 24 | rw [hr, Iso.inv_hom_id_assoc, hs, Category.comp_id] |
| 25 | |
| 26 | private theorem after_candidate {A B C : AddCommGrpCat} |
| 27 | (s : B ⟶ A) (f : A ⟶ C) (g : B ⟶ C) (h : s ≫ f = g) |
| 28 | (x : A) (y : B) (hx : x = s y) : f x = g y := by |
| 29 | rw [hx] |
| 30 | exact ConcreteCategory.congr_hom h y |
| 31 | |
| 32 | open OAI.NumberTheory.PadicHodge.IntegralComparison.PrincipalSource.OpenRestriction OAI.NumberTheory.PadicHodge.IntegralComparison.PrincipalSource.OpenReindex |
| 33 | variable {Y X Z : Scheme.{0}} [Y.IsSeparated] (f : Y ⟶ X) (i : X ⟶ Z) |
| 34 | [IsAffineHom (f ≫ i)] (U : Z.Opens) (hU : IsAffineOpen U) |
| 35 | {g : ℕ} (t : Fin g → Γ(Z,U)) (N : Y.Modules) [N.IsQuasicoherent] |
| 36 | (z : Γ(Y,(f ≫ i) ⁻¹ᵁ U)) (O₁ O₂ : Y.Opens) |
| 37 | (H : Principal.InjectiveIntegerRows.SingleSupportedCandidate.Conditions |
| 38 | (OpenReindex.wideOpens (f ≫ i) U hU) (OpenReindex.geometricOpens (f ≫ i) U hU (Y.basicOpen z)) |
| 39 | (PrincipalPoint.Fraction.family U t) O₁ O₂) |
| 40 | |
| 41 | private abbrev family := PrincipalPoint.Fraction.family U t |
| 42 | private abbrev group (c q : ℕ) := (OpenRestriction.supportedFunctor U (family U t) c q).obj |
| 43 | (OpenFixedClass.source f i U hU N) |
| 44 | private abbrev forgetScalars : ModuleCat.{0} Γ(Z,U) ⥤ AddCommGrpCat := forget₂ _ _ |
| 45 | |
| 46 | include hU in |
| 47 | private theorem ambient_open_affine : IsAffineHom (((f ≫ i) ⁻¹ᵁ U).ι) where |
| 48 | isAffine_preimage V hV := by |
| 49 | apply (Scheme.Hom.isAffineOpen_iff_of_isOpenImmersion (((f ≫ i) ⁻¹ᵁ U).ι)).mp |
| 50 | simpa only [Scheme.Hom.image_preimage_eq_opensRange_inf, Scheme.Opens.opensRange_ι] using |
| 51 | (hU.preimage (f ≫ i)).inf hV |
| 52 | |
| 53 | include hU in |
| 54 | private theorem extension_qc : (OpenRestriction.extension ((f ≫ i) ⁻¹ᵁ U) N).IsQuasicoherent := by |
| 55 | let := ambient_open_affine f i U hU |
| 56 | exact AlgebraicGeometry.SheafCohomology.Projective.Quasicoherent.Scheme.Modules.isQuasicoherent_pushforward_of_isAffineHom (((f ≫ i) ⁻¹ᵁ U).ι) |
| 57 | |
| 58 | def candidate (c q : ℕ) : |
| 59 | (forgetScalars U).obj (group f i U hU t (OpenRestriction.extension (Y.basicOpen z) N) c q) ⟶ |
| 60 | (forgetScalars U).obj (group f i U hU t N c q) := |
| 61 | (SupportedCoordinates.localIso f i U hU (family U t) N c q (Y.basicOpen z)).hom ≫ |
| 62 | H.candidate N c q ≫ |
| 63 | (SupportedCoordinates.wideIso f i U hU (family U t) N c q).inv |
| 64 | |
| 65 | def forgetSupport (c q : ℕ) := |
| 66 | (SupportedCoordinates.wideIso f i U hU (family U t) N c q).hom ≫ |
| 67 | H.forgetSupport N c q |
| 68 | |
| 69 | def selectedExtension (c q : ℕ) := |
| 70 | (SupportedCoordinates.localIso f i U hU (family U t) N c q (Y.basicOpen z)).hom ≫ |
| 71 | H.selectedExtension N c q |
| 72 | |
| 73 | omit [Y.IsSeparated] [IsAffineHom (f ≫ i)] in |
| 74 | theorem candidate_restriction (c q : ℕ) : |
| 75 | SupportedCandidate.candidate f i U hU t N z O₁ O₂ H c q ≫ |
| 76 | (forgetScalars U).map (OpenRestriction.supportedMap f i U hU (Y.basicOpen z) N (family U t) c q) = 𝟙 _ := by |
| 77 | let eW := SupportedCoordinates.wideIso f i U hU (family U t) N c q |
| 78 | let eL := SupportedCoordinates.localIso f i U hU (family U t) N c q (Y.basicOpen z) |
| 79 | have hr := SupportedCoordinates.restriction_square |
| 80 | f i U hU (family U t) N c q (Y.basicOpen z) |
| 81 | have hs := H.candidate_restriction N c (OpenReindex.geometricInclusion (f ≫ i) U hU (Y.basicOpen z)) q |
| 82 | exact transport_section eW eL (H.candidate N c q) _ _ hs hr |
| 83 | |
| 84 | omit [Y.IsSeparated] [IsAffineHom (f ≫ i)] in |
| 85 | theorem candidate_global (c q : ℕ) : |
| 86 | SupportedCandidate.candidate f i U hU t N z O₁ O₂ H c q ≫ SupportedCandidate.forgetSupport f i U hU t N z O₁ O₂ H c q = |
| 87 | SupportedCandidate.selectedExtension f i U hU t N z O₁ O₂ H c q := by |
| 88 | dsimp only [SupportedCandidate.candidate, SupportedCandidate.forgetSupport, SupportedCandidate.selectedExtension] |
| 89 | simp only [Category.assoc, Iso.inv_hom_id_assoc] |
| 90 | rw [H.candidate_global] |
| 91 | |
| 92 | private theorem candidate_restriction_fixed (c q : ℕ) (x : group f i U hU t N c q) |
| 93 | (hx : (OpenRestriction.supportedFunctor U (family U t) c q).map |
| 94 | (OpenFixedClass.scalar f i U hU N z) x = x) : |
| 95 | (OpenRestriction.supportedFunctor U (family U t) c q).map |
| 96 | (OpenFixedClass.scalar f i U hU N z) |
| 97 | (SupportedCandidate.candidate f i U hU t N z O₁ O₂ H c q |
| 98 | (OpenRestriction.supportedMap f i U hU (Y.basicOpen z) N (family U t) c q x)) = |
| 99 | SupportedCandidate.candidate f i U hU t N z O₁ O₂ H c q |
| 100 | (OpenRestriction.supportedMap f i U hU (Y.basicOpen z) N (family U t) c q x) := by |
| 101 | let := extension_qc f i U hU N |
| 102 | let eW := SupportedCoordinates.wideIso f i U hU (family U t) N c q |
| 103 | let eL := SupportedCoordinates.localIso f i U hU (family U t) N c q (Y.basicOpen z) |
| 104 | have hx' := (SupportedCoordinates.scalar_fixed_iff |
| 105 | f i U hU (family U t) N c q z x).mpr hx |
| 106 | have hy := Principal.SupportedOpenRestrictionScalar.fixed_restriction |
| 107 | (OpenReindex.wideOpens (f ≫ i) U hU) (OpenReindex.geometricOpens (f ≫ i) U hU (Y.basicOpen z)) |
| 108 | (OpenReindex.geometricInclusion (f ≫ i) U hU (Y.basicOpen z)) (family U t) ((f ≫ i) ⁻¹ᵁ U) |
| 109 | (SupportConditions.wide_bounded (f ≫ i) U hU) |
| 110 | (SupportConditions.local_bounded (f ≫ i) U hU (Y.basicOpen z)) |
| 111 | N c q z (eW.hom x) hx' |
| 112 | have hr := ConcreteCategory.congr_hom |
| 113 | (SupportedCoordinates.restriction_square |
| 114 | f i U hU (family U t) N c q (Y.basicOpen z)) x |
| 115 | change eL.hom (OpenRestriction.supportedMap f i U hU (Y.basicOpen z) N (family U t) c q x) = |
| 116 | Principal.SupportedOpenRestrictionScalar.restriction |
| 117 | (OpenReindex.wideOpens (f ≫ i) U hU) (OpenReindex.geometricOpens (f ≫ i) U hU (Y.basicOpen z)) |
| 118 | (OpenReindex.geometricInclusion (f ≫ i) U hU (Y.basicOpen z)) (family U t) N c q (eW.hom x) at hr |
| 119 | rw [← hr] at hy |
| 120 | have hc := Principal.SupportedOpenScalar.candidate_fixed |
| 121 | (OpenReindex.wideOpens (f ≫ i) U hU) ((f ≫ i) ⁻¹ᵁ U) |
| 122 | (SupportConditions.wide_bounded (f ≫ i) U hU) (family U t) N c |
| 123 | (OpenReindex.geometricOpens (f ≫ i) U hU (Y.basicOpen z)) |
| 124 | (SupportConditions.local_bounded (f ≫ i) U hU (Y.basicOpen z)) O₁ O₂ H z q |
| 125 | (eL.hom (OpenRestriction.supportedMap f i U hU (Y.basicOpen z) N (family U t) c q x)) hy |
| 126 | apply (SupportedCoordinates.scalar_fixed_iff |
| 127 | f i U hU (family U t) N c q z _).mp |
| 128 | change Principal.SupportedOpenScalar.action (OpenReindex.wideOpens (f ≫ i) U hU) ((f ≫ i) ⁻¹ᵁ U) |
| 129 | (SupportConditions.wide_bounded (f ≫ i) U hU) (family U t) N c z q |
| 130 | (eW.hom (eW.inv _)) = eW.hom (eW.inv _) |
| 131 | simp only [Iso.inv_hom_id_apply] |
| 132 | convert hc using 1 |
| 133 | |
| 134 | theorem recovery (c n : ℕ) (x : group f i U hU t N c (n+c)) |
| 135 | (hx : (OpenRestriction.supportedFunctor U (family U t) c (n+c)).map |
| 136 | (OpenFixedClass.scalar f i U hU N z) x = x) : |
| 137 | x = SupportedCandidate.candidate f i U hU t N z O₁ O₂ H c (n+c) |
| 138 | (OpenRestriction.supportedMap f i U hU (Y.basicOpen z) N (family U t) c (n+c) x) := by |
| 139 | apply OpenFixedClass.eq_of_map_eq f i U hU N z (family U t) c n x _ hx |
| 140 | (candidate_restriction_fixed f i U hU t N z O₁ O₂ H c (n+c) x hx) |
| 141 | exact (ConcreteCategory.congr_hom (SupportedCandidate.candidate_restriction f i U hU t N z O₁ O₂ H c (n+c)) |
| 142 | (OpenRestriction.supportedMap f i U hU (Y.basicOpen z) N (family U t) c (n+c) x)).symm |
| 143 | |
| 144 | theorem global_recovery (c n : ℕ) (x : group f i U hU t N c (n+c)) |
| 145 | (hx : (OpenRestriction.supportedFunctor U (family U t) c (n+c)).map |
| 146 | (OpenFixedClass.scalar f i U hU N z) x = x) : |
| 147 | SupportedCandidate.forgetSupport f i U hU t N z O₁ O₂ H c (n+c) x = |
| 148 | SupportedCandidate.selectedExtension f i U hU t N z O₁ O₂ H c (n+c) |
| 149 | (OpenRestriction.supportedMap f i U hU (Y.basicOpen z) N (family U t) c (n+c) x) := |
| 150 | after_candidate (SupportedCandidate.candidate f i U hU t N z O₁ O₂ H c (n+c)) |
| 151 | (SupportedCandidate.forgetSupport f i U hU t N z O₁ O₂ H c (n+c)) |
| 152 | (SupportedCandidate.selectedExtension f i U hU t N z O₁ O₂ H c (n+c)) |
| 153 | (SupportedCandidate.candidate_global f i U hU t N z O₁ O₂ H c (n+c)) x |
| 154 | (OpenRestriction.supportedMap f i U hU (Y.basicOpen z) N (family U t) c (n+c) x) |
| 155 | (recovery f i U hU t N z O₁ O₂ H c n x hx) |
| 156 | |
| 157 | end |
| 158 | |
| 159 | end OAI.NumberTheory.PadicHodge.IntegralComparison.PrincipalSource.SupportedCandidate |