/-
Copyright (c) 2025 Monica Omar. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Monica Omar
-/
module
public import Mathlib.LinearAlgebra.FiniteDimensional.Defs
set_option doc.verso true
set_option doc.verso.suggestions false
/-!
# Basis of an opposite space
This file defines the basis of an opposite space and shows
that the opposite space is finite-dimensional and free when the original space is.
-/
@[expose] public section
open Module MulOpposite
variable {R H : Type*}
namespace Module.Basis
variable {ι : Type*} [Semiring R] [AddCommMonoid H] [Module R H]
/-- The multiplicative opposite of a basis: `b.mulOpposite i ↦ op (b i)`. -/
noncomputable def mulOpposite (b : Basis ι R H) : Basis ι R Hᵐᵒᵖ :=
b.map (opLinearEquiv R)
@[simp]
theorem mulOpposite_apply (b : Basis ι R H) (i : ι) :
b.mulOpposite i = op (b i) := rfl
theorem mulOpposite_repr_eq (b : Basis ι R H) :
b.mulOpposite.repr = (opLinearEquiv R).symm.trans b.repr := rfl
@[simp]
theorem repr_unop_eq_mulOpposite_repr (b : Basis ι R H) (x : Hᵐᵒᵖ) :
b.repr (unop x) = b.mulOpposite.repr x := rfl
@[simp]
theorem mulOpposite_repr_op (b : Basis ι R H) (x : H) :
b.mulOpposite.repr (op x) = b.repr x := rfl
end Module.Basis
namespace MulOpposite
instance [DivisionRing R] [AddCommGroup H] [Module R H]
[FiniteDimensional R H] : FiniteDimensional R Hᵐᵒᵖ := FiniteDimensional.of_finite_basis
(Basis.ofVectorSpace R H).mulOpposite (Basis.ofVectorSpaceIndex R H).toFinite
instance [Semiring R] [AddCommMonoid H] [Module R H]
[Module.Free R H] : Module.Free R Hᵐᵒᵖ :=
let ⟨b⟩ := Module.Free.exists_basis (R := R) (M := H)
Module.Free.of_basis b.2.mulOpposite
theorem rank [Semiring R] [StrongRankCondition R] [AddCommMonoid H] [Module R H]
[Module.Free R H] : Module.rank R Hᵐᵒᵖ = Module.rank R H :=
Module.nonempty_linearEquiv_iff_rank_eq.mp ⟨(opLinearEquiv R).symm⟩
theorem finrank [DivisionRing R] [AddCommGroup H] [Module R H] :
Module.finrank R Hᵐᵒᵖ = Module.finrank R H := by
let b := Basis.ofVectorSpace R H
rw [Module.finrank_eq_nat_card_basis b, Module.finrank_eq_nat_card_basis b.mulOpposite]
end MulOpposite
¤ Dauer der Verarbeitung: 0.2 Sekunden
¤
*© Formatika GbR, Deutschland