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 Mathlib.AlgebraicGeometry.OpenImmersion |
| 2 | import Mathlib.AlgebraicGeometry.Pullbacks |
| 3 | |
| 4 | /-! # Product Charts -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Open.ProductCharts |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Products of open chart maps and their exact images in a fiber product. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 13 | |
| 14 | universe u |
| 15 | |
| 16 | variable {S X Y U V : Scheme.{u}} (f : X ⟶ S) (g : Y ⟶ S) |
| 17 | (a : U ⟶ X) (b : V ⟶ Y) [IsOpenImmersion a] [IsOpenImmersion b] |
| 18 | |
| 19 | def openProductChartMap : pullback (a ≫ f) (b ≫ g) ⟶ pullback f g := |
| 20 | pullback.map _ _ _ _ a b (𝟙 S) (Category.comp_id _) (Category.comp_id _) |
| 21 | |
| 22 | instance openProductChartMap_isOpenImmersion : IsOpenImmersion (openProductChartMap f g a b) := |
| 23 | MorphismProperty.pullbackMap (P := @IsOpenImmersion) inferInstance inferInstance rfl rfl |
| 24 | |
| 25 | omit [IsOpenImmersion a] [IsOpenImmersion b] in |
| 26 | theorem openProductChartMap_fst : |
| 27 | openProductChartMap f g a b ≫ pullback.fst f g = pullback.fst _ _ ≫ a := pullback.lift_fst _ _ _ |
| 28 | |
| 29 | omit [IsOpenImmersion a] [IsOpenImmersion b] in |
| 30 | theorem openProductChartMap_snd : |
| 31 | openProductChartMap f g a b ≫ pullback.snd f g = pullback.snd _ _ ≫ b := pullback.lift_snd _ _ _ |
| 32 | |
| 33 | def openProductChartOpen : (pullback f g).Opens := |
| 34 | (pullback.fst f g ⁻¹ᵁ a.opensRange) ⊓ (pullback.snd f g ⁻¹ᵁ b.opensRange) |
| 35 | |
| 36 | def openProductChartOpenLeft : (openProductChartOpen f g a b).toScheme ⟶ U := |
| 37 | IsOpenImmersion.lift a ((openProductChartOpen f g a b).ι ≫ pullback.fst f g) (by |
| 38 | rintro _ ⟨x, rfl⟩ |
| 39 | exact x.property.1) |
| 40 | |
| 41 | def openProductChartOpenRight : (openProductChartOpen f g a b).toScheme ⟶ V := |
| 42 | IsOpenImmersion.lift b ((openProductChartOpen f g a b).ι ≫ pullback.snd f g) (by |
| 43 | rintro _ ⟨x, rfl⟩ |
| 44 | exact x.property.2) |
| 45 | |
| 46 | theorem openProductChartOpenLeft_fac : |
| 47 | openProductChartOpenLeft f g a b ≫ a = (openProductChartOpen f g a b).ι ≫ pullback.fst f g := |
| 48 | IsOpenImmersion.lift_fac _ _ _ |
| 49 | |
| 50 | theorem openProductChartOpenRight_fac : |
| 51 | openProductChartOpenRight f g a b ≫ b = (openProductChartOpen f g a b).ι ≫ pullback.snd f g := |
| 52 | IsOpenImmersion.lift_fac _ _ _ |
| 53 | |
| 54 | def openProductChartOpenLift : (openProductChartOpen f g a b).toScheme ⟶ pullback (a ≫ f) (b ≫ g) := |
| 55 | pullback.lift (openProductChartOpenLeft f g a b) (openProductChartOpenRight f g a b) (by |
| 56 | rw [← Category.assoc, openProductChartOpenLeft_fac, Category.assoc, pullback.condition, |
| 57 | ← Category.assoc, ← openProductChartOpenRight_fac, Category.assoc]) |
| 58 | |
| 59 | theorem openProductChartOpenLift_fac : |
| 60 | openProductChartOpenLift f g a b ≫ openProductChartMap f g a b = (openProductChartOpen f g a b).ι := by |
| 61 | apply pullback.hom_ext |
| 62 | · simp only [Category.assoc, openProductChartMap_fst, openProductChartOpenLift, |
| 63 | pullback.lift_fst_assoc, openProductChartOpenLeft_fac] |
| 64 | · simp only [Category.assoc, openProductChartMap_snd, openProductChartOpenLift, |
| 65 | pullback.lift_snd_assoc, openProductChartOpenRight_fac] |
| 66 | |
| 67 | theorem openProductChartMap_opensRange : |
| 68 | (openProductChartMap f g a b).opensRange = openProductChartOpen f g a b := by |
| 69 | ext x |
| 70 | constructor |
| 71 | · rintro ⟨z, rfl⟩ |
| 72 | constructor |
| 73 | · refine ⟨pullback.fst (a ≫ f) (b ≫ g) z, ?_⟩ |
| 74 | exact (congrArg (fun k : pullback (a ≫ f) (b ≫ g) ⟶ X => k z) |
| 75 | (openProductChartMap_fst f g a b)).symm |
| 76 | · refine ⟨pullback.snd (a ≫ f) (b ≫ g) z, ?_⟩ |
| 77 | exact (congrArg (fun k : pullback (a ≫ f) (b ≫ g) ⟶ Y => k z) |
| 78 | (openProductChartMap_snd f g a b)).symm |
| 79 | · intro hx |
| 80 | refine ⟨openProductChartOpenLift f g a b ⟨x, hx⟩, ?_⟩ |
| 81 | exact congrArg (fun k : (openProductChartOpen f g a b).toScheme ⟶ pullback f g => k ⟨x, hx⟩) |
| 82 | (openProductChartOpenLift_fac f g a b) |
| 83 | |
| 84 | end |
| 85 | |
| 86 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Open.ProductCharts |