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.IntersectionTheory.ProjectionFormula.Closed.EmbeddingCycle |
| 2 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Closed.ImmersionSupport |
| 3 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Integral.Fundamental |
| 4 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Smooth.Cycle |
| 5 | |
| 6 | /-! # Smooth Section Geometry -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Smooth.SmoothSectionGeometry |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! A closed section meets every smooth inverse-image cycle properly. |
| 13 | The only possible intersection support is the section image of the |
| 14 | original cycle support, with its exact codimension. -/ |
| 15 | |
| 16 | set_option backward.isDefEq.respectTransparency false |
| 17 | set_option backward.isDefEq.respectTransparency.types false |
| 18 | |
| 19 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.TopologicalSpace |
| 20 | |
| 21 | open OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.ProperCycleLinearity OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Closed.EmbeddingCycle OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Supports.ProperCycle |
| 22 | |
| 23 | variable {X Y : Foundations.Scheme.SmoothProjective.SmoothProjectivePresentation} [IsIntegral Y.carrier] |
| 24 | (s : Y.toOver ⟶ X.toOver) [IsClosedImmersion s.left] |
| 25 | (m n r : ℕ) [SmoothOfRelativeDimension m X.structureMap] [SmoothOfRelativeDimension n Y.structureMap] |
| 26 | (hd : n + r = m) |
| 27 | |
| 28 | omit [IsClosedImmersion s.left] in |
| 29 | theorem image_whole : ProperCycleLinearity.imageSupport s (Integral.Fundamental.whole Y) = |
| 30 | Closed.ImmersionSupport.support (show Y.carrier ⟶ X.carrier from s.left) := by |
| 31 | apply irreducibleSetEquivPoints.injective |
| 32 | exact (irreducibleSetEquivPoints.apply_symm_apply _).trans |
| 33 | ((congrArg s.left (Integral.Fundamental.whole_point Y)).trans |
| 34 | (Closed.ImmersionSupport.support_point (show Y.carrier ⟶ X.carrier from s.left)).symm) |
| 35 | |
| 36 | include hd in |
| 37 | theorem codimension : X.supportCodimension |
| 38 | (Closed.ImmersionSupport.support (show Y.carrier ⟶ X.carrier from s.left)) = r := by |
| 39 | have h := Closed.EmbeddingCycle.image_codimension s n m (Integral.Fundamental.whole Y) |
| 40 | rw [image_whole, Integral.Fundamental.whole_codimension Y n] at h |
| 41 | omega |
| 42 | |
| 43 | def support : X.DimensionCycleSupport r := |
| 44 | ⟨Closed.ImmersionSupport.support (show Y.carrier ⟶ X.carrier from s.left), codimension s m n r hd⟩ |
| 45 | |
| 46 | theorem support_range : ((support s m n r hd).val : Set X.carrier) = Set.range s.left := |
| 47 | s.left.isClosedEmbedding.isClosed_range.closure_eq |
| 48 | |
| 49 | variable (f : X.toOver ⟶ Y.toOver) (hs : s ≫ f = 𝟙 Y.toOver) |
| 50 | |
| 51 | include hs in |
| 52 | omit [IsIntegral Y.carrier] [IsClosedImmersion s.left] in |
| 53 | theorem point (y : Y.carrier) : f.left (s.left y) = y := |
| 54 | congrArg (fun g : Y.toOver ⟶ Y.toOver => g.left y) hs |
| 55 | |
| 56 | include hs in |
| 57 | theorem support_projection_isIso : |
| 58 | IsIso (CycleClass.Geometric.GenericPoint.reducedSupportι (Closed.ImmersionSupport.support (show Y.carrier ⟶ X.carrier from s.left)) ≫ f.left) := by |
| 59 | rw [Closed.ImmersionSupport.retraction_eq_inv (show Y.carrier ⟶ X.carrier from s.left) |
| 60 | f.left (congrArg Over.Hom.left hs)] |
| 61 | infer_instance |
| 62 | |
| 63 | include hd hs in |
| 64 | theorem proper (p : ℕ) (A : X.DimensionCycleSupport p) (B : Y.DimensionCycleSupport p) |
| 65 | (hA : (A.val : Set X.carrier) ⊆ f.left ⁻¹' (B.val : Set Y.carrier)) : |
| 66 | Supports.ProperCycle.pairMeetsProperly X p r A (support s m n r hd) := by |
| 67 | intro E hE |
| 68 | have hEs : (E : Set X.carrier) ⊆ Set.range s.left := fun x hx => |
| 69 | (support_range s m n r hd) ▸ (hE hx).2 |
| 70 | let W := Closed.EmbeddingCycle.preimage s E hEs |
| 71 | have hWB : W ≤ B.val := by |
| 72 | intro y hy |
| 73 | have h := hA (hE hy).1 |
| 74 | change f.left (s.left y) ∈ (B.val : Set Y.carrier) at h |
| 75 | rwa [point s f hs y] at h |
| 76 | have hdim := (Supports.codimension_strictAnti Y n).antitone hWB |
| 77 | rw [B.property] at hdim |
| 78 | have he := Closed.EmbeddingCycle.image_codimension s n m W |
| 79 | rw [Closed.EmbeddingCycle.image_preimage] at he |
| 80 | omega |
| 81 | |
| 82 | include hd hs in |
| 83 | theorem intersection_support (p : ℕ) (A : X.DimensionCycleSupport p) (B : Y.DimensionCycleSupport p) |
| 84 | (hA : (A.val : Set X.carrier) ⊆ f.left ⁻¹' (B.val : Set Y.carrier)) |
| 85 | (C : X.DimensionCycleSupport (p + r)) |
| 86 | (hC : (C.val : Set X.carrier) ⊆ (A.val : Set X.carrier) ∩ (support s m n r hd).val) : |
| 87 | C = Closed.EmbeddingCycle.supportImage s n m p (p + r) (by omega) B := by |
| 88 | have hCs : (C.val : Set X.carrier) ⊆ Set.range s.left := fun x hx => |
| 89 | (support_range s m n r hd) ▸ (hC hx).2 |
| 90 | let W := Closed.EmbeddingCycle.supportPreimage s n m p (p + r) (by omega) C hCs |
| 91 | have hWB : W.val ≤ B.val := by |
| 92 | intro y hy |
| 93 | have h := hA (hC hy).1 |
| 94 | change f.left (s.left y) ∈ (B.val : Set Y.carrier) at h |
| 95 | rwa [point s f hs y] at h |
| 96 | have he : W = B := by |
| 97 | apply Subtype.ext |
| 98 | by_contra hn |
| 99 | have h := Supports.codimension_strictAnti Y n (lt_of_le_of_ne hWB hn) |
| 100 | rw [W.property, B.property] at h |
| 101 | exact Nat.lt_irrefl p h |
| 102 | exact (Closed.EmbeddingCycle.supportImage_preimage s n m p (p + r) (by omega) C hCs).symm.trans |
| 103 | (congrArg (Closed.EmbeddingCycle.supportImage s n m p (p + r) (by omega)) he) |
| 104 | |
| 105 | end |
| 106 | |
| 107 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Smooth.SmoothSectionGeometry |