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 Mathlib.RingTheory.DividedPowers.Padic |
| 2 | |
| 3 | /-! # Generator Transfer -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.Crystalline.Cohomology.PD.GeneratorTransfer.PDGeneratorTransfer |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! |
| 10 | # Constructing divided powers by lifting operations on ideal generators |
| 11 | |
| 12 | To descend a divided-power structure along an injective ring map, it |
| 13 | suffices to lift positive divided powers of generators of the source |
| 14 | ideal. The addition and scaling axioms then supply lifts for the ideal. |
| 15 | -/ |
| 16 | |
| 17 | variable {A B : Type*} [CommRing A] [CommRing B] |
| 18 | (I : Ideal A) (J : Ideal B) (δ : DividedPowers J) (f : A →+* B) |
| 19 | |
| 20 | private theorem include_zero {x : A} (hx : f x ∈ J) |
| 21 | (hp : ∀ n : ℕ, n ≠ 0 → ∃ y ∈ I, f y = δ.dpow n (f x)) (n : ℕ) : |
| 22 | ∃ y : A, (n ≠ 0 → y ∈ I) ∧ f y = δ.dpow n (f x) := by |
| 23 | by_cases hn : n = 0 |
| 24 | · subst n |
| 25 | exact ⟨1, fun h => (h rfl).elim, (map_one f).trans (δ.dpow_zero hx).symm⟩ |
| 26 | · obtain ⟨y, hy, heq⟩ := hp n hn |
| 27 | exact ⟨y, fun _ => hy, heq⟩ |
| 28 | |
| 29 | variable (S : Set A) |
| 30 | (hmap : (Ideal.span S).map f ≤ J) |
| 31 | (hgen : ∀ s ∈ S, ∀ n : ℕ, n ≠ 0 → ∃ y ∈ Ideal.span S, f y = δ.dpow n (f s)) |
| 32 | |
| 33 | include hmap hgen in |
| 34 | theorem lift_positive (x : A) (hx : x ∈ Ideal.span S) (n : ℕ) (hn : n ≠ 0) : |
| 35 | ∃ y ∈ Ideal.span S, f y = δ.dpow n (f x) := by |
| 36 | induction hx using Submodule.span_induction generalizing n with |
| 37 | | mem x hx => exact hgen x hx n hn |
| 38 | | zero => exact ⟨0, (Ideal.span S).zero_mem, by rw [map_zero, δ.dpow_eval_zero hn]⟩ |
| 39 | | smul a x hx ih => |
| 40 | obtain ⟨y, hy, heq⟩ := ih n hn |
| 41 | refine ⟨a ^ n * y, (Ideal.span S).mul_mem_left _ hy, ?_⟩ |
| 42 | change f (a ^ n * y) = δ.dpow n (f (a * x)) |
| 43 | rw [map_mul, map_pow, heq, map_mul, δ.dpow_mul (hmap (Ideal.mem_map_of_mem f hx))] |
| 44 | | add x y hx hy ihx ihy => |
| 45 | classical |
| 46 | have hfx : f x ∈ J := hmap (Ideal.mem_map_of_mem f hx) |
| 47 | have hfy : f y ∈ J := hmap (Ideal.mem_map_of_mem f hy) |
| 48 | choose ux hux hufx using include_zero (Ideal.span S) J δ f hfx ihx |
| 49 | choose uy huy hufy using include_zero (Ideal.span S) J δ f hfy ihy |
| 50 | refine ⟨∑ k ∈ Finset.antidiagonal n, ux k.1 * uy k.2, ?_, ?_⟩ |
| 51 | · apply Submodule.sum_mem |
| 52 | intro k hk |
| 53 | by_cases hk₁ : k.1 = 0 |
| 54 | · have hk₂ : k.2 ≠ 0 := by |
| 55 | have hsum := Finset.mem_antidiagonal.mp hk |
| 56 | intro hz |
| 57 | exact hn (by simpa only [hk₁, hz, zero_add] using hsum.symm) |
| 58 | exact (Ideal.span S).mul_mem_left _ (huy _ hk₂) |
| 59 | · exact (Ideal.span S).mul_mem_right _ (hux _ hk₁) |
| 60 | · rw [map_sum, map_add, δ.dpow_add hfx hfy] |
| 61 | apply Finset.sum_congr rfl |
| 62 | intro k _ |
| 63 | rw [map_mul, hufx, hufy] |
| 64 | |
| 65 | include hmap hgen in |
| 66 | theorem lift_all (n : ℕ) {x : A} (hx : x ∈ Ideal.span S) : |
| 67 | ∃ y : A, ∃ (_ : n ≠ 0 → y ∈ Ideal.span S), f y = δ.dpow n (f x) := by |
| 68 | obtain ⟨y, hy, heq⟩ := include_zero (Ideal.span S) J δ f (hmap (Ideal.mem_map_of_mem f hx)) |
| 69 | (lift_positive J δ f S hmap hgen x hx) n |
| 70 | exact ⟨y, hy, heq⟩ |
| 71 | |
| 72 | /-- Divided powers on a generated ideal, constructed from generator lifts. -/ |
| 73 | def dividedPowers (hf : Function.Injective f) (heq : (Ideal.span S).map f = J) : |
| 74 | DividedPowers (Ideal.span S) := |
| 75 | DividedPowers.ofInjective (Ideal.span S) J f hf δ heq |
| 76 | (lift_all J δ f S heq.le hgen) |
| 77 | |
| 78 | theorem map_dpow (hf : Function.Injective f) (heq : (Ideal.span S).map f = J) |
| 79 | (n : ℕ) {x : A} (hx : x ∈ Ideal.span S) : |
| 80 | f ((dividedPowers J δ f S hgen hf heq).dpow n x) = δ.dpow n (f x) := by |
| 81 | classical |
| 82 | change f (if hx : x ∈ Ideal.span S then (lift_all J δ f S heq.le hgen n hx).choose else 0) = _ |
| 83 | rw [dite_eq_left hx] |
| 84 | exact (lift_all J δ f S heq.le hgen n hx).choose_spec.choose_spec |
| 85 | |
| 86 | end |
| 87 | |
| 88 | end OAI.AlgebraicGeometry.Crystalline.Cohomology.PD.GeneratorTransfer.PDGeneratorTransfer |