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.NumberTheory.PadicHodge.IntegralComparison.ConormalKoszulPurity |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.OrientedPurityTargetFrame |
| 3 | import OAI.NumberTheory.PadicHodge.IntegralComparison.DeterminantAdjunction |
| 4 | import Mathlib.LinearAlgebra.TensorProduct.Basis |
| 5 | |
| 6 | /-! # Line Valued Koszul Purity -/ |
| 7 | |
| 8 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.LineValuedKoszulPurity |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! Oriented purity with its actual target line. Evaluation on the |
| 13 | conormal determinant is valued in the scalar extension of that line. -/ |
| 14 | |
| 15 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.HomologicalComplex |
| 16 | open scoped TensorProduct |
| 17 | |
| 18 | set_option backward.defeqAttrib.useBackward true |
| 19 | set_option backward.isDefEq.respectTransparency false |
| 20 | |
| 21 | universe u |
| 22 | variable (R : Type u) [CommRing R] (I : Ideal R) (N : ModuleCat.{u} R) |
| 23 | (e : N ≅ ModuleCat.of R R) |
| 24 | |
| 25 | def lineFrame : ((R ⧸ I) ⊗[R] N) ≃ₗ[R ⧸ I] (R ⧸ I) := |
| 26 | (e.toLinearEquiv.baseChange R (R ⧸ I) N R).trans |
| 27 | (TensorProduct.AlgebraTensorModule.rid R (R ⧸ I) (R ⧸ I)) |
| 28 | |
| 29 | theorem lineFrame_tmul (a : R ⧸ I) (x : N) : |
| 30 | lineFrame R I N e (a ⊗ₜ[R] x) = a * Ideal.Quotient.mk I (e.hom x) := by |
| 31 | change (TensorProduct.AlgebraTensorModule.rid R (R ⧸ I) (R ⧸ I)) |
| 32 | (a ⊗ₜ[R] e.hom x) = _ |
| 33 | simp [Algebra.smul_def, mul_comm] |
| 34 | |
| 35 | theorem lineFrame_scale (e' : N ≅ ModuleCat.of R R) (r : R) (h : e'.hom = r • e.hom) |
| 36 | (x : (R ⧸ I) ⊗[R] N) : |
| 37 | lineFrame R I N e' x = Ideal.Quotient.mk I r * lineFrame R I N e x := by |
| 38 | induction x using TensorProduct.inductionOn with |
| 39 | | add x y hx hy => simp only [map_add, hx, hy, mul_add] |
| 40 | | tmul a x => |
| 41 | rw [lineFrame_tmul, lineFrame_tmul] |
| 42 | have hx := congrArg (fun f : N ⟶ ModuleCat.of R R => f x) h |
| 43 | change e'.hom x = r * e.hom x at hx |
| 44 | rw [hx, map_mul] |
| 45 | ring |
| 46 | |
| 47 | variable {n : ℕ} (s : Fin n → R) |
| 48 | (hs : Koszul.OrientedTopCohomology.ideal R s = I) |
| 49 | (hreg : RingTheory.Sequence.IsWeaklyRegular R (List.ofFn s)) |
| 50 | (P : ProjectiveResolution (ModuleCat.of R (R ⧸ I))) |
| 51 | (b : Module.Basis (Fin n) (R ⧸ I) I.Cotangent) |
| 52 | |
| 53 | abbrev source := |
| 54 | (((((linearYoneda R (ModuleCat R)).obj N).mapHomologicalComplex |
| 55 | (ComplexShape.down ℕ).symm).obj P.complex.op).homology n) |
| 56 | |
| 57 | abbrev target := ModuleCat.of R |
| 58 | ((⋀[R ⧸ I]^n I.Cotangent) →ₗ[R ⧸ I] ((R ⧸ I) ⊗[R] N)) |
| 59 | |
| 60 | def iso : source R I N P (n := n) ≅ target R I N (n := n) := |
| 61 | LinearHomOrientedPurity.iso R I s hs hreg P N e ≪≫ |
| 62 | ((lineFrame R I N e).symm.restrictScalars R).toModuleIso ≪≫ |
| 63 | ((DeterminantAdjunction.evaluation (V := (R ⧸ I) ⊗[R] N) b).symm.restrictScalars R).toModuleIso |
| 64 | |
| 65 | theorem evaluated (x : source R I N P (n := n)) : |
| 66 | (DeterminantAdjunction.evaluation b) |
| 67 | ((iso R I N e s hs hreg P b).hom x) = |
| 68 | (lineFrame R I N e).symm |
| 69 | ((LinearHomOrientedPurity.iso R I s hs hreg P N e).hom x) := by |
| 70 | exact (DeterminantAdjunction.evaluation b).apply_symm_apply _ |
| 71 | |
| 72 | theorem normalized (x : source R I N P (n := n)) : |
| 73 | lineFrame R I N e ((DeterminantAdjunction.evaluation b) |
| 74 | ((iso R I N e s hs hreg P b).hom x)) = |
| 75 | (LinearHomOrientedPurity.iso R I s hs hreg P N e).hom x := by |
| 76 | rw [evaluated, LinearEquiv.apply_symm_apply] |
| 77 | |
| 78 | theorem independent_target_frame (e' : N ≅ ModuleCat.of R R) : |
| 79 | iso R I N e s hs hreg P b = iso R I N e' s hs hreg P b := by |
| 80 | apply Iso.ext |
| 81 | apply ModuleCat.hom_ext |
| 82 | apply LinearMap.ext |
| 83 | intro x |
| 84 | apply (DeterminantAdjunction.evaluation b).injective |
| 85 | apply (lineFrame R I N e').injective |
| 86 | rw [lineFrame_scale R I N e e' _ (OrientedPurityTargetFrame.frame_scalar R N e e'), |
| 87 | normalized, normalized] |
| 88 | exact (congrArg (fun f => f x) |
| 89 | (OrientedPurityTargetFrame.purity_frame R N e e' I s hs hreg P)).symm |
| 90 | |
| 91 | variable (hb : ∀ i, b i = I.toCotangent (ConormalKoszulPurity.conormalVectors R I s hs i)) |
| 92 | (t : Fin n → R) (ht : Koszul.OrientedTopCohomology.ideal R t = I) |
| 93 | (htreg : RingTheory.Sequence.IsWeaklyRegular R (List.ofFn t)) |
| 94 | (bt : Module.Basis (Fin n) (R ⧸ I) I.Cotangent) |
| 95 | (hbt : ∀ i, bt i = I.toCotangent (ConormalKoszulPurity.conormalVectors R I t ht i)) |
| 96 | |
| 97 | include hb hbt in |
| 98 | theorem independent_generators : iso R I N e s hs hreg P b = iso R I N e t ht htreg P bt := by |
| 99 | obtain ⟨A, hA⟩ := ConormalKoszulPurity.exists_change_matrix R I s hs t ht |
| 100 | have hd : bt.det b = Ideal.Quotient.mk I A.det := by |
| 101 | have h := Koszul.GeneratorMatrix.conormal_determinant I |
| 102 | (ConormalKoszulPurity.conormalVectors R I s hs) |
| 103 | (ConormalKoszulPurity.conormalVectors R I t ht) bt hbt A hA |
| 104 | simpa only [← hb] using h |
| 105 | apply Iso.ext |
| 106 | apply ModuleCat.hom_ext |
| 107 | apply LinearMap.ext |
| 108 | intro x |
| 109 | apply (DeterminantAdjunction.evaluation b).injective |
| 110 | apply (lineFrame R I N e).injective |
| 111 | rw [normalized] |
| 112 | have heval (φ : (⋀[R ⧸ I]^n I.Cotangent) →ₗ[R ⧸ I] ((R ⧸ I) ⊗[R] N)) : |
| 113 | DeterminantAdjunction.evaluation b φ = |
| 114 | bt.det b • DeterminantAdjunction.evaluation bt φ := by |
| 115 | rw [DeterminantAdjunction.evaluation_apply, DeterminantAdjunction.evaluation_apply, |
| 116 | DeterminantAdjunction.generator_change bt b, map_smul] |
| 117 | rw [heval, map_smul, normalized, hd] |
| 118 | exact congrArg (fun f => f x) |
| 119 | (LinearHomOrientedPurity.transition R I s hs hreg P N e t ht htreg A hA) |
| 120 | |
| 121 | end |
| 122 | |
| 123 | end OAI.NumberTheory.PadicHodge.IntegralComparison.LineValuedKoszulPurity |