The Mathlib Handbook

The volumes of the handbook are not written yet. This site shows the map of Mathlib that they will follow, at Mathlib 4472534b60.

The areas / V08. Multilinear algebra and forms

Mathlib.LinearAlgebra.Orientation

45 declarations. Mathlib docs · Source

Orientations of modules

This file defines orientations of modules.

Main definitions

  • Orientation is a type synonym for Module.Ray for the case where the module is that of alternating maps from a module to its underlying ring. An orientation may be associated with an alternating map or with a basis.

  • Module.Oriented is a type class for a choice of orientation of a module that is considered the positive orientation.

Implementation notes

Orientation is defined for an arbitrary index type, but the main intended use case is when that index type is a Fintype and there exists a basis of the same cardinality.

References

  • https://en.wikipedia.org/wiki/Orientation_(vector_space)

theorem Module.Basis.adjustToOrientation.congr_simp E1 #

∀ {R : Type u_1} [inst : CommRing R] [inst_1 : LinearOrder R] [inst_2 : IsStrictOrderedRing R] {M : Type u_2}
  [inst_3 : AddCommGroup M] [inst_4 : Module R M] {ι : Type u_3} [inst_5 : Fintype ι] [inst_6 : DecidableEq ι]
  [inst_7 : Nonempty ι] (e e_1 : Module.Basis ι R M),
  e = e_1 → ∀ (x x_1 : Orientation R M ι), x = x_1 → e.adjustToOrientation x = e_1.adjustToOrientation x_1

theorem AlternatingMap.constLinearEquivOfIsEmpty.congr_simp E1 #

∀ {ι : Type u_7} {R' : Type u_10} {M'' : Type u_11} {N'' : Type u_13} [inst : CommSemiring R']
  [inst_1 : AddCommMonoid M''] [inst_2 : AddCommMonoid N''] [inst_3 : Module R' M''] [inst_4 : Module R' N'']
  [inst_5 : IsEmpty ι], AlternatingMap.constLinearEquivOfIsEmpty = AlternatingMap.constLinearEquivOfIsEmpty

def Module.Oriented.ctorIdx E1 #

{R : Type u_1} →
  {inst : CommSemiring R} →
    {inst_1 : PartialOrder R} →
      {inst_2 : IsStrictOrderedRing R} →
        {M : Type u_2} → {inst_3 : AddCommMonoid M} → {inst_4 : Module R M} → {ι : Type u_4} → Module.Oriented R M ι → ℕ

abbrev Orientation E3 #

(R : Type u_1) →
  [inst : CommSemiring R] →
    [inst_1 : PartialOrder R] →
      [IsStrictOrderedRing R] →
        (M : Type u_2) → [inst_3 : AddCommMonoid M] → [Module R M] → Type u_4 → Type (max (max u_4 u_1) u_2)

An orientation of a module, intended to be used when ι is a Fintype with the same cardinality as a basis.

class Module.Oriented E3 #

(R : Type u_1) →
  [inst : CommSemiring R] →
    [inst_1 : PartialOrder R] →
      [IsStrictOrderedRing R] →
        (M : Type u_2) → [inst_3 : AddCommMonoid M] → [Module R M] → Type u_4 → Type (max (max u_1 u_2) u_4)

A type class fixing an orientation of a module.

ctor Module.Oriented.mk E0 #

{R : Type u_1} →
  [inst : CommSemiring R] →
    [inst_1 : PartialOrder R] →
      [inst_2 : IsStrictOrderedRing R] →
        {M : Type u_2} →
          [inst_3 : AddCommMonoid M] →
            [inst_4 : Module R M] → {ι : Type u_4} → Orientation R M ι → Module.Oriented R M ι

abbrev Module.Oriented.positiveOrientation E1 #

{R : Type u_1} →
  {inst : CommSemiring R} →
    {inst_1 : PartialOrder R} →
      {inst_2 : IsStrictOrderedRing R} →
        {M : Type u_2} →
          {inst_3 : AddCommMonoid M} →
            {inst_4 : Module R M} → {ι : Type u_4} → [self : Module.Oriented R M ι] → Orientation R M ι

Fix a positive orientation.

instance instSubsingletonOrientationOfNonempty E0 #

∀ {R : Type u_1} [inst : CommSemiring R] [inst_1 : PartialOrder R] [inst_2 : IsStrictOrderedRing R] {M : Type u_2}
  [inst_3 : AddCommMonoid M] [inst_4 : Module R M] (ι : Type u_4) [Nonempty ι] [Subsingleton M],
  Subsingleton (Orientation R M ι)

def Orientation.map E1 #

{R : Type u_1} →
  [inst : CommSemiring R] →
    [inst_1 : PartialOrder R] →
      [inst_2 : IsStrictOrderedRing R] →
        {M : Type u_2} →
          [inst_3 : AddCommMonoid M] →
            [inst_4 : Module R M] →
              {N : Type u_3} →
                [inst_5 : AddCommMonoid N] →
                  [inst_6 : Module R N] → (ι : Type u_4) → (M ≃ₗ[R] N) → Orientation R M ι ≃ Orientation R N ι

An equivalence between modules implies an equivalence between orientations.

theorem Orientation.map_apply E0 #

∀ {R : Type u_1} [inst : CommSemiring R] [inst_1 : PartialOrder R] [inst_2 : IsStrictOrderedRing R] {M : Type u_2}
  [inst_3 : AddCommMonoid M] [inst_4 : Module R M] {N : Type u_3} [inst_5 : AddCommMonoid N] [inst_6 : Module R N]
  (ι : Type u_4) (e : M ≃ₗ[R] N) (v : M [⋀^ι]→ₗ[R] R) (hv : v ≠ 0),
  (Orientation.map ι e) (rayOfNeZero R v hv) = rayOfNeZero R (v.compLinearMap ↑e.symm) ⋯

theorem Orientation.map_refl E0 #

∀ {R : Type u_1} [inst : CommSemiring R] [inst_1 : PartialOrder R] [inst_2 : IsStrictOrderedRing R] {M : Type u_2}
  [inst_3 : AddCommMonoid M] [inst_4 : Module R M] (ι : Type u_4),
  Orientation.map ι (LinearEquiv.refl R M) = Equiv.refl (Orientation R M ι)

theorem Orientation.map_symm E0 #

∀ {R : Type u_1} [inst : CommSemiring R] [inst_1 : PartialOrder R] [inst_2 : IsStrictOrderedRing R] {M : Type u_2}
  [inst_3 : AddCommMonoid M] [inst_4 : Module R M] {N : Type u_3} [inst_5 : AddCommMonoid N] [inst_6 : Module R N]
  (ι : Type u_4) (e : M ≃ₗ[R] N), (Orientation.map ι e).symm = Orientation.map ι e.symm

def Orientation.reindex E1 #

(R : Type u_1) →
  [inst : CommSemiring R] →
    [inst_1 : PartialOrder R] →
      [inst_2 : IsStrictOrderedRing R] →
        (M : Type u_2) →
          [inst_3 : AddCommMonoid M] →
            [inst_4 : Module R M] → {ι : Type u_4} → {ι' : Type u_5} → ι ≃ ι' → Orientation R M ι ≃ Orientation R M ι'

An equivalence between indices implies an equivalence between orientations.

theorem Orientation.reindex_apply E0 #

∀ (R : Type u_1) [inst : CommSemiring R] [inst_1 : PartialOrder R] [inst_2 : IsStrictOrderedRing R] (M : Type u_2)
  [inst_3 : AddCommMonoid M] [inst_4 : Module R M] {ι : Type u_4} {ι' : Type u_5} (e : ι ≃ ι') (v : M [⋀^ι]→ₗ[R] R)
  (hv : v ≠ 0), (Orientation.reindex R M e) (rayOfNeZero R v hv) = rayOfNeZero R (AlternatingMap.domDomCongr e v) ⋯

theorem Orientation.reindex_refl E0 #

∀ (R : Type u_1) [inst : CommSemiring R] [inst_1 : PartialOrder R] [inst_2 : IsStrictOrderedRing R] (M : Type u_2)
  [inst_3 : AddCommMonoid M] [inst_4 : Module R M] {ι : Type u_4},
  Orientation.reindex R M (Equiv.refl ι) = Equiv.refl (Orientation R M ι)

theorem Orientation.reindex_symm E0 #

∀ (R : Type u_1) [inst : CommSemiring R] [inst_1 : PartialOrder R] [inst_2 : IsStrictOrderedRing R] (M : Type u_2)
  [inst_3 : AddCommMonoid M] [inst_4 : Module R M] {ι : Type u_4} {ι' : Type u_5} (e : ι ≃ ι'),
  (Orientation.reindex R M e).symm = Orientation.reindex R M e.symm

instance IsEmpty.oriented E0 #

{R : Type u_1} →
  [inst : CommSemiring R] →
    [inst_1 : PartialOrder R] →
      [inst_2 : IsStrictOrderedRing R] →
        {M : Type u_2} →
          [inst_3 : AddCommMonoid M] → [inst_4 : Module R M] → (ι : Type u_4) → [IsEmpty ι] → Module.Oriented R M ι

A module is canonically oriented with respect to an empty index type.

theorem Orientation.map_positiveOrientation_of_isEmpty E0 #

∀ {R : Type u_1} [inst : CommSemiring R] [inst_1 : PartialOrder R] [inst_2 : IsStrictOrderedRing R] {M : Type u_2}
  [inst_3 : AddCommMonoid M] [inst_4 : Module R M] {N : Type u_3} [inst_5 : AddCommMonoid N] [inst_6 : Module R N]
  (ι : Type u_4) [inst_7 : IsEmpty ι] (f : M ≃ₗ[R] N), (Orientation.map ι f) positiveOrientation = positiveOrientation

theorem Orientation.map_of_isEmpty E0 #

∀ {R : Type u_1} [inst : CommSemiring R] [inst_1 : PartialOrder R] [inst_2 : IsStrictOrderedRing R] {M : Type u_2}
  [inst_3 : AddCommMonoid M] [inst_4 : Module R M] (ι : Type u_4) [IsEmpty ι] (x : Orientation R M ι) (f : M ≃ₗ[R] M),
  (Orientation.map ι f) x = x

theorem Orientation.map_neg E0 #

∀ {R : Type u_1} [inst : CommRing R] [inst_1 : PartialOrder R] [inst_2 : IsStrictOrderedRing R] {M : Type u_2}
  {N : Type u_3} [inst_3 : AddCommGroup M] [inst_4 : AddCommGroup N] [inst_5 : Module R M] [inst_6 : Module R N]
  {ι : Type u_4} (f : M ≃ₗ[R] N) (x : Orientation R M ι), (Orientation.map ι f) (-x) = -(Orientation.map ι f) x

theorem Orientation.reindex_neg E0 #

∀ {R : Type u_1} [inst : CommRing R] [inst_1 : PartialOrder R] [inst_2 : IsStrictOrderedRing R] {M : Type u_2}
  [inst_3 : AddCommGroup M] [inst_4 : Module R M] {ι : Type u_4} {ι' : Type u_5} (e : ι ≃ ι') (x : Orientation R M ι),
  (Orientation.reindex R M e) (-x) = -(Orientation.reindex R M e) x

theorem Module.Basis.map_orientation_eq_det_inv_smul E0 #

∀ {R : Type u_1} [inst : CommRing R] [inst_1 : PartialOrder R] [inst_2 : IsStrictOrderedRing R] {M : Type u_2}
  [inst_3 : AddCommGroup M] [inst_4 : Module R M] {ι : Type u_4} [Finite ι] (e : Module.Basis ι R M)
  (x : Orientation R M ι) (f : M ≃ₗ[R] M), (Orientation.map ι f) x = (LinearEquiv.det f)⁻¹ • x

The value of Orientation.map when the index type has the cardinality of a basis, in terms of f.det.

def Module.Basis.orientation E1 #

{R : Type u_1} →
  [inst : CommRing R] →
    [inst_1 : PartialOrder R] →
      [inst_2 : IsStrictOrderedRing R] →
        {M : Type u_2} →
          [inst_3 : AddCommGroup M] →
            [inst_4 : Module R M] →
              {ι : Type u_4} → [Fintype ι] → [DecidableEq ι] → Module.Basis ι R M → Orientation R M ι

The orientation given by a basis.

theorem Module.Basis.orientation_map E1 #

∀ {R : Type u_1} [inst : CommRing R] [inst_1 : PartialOrder R] [inst_2 : IsStrictOrderedRing R] {M : Type u_2}
  {N : Type u_3} [inst_3 : AddCommGroup M] [inst_4 : AddCommGroup N] [inst_5 : Module R M] [inst_6 : Module R N]
  {ι : Type u_4} [inst_7 : Fintype ι] [inst_8 : DecidableEq ι] (e : Module.Basis ι R M) (f : M ≃ₗ[R] N),
  (e.map f).orientation = (Orientation.map ι f) e.orientation

theorem Module.Basis.orientation_reindex E1 #

∀ {R : Type u_1} [inst : CommRing R] [inst_1 : PartialOrder R] [inst_2 : IsStrictOrderedRing R] {M : Type u_2}
  [inst_3 : AddCommGroup M] [inst_4 : Module R M] {ι : Type u_4} {ι' : Type u_5} [inst_5 : Fintype ι]
  [inst_6 : DecidableEq ι] [inst_7 : Fintype ι'] [inst_8 : DecidableEq ι'] (e : Module.Basis ι R M) (eι : ι ≃ ι'),
  (e.reindex eι).orientation = (Orientation.reindex R M eι) e.orientation

theorem Module.Basis.orientation_unitsSMul E1 #

∀ {R : Type u_1} [inst : CommRing R] [inst_1 : PartialOrder R] [inst_2 : IsStrictOrderedRing R] {M : Type u_2}
  [inst_3 : AddCommGroup M] [inst_4 : Module R M] {ι : Type u_4} [inst_5 : Fintype ι] [inst_6 : DecidableEq ι]
  (e : Module.Basis ι R M) (w : ι → Rˣ), (e.unitsSMul w).orientation = (∏ i, w i)⁻¹ • e.orientation

The orientation given by a basis derived using units_smul, in terms of the product of those units.

theorem Module.Basis.orientation_isEmpty E0 #

∀ {R : Type u_1} [inst : CommRing R] [inst_1 : PartialOrder R] [inst_2 : IsStrictOrderedRing R] {M : Type u_2}
  [inst_3 : AddCommGroup M] [inst_4 : Module R M] {ι : Type u_4} [inst_5 : Fintype ι] [inst_6 : DecidableEq ι]
  [inst_7 : IsEmpty ι] (b : Module.Basis ι R M), b.orientation = positiveOrientation

def Module.Oriented.Arbitrary.instFinOfFiniteOfFreeOfFactEqNatFinrank E1 #

{R : Type u_1} →
  [inst : CommRing R] →
    [inst_1 : PartialOrder R] →
      [inst_2 : IsStrictOrderedRing R] →
        {M : Type u_2} →
          [inst_3 : AddCommGroup M] →
            [inst_4 : Module R M] →
              {n : ℕ} →
                [Module.Finite R M] → [Module.Free R M] → [Fact (Module.finrank R M = n)] → Module.Oriented R M (Fin n)

An arbitrary choice of orientation.

theorem Module.Basis.orientation_eq_iff_det_pos E1 #

∀ {R : Type u_1} [inst : CommRing R] [inst_1 : LinearOrder R] [inst_2 : IsStrictOrderedRing R] {M : Type u_2}
  [inst_3 : AddCommGroup M] [inst_4 : Module R M] {ι : Type u_3} [inst_5 : Fintype ι] [inst_6 : DecidableEq ι]
  (e₁ e₂ : Module.Basis ι R M), e₁.orientation = e₂.orientation ↔ 0 < e₁.det ⇑e₂

The orientations given by two bases are equal if and only if the determinant of one basis with respect to the other is positive.

theorem Module.Basis.orientation_eq_or_eq_neg E1 #

∀ {R : Type u_1} [inst : CommRing R] [inst_1 : LinearOrder R] [inst_2 : IsStrictOrderedRing R] {M : Type u_2}
  [inst_3 : AddCommGroup M] [inst_4 : Module R M] {ι : Type u_3} [inst_5 : Fintype ι] [inst_6 : DecidableEq ι]
  (e : Module.Basis ι R M) (x : Orientation R M ι), x = e.orientation ∨ x = -e.orientation

Given a basis, any orientation equals the orientation given by that basis or its negation.

theorem Module.Basis.orientation_ne_iff_eq_neg E1 #

∀ {R : Type u_1} [inst : CommRing R] [inst_1 : LinearOrder R] [inst_2 : IsStrictOrderedRing R] {M : Type u_2}
  [inst_3 : AddCommGroup M] [inst_4 : Module R M] {ι : Type u_3} [inst_5 : Fintype ι] [inst_6 : DecidableEq ι]
  (e : Module.Basis ι R M) (x : Orientation R M ι), x ≠ e.orientation ↔ x = -e.orientation

Given a basis, an orientation equals the negation of that given by that basis if and only if it does not equal that given by that basis.

theorem Module.Basis.orientation_comp_linearEquiv_eq_iff_det_pos E1 #

∀ {R : Type u_1} [inst : CommRing R] [inst_1 : LinearOrder R] [inst_2 : IsStrictOrderedRing R] {M : Type u_2}
  [inst_3 : AddCommGroup M] [inst_4 : Module R M] {ι : Type u_3} [inst_5 : Fintype ι] [inst_6 : DecidableEq ι]
  (e : Module.Basis ι R M) (f : M ≃ₗ[R] M), (e.map f).orientation = e.orientation ↔ 0 < LinearMap.det ↑f

Composing a basis with a linear equiv gives the same orientation if and only if the determinant is positive.

theorem Module.Basis.orientation_comp_linearEquiv_eq_neg_iff_det_neg E1 #

∀ {R : Type u_1} [inst : CommRing R] [inst_1 : LinearOrder R] [inst_2 : IsStrictOrderedRing R] {M : Type u_2}
  [inst_3 : AddCommGroup M] [inst_4 : Module R M] {ι : Type u_3} [inst_5 : Fintype ι] [inst_6 : DecidableEq ι]
  (e : Module.Basis ι R M) (f : M ≃ₗ[R] M), (e.map f).orientation = -e.orientation ↔ LinearMap.det ↑f < 0

Composing a basis with a linear equiv gives the negation of that orientation if and only if the determinant is negative.

theorem Module.Basis.orientation_neg_single E0 #

∀ {R : Type u_1} [inst : CommRing R] [inst_1 : LinearOrder R] [inst_2 : IsStrictOrderedRing R] {M : Type u_2}
  [inst_3 : AddCommGroup M] [inst_4 : Module R M] {ι : Type u_3} [inst_5 : Fintype ι] [inst_6 : DecidableEq ι]
  (e : Module.Basis ι R M) (i : ι), (e.unitsSMul (Function.update 1 i (-1))).orientation = -e.orientation

Negating a single basis vector (represented using units_smul) negates the corresponding orientation.

def Module.Basis.adjustToOrientation E1 #

{R : Type u_1} →
  [inst : CommRing R] →
    [inst_1 : LinearOrder R] →
      [inst_2 : IsStrictOrderedRing R] →
        {M : Type u_2} →
          [inst_3 : AddCommGroup M] →
            [inst_4 : Module R M] →
              {ι : Type u_3} →
                [Fintype ι] →
                  [DecidableEq ι] → [Nonempty ι] → Module.Basis ι R M → Orientation R M ι → Module.Basis ι R M

Given a basis and an orientation, return a basis giving that orientation: either the original basis, or one constructed by negating a single (arbitrary) basis vector.

theorem Module.Basis.orientation_adjustToOrientation E0 #

∀ {R : Type u_1} [inst : CommRing R] [inst_1 : LinearOrder R] [inst_2 : IsStrictOrderedRing R] {M : Type u_2}
  [inst_3 : AddCommGroup M] [inst_4 : Module R M] {ι : Type u_3} [inst_5 : Fintype ι] [inst_6 : DecidableEq ι]
  [inst_7 : Nonempty ι] (e : Module.Basis ι R M) (x : Orientation R M ι), (e.adjustToOrientation x).orientation = x

adjust_to_orientation gives a basis with the required orientation.

theorem Module.Basis.adjustToOrientation_apply_eq_or_eq_neg E1 #

∀ {R : Type u_1} [inst : CommRing R] [inst_1 : LinearOrder R] [inst_2 : IsStrictOrderedRing R] {M : Type u_2}
  [inst_3 : AddCommGroup M] [inst_4 : Module R M] {ι : Type u_3} [inst_5 : Fintype ι] [inst_6 : DecidableEq ι]
  [inst_7 : Nonempty ι] (e : Module.Basis ι R M) (x : Orientation R M ι) (i : ι),
  (e.adjustToOrientation x) i = e i ∨ (e.adjustToOrientation x) i = -e i

Every basis vector from adjust_to_orientation is either that from the original basis or its negation.

theorem Module.Basis.det_adjustToOrientation E1 #

∀ {R : Type u_1} [inst : CommRing R] [inst_1 : LinearOrder R] [inst_2 : IsStrictOrderedRing R] {M : Type u_2}
  [inst_3 : AddCommGroup M] [inst_4 : Module R M] {ι : Type u_3} [inst_5 : Fintype ι] [inst_6 : DecidableEq ι]
  [inst_7 : Nonempty ι] (e : Module.Basis ι R M) (x : Orientation R M ι),
  (e.adjustToOrientation x).det = e.det ∨ (e.adjustToOrientation x).det = -e.det

theorem Module.Basis.abs_det_adjustToOrientation E0 #

∀ {R : Type u_1} [inst : CommRing R] [inst_1 : LinearOrder R] [inst_2 : IsStrictOrderedRing R] {M : Type u_2}
  [inst_3 : AddCommGroup M] [inst_4 : Module R M] {ι : Type u_3} [inst_5 : Fintype ι] [inst_6 : DecidableEq ι]
  [inst_7 : Nonempty ι] (e : Module.Basis ι R M) (x : Orientation R M ι) (v : ι → M),
  |(e.adjustToOrientation x).det v| = |e.det v|

theorem Orientation.ne_iff_eq_neg E1 #

∀ {R : Type u_1} [inst : Field R] [inst_1 : LinearOrder R] [inst_2 : IsStrictOrderedRing R] {M : Type u_2}
  [inst_3 : AddCommGroup M] [inst_4 : Module R M] {ι : Type u_3} [FiniteDimensional R M] (x₁ x₂ : Orientation R M ι),
  Nat.card ι = Module.finrank R M → (x₁ ≠ x₂ ↔ x₁ = -x₂)

If the index type has cardinality equal to the finite dimension, an orientation equals the negation of another orientation if and only if they are not equal.

theorem Orientation.map_eq_det_inv_smul E0 #

∀ {R : Type u_1} [inst : Field R] [inst_1 : LinearOrder R] [inst_2 : IsStrictOrderedRing R] {M : Type u_2}
  [inst_3 : AddCommGroup M] [inst_4 : Module R M] {ι : Type u_3} [inst_5 : Fintype ι] [FiniteDimensional R M]
  (x : Orientation R M ι) (f : M ≃ₗ[R] M),
  Fintype.card ι = Module.finrank R M → (Orientation.map ι f) x = (LinearEquiv.det f)⁻¹ • x

The value of Orientation.map when the index type has cardinality equal to the finite dimension, in terms of f.det.

theorem Orientation.map_eq_iff_det_pos E0 #

∀ {R : Type u_1} [inst : Field R] [inst_1 : LinearOrder R] [inst_2 : IsStrictOrderedRing R] {M : Type u_2}
  [inst_3 : AddCommGroup M] [inst_4 : Module R M] {ι : Type u_3} [inst_5 : Fintype ι] [FiniteDimensional R M]
  (x : Orientation R M ι) (f : M ≃ₗ[R] M),
  Fintype.card ι = Module.finrank R M → ((Orientation.map ι f) x = x ↔ 0 < LinearMap.det ↑f)

If the index type has cardinality equal to the finite dimension, composing an alternating map with the same linear equiv on each argument gives the same orientation if and only if the determinant is positive.

theorem Orientation.map_eq_neg_iff_det_neg E0 #

∀ {R : Type u_1} [inst : Field R] [inst_1 : LinearOrder R] [inst_2 : IsStrictOrderedRing R] {M : Type u_2}
  [inst_3 : AddCommGroup M] [inst_4 : Module R M] {ι : Type u_3} [inst_5 : Fintype ι] (x : Orientation R M ι)
  (f : M ≃ₗ[R] M), Fintype.card ι = Module.finrank R M → ((Orientation.map ι f) x = -x ↔ LinearMap.det ↑f < 0)

If the index type has cardinality equal to the finite dimension, composing an alternating map with the same linear equiv on each argument gives the negation of that orientation if and only if the determinant is negative.

def Orientation.someBasis E1 #

{R : Type u_1} →
  [inst : Field R] →
    [inst_1 : LinearOrder R] →
      [inst_2 : IsStrictOrderedRing R] →
        {M : Type u_2} →
          [inst_3 : AddCommGroup M] →
            [inst_4 : Module R M] →
              {ι : Type u_3} →
                [inst_5 : Fintype ι] →
                  [Nonempty ι] →
                    [DecidableEq ι] →
                      [FiniteDimensional R M] →
                        Orientation R M ι → Fintype.card ι = Module.finrank R M → Module.Basis ι R M

If the index type has cardinality equal to the finite dimension, a basis with the given orientation.

theorem Orientation.someBasis_orientation E0 #

∀ {R : Type u_1} [inst : Field R] [inst_1 : LinearOrder R] [inst_2 : IsStrictOrderedRing R] {M : Type u_2}
  [inst_3 : AddCommGroup M] [inst_4 : Module R M] {ι : Type u_3} [inst_5 : Fintype ι] [inst_6 : Nonempty ι]
  [inst_7 : DecidableEq ι] [inst_8 : FiniteDimensional R M] (x : Orientation R M ι)
  (h : Fintype.card ι = Module.finrank R M), (x.someBasis h).orientation = x

some_basis gives a basis with the required orientation.