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.Clopen.CycleMaps |
| 2 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Clopen.Iff |
| 3 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Supports |
| 4 | |
| 5 | /-! # Pair Cycle -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Clopen.PairCycle |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Proper meeting and the finite native pair cycle commute with open |
| 12 | and closed restriction, in all codimensions. -/ |
| 13 | |
| 14 | set_option backward.isDefEq.respectTransparency false |
| 15 | |
| 16 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.TopologicalSpace |
| 17 | |
| 18 | open OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.ProperCycleLinearity OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Clopen.Cycle OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Clopen.CycleMaps OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Supports.ProperCycle |
| 19 | |
| 20 | variable {V X : Foundations.Scheme.SmoothProjective.SmoothProjectivePresentation} (i : V.toOver ⟶ X.toOver) |
| 21 | [IsOpenImmersion i.left] (m : ℕ) |
| 22 | [SmoothOfRelativeDimension m V.structureMap] [SmoothOfRelativeDimension m X.structureMap] |
| 23 | |
| 24 | theorem pair_proper_image (p q : ℕ) (A : V.DimensionCycleSupport p) (B : V.DimensionCycleSupport q) : |
| 25 | Supports.ProperCycle.pairMeetsProperly X p q (Cycle.supportImage i m p A) (Cycle.supportImage i m q B) ↔ |
| 26 | Supports.ProperCycle.pairMeetsProperly V p q A B := by |
| 27 | constructor |
| 28 | · intro h D hD |
| 29 | have hh := h (ProperCycleLinearity.imageSupport i D) (by |
| 30 | change (ProperCycleLinearity.imageSupport i D : Set X.carrier) ⊆ |
| 31 | (ProperCycleLinearity.imageSupport i A.val : Set X.carrier) ∩ ProperCycleLinearity.imageSupport i B.val |
| 32 | rw [ProperCycleLinearity.imageSupport_eq_image, ProperCycleLinearity.imageSupport_eq_image, ProperCycleLinearity.imageSupport_eq_image] |
| 33 | rintro _ ⟨x, hx, rfl⟩ |
| 34 | exact ⟨⟨x, (hD hx).1, rfl⟩, ⟨x, (hD hx).2, rfl⟩⟩) |
| 35 | rwa [Cycle.image_codimension i m] at hh |
| 36 | · intro h D hD |
| 37 | have hd : (D : Set X.carrier) ⊆ Set.range i.left := by |
| 38 | intro x hx |
| 39 | have hxA := (hD hx).1 |
| 40 | change x ∈ (ProperCycleLinearity.imageSupport i A.val : Set X.carrier) at hxA |
| 41 | rw [ProperCycleLinearity.imageSupport_eq_image] at hxA |
| 42 | obtain ⟨y, _, rfl⟩ := hxA |
| 43 | exact Set.mem_range_self y |
| 44 | let E := Cycle.preimage i D hd |
| 45 | have he : (E : Set V.carrier) ⊆ (A.val : Set V.carrier) ∩ B.val := by |
| 46 | intro y hy |
| 47 | have hyD : i.left y ∈ (D : Set X.carrier) := by |
| 48 | change y ∈ (Cycle.preimage i D hd : Set V.carrier) at hy |
| 49 | rwa [Cycle.preimage_coe i D hd] at hy |
| 50 | have hh := hD hyD |
| 51 | change i.left y ∈ (ProperCycleLinearity.imageSupport i A.val : Set X.carrier) ∩ ProperCycleLinearity.imageSupport i B.val at hh |
| 52 | rw [ProperCycleLinearity.imageSupport_eq_image, ProperCycleLinearity.imageSupport_eq_image] at hh |
| 53 | obtain ⟨a, ha, hay⟩ := hh.1 |
| 54 | obtain ⟨b, hb, hby⟩ := hh.2 |
| 55 | exact ⟨i.left.isOpenEmbedding.injective hay ▸ ha, i.left.isOpenEmbedding.injective hby ▸ hb⟩ |
| 56 | have hh := h E he |
| 57 | rw [← Cycle.image_codimension i m, Cycle.image_preimage] at hh |
| 58 | exact hh |
| 59 | |
| 60 | theorem pairCycle_restrict_image (p q : ℕ) (A : V.DimensionCycleSupport p) (B : V.DimensionCycleSupport q) : |
| 61 | CycleMaps.restrict i m (p + q) (Supports.ProperCycle.pairCycle X m p q (Cycle.supportImage i m p A) (Cycle.supportImage i m q B)) = |
| 62 | Supports.ProperCycle.pairCycle V m p q A B := by |
| 63 | by_cases h : Supports.ProperCycle.pairMeetsProperly V p q A B |
| 64 | · ext D |
| 65 | rw [CycleMaps.restrict_apply, Supports.ProperCycle.pairCycle_apply X m p q _ _ ((pair_proper_image i m p q A B).mpr h), |
| 66 | Supports.ProperCycle.pairCycle_apply V m p q A B h] |
| 67 | exact (Iff.multiplicity_image i m A.val B.val D.val).symm |
| 68 | · have hn := fun hh => h ((pair_proper_image i m p q A B).mp hh) |
| 69 | rw [Supports.ProperCycle.pairCycle, dite_eq_right hn, map_zero, Supports.ProperCycle.pairCycle, dite_eq_right h] |
| 70 | |
| 71 | variable [IsClosedImmersion i.left] |
| 72 | |
| 73 | theorem pairCycle_restrict_outside_left (p q : ℕ) (A : X.DimensionCycleSupport p) (B : X.DimensionCycleSupport q) |
| 74 | (hA : ¬ (A.val : Set X.carrier) ⊆ Set.range i.left) : CycleMaps.restrict i m (p + q) (Supports.ProperCycle.pairCycle X m p q A B) = 0 := by |
| 75 | by_cases hp : Supports.ProperCycle.pairMeetsProperly X p q A B |
| 76 | · ext D |
| 77 | rw [CycleMaps.restrict_apply, Supports.ProperCycle.pairCycle_apply X m p q A B hp, Finsupp.zero_apply, CycleClass.Thom.IntersectionGeometry.intersectionMultiplicity] |
| 78 | apply dite_eq_right |
| 79 | intro hx |
| 80 | exact hA (Cycle.subset_range_of_mem i A.val _ hx.1 ⟨CycleClass.Thom.IntersectionGeometry.supportPoint D.val, (Cycle.image_point i D.val).symm⟩) |
| 81 | · rw [Supports.ProperCycle.pairCycle, dite_eq_right hp, map_zero] |
| 82 | |
| 83 | theorem pairCycle_restrict_outside_right (p q : ℕ) (A : X.DimensionCycleSupport p) (B : X.DimensionCycleSupport q) |
| 84 | (hB : ¬ (B.val : Set X.carrier) ⊆ Set.range i.left) : CycleMaps.restrict i m (p + q) (Supports.ProperCycle.pairCycle X m p q A B) = 0 := by |
| 85 | by_cases hp : Supports.ProperCycle.pairMeetsProperly X p q A B |
| 86 | · ext D |
| 87 | rw [CycleMaps.restrict_apply, Supports.ProperCycle.pairCycle_apply X m p q A B hp, Finsupp.zero_apply, CycleClass.Thom.IntersectionGeometry.intersectionMultiplicity] |
| 88 | apply dite_eq_right |
| 89 | intro hx |
| 90 | exact hB (Cycle.subset_range_of_mem i B.val _ hx.2 ⟨CycleClass.Thom.IntersectionGeometry.supportPoint D.val, (Cycle.image_point i D.val).symm⟩) |
| 91 | · rw [Supports.ProperCycle.pairCycle, dite_eq_right hp, map_zero] |
| 92 | |
| 93 | end |
| 94 | |
| 95 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Clopen.PairCycle |