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.Relative.IsomorphismTargetFibers |
| 2 | import OAI.AlgebraicGeometry.HilbertScheme.Presentations.Relative.TargetRestrictionIsomorphism |
| 3 | import OAI.AlgebraicGeometry.HilbertScheme.Presentations.Finite.FiberIsomorphismAtTarget |
| 4 | import OAI.AlgebraicGeometry.HilbertScheme.Presentations.Finite.StalkIsomorphismNeighborhood |
| 5 | import OAI.AlgebraicGeometry.HilbertScheme.Presentations.MaximalIsomorphismOpen |
| 6 | |
| 7 | /-! # Relative Fiber Isomorphism Neighborhood -/ |
| 8 | |
| 9 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.Proper.RelativeFiberIsomorphismNeighborhood |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | /-! For a proper family morphism with parameter-flat source, an |
| 14 | isomorphic coefficient fiber gives an isomorphism neighborhood at every target point in it. -/ |
| 15 | |
| 16 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 17 | |
| 18 | universe u |
| 19 | variable {X Y B : Scheme.{u}} [IsLocallyNoetherian Y] |
| 20 | variable (f : X ⟶ Y) (q : Y ⟶ B) [IsProper f] [Flat (f ≫ q)] |
| 21 | |
| 22 | theorem exists_isomorphism_neighborhood_of_relative_fiber (y : Y) |
| 23 | (h : IsIso (Relative.MorphismIsomorphismLocus.relativeMorphismBaseChange f q (B.fromSpecResidueField (q y)))) : |
| 24 | ∃ W : Y.Opens, y ∈ W ∧ IsIso (f ∣_ W) := by |
| 25 | obtain ⟨U, hy, hfin⟩ := Relative.IsomorphismTargetFibers.exists_finite_target_neighborhood_of_relative_isomorphism f q y h |
| 26 | let := hfin |
| 27 | let u : U.toScheme := ⟨y, hy⟩ |
| 28 | let q' := U.ι ≫ q |
| 29 | have hflat : Flat ((f ∣_ U) ≫ q') := by |
| 30 | change Flat ((f ∣_ U) ≫ U.ι ≫ q) |
| 31 | rw [← Category.assoc, morphismRestrict_ι, Category.assoc] |
| 32 | infer_instance |
| 33 | let := hflat |
| 34 | have hu : IsIso (Relative.MorphismIsomorphismLocus.relativeMorphismBaseChange (f ∣_ U) q' |
| 35 | (B.fromSpecResidueField (q' u))) := |
| 36 | Relative.TargetRestrictionIsomorphism.relativeMorphismBaseChange_restrict_target f q U (B.fromSpecResidueField (q y)) h |
| 37 | have hi := Finite.FiberIsomorphismAtTarget.finite_isIso_at_target_of_fiber (f ∣_ U) q' u hu |
| 38 | obtain ⟨V, hv, hV⟩ := Finite.StalkIsomorphismNeighborhood.exists_open_finite_isomorphism_of_stalk (f ∣_ U) u hi |
| 39 | refine ⟨U.ι ''ᵁ V, ⟨u, hv, rfl⟩, ?_⟩ |
| 40 | exact (MorphismProperty.arrow_mk_iso_iff (MorphismProperty.isomorphisms Scheme) |
| 41 | (morphismRestrictRestrict f U V)).mp hV |
| 42 | |
| 43 | theorem mem_maximalIsomorphismOpen_of_relative_fiber (y : Y) |
| 44 | (h : IsIso (Relative.MorphismIsomorphismLocus.relativeMorphismBaseChange f q (B.fromSpecResidueField (q y)))) : |
| 45 | y ∈ MaximalIsomorphismOpen.maximalIsomorphismOpen f := |
| 46 | (MaximalIsomorphismOpen.mem_maximalIsomorphismOpen f y).mpr |
| 47 | (exists_isomorphism_neighborhood_of_relative_fiber f q y h) |
| 48 | |
| 49 | end |
| 50 | |
| 51 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.Proper.RelativeFiberIsomorphismNeighborhood |