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.PeriodInvariants.Nontriviality |
| 2 | |
| 3 | /-! # Completion Maps -/ |
| 4 | |
| 5 | namespace OAI.NumberTheory.PadicHodge.PeriodInvariants.CompletionMaps |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! |
| 10 | # Functorial maps of principal adic completions |
| 11 | |
| 12 | These maps are defined directly on the compatible quotient rings, including |
| 13 | maps between different coefficient rings. |
| 14 | -/ |
| 15 | |
| 16 | open OAI.NumberTheory.PadicHodge.PeriodInvariants.PeriodRing OAI.NumberTheory.PadicHodge.PeriodInvariants.Nontriviality |
| 17 | |
| 18 | variable (p : ℕ) {R S T : Type*} [CommRing R] [CommRing S] [CommRing T] |
| 19 | |
| 20 | def pAdicBetween (f : R →+* S) : |
| 21 | AdicCompletion (Ideal.span {(p : R)}) R →+* |
| 22 | AdicCompletion (Ideal.span {(p : S)}) S := |
| 23 | AdicCompletion.liftRingHom (Ideal.span {(p : S)}) |
| 24 | (Nontriviality.completionLiftComponent p f) (Nontriviality.completionLiftComponent_compatible p f) |
| 25 | |
| 26 | @[simp] |
| 27 | theorem pAdicBetween_eval (f : R →+* S) |
| 28 | (x : AdicCompletion (Ideal.span {(p : R)}) R) (n : ℕ) : |
| 29 | AdicCompletion.evalₐ (Ideal.span {(p : S)}) n (pAdicBetween p f x) = |
| 30 | Nontriviality.pPowerMapBetween p f n (AdicCompletion.evalₐ (Ideal.span {(p : R)}) n x) := |
| 31 | AdicCompletion.evalₐ_liftRingHom (Ideal.span {(p : S)}) |
| 32 | (Nontriviality.completionLiftComponent p f) (Nontriviality.completionLiftComponent_compatible p f) n x |
| 33 | |
| 34 | @[simp] |
| 35 | theorem pAdicBetween_of (f : R →+* S) (x : R) : |
| 36 | pAdicBetween p f (AdicCompletion.of (Ideal.span {(p : R)}) R x) = |
| 37 | AdicCompletion.of (Ideal.span {(p : S)}) S (f x) := by |
| 38 | apply AdicCompletion.ext_evalₐ |
| 39 | intro n |
| 40 | simp only [pAdicBetween_eval, AdicCompletion.evalₐ_of, Nontriviality.pPowerMapBetween_mk] |
| 41 | |
| 42 | theorem pPowerMapBetween_id (n : ℕ) : |
| 43 | Nontriviality.pPowerMapBetween p (RingHom.id R) n = RingHom.id _ := by |
| 44 | apply RingHom.ext |
| 45 | intro x |
| 46 | induction x using Quotient.inductionOn' with |
| 47 | | h x => rfl |
| 48 | |
| 49 | theorem pPowerMapBetween_comp (f : R →+* S) (g : S →+* T) (n : ℕ) : |
| 50 | Nontriviality.pPowerMapBetween p (g.comp f) n = |
| 51 | (Nontriviality.pPowerMapBetween p g n).comp (Nontriviality.pPowerMapBetween p f n) := by |
| 52 | apply RingHom.ext |
| 53 | intro x |
| 54 | induction x using Quotient.inductionOn' with |
| 55 | | h x => rfl |
| 56 | |
| 57 | theorem pAdicBetween_id : pAdicBetween p (RingHom.id R) = RingHom.id _ := by |
| 58 | apply RingHom.ext |
| 59 | intro x |
| 60 | apply AdicCompletion.ext_evalₐ |
| 61 | intro n |
| 62 | rw [pAdicBetween_eval, pPowerMapBetween_id] |
| 63 | rfl |
| 64 | |
| 65 | theorem pAdicBetween_comp (f : R →+* S) (g : S →+* T) : |
| 66 | pAdicBetween p (g.comp f) = (pAdicBetween p g).comp (pAdicBetween p f) := by |
| 67 | apply RingHom.ext |
| 68 | intro x |
| 69 | apply AdicCompletion.ext_evalₐ |
| 70 | intro n |
| 71 | change AdicCompletion.evalₐ (Ideal.span {(p : T)}) n (pAdicBetween p (g.comp f) x) = |
| 72 | AdicCompletion.evalₐ (Ideal.span {(p : T)}) n (pAdicBetween p g (pAdicBetween p f x)) |
| 73 | rw [pAdicBetween_eval, pAdicBetween_eval, pAdicBetween_eval, pPowerMapBetween_comp] |
| 74 | rfl |
| 75 | |
| 76 | theorem pAdicBetween_eq_pAdicMap (f : R →+* R) : pAdicBetween p f = PeriodRing.pAdicMap p f := by |
| 77 | apply RingHom.ext |
| 78 | intro x |
| 79 | apply AdicCompletion.ext_evalₐ |
| 80 | intro n |
| 81 | rw [pAdicBetween_eval, PeriodRing.pAdicMap_eval] |
| 82 | rfl |
| 83 | |
| 84 | def pAdicBetweenEquiv (e : R ≃+* S) : |
| 85 | AdicCompletion (Ideal.span {(p : R)}) R ≃+* |
| 86 | AdicCompletion (Ideal.span {(p : S)}) S := |
| 87 | { pAdicBetween p e.toRingHom with |
| 88 | invFun := pAdicBetween p e.symm.toRingHom |
| 89 | left_inv := fun x => by |
| 90 | have h := pAdicBetween_comp p e.toRingHom e.symm.toRingHom |
| 91 | have he : e.symm.toRingHom.comp e.toRingHom = RingHom.id R := by |
| 92 | ext y |
| 93 | exact e.symm_apply_apply y |
| 94 | rw [he, pAdicBetween_id] at h |
| 95 | exact (DFunLike.congr_fun h x).symm |
| 96 | right_inv := fun x => by |
| 97 | have h := pAdicBetween_comp p e.symm.toRingHom e.toRingHom |
| 98 | have he : e.toRingHom.comp e.symm.toRingHom = RingHom.id S := by |
| 99 | ext y |
| 100 | exact e.apply_symm_apply y |
| 101 | rw [he, pAdicBetween_id] at h |
| 102 | exact (DFunLike.congr_fun h x).symm } |
| 103 | |
| 104 | theorem pAdicBetween_natural (e : R →+* S) (f : R →+* R) (g : S →+* S) |
| 105 | (h : ∀ x, e (f x) = g (e x)) |
| 106 | (x : AdicCompletion (Ideal.span {(p : R)}) R) : |
| 107 | pAdicBetween p e (PeriodRing.pAdicMap p f x) = PeriodRing.pAdicMap p g (pAdicBetween p e x) := by |
| 108 | have he : e.comp f = g.comp e := RingHom.ext h |
| 109 | have hc := congrArg (pAdicBetween p) he |
| 110 | rw [pAdicBetween_comp, pAdicBetween_comp, pAdicBetween_eq_pAdicMap, |
| 111 | pAdicBetween_eq_pAdicMap] at hc |
| 112 | exact DFunLike.congr_fun hc x |
| 113 | |
| 114 | end |
| 115 | |
| 116 | end OAI.NumberTheory.PadicHodge.PeriodInvariants.CompletionMaps |