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.HilbertScheme.Presentations.Closed.ImmersionFamily |
| 2 | |
| 3 | /-! # Closed Ambient Map -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.Hilbert.ClosedAmbientMap |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Closed embeddings of ambient schemes carry actual native Hilbert |
| 10 | families to native Hilbert families over the same test scheme. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 13 | |
| 14 | universe u |
| 15 | variable {S : Scheme.{u}} {X Y : Over S} (j : X ⟶ Y) |
| 16 | |
| 17 | def ambientEmbedding (T : Over S) : Functor.ambient X T ⟶ Functor.ambient Y T := |
| 18 | (prod.map (𝟙 T) j).left |
| 19 | |
| 20 | theorem ambientEmbedding_projection (T : Over S) : |
| 21 | ambientEmbedding j T ≫ Functor.ambientProjection Y T = Functor.ambientProjection X T := by |
| 22 | change (prod.map (𝟙 T) j).left ≫ (prod.fst : T ⨯ Y ⟶ T).left = _ |
| 23 | rw [← Over.comp_left, prod.map_fst, Category.comp_id] |
| 24 | rfl |
| 25 | |
| 26 | theorem ambientEmbedding_isPullback (T : Over S) : |
| 27 | IsPullback (prod.snd : T ⨯ X ⟶ X).left (ambientEmbedding j T) |
| 28 | j.left (prod.snd : T ⨯ Y ⟶ Y).left := by |
| 29 | have h : IsPullback (prod.snd : T ⨯ X ⟶ X) (prod.map (𝟙 T) j) j |
| 30 | (prod.snd : T ⨯ Y ⟶ Y) := by |
| 31 | apply IsPullback.mk' (by simp only [prod.map_snd]) |
| 32 | · intro W f g hs hm |
| 33 | apply prod.hom_ext |
| 34 | · have h := congrArg (fun k => k ≫ (prod.fst : T ⨯ Y ⟶ T)) hm |
| 35 | simpa only [Category.assoc, prod.map_fst, Category.comp_id] using h |
| 36 | · exact hs |
| 37 | · intro W a b hab |
| 38 | refine ⟨prod.lift (b ≫ prod.fst) a, prod.lift_snd _ _, ?_⟩ |
| 39 | apply prod.hom_ext |
| 40 | · simp only [Category.assoc, prod.map_fst, Category.comp_id, prod.lift_fst] |
| 41 | · simpa only [Category.assoc, prod.map_snd, prod.lift_snd_assoc] using hab |
| 42 | exact h.map (Over.forget S) |
| 43 | |
| 44 | instance ambientEmbedding_isClosedImmersion [IsClosedImmersion j.left] (T : Over S) : |
| 45 | IsClosedImmersion (ambientEmbedding j T) := |
| 46 | MorphismProperty.of_isPullback (ambientEmbedding_isPullback j T) inferInstance |
| 47 | |
| 48 | theorem ambientEmbedding_familyProjection {T : Over S} (I : (Functor.ambient X T).IdealSheafData) : |
| 49 | (I.subschemeι ≫ ambientEmbedding j T) ≫ Functor.ambientProjection Y T = Functor.familyProjection X I := by |
| 50 | rw [Category.assoc, ambientEmbedding_projection] |
| 51 | rfl |
| 52 | |
| 53 | variable [IsClosedImmersion j.left] |
| 54 | |
| 55 | def pushforwardFamily {T : Over S} (F : Functor.Family X T) : Functor.Family Y T := |
| 56 | ⟨F.val.map (ambientEmbedding j T), by |
| 57 | let f := F.val.subschemeι ≫ ambientEmbedding j T |
| 58 | have he : f ≫ Functor.ambientProjection Y T = Functor.familyProjection X F.val := |
| 59 | ambientEmbedding_familyProjection j F.val |
| 60 | let : Flat (f ≫ Functor.ambientProjection Y T) := he.symm ▸ F.property.1 |
| 61 | let : IsProper (f ≫ Functor.ambientProjection Y T) := he.symm ▸ F.property.2.1 |
| 62 | let : LocallyOfFinitePresentation (f ≫ Functor.ambientProjection Y T) := he.symm ▸ F.property.2.2 |
| 63 | exact Closed.ImmersionFamily.Hilbert.closedImmersion_isFamily Y f⟩ |
| 64 | |
| 65 | end |
| 66 | |
| 67 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.Hilbert.ClosedAmbientMap |