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.CycleClass.Geometric.ProjectiveComponentDimension |
| 2 | import Mathlib.AlgebraicGeometry.Morphisms.IsIso |
| 3 | |
| 4 | /-! # Clopen Integral Component -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.CycleClass.Thom.ClopenIntegralComponent.Constructions |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! A genuine integral open-and-closed subscheme of a smooth projective |
| 11 | presentation is precisely one of its actual integral components. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.TopologicalSpace |
| 14 | |
| 15 | set_option backward.isDefEq.respectTransparency false |
| 16 | set_option backward.isDefEq.respectTransparency.types false |
| 17 | |
| 18 | variable (Z : Foundations.Scheme.SmoothProjective.SmoothProjectivePresentation) {T : Scheme} [IsIntegral T] |
| 19 | (i : T ⟶ Z.carrier) [IsOpenImmersion i] [IsClosedImmersion i] |
| 20 | |
| 21 | def clopenImageComponent : irreducibleComponents Z.carrier := |
| 22 | Z.supportComponent (Geometric.StratumClosure.integralImageClosure i) |
| 23 | |
| 24 | theorem clopenImageComponent_range : Set.range i = (clopenImageComponent Z i).val := by |
| 25 | have hw : (Geometric.StratumClosure.integralImageClosure i : Set Z.carrier) = Set.range i := i.isClosedEmbedding.isClosed_range.closure_eq |
| 26 | have hs : Set.range i ⊆ (clopenImageComponent Z i).val := by |
| 27 | rw [← hw] |
| 28 | exact Z.support_subset_component (Geometric.StratumClosure.integralImageClosure i) |
| 29 | have hd := subset_closure_inter_of_isPreirreducible_of_isOpen |
| 30 | (clopenImageComponent Z i).property.1.2 i.isOpenEmbedding.isOpen_range |
| 31 | (by |
| 32 | obtain ⟨t⟩ := (inferInstance : Nonempty T) |
| 33 | exact ⟨i t, hs (Set.mem_range_self t), Set.mem_range_self t⟩) |
| 34 | rw [Set.inter_eq_right.mpr hs, i.isClosedEmbedding.isClosed_range.closure_eq] at hd |
| 35 | exact Set.Subset.antisymm hs hd |
| 36 | |
| 37 | theorem clopenImageComponent_factor_range : Set.range i ⊆ |
| 38 | Set.range (Z.componentInclusion (clopenImageComponent Z i)) := by |
| 39 | rw [Z.componentInclusion_range, clopenImageComponent_range] |
| 40 | |
| 41 | def clopenComponentMap : T ⟶ (Z.componentVariety (clopenImageComponent Z i)).carrier := |
| 42 | IsOpenImmersion.lift (Z.componentInclusion (clopenImageComponent Z i)) i |
| 43 | (clopenImageComponent_factor_range Z i) |
| 44 | |
| 45 | instance clopenComponentMap_open : IsOpenImmersion (clopenComponentMap Z i) := |
| 46 | inferInstanceAs (IsOpenImmersion (IsOpenImmersion.lift |
| 47 | (Z.componentInclusion (clopenImageComponent Z i)) i (clopenImageComponent_factor_range Z i))) |
| 48 | |
| 49 | @[reassoc] |
| 50 | theorem clopenComponentMap_inclusion : |
| 51 | clopenComponentMap Z i ≫ Z.componentInclusion (clopenImageComponent Z i) = i := |
| 52 | IsOpenImmersion.lift_fac _ _ _ |
| 53 | |
| 54 | instance clopenComponentMap_isIso : IsIso (clopenComponentMap Z i) := by |
| 55 | apply (isIso_iff_isOpenImmersion_and_surjective _).mpr |
| 56 | refine ⟨inferInstance, (surjective_iff _).mpr ?_⟩ |
| 57 | intro y |
| 58 | have hy : Z.componentInclusion (clopenImageComponent Z i) y ∈ Set.range i := by |
| 59 | rw [clopenImageComponent_range, ← Z.componentInclusion_range] |
| 60 | exact Set.mem_range_self y |
| 61 | obtain ⟨t, ht⟩ := hy |
| 62 | refine ⟨t, (Z.componentInclusion (clopenImageComponent Z i)).isOpenEmbedding.injective ?_⟩ |
| 63 | change (clopenComponentMap Z i ≫ Z.componentInclusion (clopenImageComponent Z i)) t = _ |
| 64 | rw [clopenComponentMap_inclusion] |
| 65 | exact ht |
| 66 | |
| 67 | def clopenComponentIso : T ≅ (Z.componentVariety (clopenImageComponent Z i)).carrier := |
| 68 | asIso (clopenComponentMap Z i) |
| 69 | |
| 70 | @[reassoc] |
| 71 | theorem clopenComponentMap_base : |
| 72 | clopenComponentMap Z i ≫ (Z.componentVariety (clopenImageComponent Z i)).structureMap = |
| 73 | i ≫ Z.structureMap := by |
| 74 | rw [← Z.componentInclusion_over, clopenComponentMap_inclusion_assoc] |
| 75 | |
| 76 | theorem clopenImageComponent_eq_supportComponent (S : IrreducibleCloseds Z.carrier) |
| 77 | (hS : (S : Set Z.carrier) ⊆ Set.range i) : clopenImageComponent Z i = Z.supportComponent S := |
| 78 | (Z.supportComponent_eq_of_subset S (clopenImageComponent Z i) |
| 79 | (by rwa [← clopenImageComponent_range])).symm |
| 80 | |
| 81 | end |
| 82 | |
| 83 | end OAI.AlgebraicGeometry.CycleClass.Thom.ClopenIntegralComponent.Constructions |