/-
Copyright (c) 2024 Joël Riou. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Joël Riou, Sophie Morel
-/
module
public import Mathlib.LinearAlgebra.ExteriorPower.Basic
public import Mathlib.LinearAlgebra.TensorPower.Pairing
/-!
# The pairing between the exterior power of the dual and the exterior power
We construct the pairing
`exteriorPower.pairingDual : ⋀[R]^n (Module.Dual R M) →ₗ[R] (Module.Dual R (⋀[R]^n M))`.
-/
@[expose] public section
namespace exteriorPower
open TensorProduct PiTensorProduct
variable (R : Type*) (M : Type*) [CommRing R] [AddCommGroup M] [Module R M]
/-- The linear map from the `n`th exterior power to the `n`th tensor power obtained by
`MultilinearMap.alternatization`. -/
noncomputable def toTensorPower (n : ℕ) : ⋀[R]^n M →ₗ[R] ⨂[R]^n M :=
alternatingMapLinearEquiv (MultilinearMap.alternatization (PiTensorProduct.tprod R))
variable {M} in
open Equiv in
@[simp]
lemma toTensorPower_apply_ιMulti {n : ℕ} (v : Fin n → M) :
toTensorPower R M n (ιMulti R n v) =
∑ σ : Perm (Fin n), Perm.sign σ • PiTensorProduct.tprod R (fun i ↦ v (σ i)) := by
dsimp [toTensorPower]
simp only [alternatingMapLinearEquiv_apply_ιMulti,
MultilinearMap.alternatization_apply, MultilinearMap.domDomCongr_apply]
/-- The canonical `n`-alternating map from the dual of the `R`-module `M`
to the dual of `⋀[R]^n M`. -/
noncomputable def alternatingMapToDual (n : ℕ) :
AlternatingMap R (Module.Dual R M) (Module.Dual R (⋀[R]^n M)) (Fin n) where
toMultilinearMap := (toTensorPower R M n).dualMap.compMultilinearMap
(TensorPower.multilinearMapToDual R M n)
map_eq_zero_of_eq' f i j hf hij := by
ext v
suffices Matrix.det (n := Fin n) (.of (fun i j ↦ f j (v i))) = 0 by
simpa [Matrix.det_apply] using this
exact Matrix.det_zero_of_column_eq hij (by simp [hf])
variable {R M} in
open Equiv in
@[simp]
theorem alternatingMapToDual_apply_ιMulti {n : ℕ}
(f : (_ : Fin n) → Module.Dual R M) (v : Fin n → M) :
alternatingMapToDual R M n f (ιMulti _ _ v) =
Matrix.det (n := Fin n) (.of (fun i j ↦ f j (v i))) := by
simp [alternatingMapToDual, Matrix.det_apply]
/-- The linear map from the exterior power of the dual to the dual of the exterior power. -/
noncomputable def pairingDual (n : ℕ) :
⋀[R]^n (Module.Dual R M) →ₗ[R] Module.Dual R (⋀[R]^n M) :=
alternatingMapLinearEquiv (alternatingMapToDual R M n)
variable {R M} in
open Equiv in
@[simp]
lemma pairingDual_ιMulti_ιMulti {n : ℕ} (f : (_ : Fin n) → Module.Dual R M) (v : Fin n → M) :
pairingDual R M n (ιMulti _ _ f) (ιMulti _ _ v) =
Matrix.det (n := Fin n) (.of (fun i j ↦ f j (v i))) := by
simp [pairingDual]
section Deprecated
/-! If an `R`-module `M` has a family of vectors `x : ι → M` and linear maps `f : ι → M`
such that `f i (x j)` is `1` or `0` depending on `i = j` or `i ≠ j`, then if `ι` has
a linear order, then a similar property regarding `pairingDual R M n`
applies to the family of vectors indexed
by `Fin n ↪o ι` in `⋀[R]^n M` and in `⋀[R]^n (Module.Dual R M)` that are obtained
by taking exterior products of the `x i` and the `f j`.
These results were added with the intention of using them to prove that exterior powers of a free
modules are free. However this result has since been established by other means (see
`Module.Basis.exteriorPower`) and so this work is now deprecated. -/
variable {R M} {ι : Type*} [LinearOrder ι]
(x : ι → M) (f : ι → Module.Dual R M)
(h₁ : ∀ i, f i (x i) = 1) (h₀ : ∀ ⦃i j⦄, i ≠ j → f i (x j) = 0) (n : ℕ)
include h₁ h₀ in
@[deprecated "no replacement" (since := "2026-08-23")]
lemma pairingDual_apply_apply_eq_one (a : Fin n ↪o ι) :
pairingDual R M n (ιMulti _ _ (f ∘ a)) (ιMulti _ _ (x ∘ a)) = 1 := by
simp only [pairingDual_ιMulti_ιMulti, Function.comp_apply]
rw [← Matrix.det_one (n := Fin n)]
congr
ext i j
dsimp
by_cases hij : i = j
· subst hij
simp only [h₁, Matrix.one_apply_eq]
· rw [h₀ (by simpa using Ne.symm hij), Matrix.one_apply_ne hij]
include h₀ in
@[deprecated "no replacement" (since := "2026-08-23")]
lemma pairingDual_apply_apply_eq_one_zero (a b : Fin n ↪o ι) (h : a ≠ b) :
pairingDual R M n (ιMulti _ _ (f ∘ a)) (ιMulti _ _ (x ∘ b)) = 0 := by
simp only [pairingDual_ιMulti_ιMulti, Function.comp_apply, Matrix.det_apply]
refine Finset.sum_eq_zero (fun σ _ ↦ ?_)
simp only [Matrix.of_apply, smul_eq_iff_eq_inv_smul, smul_zero]
by_contra h'
apply h
have : a = b ∘ σ := by
ext i
by_contra hi
exact h' (Finset.prod_eq_zero (i := i) (by simp) (h₀ hi))
have hσ : Monotone σ := fun i j hij ↦ by
have h'' := congr_fun this
dsimp at h''
rw [← a.map_rel_iff] at hij
simpa only [← b.map_rel_iff, ← h'']
have hσ' : Monotone σ.symm := fun i j hij ↦ by
obtain ⟨i, rfl⟩ := σ.surjective i
obtain ⟨j, rfl⟩ := σ.surjective j
simp only [Equiv.symm_apply_apply]
by_contra! h
obtain rfl : i = j := σ.injective (le_antisymm hij (hσ h.le))
simp only [lt_self_iff_false] at h
obtain rfl : σ = 1 := by
ext i : 1
congrm $(Subsingleton.elim (σ.toOrderIso hσ hσ') (OrderIso.refl _)) i
ext
apply congr_fun this
end Deprecated
end exteriorPower
¤ Dauer der Verarbeitung: 0.10 Sekunden
¤
*© Formatika GbR, Deutschland