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.FilteredDivisorEuler |
| 2 | |
| 3 | /-! # Multiplicity Sum -/ |
| 4 | |
| 5 | namespace OAI |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | namespace AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Finite.MultiplicitySum |
| 10 | |
| 11 | /-! Repeated fixed filtration factors group into a finite weighted |
| 12 | sum using their actual generic lengths in the selected codimension. -/ |
| 13 | |
| 14 | open scoped Classical |
| 15 | |
| 16 | theorem reindex {α : Type*} (k : ℕ) (v : Fin k → α) (P : α → Prop) |
| 17 | (w : α → ℕ∞) (hcount : ∀ a, P a → w a = (Finset.univ.filter (fun i => v i = a)).card) |
| 18 | (e : α → ℚ) : |
| 19 | (∑ i ∈ Finset.univ.filter (fun i => P (v i)), e (v i)) = |
| 20 | ∑ a ∈ (Finset.univ.image v).filter P, (w a).toNat * e a := by |
| 21 | let S := Finset.univ.filter (fun i => P (v i)) |
| 22 | let F := (Finset.univ.image v).filter P |
| 23 | have hmap : ∀ i ∈ S, v i ∈ F := by |
| 24 | intro i hi |
| 25 | exact Finset.mem_filter.mpr ⟨Finset.mem_image.mpr ⟨i, Finset.mem_univ _, rfl⟩, |
| 26 | (Finset.mem_filter.mp hi).2⟩ |
| 27 | have hs := Finset.sum_fiberwise_of_maps_to' (s := S) (t := F) (g := v) hmap e |
| 28 | rw [← hs] |
| 29 | apply Finset.sum_congr rfl |
| 30 | intro a ha |
| 31 | have hPa := (Finset.mem_filter.mp ha).2 |
| 32 | have hf : S.filter (fun i => v i = a) = Finset.univ.filter (fun i => v i = a) := by |
| 33 | ext i |
| 34 | simp only [S, Finset.mem_filter, Finset.mem_univ, true_and] |
| 35 | constructor |
| 36 | · exact fun h => h.2 |
| 37 | · intro hi |
| 38 | exact ⟨hi ▸ hPa, hi⟩ |
| 39 | rw [hf, Finset.sum_const, hcount a hPa, ENat.toNat_natCast, nsmul_eq_mul] |
| 40 | |
| 41 | end AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Finite.MultiplicitySum |
| 42 | |
| 43 | namespace AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Finite.MultiplicitySum.LocalCycle |
| 44 | |
| 45 | /-! A finite cycle pairing can be reindexed by an injective chart |
| 46 | support list whenever every omitted contribution is zero. -/ |
| 47 | |
| 48 | open scoped Classical |
| 49 | |
| 50 | theorem reindex {α β : Type*} (b : α →₀ ℚ) (e : α → ℚ) |
| 51 | (T : Finset β) (v : β → α) (hv : Function.Injective v) (w : β → ℚ) |
| 52 | (hcoeff : ∀ z ∈ T, b (v z) = w z) |
| 53 | (hout : ∀ A, A ∉ T.image v → b A * e A = 0) : |
| 54 | b.sum (fun A r => r * e A) = ∑ z ∈ T, w z * e (v z) := by |
| 55 | have hleft : b.sum (fun A r => r * e A) = |
| 56 | ∑ A ∈ b.support ∪ T.image v, b A * e A := by |
| 57 | apply Finset.sum_subset Finset.subset_union_left |
| 58 | intro A _ hA |
| 59 | rw [Finsupp.notMem_support_iff.mp hA] |
| 60 | exact zero_mul _ |
| 61 | have hright : (∑ A ∈ T.image v, b A * e A) = |
| 62 | ∑ A ∈ b.support ∪ T.image v, b A * e A := by |
| 63 | apply Finset.sum_subset Finset.subset_union_right |
| 64 | intro A _ hA |
| 65 | exact hout A hA |
| 66 | rw [hleft, ← hright, Finset.sum_image (fun _ _ _ _ h => hv h)] |
| 67 | apply Finset.sum_congr rfl |
| 68 | intro z hz |
| 69 | rw [hcoeff z hz] |
| 70 | |
| 71 | end AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Finite.MultiplicitySum.LocalCycle |
| 72 | |
| 73 | namespace AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Finite.MultiplicitySum.Difference |
| 74 | |
| 75 | /-! Two finite weighted sums can be combined over their union |
| 76 | when each weight vanishes on the other set outside its own support. -/ |
| 77 | |
| 78 | open scoped Classical |
| 79 | |
| 80 | theorem split {α : Type*} (F G : Finset α) (a b e : α → ℚ) |
| 81 | (ha : ∀ z ∈ G, z ∉ F → a z = 0) (hb : ∀ z ∈ F, z ∉ G → b z = 0) : |
| 82 | (∑ z ∈ F ∪ G, (a z - b z) * e z) = |
| 83 | (∑ z ∈ F, a z * e z) - ∑ z ∈ G, b z * e z := by |
| 84 | have h₁ : (∑ z ∈ F, a z * e z) = ∑ z ∈ F ∪ G, a z * e z := by |
| 85 | apply Finset.sum_subset Finset.subset_union_left |
| 86 | intro z hz hnot |
| 87 | have hzG : z ∈ G := (Finset.mem_union.mp hz).resolve_left hnot |
| 88 | rw [ha z hzG hnot, zero_mul] |
| 89 | have h₂ : (∑ z ∈ G, b z * e z) = ∑ z ∈ F ∪ G, b z * e z := by |
| 90 | apply Finset.sum_subset Finset.subset_union_right |
| 91 | intro z hz hnot |
| 92 | have hzF : z ∈ F := (Finset.mem_union.mp hz).resolve_right hnot |
| 93 | rw [hb z hzF hnot, zero_mul] |
| 94 | simp_rw [sub_mul] |
| 95 | rw [Finset.sum_sub_distrib, ← h₁, ← h₂] |
| 96 | |
| 97 | end AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Finite.MultiplicitySum.Difference |
| 98 | |
| 99 | end |
| 100 | |
| 101 | end OAI |