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.FormalGeometry.Completion.Proper.ProductRigidity |
| 2 | import OAI.AlgebraicGeometry.FormalGeometry.Completion.Proper.ProperProductOpenGeometry |
| 3 | import Mathlib.AlgebraicGeometry.Morphisms.Separated |
| 4 | |
| 5 | /-! # Product Constancy -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.FormalGeometry.Completion.Proper.ProductConstancy.Construction |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! |
| 12 | # Completion: the locus of fibers where a product map is constant |
| 13 | |
| 14 | This locus is defined from the actual scheme equalizer. Its membership |
| 15 | criterion therefore retains scheme-theoretic agreement, rather than only |
| 16 | equality of the underlying point maps. |
| 17 | -/ |
| 18 | |
| 19 | open _root_.CategoryTheory Limits _root_.AlgebraicGeometry |
| 20 | |
| 21 | set_option backward.defeqAttrib.useBackward true |
| 22 | set_option backward.isDefEq.respectTransparency false |
| 23 | |
| 24 | universe u |
| 25 | |
| 26 | variable {S : Scheme.{u}} |
| 27 | |
| 28 | /-- The actual fiber product as an object over the ground scheme. -/ |
| 29 | def properProductOver (A B : Over S) : Over S := |
| 30 | Over.mk (pullback.snd A.hom B.hom ≫ B.hom) |
| 31 | |
| 32 | /-- Projection to the second factor over the ground scheme. -/ |
| 33 | def properProductProjectionOver (A B : Over S) : properProductOver A B ⟶ B := |
| 34 | Over.homMk (pullback.snd A.hom B.hom) rfl |
| 35 | |
| 36 | /-- The product with an open in the second factor, over the ground scheme. -/ |
| 37 | def properProductOpenOver (A B : Over S) (U : B.left.Opens) : Over S := |
| 38 | Over.mk (pullback.snd A.hom (U.ι ≫ B.hom) ≫ U.ι ≫ B.hom) |
| 39 | |
| 40 | /-- The open-product inclusion as a map over the ground scheme. -/ |
| 41 | def properProductOpenMapOver (A B : Over S) (U : B.left.Opens) : |
| 42 | properProductOpenOver A B U ⟶ properProductOver A B := |
| 43 | Over.homMk (ProductOpen.Construction.properProductOpenMap A.hom B.hom U) (by |
| 44 | change ProductOpen.Construction.properProductOpenMap A.hom B.hom U ≫ pullback.snd A.hom B.hom ≫ B.hom = _ |
| 45 | simp [properProductOpenOver]) |
| 46 | |
| 47 | variable {K : Type u} [Field K] (A B Z : Over (Spec (CommRingCat.of K))) |
| 48 | (e : Spec (CommRingCat.of K) ⟶ A.left) (he : e ≫ A.hom = 𝟙 _) |
| 49 | |
| 50 | /-- The section of the second projection as a map over the field. -/ |
| 51 | def properProductSectionOver : B ⟶ properProductOver A B := |
| 52 | Over.homMk (AffineBaseChange.Construction.properProductSection A.hom B.hom e he) (by |
| 53 | simp [AffineBaseChange.Construction.properProductSection, properProductOver]) |
| 54 | |
| 55 | /-- The map obtained by evaluating on the section and projecting back to the second factor. -/ |
| 56 | def properProductConstantMap (f : properProductOver A B ⟶ Z) : properProductOver A B ⟶ Z := |
| 57 | properProductProjectionOver A B ≫ properProductSectionOver A B e he ≫ f |
| 58 | |
| 59 | /-- Fibers lying entirely in the actual equalizer of the map and its section-wise constant map. -/ |
| 60 | def properProductConstancySet (f : properProductOver A B ⟶ Z) : Set B.left := |
| 61 | (pullback.snd A.hom B.hom '' |
| 62 | (Set.range (equalizer.ι f (properProductConstantMap A B Z e he f)).left)ᶜ)ᶜ |
| 63 | |
| 64 | theorem mem_properProductConstancySet (f : properProductOver A B ⟶ Z) (y : B.left) : |
| 65 | y ∈ properProductConstancySet A B Z e he f ↔ |
| 66 | ∀ t : (pullback A.hom B.hom : Scheme.{u}), pullback.snd A.hom B.hom t = y → |
| 67 | t ∈ Set.range (equalizer.ι f (properProductConstantMap A B Z e he f)).left := by |
| 68 | constructor |
| 69 | · intro h t ht |
| 70 | by_contra hn |
| 71 | exact h ⟨t, hn, ht⟩ |
| 72 | · intro h |
| 73 | rintro ⟨t, hn, ht⟩ |
| 74 | exact hn (h t ht) |
| 75 | |
| 76 | /-- Membership forces the map on that fiber to have the value specified by the section. -/ |
| 77 | theorem properProductConstancySet_value (f : properProductOver A B ⟶ Z) |
| 78 | (y : B.left) (hy : y ∈ properProductConstancySet A B Z e he f) |
| 79 | (t : (pullback A.hom B.hom : Scheme.{u})) (ht : pullback.snd A.hom B.hom t = y) : |
| 80 | f.left t = f.left (AffineBaseChange.Construction.properProductSection A.hom B.hom e he y) := by |
| 81 | obtain ⟨w, hw⟩ := (mem_properProductConstancySet A B Z e he f y).mp hy t ht |
| 82 | have h := congrArg (fun k : equalizer f (properProductConstantMap A B Z e he f) ⟶ Z => |
| 83 | k.left w) (equalizer.condition f (properProductConstantMap A B Z e he f)) |
| 84 | change f.left ((equalizer.ι f (properProductConstantMap A B Z e he f)).left w) = |
| 85 | f.left (AffineBaseChange.Construction.properProductSection A.hom B.hom e he |
| 86 | (pullback.snd A.hom B.hom ((equalizer.ι f (properProductConstantMap A B Z e he f)).left w))) at h |
| 87 | rwa [hw, ht] at h |
| 88 | |
| 89 | /-- A local factorization puts every fiber over that base open in the constancy locus. -/ |
| 90 | theorem properProductConstancySet_of_open_factorization |
| 91 | (f : properProductOver A B ⟶ Z) (U : B.left.Opens) |
| 92 | (h : ProductOpen.Construction.properProductOpenMap A.hom B.hom U ≫ f.left = |
| 93 | pullback.snd A.hom (U.ι ≫ B.hom) ≫ U.ι ≫ |
| 94 | AffineBaseChange.Construction.properProductSection A.hom B.hom e he ≫ f.left) : |
| 95 | (U : Set B.left) ⊆ properProductConstancySet A B Z e he f := by |
| 96 | have h' : properProductOpenMapOver A B U ≫ f = |
| 97 | properProductOpenMapOver A B U ≫ properProductConstantMap A B Z e he f := by |
| 98 | apply Over.OverMorphism.ext |
| 99 | change ProductOpen.Construction.properProductOpenMap A.hom B.hom U ≫ f.left = |
| 100 | ProductOpen.Construction.properProductOpenMap A.hom B.hom U ≫ pullback.snd A.hom B.hom ≫ |
| 101 | AffineBaseChange.Construction.properProductSection A.hom B.hom e he ≫ f.left |
| 102 | simpa only [ProductOpen.Construction.properProductOpenMap_snd_assoc, Category.assoc] using h |
| 103 | intro y hy |
| 104 | apply (mem_properProductConstancySet A B Z e he f y).mpr |
| 105 | intro t ht |
| 106 | have ht' : t ∈ Set.range (ProductOpen.Construction.properProductOpenMap A.hom B.hom U) := by |
| 107 | rw [ProperProductOpenGeometry.Construction.properProductOpen_range] |
| 108 | change pullback.snd A.hom B.hom t ∈ U |
| 109 | rw [ht] |
| 110 | exact hy |
| 111 | obtain ⟨w, rfl⟩ := ht' |
| 112 | refine ⟨(equalizer.lift (properProductOpenMapOver A B U) h').left w, ?_⟩ |
| 113 | exact congrArg (fun k : properProductOpenOver A B U ⟶ properProductOver A B => k.left w) |
| 114 | (equalizer.lift_ι (properProductOpenMapOver A B U) h') |
| 115 | |
| 116 | end |
| 117 | |
| 118 | end OAI.AlgebraicGeometry.FormalGeometry.Completion.Proper.ProductConstancy.Construction |