AFTD Auto-Formalizing Theoretical Domains

EuclideanGroup.orthogonalToLinearIsometryEquiv

defimported Lean

An orthogonal matrix viewed as a linear isometry equivalence of EuclideanSpace ℝ (Fin n); the linear ingredient of the first leg toAffineIsometryHom.

Statement

set_option autoImplicit true in
set_option relaxedAutoImplicit true in
variable {n : ℕ} in
open scoped Matrix in
noncomputable def EuclideanGroup.orthogonalToLinearIsometryEquiv
    (Q : Matrix.orthogonalGroup (Fin n) ℝ) :
    EuclideanSpace ℝ (Fin n) ≃ₗᵢ[ℝ] EuclideanSpace ℝ (Fin n)
Defined in
Physlib, `EuclideanGroup.orthogonalToLinearIsometryEquiv`
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 8

Lean source view module on GitHub

set_option autoImplicit true in
set_option relaxedAutoImplicit true in
variable {n : ℕ} in
open scoped Matrix in
/-- An orthogonal matrix viewed as a linear isometry equivalence of `EuclideanSpace ℝ (Fin n)`; the linear ingredient of the first leg `toAffineIsometryHom`. -/
noncomputable def EuclideanGroup.orthogonalToLinearIsometryEquiv
    (Q : Matrix.orthogonalGroup (Fin n) ℝ) :
    EuclideanSpace ℝ (Fin n) ≃ₗᵢ[ℝ] EuclideanSpace ℝ (Fin n) :=
  (DistribMulAction.toLinearEquiv ℝ (EuclideanSpace ℝ (Fin n)) Q).isometryOfInner fun x y => by
    simp only [DistribMulAction.toLinearEquiv_apply,
      EuclideanSpace.inner_eq_star_dotProduct, star_trivial]
    show (Q.val *ᵥ y.ofLp) ⬝ᵥ (Q.val *ᵥ x.ofLp) = y.ofLp ⬝ᵥ x.ofLp
    have hQ : (Q.val)ᵀ * Q.val = 1 := (Matrix.mem_orthogonalGroup_iff' (Fin n) ℝ).mp Q.property
    rw [Matrix.dotProduct_mulVec, Matrix.vecMul_mulVec, hQ, Matrix.vecMul_one]
See it in the graphDiscuss this resultChallenge it