AFTD Auto-Formalizing Theoretical Domains

EuclideanGroup.linearIsometryEquivToOrthogonal

defimported Lean

The invFun ingredient of toAffineIsometryMulEquiv: a linear isometry equivalence read back as an orthogonal matrix, inverse to the linear bridge orthogonalToLinearIsometryEquiv (see the round-trip @[simp] lemmas below).

Statement

set_option autoImplicit true in
set_option relaxedAutoImplicit true in
variable {n : ℕ} in
noncomputable def EuclideanGroup.linearIsometryEquivToOrthogonal
    (L : EuclideanSpace ℝ (Fin n) ≃ₗᵢ[ℝ] EuclideanSpace ℝ (Fin n)) :
    Matrix.orthogonalGroup (Fin n) ℝ
Defined in
Physlib, `EuclideanGroup.linearIsometryEquivToOrthogonal`
Lean proof
By Shaopeng Zhu, from github.com/leanprover-community/physlib at e411c6e89692 (Copyright (c) 2026 Shaopeng Zhu. All rights reserved, Apache-2.0). Compiled here against leanprover/lean4:v4.33.1, Mathlib v4.33.1; written for leanprover/lean4:v4.34.1.
Verified
09 Oct 2026
Axioms
none listed
Used by 3

Lean source view module on GitHub

set_option autoImplicit true in
set_option relaxedAutoImplicit true in
variable {n : ℕ} in
/-- The `invFun` ingredient of `toAffineIsometryMulEquiv`: a linear isometry equivalence read back as an orthogonal matrix, inverse to the linear bridge `orthogonalToLinearIsometryEquiv` (see the round-trip `@[simp]` lemmas below). -/
noncomputable def EuclideanGroup.linearIsometryEquivToOrthogonal
    (L : EuclideanSpace ℝ (Fin n) ≃ₗᵢ[ℝ] EuclideanSpace ℝ (Fin n)) :
    Matrix.orthogonalGroup (Fin n) ℝ :=
   let b := EuclideanSpace.basisFun (Fin n) ℝ
   ⟨LinearMap.toMatrix b.toBasis b.toBasis L.toLinearEquiv, by
    have hb : LinearMap.toMatrix b.toBasis b.toBasis L.toLinearEquiv
        = b.toBasis.toMatrix (b.map L) := by
      ext i j
      simp [LinearMap.toMatrix_apply, Module.Basis.toMatrix_apply,
        OrthonormalBasis.map_apply, OrthonormalBasis.coe_toBasis_repr_apply]
    rw [hb]
    exact b.toMatrix_orthonormalBasis_mem_orthogonal (b.map L)⟩
See it in the graphDiscuss this resultChallenge it