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.Crystalline.Cohomology.PD.GeneratorTransfer |
| 2 | |
| 3 | /-! # Injective Transfer -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.Crystalline.Cohomology.PD.InjectiveTransfer.PDInjectiveTransfer |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! |
| 10 | # Divided-power transfer into a larger target ideal |
| 11 | |
| 12 | Lifting the target operations along an injective ring map only requires |
| 13 | the source ideal to map into the target ideal. Equality of the two ideals |
| 14 | is unnecessary. This also handles augmentation ideals whose image in a |
| 15 | rational polynomial ring is proper. |
| 16 | -/ |
| 17 | |
| 18 | variable {A B : Type*} [CommSemiring A] [CommSemiring B] |
| 19 | (I : Ideal A) (J : Ideal B) (f : A →+* B) (hf : Function.Injective f) |
| 20 | (δ : DividedPowers J) (hIJ : I.map f ≤ J) |
| 21 | (hmem : ∀ (n : ℕ) {x : A}, x ∈ I → |
| 22 | ∃ (y : A) (_ : n ≠ 0 → y ∈ I), f y = δ.dpow n (f x)) |
| 23 | |
| 24 | /-- Transfer along an injection, assuming only inclusion of the image ideal. -/ |
| 25 | def dividedPowers : DividedPowers I where |
| 26 | dpow n x := open scoped Classical in if hx : x ∈ I then (hmem n hx).choose else 0 |
| 27 | dpow_null hx := by simp [dite_eq_right hx] |
| 28 | dpow_zero {x} hx := by |
| 29 | simp only [dite_eq_left hx, ← hf.eq_iff, (hmem 0 hx).choose_spec.2, map_one] |
| 30 | exact δ.dpow_zero (hIJ (Ideal.mem_map_of_mem f hx)) |
| 31 | dpow_one hx := by |
| 32 | simpa only [dite_eq_left hx, ← hf.eq_iff, (Exists.choose_spec (_ : ∃ a, ∃ _, f a = _)).2] |
| 33 | using δ.dpow_one (hIJ (Ideal.mem_map_of_mem f hx)) |
| 34 | dpow_mem {n x} hn hx := by |
| 35 | simpa only [dite_eq_left hx] using (hmem n hx).choose_spec.1 hn |
| 36 | dpow_add {n x y} hx hy := by |
| 37 | have hxy : x + y ∈ I := I.add_mem hx hy |
| 38 | simpa only [dite_eq_left hxy, dite_eq_left hx, dite_eq_left hy, ← hf.eq_iff, map_sum, map_mul, |
| 39 | (Exists.choose_spec (_ : ∃ a, ∃ _, f a = _)).2, map_add] |
| 40 | using δ.dpow_add (hIJ (I.mem_map_of_mem f hx)) (hIJ (I.mem_map_of_mem f hy)) |
| 41 | dpow_mul {n a x} hx := by |
| 42 | have hax : a * x ∈ I := I.mul_mem_left _ hx |
| 43 | simpa only [(Exists.choose_spec (_ : ∃ a, ∃ _, f a = _)).2, dite_eq_left hax, dite_eq_left hx, |
| 44 | ← hf.eq_iff, map_mul, map_pow] using δ.dpow_mul (hIJ (I.mem_map_of_mem f hx)) |
| 45 | mul_dpow hx := by |
| 46 | simpa only [dite_eq_left hx, ← hf.eq_iff, (hmem _ hx).choose_spec.2, map_mul, map_natCast] |
| 47 | using δ.mul_dpow (hIJ (I.mem_map_of_mem f hx)) |
| 48 | dpow_comp {n m x} hm hx := by |
| 49 | simp only [dite_eq_left hx, ← hf.eq_iff, map_mul, map_natCast] |
| 50 | rw [dite_eq_left] |
| 51 | · simp only [(Exists.choose_spec (_ : ∃ a, ∃ _, f a = _)).2] |
| 52 | exact δ.dpow_comp hm (hIJ (I.mem_map_of_mem f hx)) |
| 53 | · rw [dite_eq_left hx] |
| 54 | exact (hmem m hx).choose_spec.1 hm |
| 55 | |
| 56 | theorem map_dpow (n : ℕ) {x : A} (hx : x ∈ I) : |
| 57 | f ((dividedPowers I J f hf δ hIJ hmem).dpow n x) = δ.dpow n (f x) := by |
| 58 | classical |
| 59 | change f (if hx : x ∈ I then (hmem n hx).choose else 0) = _ |
| 60 | rw [dite_eq_left hx] |
| 61 | exact (hmem n hx).choose_spec.2 |
| 62 | |
| 63 | variable {A B : Type*} [CommRing A] [CommRing B] |
| 64 | (J : Ideal B) (δ : DividedPowers J) (f : A →+* B) (S : Set A) |
| 65 | (hmap : (Ideal.span S).map f ≤ J) |
| 66 | (hgen : ∀ s ∈ S, ∀ n : ℕ, n ≠ 0 → |
| 67 | ∃ y ∈ Ideal.span S, f y = δ.dpow n (f s)) |
| 68 | (hf : Function.Injective f) |
| 69 | |
| 70 | def fromGenerators : DividedPowers (Ideal.span S) := |
| 71 | dividedPowers (Ideal.span S) J f hf δ hmap |
| 72 | (GeneratorTransfer.PDGeneratorTransfer.lift_all J δ f S hmap hgen) |
| 73 | |
| 74 | theorem fromGenerators_map_dpow (n : ℕ) {x : A} (hx : x ∈ Ideal.span S) : |
| 75 | f ((fromGenerators J δ f S hmap hgen hf).dpow n x) = δ.dpow n (f x) := |
| 76 | map_dpow (Ideal.span S) J f hf δ hmap |
| 77 | (GeneratorTransfer.PDGeneratorTransfer.lift_all J δ f S hmap hgen) n hx |
| 78 | |
| 79 | end |
| 80 | |
| 81 | end OAI.AlgebraicGeometry.Crystalline.Cohomology.PD.InjectiveTransfer.PDInjectiveTransfer |