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.DeRhamGlobalId |
| 2 | import OAI.AlgebraicGeometry.Comparison.Betti.Algebraic.Forms |
| 3 | |
| 4 | /-! # Adapter -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.PadicHodge.GeometricComparison.Forms.Adapter.FormsAdapter |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Direct comparison of the two algebraic differential-form presentations. |
| 11 | Coefficients and differential entries are retained exactly, in every degree. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory |
| 14 | |
| 15 | namespace D62 |
| 16 | open OAI.AlgebraicGeometry.Crystalline.Cohomology.DeRhamPresentationTo.DeRhamPresentation |
| 17 | variable (A : Type) [CommRing A] [Algebra ℂ A] |
| 18 | |
| 19 | def coefficient (n : ℕ) (v : Fin n → A) : A →ₗ[ℂ] AlgebraicGeometry.Crystalline.Cohomology.DeRhamPresentationTo.DeRhamPresentation.Form ℂ A n := |
| 20 | ((AlgebraicGeometry.Crystalline.Cohomology.DeRhamPresentationTo.DeRhamPresentation.relations ℂ A n).mkQ.comp (Finsupp.lsingle v)).restrictScalars ℂ |
| 21 | |
| 22 | @[simp] theorem coefficient_apply (n : ℕ) (v : Fin n → A) (a : A) : |
| 23 | coefficient A n v a = AlgebraicGeometry.Crystalline.Cohomology.DeRhamPresentationTo.DeRhamPresentation.symbol ℂ A a v := rfl |
| 24 | |
| 25 | theorem symbol_add (n : ℕ) (v : Fin n → A) (a b : A) : |
| 26 | AlgebraicGeometry.Crystalline.Cohomology.DeRhamPresentationTo.DeRhamPresentation.symbol ℂ A (a + b) v = AlgebraicGeometry.Crystalline.Cohomology.DeRhamPresentationTo.DeRhamPresentation.symbol ℂ A a v + AlgebraicGeometry.Crystalline.Cohomology.DeRhamPresentationTo.DeRhamPresentation.symbol ℂ A b v := |
| 27 | (coefficient A n v).map_add a b |
| 28 | |
| 29 | theorem symbol_smul (n : ℕ) (v : Fin n → A) (c : ℂ) (a : A) : |
| 30 | AlgebraicGeometry.Crystalline.Cohomology.DeRhamPresentationTo.DeRhamPresentation.symbol ℂ A (c • a) v = c • AlgebraicGeometry.Crystalline.Cohomology.DeRhamPresentationTo.DeRhamPresentation.symbol ℂ A a v := |
| 31 | (coefficient A n v).map_smul c a |
| 32 | |
| 33 | theorem mul_symbol {n : ℕ} (a b : A) (v : Fin n → A) : |
| 34 | a • AlgebraicGeometry.Crystalline.Cohomology.DeRhamPresentationTo.DeRhamPresentation.symbol ℂ A b v = AlgebraicGeometry.Crystalline.Cohomology.DeRhamPresentationTo.DeRhamPresentation.symbol ℂ A (a * b) v := by |
| 35 | rw [AlgebraicGeometry.Crystalline.Cohomology.DeRhamPresentationTo.DeRhamPresentation.symbol_smul_one ℂ A b v, smul_smul, ← AlgebraicGeometry.Crystalline.Cohomology.DeRhamPresentationTo.DeRhamPresentation.symbol_smul_one] |
| 36 | |
| 37 | theorem slot_add {n : ℕ} (a : A) (v : Fin n → A) (i : Fin n) (x y : A) : |
| 38 | AlgebraicGeometry.Crystalline.Cohomology.DeRhamPresentationTo.DeRhamPresentation.symbol ℂ A a (Function.update v i (x + y)) = |
| 39 | AlgebraicGeometry.Crystalline.Cohomology.DeRhamPresentationTo.DeRhamPresentation.symbol ℂ A a (Function.update v i x) + AlgebraicGeometry.Crystalline.Cohomology.DeRhamPresentationTo.DeRhamPresentation.symbol ℂ A a (Function.update v i y) := by |
| 40 | simpa only [smul_add, ← AlgebraicGeometry.Crystalline.Cohomology.DeRhamPresentationTo.DeRhamPresentation.symbol_smul_one] using |
| 41 | congrArg (a • ·) (AlgebraicGeometry.Crystalline.Cohomology.DeRhamPresentationTo.DeRhamPresentation.symbol_update_add ℂ A v i x y) |
| 42 | |
| 43 | theorem slot_mul {n : ℕ} (a : A) (v : Fin n → A) (i : Fin n) (x y : A) : |
| 44 | AlgebraicGeometry.Crystalline.Cohomology.DeRhamPresentationTo.DeRhamPresentation.symbol ℂ A a (Function.update v i (x * y)) = |
| 45 | AlgebraicGeometry.Crystalline.Cohomology.DeRhamPresentationTo.DeRhamPresentation.symbol ℂ A (a * x) (Function.update v i y) + |
| 46 | AlgebraicGeometry.Crystalline.Cohomology.DeRhamPresentationTo.DeRhamPresentation.symbol ℂ A (a * y) (Function.update v i x) := by |
| 47 | simpa only [smul_add, mul_symbol, mul_one] using |
| 48 | congrArg (a • ·) (AlgebraicGeometry.Crystalline.Cohomology.DeRhamPresentationTo.DeRhamPresentation.symbol_update_mul ℂ A v i x y) |
| 49 | |
| 50 | theorem slot_constant {n : ℕ} (a : A) (v : Fin n → A) (i : Fin n) (c : ℂ) : |
| 51 | AlgebraicGeometry.Crystalline.Cohomology.DeRhamPresentationTo.DeRhamPresentation.symbol ℂ A a (Function.update v i (algebraMap ℂ A c)) = 0 := by |
| 52 | rw [AlgebraicGeometry.Crystalline.Cohomology.DeRhamPresentationTo.DeRhamPresentation.symbol_smul_one, AlgebraicGeometry.Crystalline.Cohomology.DeRhamPresentationTo.DeRhamPresentation.symbol_update_base, smul_zero] |
| 53 | |
| 54 | theorem slot_smul {n : ℕ} (a : A) (v : Fin n → A) (i : Fin n) (c : ℂ) (x : A) : |
| 55 | AlgebraicGeometry.Crystalline.Cohomology.DeRhamPresentationTo.DeRhamPresentation.symbol ℂ A a (Function.update v i (c • x)) = |
| 56 | c • AlgebraicGeometry.Crystalline.Cohomology.DeRhamPresentationTo.DeRhamPresentation.symbol ℂ A a (Function.update v i x) := by |
| 57 | rw [AlgebraicGeometry.Crystalline.Cohomology.DeRhamPresentationTo.DeRhamPresentation.symbol_smul_one ℂ A a (Function.update v i (c • x)), |
| 58 | AlgebraicGeometry.Crystalline.Cohomology.DeRhamPresentationTo.DeRhamPresentation.symbol_smul_one ℂ A a (Function.update v i x)] |
| 59 | have h := (AlgebraicGeometry.Crystalline.Cohomology.DeRhamPresentationTo.DeRhamPresentation.symbols ℂ A n).map_update_smul v i c x |
| 60 | change AlgebraicGeometry.Crystalline.Cohomology.DeRhamPresentationTo.DeRhamPresentation.symbol ℂ A 1 (Function.update v i (c • x)) = |
| 61 | c • AlgebraicGeometry.Crystalline.Cohomology.DeRhamPresentationTo.DeRhamPresentation.symbol ℂ A 1 (Function.update v i x) at h |
| 62 | rw [h, smul_comm a c] |
| 63 | |
| 64 | end D62 |
| 65 | |
| 66 | namespace D66 |
| 67 | open OAI.AlgebraicGeometry.Comparison.Betti.Algebraic.Forms |
| 68 | variable (A : Type) [CommRing A] [Algebra ℂ A] |
| 69 | |
| 70 | def coefficient (n : ℕ) (v : Fin n → A) : A →ₗ[ℂ] AlgebraicGeometry.Comparison.Betti.Algebraic.Forms.Form A n where |
| 71 | toFun a := AlgebraicGeometry.Comparison.Betti.Algebraic.Forms.formSymbol A (Fin.cons a v) |
| 72 | map_add' a b := by |
| 73 | simpa only [Fin.update_cons_zero] using |
| 74 | AlgebraicGeometry.Comparison.Betti.Algebraic.Forms.formSymbol_add A (Fin.cons 0 v) 0 a b |
| 75 | map_smul' c a := by |
| 76 | simpa only [Fin.update_cons_zero, RingHom.id_apply] using |
| 77 | AlgebraicGeometry.Comparison.Betti.Algebraic.Forms.formSymbol_smul A (Fin.cons 0 v) 0 c a |
| 78 | |
| 79 | @[simp] theorem coefficient_apply (n : ℕ) (v : Fin n → A) (a : A) : |
| 80 | coefficient A n v a = AlgebraicGeometry.Comparison.Betti.Algebraic.Forms.formSymbol A (Fin.cons a v) := rfl |
| 81 | |
| 82 | theorem symbol_leibniz {n : ℕ} (a : A) (v : Fin n → A) (i : Fin n) (x y : A) : |
| 83 | AlgebraicGeometry.Comparison.Betti.Algebraic.Forms.formSymbol A (Fin.cons a (Function.update v i (x * y))) = |
| 84 | AlgebraicGeometry.Comparison.Betti.Algebraic.Forms.formSymbol A (Fin.cons (a * x) (Function.update v i y)) + |
| 85 | AlgebraicGeometry.Comparison.Betti.Algebraic.Forms.formSymbol A (Fin.cons (a * y) (Function.update v i x)) := by |
| 86 | have h := (Submodule.Quotient.mk_eq_zero (AlgebraicGeometry.Comparison.Betti.Algebraic.Forms.relations A n)).mpr |
| 87 | (Submodule.subset_span (AlgebraicGeometry.Comparison.Betti.Algebraic.Forms.FormRelation.leibniz n (Fin.cons a v) i x y)) |
| 88 | change (AlgebraicGeometry.Comparison.Betti.Algebraic.Forms.relations A n).mkQ (_ - _ - _) = 0 at h |
| 89 | rw [map_sub, map_sub, sub_sub, sub_eq_zero] at h |
| 90 | simpa only [AlgebraicGeometry.Comparison.Betti.Algebraic.Forms.formSymbol, Fin.cons_zero, ← Fin.cons_update, Fin.update_cons_zero] using h |
| 91 | |
| 92 | theorem symbol_constant {n : ℕ} (a : A) (v : Fin n → A) (i : Fin n) (c : ℂ) : |
| 93 | AlgebraicGeometry.Comparison.Betti.Algebraic.Forms.formSymbol A (Fin.cons a (Function.update v i (algebraMap ℂ A c))) = 0 := by |
| 94 | have h := (Submodule.Quotient.mk_eq_zero (AlgebraicGeometry.Comparison.Betti.Algebraic.Forms.relations A n)).mpr |
| 95 | (Submodule.subset_span (AlgebraicGeometry.Comparison.Betti.Algebraic.Forms.FormRelation.constant n (Fin.cons a v) i c)) |
| 96 | change (AlgebraicGeometry.Comparison.Betti.Algebraic.Forms.relations A n).mkQ _ = 0 at h |
| 97 | simpa only [AlgebraicGeometry.Comparison.Betti.Algebraic.Forms.formSymbol, ← Fin.cons_update] using h |
| 98 | |
| 99 | theorem symbol_alternating {n : ℕ} (a : A) (v : Fin n → A) (i j : Fin n) |
| 100 | (hij : i ≠ j) (hv : v i = v j) : AlgebraicGeometry.Comparison.Betti.Algebraic.Forms.formSymbol A (Fin.cons a v) = 0 := |
| 101 | (Submodule.Quotient.mk_eq_zero (AlgebraicGeometry.Comparison.Betti.Algebraic.Forms.relations A n)).mpr |
| 102 | (Submodule.subset_span (AlgebraicGeometry.Comparison.Betti.Algebraic.Forms.FormRelation.alternating n (Fin.cons a v) i j hij hv)) |
| 103 | |
| 104 | end D66 |
| 105 | |
| 106 | variable (A : Type) [CommRing A] [Algebra ℂ A] |
| 107 | |
| 108 | def to62Raw (n : ℕ) : AlgebraicGeometry.Comparison.Betti.Algebraic.Forms.RawForm A n →ₗ[ℂ] |
| 109 | AlgebraicGeometry.Crystalline.Cohomology.DeRhamPresentationTo.DeRhamPresentation.Form ℂ A n := |
| 110 | Finsupp.linearCombination ℂ (fun a => |
| 111 | AlgebraicGeometry.Crystalline.Cohomology.DeRhamPresentationTo.DeRhamPresentation.symbol ℂ A (a 0) (Fin.tail a)) |
| 112 | |
| 113 | @[simp] theorem to62Raw_symbol {n : ℕ} (a : Fin (n + 1) → A) : |
| 114 | to62Raw A n (AlgebraicGeometry.Comparison.Betti.Algebraic.Forms.symbol A a) = |
| 115 | AlgebraicGeometry.Crystalline.Cohomology.DeRhamPresentationTo.DeRhamPresentation.symbol ℂ A (a 0) (Fin.tail a) := by |
| 116 | simp [to62Raw, AlgebraicGeometry.Comparison.Betti.Algebraic.Forms.symbol] |
| 117 | |
| 118 | theorem to62Raw_differential (n : ℕ) (r : AlgebraicGeometry.Comparison.Betti.Algebraic.Forms.RawForm A n) : |
| 119 | to62Raw A (n + 1) (AlgebraicGeometry.Comparison.Betti.Algebraic.Forms.rawDifferential A n r) = |
| 120 | AlgebraicGeometry.Crystalline.Cohomology.DeRhamPresentationTo.DeRhamPresentation.differential ℂ A n (to62Raw A n r) := by |
| 121 | induction r using Finsupp.induction_linear with |
| 122 | | zero => simp |
| 123 | | add r s hr hs => simp only [map_add, hr, hs] |
| 124 | | single a c => |
| 125 | have hc : Finsupp.single a c = c • AlgebraicGeometry.Comparison.Betti.Algebraic.Forms.symbol A a := by |
| 126 | simp [AlgebraicGeometry.Comparison.Betti.Algebraic.Forms.symbol] |
| 127 | rw [hc] |
| 128 | simp only [map_smul, AlgebraicGeometry.Comparison.Betti.Algebraic.Forms.rawDifferential_symbol, to62Raw_symbol, |
| 129 | Fin.cons_zero, Fin.tail_cons, AlgebraicGeometry.Crystalline.Cohomology.DeRhamPresentationTo.DeRhamPresentation.differential_symbol, |
| 130 | Fin.cons_self_tail] |
| 131 | |
| 132 | theorem to62Raw_relation {n : ℕ} {r : AlgebraicGeometry.Comparison.Betti.Algebraic.Forms.RawForm A n} |
| 133 | (hr : AlgebraicGeometry.Comparison.Betti.Algebraic.Forms.FormRelation A n r) : to62Raw A n r = 0 := by |
| 134 | induction hr with |
| 135 | | add n a i x y => |
| 136 | rcases Fin.eq_zero_or_eq_succ i with hi | ⟨j, hi⟩ |
| 137 | · subst i |
| 138 | simp only [map_sub, map_add, to62Raw_symbol, Function.update_self, |
| 139 | Fin.tail_update_zero, D62.symbol_add, sub_sub, sub_self] |
| 140 | · subst i |
| 141 | simp only [map_sub, map_add, to62Raw_symbol, Function.update_of_ne (Ne.symm j.succ_ne_zero), |
| 142 | Fin.tail_update_succ, D62.slot_add, sub_sub, sub_self] |
| 143 | | smul n a i c x => |
| 144 | rcases Fin.eq_zero_or_eq_succ i with hi | ⟨j, hi⟩ |
| 145 | · subst i |
| 146 | simp only [map_sub, map_smul, to62Raw_symbol, Function.update_self, |
| 147 | Fin.tail_update_zero, D62.symbol_smul, sub_self] |
| 148 | · subst i |
| 149 | simp only [map_sub, map_smul, to62Raw_symbol, |
| 150 | Function.update_of_ne (Ne.symm j.succ_ne_zero), Fin.tail_update_succ, |
| 151 | D62.slot_smul, sub_self] |
| 152 | | leibniz n a i x y => |
| 153 | simp only [map_sub, map_add, to62Raw_symbol, |
| 154 | Function.update_of_ne (Ne.symm i.succ_ne_zero), Function.update_self, |
| 155 | Fin.tail_update_succ, Fin.tail_update_zero, |
| 156 | D62.slot_mul, sub_sub, sub_self] |
| 157 | | constant n a i c => |
| 158 | simp only [to62Raw_symbol, Function.update_of_ne (Ne.symm i.succ_ne_zero), |
| 159 | Fin.tail_update_succ, D62.slot_constant] |
| 160 | | alternating n a i j hij hv => |
| 161 | rw [to62Raw_symbol, AlgebraicGeometry.Crystalline.Cohomology.DeRhamPresentationTo.DeRhamPresentation.symbol_smul_one, |
| 162 | AlgebraicGeometry.Crystalline.Cohomology.DeRhamPresentationTo.DeRhamPresentation.symbol_alt ℂ A (Fin.tail a) i j hv hij, smul_zero] |
| 163 | | differential hr ih => rw [to62Raw_differential, ih, map_zero] |
| 164 | |
| 165 | def to62 (n : ℕ) : AlgebraicGeometry.Comparison.Betti.Algebraic.Forms.Form A n →ₗ[ℂ] |
| 166 | AlgebraicGeometry.Crystalline.Cohomology.DeRhamPresentationTo.DeRhamPresentation.Form ℂ A n := |
| 167 | (AlgebraicGeometry.Comparison.Betti.Algebraic.Forms.relations A n).liftQ (to62Raw A n) |
| 168 | (Submodule.span_le.mpr (fun _ hr => to62Raw_relation A hr)) |
| 169 | |
| 170 | @[simp] theorem to62_symbol {n : ℕ} (a : Fin (n + 1) → A) : |
| 171 | to62 A n (AlgebraicGeometry.Comparison.Betti.Algebraic.Forms.formSymbol A a) = |
| 172 | AlgebraicGeometry.Crystalline.Cohomology.DeRhamPresentationTo.DeRhamPresentation.symbol ℂ A (a 0) (Fin.tail a) := |
| 173 | to62Raw_symbol A a |
| 174 | |
| 175 | def to66Raw (n : ℕ) : AlgebraicGeometry.Crystalline.Cohomology.DeRhamPresentationTo.DeRhamPresentation.Raw A n →ₗ[ℂ] AlgebraicGeometry.Comparison.Betti.Algebraic.Forms.Form A n := |
| 176 | Finsupp.lsum ℂ (D66.coefficient A n) |
| 177 | |
| 178 | @[simp] theorem to66Raw_single {n : ℕ} (v : Fin n → A) (a : A) : |
| 179 | to66Raw A n (Finsupp.single v a) = AlgebraicGeometry.Comparison.Betti.Algebraic.Forms.formSymbol A (Fin.cons a v) := |
| 180 | Finsupp.lsum_single _ _ _ _ |
| 181 | |
| 182 | theorem to66Raw_relation {n : ℕ} |
| 183 | (r : AlgebraicGeometry.Crystalline.Cohomology.DeRhamPresentationTo.DeRhamPresentation.RelationIndex ℂ A n) (a : A) : |
| 184 | to66Raw A n (a • AlgebraicGeometry.Crystalline.Cohomology.DeRhamPresentationTo.DeRhamPresentation.relation ℂ A n r) = 0 := by |
| 185 | cases r with |
| 186 | | add v i x y => |
| 187 | simp only [AlgebraicGeometry.Crystalline.Cohomology.DeRhamPresentationTo.DeRhamPresentation.relation, smul_sub, Finsupp.smul_single, |
| 188 | smul_eq_mul, mul_one, map_sub, to66Raw_single] |
| 189 | have h := AlgebraicGeometry.Comparison.Betti.Algebraic.Forms.formSymbol_add A (Fin.cons a v) i.succ x y |
| 190 | simp only [← Fin.cons_update] at h |
| 191 | rw [h, sub_sub, sub_self] |
| 192 | | mul v i x y => |
| 193 | simp only [AlgebraicGeometry.Crystalline.Cohomology.DeRhamPresentationTo.DeRhamPresentation.relation, smul_sub, smul_add, |
| 194 | Finsupp.smul_single, smul_eq_mul, mul_one, map_sub, map_add, |
| 195 | to66Raw_single, D66.symbol_leibniz, sub_sub, sub_self] |
| 196 | | base v i c => |
| 197 | simp only [AlgebraicGeometry.Crystalline.Cohomology.DeRhamPresentationTo.DeRhamPresentation.relation, Finsupp.smul_single, |
| 198 | smul_eq_mul, mul_one, to66Raw_single, D66.symbol_constant] |
| 199 | | alt v i j hv hij => |
| 200 | simp only [AlgebraicGeometry.Crystalline.Cohomology.DeRhamPresentationTo.DeRhamPresentation.relation, Finsupp.smul_single, |
| 201 | smul_eq_mul, mul_one, to66Raw_single, D66.symbol_alternating A a v i j hij hv] |
| 202 | |
| 203 | theorem to66Raw_relations {n : ℕ} {r : AlgebraicGeometry.Crystalline.Cohomology.DeRhamPresentationTo.DeRhamPresentation.Raw A n} |
| 204 | (hr : r ∈ AlgebraicGeometry.Crystalline.Cohomology.DeRhamPresentationTo.DeRhamPresentation.relations ℂ A n) : to66Raw A n r = 0 := by |
| 205 | have h : ∀ a : A, to66Raw A n (a • r) = 0 := by |
| 206 | induction hr using Submodule.span_induction with |
| 207 | | mem r hr => obtain ⟨r, rfl⟩ := hr; exact to66Raw_relation A r |
| 208 | | zero => intro a; simp |
| 209 | | add r s hr hs ihr ihs => intro a; simp only [smul_add, map_add, ihr, ihs, add_zero] |
| 210 | | smul b r hr ihr => intro a; simpa only [smul_smul] using ihr (a * b) |
| 211 | simpa only [one_smul] using h 1 |
| 212 | |
| 213 | def to66 (n : ℕ) : AlgebraicGeometry.Crystalline.Cohomology.DeRhamPresentationTo.DeRhamPresentation.Form ℂ A n →ₗ[ℂ] AlgebraicGeometry.Comparison.Betti.Algebraic.Forms.Form A n := |
| 214 | ((AlgebraicGeometry.Crystalline.Cohomology.DeRhamPresentationTo.DeRhamPresentation.relations ℂ A n).restrictScalars ℂ).liftQ |
| 215 | (to66Raw A n) (fun _ hr => to66Raw_relations A hr) |
| 216 | |
| 217 | @[simp] theorem to66_symbol {n : ℕ} (a : A) (v : Fin n → A) : |
| 218 | to66 A n (AlgebraicGeometry.Crystalline.Cohomology.DeRhamPresentationTo.DeRhamPresentation.symbol ℂ A a v) = |
| 219 | AlgebraicGeometry.Comparison.Betti.Algebraic.Forms.formSymbol A (Fin.cons a v) := to66Raw_single A v a |
| 220 | |
| 221 | theorem to62_to66 (n : ℕ) (x : AlgebraicGeometry.Crystalline.Cohomology.DeRhamPresentationTo.DeRhamPresentation.Form ℂ A n) : |
| 222 | to62 A n (to66 A n x) = x := by |
| 223 | obtain ⟨r, rfl⟩ := (AlgebraicGeometry.Crystalline.Cohomology.DeRhamPresentationTo.DeRhamPresentation.relations ℂ A n).mkQ_surjective x |
| 224 | induction r using Finsupp.induction_linear with |
| 225 | | zero => simp |
| 226 | | add r s hr hs => simp only [map_add, hr, hs] |
| 227 | | single v a => |
| 228 | change to62 A n (to66 A n (AlgebraicGeometry.Crystalline.Cohomology.DeRhamPresentationTo.DeRhamPresentation.symbol ℂ A a v)) = _ |
| 229 | simp only [to66_symbol, to62_symbol, Fin.cons_zero, Fin.tail_cons] |
| 230 | rfl |
| 231 | |
| 232 | theorem to66_to62 (n : ℕ) (x : AlgebraicGeometry.Comparison.Betti.Algebraic.Forms.Form A n) : to66 A n (to62 A n x) = x := by |
| 233 | obtain ⟨r, rfl⟩ := (AlgebraicGeometry.Comparison.Betti.Algebraic.Forms.relations A n).mkQ_surjective x |
| 234 | induction r using Finsupp.induction_linear with |
| 235 | | zero => simp |
| 236 | | add r s hr hs => simp only [map_add, hr, hs] |
| 237 | | single a c => |
| 238 | have hc : Finsupp.single a c = c • AlgebraicGeometry.Comparison.Betti.Algebraic.Forms.symbol A a := by simp [AlgebraicGeometry.Comparison.Betti.Algebraic.Forms.symbol] |
| 239 | rw [hc] |
| 240 | simp only [map_smul] |
| 241 | apply congrArg (c • ·) |
| 242 | change to66 A n (to62 A n (AlgebraicGeometry.Comparison.Betti.Algebraic.Forms.formSymbol A a)) = AlgebraicGeometry.Comparison.Betti.Algebraic.Forms.formSymbol A a |
| 243 | rw [to62_symbol, to66_symbol, Fin.cons_self_tail] |
| 244 | |
| 245 | /-- Canonical equivalence in every degree; neither comparison theorem is used. -/ |
| 246 | def formsEquiv (n : ℕ) : AlgebraicGeometry.Comparison.Betti.Algebraic.Forms.Form A n ≃ₗ[ℂ] |
| 247 | AlgebraicGeometry.Crystalline.Cohomology.DeRhamPresentationTo.DeRhamPresentation.Form ℂ A n where |
| 248 | __ := to62 A n |
| 249 | invFun := to66 A n |
| 250 | left_inv := to66_to62 A n |
| 251 | right_inv := to62_to66 A n |
| 252 | |
| 253 | theorem to62_differential (n : ℕ) (x : AlgebraicGeometry.Comparison.Betti.Algebraic.Forms.Form A n) : |
| 254 | to62 A (n + 1) (AlgebraicGeometry.Comparison.Betti.Algebraic.Forms.differential A n x) = |
| 255 | AlgebraicGeometry.Crystalline.Cohomology.DeRhamPresentationTo.DeRhamPresentation.differential ℂ A n (to62 A n x) := by |
| 256 | obtain ⟨r, rfl⟩ := (AlgebraicGeometry.Comparison.Betti.Algebraic.Forms.relations A n).mkQ_surjective x |
| 257 | exact to62Raw_differential A n r |
| 258 | |
| 259 | theorem to62_pullback {B : Type} [CommRing B] [Algebra ℂ B] |
| 260 | (f : A →ₐ[ℂ] B) (n : ℕ) (x : AlgebraicGeometry.Comparison.Betti.Algebraic.Forms.Form A n) : |
| 261 | to62 B n (AlgebraicGeometry.Comparison.Betti.Algebraic.Forms.pullback f n x) = |
| 262 | AlgebraicGeometry.Crystalline.Cohomology.DeRhamGlobalId.DeRhamGlobal.formMap (CommAlgCat.ofHom f) n (to62 A n x) := by |
| 263 | obtain ⟨r, rfl⟩ := (AlgebraicGeometry.Comparison.Betti.Algebraic.Forms.relations A n).mkQ_surjective x |
| 264 | induction r using Finsupp.induction_linear with |
| 265 | | zero => simp |
| 266 | | add r s hr hs => simp only [map_add, hr, hs] |
| 267 | | single a c => |
| 268 | have hc : Finsupp.single a c = c • AlgebraicGeometry.Comparison.Betti.Algebraic.Forms.symbol A a := by |
| 269 | simp [AlgebraicGeometry.Comparison.Betti.Algebraic.Forms.symbol] |
| 270 | rw [hc] |
| 271 | simp only [map_smul] |
| 272 | apply congrArg (c • ·) |
| 273 | change to62 B n (AlgebraicGeometry.Comparison.Betti.Algebraic.Forms.pullback f n (AlgebraicGeometry.Comparison.Betti.Algebraic.Forms.formSymbol A a)) = |
| 274 | AlgebraicGeometry.Crystalline.Cohomology.DeRhamGlobalId.DeRhamGlobal.formMap (CommAlgCat.ofHom f) n |
| 275 | (to62 A n (AlgebraicGeometry.Comparison.Betti.Algebraic.Forms.formSymbol A a)) |
| 276 | rw [AlgebraicGeometry.Comparison.Betti.Algebraic.Forms.pullback_symbol, to62_symbol, to62_symbol, |
| 277 | AlgebraicGeometry.Crystalline.Cohomology.DeRhamGlobalId.DeRhamGlobal.formMap_symbol] |
| 278 | rfl |
| 279 | |
| 280 | theorem to66_differential (n : ℕ) |
| 281 | (x : AlgebraicGeometry.Crystalline.Cohomology.DeRhamPresentationTo.DeRhamPresentation.Form ℂ A n) : |
| 282 | to66 A (n + 1) (AlgebraicGeometry.Crystalline.Cohomology.DeRhamPresentationTo.DeRhamPresentation.differential ℂ A n x) = |
| 283 | AlgebraicGeometry.Comparison.Betti.Algebraic.Forms.differential A n (to66 A n x) := by |
| 284 | apply (formsEquiv A (n + 1)).injective |
| 285 | change to62 A (n + 1) _ = to62 A (n + 1) _ |
| 286 | rw [to62_to66, to62_differential, to62_to66] |
| 287 | |
| 288 | theorem to66_pullback {B : Type} [CommRing B] [Algebra ℂ B] |
| 289 | (f : A →ₐ[ℂ] B) (n : ℕ) (x : AlgebraicGeometry.Crystalline.Cohomology.DeRhamPresentationTo.DeRhamPresentation.Form ℂ A n) : |
| 290 | to66 B n (AlgebraicGeometry.Crystalline.Cohomology.DeRhamGlobalId.DeRhamGlobal.formMap (CommAlgCat.ofHom f) n x) = |
| 291 | AlgebraicGeometry.Comparison.Betti.Algebraic.Forms.pullback f n (to66 A n x) := by |
| 292 | apply (formsEquiv B n).injective |
| 293 | change to62 B n _ = to62 B n _ |
| 294 | rw [to62_to66, to62_pullback, to62_to66] |
| 295 | |
| 296 | end |
| 297 | |
| 298 | end OAI.NumberTheory.PadicHodge.GeometricComparison.Forms.Adapter.FormsAdapter |