openAI-math-dataset / lean /OAI /Algebra /AuslanderReiten /Ext /ExtKunnethActions.lean
roseking's picture
Add lean source and binary files (part 5)
d7f9a33 verified
Raw History Blame Contribute Delete
9.1 kB
22
def firstActionUnderKunneth (n : ℕ) : extCoefficients k A B X U Y V n →ₗ[k]
    extCoefficients k A B X U Y V (n+3) :=
body · 4 lines
  (extKunnethEquiv k A B P Q U V (n+3)).toLinearMap.comp
    ((Ext.bilinearCompOfLinear k (moduleObject k A B X Y) (moduleObject k A B X Y)
      (moduleObject k A B U V) 3 n (n+3) (by omega) (firstCubicExt k A B P Q p hp)).comp
        (extKunnethEquiv k A B P Q U V n).symm.toLinearMap)
30
private theorem firstActionUnderKunneth_elementary (i j n : ℕ) (h : i+j=n)
    (f : P.complex.X i →ₗ[A] U) (g : Q.complex.X j →ₗ[B] V)
    (hf : f.comp (P.complex.d (i+1) i).hom=0) (hg : g.comp (Q.complex.d (j+1) j).hom=0) :
    firstActionUnderKunneth k A B P Q U V p hp n
      (extKunnethEquiv k A B P Q U V n (elementaryExt k A B P Q U V i j n h f g hf hg)) =
    coefficientFirst k A B X U Y V
      (ResolutionProducts.endExt P (ResolutionProducts.natCubicCocycle (k := k) P p hp)) n
      (extKunnethEquiv k A B P Q U V n (elementaryExt k A B P Q U V i j n h f g hf hg)) := by
proof · 7 lines
  unfold firstActionUnderKunneth
  simp only [LinearMap.comp_apply, LinearEquiv.coe_coe, LinearEquiv.symm_apply_apply]
  change extKunnethEquiv k A B P Q U V (n+3)
    ((firstCubicExt k A B P Q p hp).comp (elementaryExt k A B P Q U V i j n h f g hf hg) (by omega)) = _
  rw [firstCubicExt_elementary, elementaryExt_kunneth, elementaryExt_kunneth,
    coefficientFirst_single, ResolutionProducts.cubic_endExt_comp_extMk (k := k)]
  rfl
49
private theorem coefficients_ext (n : ℕ)
    (L R : extCoefficients k A B X U Y V n →ₗ[k] extCoefficients k A B X U Y V (n+3))
    (h : ∀ (i j : ℕ) (hij : i+j=n)
      (f : P.complex.X i →ₗ[A] U) (g : Q.complex.X j →ₗ[B] V)
      (hf : f.comp (P.complex.d (i+1) i).hom=0)
      (hg : g.comp (Q.complex.d (j+1) j).hom=0),
      L (extKunnethEquiv k A B P Q U V n (elementaryExt k A B P Q U V i j n hij f g hf hg)) =
      R (extKunnethEquiv k A B P Q U V n (elementaryExt k A B P Q U V i j n hij f g hf hg))) : L=R := by
proof · 13 lines
  classical
  apply LinearMap.pi_ext
  intro d t
  induction t using TensorProduct.inductionOn with
  | add a b ha hb => simp only [Pi.single_add, map_add, ha, hb]
  | tmul x y =>
    obtain ⟨f,hf,rfl⟩ := P.extMk_surjective x (d.val.1+1) rfl
    obtain ⟨g,hg,rfl⟩ := Q.extMk_surjective y (d.val.2+1) rfl
    let hf' := congrArg ModuleCat.Hom.hom hf
    let hg' := congrArg ModuleCat.Hom.hom hg
    have he := elementaryExt_kunneth k A B P Q U V d.val.1 d.val.2 n d.property f.hom g.hom hf' hg'
    have hl := h d.val.1 d.val.2 d.property f.hom g.hom hf' hg'
    exact (congrArg L he.symm).trans (hl.trans (congrArg R he))
72
theorem firstActionUnderKunneth_eq (n : ℕ) :
    firstActionUnderKunneth k A B P Q U V p hp n =
      coefficientFirst k A B X U Y V
        (ResolutionProducts.endExt P (ResolutionProducts.natCubicCocycle (k := k) P p hp)) n := by
proof · 3 lines
  apply coefficients_ext k A B P Q U V n
  intro i j hij f g hf hg
  exact firstActionUnderKunneth_elementary k A B P Q U V p hp i j n hij f g hf hg
81
theorem firstCubicExt_kunneth (n : ℕ)
    (x : Ext (moduleObject k A B X Y) (moduleObject k A B U V) n) :
    extKunnethEquiv k A B P Q U V (n+3) ((firstCubicExt k A B P Q p hp).comp x (by omega)) =
      coefficientFirst k A B X U Y V
        (ResolutionProducts.endExt P (ResolutionProducts.natCubicCocycle (k := k) P p hp)) n
          (extKunnethEquiv k A B P Q U V n x) := by
proof · 5 lines
  have he := LinearMap.congr_fun (firstActionUnderKunneth_eq k A B P Q U V p hp n)
    (extKunnethEquiv k A B P Q U V n x)
  simp only [firstActionUnderKunneth, LinearMap.comp_apply, LinearEquiv.coe_coe,
    LinearEquiv.symm_apply_apply] at he
  exact he
94
theorem firstCubicExt_kunneth_of_class (a : Ext X X 3)
    (ha : ResolutionProducts.endExt P (ResolutionProducts.natCubicCocycle (k := k) P p hp) = a)
    (n : ℕ) (x : Ext (moduleObject k A B X Y) (moduleObject k A B U V) n) :
    extKunnethEquiv k A B P Q U V (n+3) ((firstCubicExt k A B P Q p hp).comp x (by omega)) =
      coefficientFirst k A B X U Y V a n (extKunnethEquiv k A B P Q U V n x) := by
proof · 2 lines
  rw [← ha]
  exact firstCubicExt_kunneth k A B P Q U V p hp n x
105
def secondActionUnderKunneth (n : ℕ) : extCoefficients k A B X U Y V n →ₗ[k]
    extCoefficients k A B X U Y V (n+3) :=
body · 4 lines
  (extKunnethEquiv k A B P Q U V (n+3)).toLinearMap.comp
    ((Ext.bilinearCompOfLinear k (moduleObject k A B X Y) (moduleObject k A B X Y)
      (moduleObject k A B U V) 3 n (n+3) (by omega) (secondCubicExt k A B P Q r hr)).comp
        (extKunnethEquiv k A B P Q U V n).symm.toLinearMap)
113
private theorem secondActionUnderKunneth_elementary (i j n : ℕ) (h : i+j=n)
    (f : P.complex.X i →ₗ[A] U) (g : Q.complex.X j →ₗ[B] V)
    (hf : f.comp (P.complex.d (i+1) i).hom=0) (hg : g.comp (Q.complex.d (j+1) j).hom=0) :
    secondActionUnderKunneth k A B P Q U V r hr n
      (extKunnethEquiv k A B P Q U V n (elementaryExt k A B P Q U V i j n h f g hf hg)) =
    coefficientSecond k A B X U Y V
      (ResolutionProducts.endExt Q (ResolutionProducts.natCubicCocycle (k := k) Q r hr)) n
      (extKunnethEquiv k A B P Q U V n (elementaryExt k A B P Q U V i j n h f g hf hg)) := by
proof · 7 lines
  unfold secondActionUnderKunneth
  simp only [LinearMap.comp_apply, LinearEquiv.coe_coe, LinearEquiv.symm_apply_apply]
  change extKunnethEquiv k A B P Q U V (n+3)
    ((secondCubicExt k A B P Q r hr).comp (elementaryExt k A B P Q U V i j n h f g hf hg) (by omega)) = _
  rw [secondCubicExt_elementary, elementaryExt_kunneth, elementaryExt_kunneth,
    coefficientSecond_single, ResolutionProducts.cubic_endExt_comp_extMk (k := k)]
  rfl
130
theorem secondActionUnderKunneth_eq (n : ℕ) :
    secondActionUnderKunneth k A B P Q U V r hr n =
      coefficientSecond k A B X U Y V
        (ResolutionProducts.endExt Q (ResolutionProducts.natCubicCocycle (k := k) Q r hr)) n := by
proof · 3 lines
  apply coefficients_ext k A B P Q U V n
  intro i j hij f g hf hg
  exact secondActionUnderKunneth_elementary k A B P Q U V r hr i j n hij f g hf hg
139
theorem secondCubicExt_kunneth (n : ℕ)
    (x : Ext (moduleObject k A B X Y) (moduleObject k A B U V) n) :
    extKunnethEquiv k A B P Q U V (n+3) ((secondCubicExt k A B P Q r hr).comp x (by omega)) =
      coefficientSecond k A B X U Y V
        (ResolutionProducts.endExt Q (ResolutionProducts.natCubicCocycle (k := k) Q r hr)) n
          (extKunnethEquiv k A B P Q U V n x) := by
proof · 5 lines
  have he := LinearMap.congr_fun (secondActionUnderKunneth_eq k A B P Q U V r hr n)
    (extKunnethEquiv k A B P Q U V n x)
  simp only [secondActionUnderKunneth, LinearMap.comp_apply, LinearEquiv.coe_coe,
    LinearEquiv.symm_apply_apply] at he
  exact he
152
theorem secondCubicExt_kunneth_of_class (b : Ext Y Y 3)
    (hb : ResolutionProducts.endExt Q (ResolutionProducts.natCubicCocycle (k := k) Q r hr) = b)
    (n : ℕ) (x : Ext (moduleObject k A B X Y) (moduleObject k A B U V) n) :
    extKunnethEquiv k A B P Q U V (n+3) ((secondCubicExt k A B P Q r hr).comp x (by omega)) =
      coefficientSecond k A B X U Y V b n (extKunnethEquiv k A B P Q U V n x) := by
proof · 2 lines
  rw [← hb]
  exact secondCubicExt_kunneth k A B P Q U V r hr n x