openAI-math-dataset / lean /OAI /Algebra /AuslanderReiten /Modules /InductionAdjunction.lean
roseking's picture
Add lean source and binary files (part 6)
2c7d975 verified
Raw History Blame Contribute Delete
2.89 kB
16
abbrev Object := BalancedTensor k R (InductionBimodule ι) V
18
def restrictHom (hcompat : ∀ (r : R) (w : W), r • w = (ι r) • w)
    (f : Object (V := V) ι →ₗ[S] W) : V →ₗ[R] W where
body · 12 lines
  toFun v := f (BalancedTensor.tmul ⟨1⟩ v)
  map_add' x y := by rw [BalancedTensor.tmul_add, map_add]
  map_smul' r v := by
    rw [← BalancedTensor.balance]
    change f (BalancedTensor.tmul ⟨1 * ι r⟩ v) = r • f (BalancedTensor.tmul ⟨1⟩ v)
    rw [one_mul, hcompat]
    have he : BalancedTensor.tmul (InductionBimodule.mk (ι r)) v =
        (ι r) • (BalancedTensor.tmul (InductionBimodule.mk (1 : S)) v : Object (V := V) ι) := by
      change BalancedTensor.tmul (InductionBimodule.mk (ι r)) v =
        BalancedTensor.tmul (InductionBimodule.mk (ι r * 1)) v
      rw [mul_one]
    rw [he, f.map_smul]
33
def extendFormula (g : V →ₗ[R] W) : InductionBimodule ι →ₗ[k] V →ₗ[k] W :=
body · 2 lines
  ((BalancedTensor.leftAction (k := k) (R := S) (M := W)).compl₂
    (g.restrictScalars k)).comp (InductionBimodule.scalarEquiv ι).toLinearMap
37
def extendHom (hcompat : ∀ (r : R) (w : W), r • w = (ι r) • w)
    (g : V →ₗ[R] W) : Object (V := V) ι →ₗ[S] W :=
body · 6 lines
  BalancedTensor.liftLeft (extendFormula ι g)
    (by
      intro a r v
      change (a.value * ι r) • g v = a.value • g (r • v)
      rw [g.map_smul, hcompat, mul_smul])
    (by intro s a v; exact mul_smul s a.value (g v))
46
@[simp] theorem extendHom_tmul (hcompat : ∀ (r : R) (w : W), r • w = (ι r) • w)
    (g : V →ₗ[R] W) (a : InductionBimodule ι) (v : V) :
    extendHom ι hcompat g (BalancedTensor.tmul a v) = a.value • g v := rfl
50
def homEquiv (hcompat : ∀ (r : R) (w : W), r • w = (ι r) • w) :
    (Object (V := V) ι →ₗ[S] W) ≃ₗ[k] (V →ₗ[R] W) where
body · 22 lines
  toFun := restrictHom ι hcompat
  invFun := extendHom ι hcompat
  left_inv f := by
    apply BalancedTensor.leftHom_ext
    intro a v
    change a.value • f (BalancedTensor.tmul ⟨1⟩ v) = f (BalancedTensor.tmul a v)
    rw [← f.map_smul]
    congr 1
    change BalancedTensor.tmul ⟨a.value * 1⟩ v = BalancedTensor.tmul a v
    rw [mul_one]
  right_inv g := by
    apply LinearMap.ext
    intro v
    exact one_smul S (g v)
  map_add' f g := by
    apply LinearMap.ext
    intro v
    rfl
  map_smul' a f := by
    apply LinearMap.ext
    intro v
    rfl