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.HilbertScheme.Presentations.NilpotentFreeLifting |
| 2 | import OAI.AlgebraicGeometry.HilbertScheme.Presentations.Principal.LocalizationFreeRefinement |
| 3 | import Mathlib.RingTheory.Ideal.Quotient.Operations |
| 4 | |
| 5 | /-! # Generic Freeness Nilpotent Lift -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.GenericFreenessNilpotentLift |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! A common free principal open over a nilpotent reduction lifts to a |
| 12 | common free principal open for flat modules over the original base. -/ |
| 13 | |
| 14 | open TensorProduct |
| 15 | |
| 16 | universe u v w |
| 17 | variable {R : Type u} [CommRing R] |
| 18 | variable {ι : Type v} (M : ι → Type w) |
| 19 | variable [∀ i, AddCommGroup (M i)] [∀ i, Module R (M i)] [∀ i, Module.Flat R (M i)] |
| 20 | |
| 21 | theorem generic_freeness_lift_nilpotent_reduction (N : Ideal R) (hN : IsNilpotent N) |
| 22 | (b : R ⧸ N) (hb : ¬ IsNilpotent b) |
| 23 | (hf : ∀ i, Module.Free (Localization.Away b) |
| 24 | (Localization.Away b ⊗[R ⧸ N] ((R ⧸ N) ⊗[R] M i))) : |
| 25 | ∃ s : R, ¬ IsNilpotent s ∧ ∀ i, Module.Free (Localization.Away s) |
| 26 | (Localization.Away s ⊗[R] M i) := by |
| 27 | obtain ⟨s, hs⟩ := Ideal.Quotient.mk_surjective b |
| 28 | have hs' : ¬ IsNilpotent s := by |
| 29 | intro h |
| 30 | exact hb (hs ▸ h.map (Ideal.Quotient.mk N)) |
| 31 | let Q := R ⧸ N |
| 32 | let C := Localization.Away s |
| 33 | let J := N.map (algebraMap R C) |
| 34 | let D := C ⧸ J |
| 35 | let E := Localization.Away b |
| 36 | have hJ : IsNilpotent J := by |
| 37 | obtain ⟨n, hn⟩ := hN |
| 38 | refine ⟨n, ?_⟩ |
| 39 | change (N.map (algebraMap R C)) ^ n = 0 |
| 40 | rw [← Ideal.map_pow, hn, Ideal.zero_eq_bot, Ideal.map_bot] |
| 41 | rfl |
| 42 | have hND : N ≤ RingHom.ker (algebraMap R D) := by |
| 43 | intro x hx |
| 44 | change algebraMap R D x = 0 |
| 45 | rw [IsScalarTower.algebraMap_apply R C D] |
| 46 | exact Ideal.Quotient.eq_zero_iff_mem.mpr (Ideal.mem_map_of_mem _ hx) |
| 47 | let q : Q →+* D := Ideal.Quotient.lift N (algebraMap R D) (fun x hx => hND hx) |
| 48 | have hq (x : R) : q (algebraMap R Q x) = algebraMap R D x := rfl |
| 49 | let : Algebra Q D := q.toAlgebra |
| 50 | let : IsScalarTower R Q D := IsScalarTower.of_algebraMap_eq (fun x => (hq x).symm) |
| 51 | have hu : IsUnit (q b) := by |
| 52 | rw [← hs] |
| 53 | change IsUnit (algebraMap R D s) |
| 54 | rw [IsScalarTower.algebraMap_apply R C D] |
| 55 | exact (IsLocalization.Away.algebraMap_isUnit s).map (algebraMap C D) |
| 56 | let e : E →+* D := IsLocalization.Away.lift b hu |
| 57 | have he (x : Q) : e (algebraMap Q E x) = q x := IsLocalization.Away.lift_eq b hu x |
| 58 | let : Algebra E D := e.toAlgebra |
| 59 | let : IsScalarTower Q E D := IsScalarTower.of_algebraMap_eq (fun x => (he x).symm) |
| 60 | refine ⟨s, hs', ?_⟩ |
| 61 | intro i |
| 62 | let : Module.Free E (E ⊗[Q] (Q ⊗[R] M i)) := hf i |
| 63 | let : Module.Free D (D ⊗[Q] (Q ⊗[R] M i)) := |
| 64 | Principal.LocalizationFreeRefinement.free_baseChange_along_tower (Q ⊗[R] M i) E D |
| 65 | let : Module.Free D (D ⊗[R] M i) := Module.Free.of_equiv |
| 66 | (AlgebraTensorModule.cancelBaseChange R Q D D (M i)) |
| 67 | let : Module.Free D (D ⊗[C] (C ⊗[R] M i)) := Module.Free.of_equiv |
| 68 | (AlgebraTensorModule.cancelBaseChange R C D D (M i)).symm |
| 69 | exact NilpotentFreeLifting.nilpotent_free_lifting (C ⊗[R] M i) J hJ |
| 70 | |
| 71 | end |
| 72 | |
| 73 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.GenericFreenessNilpotentLift |