AFTD Auto-Formalizing Theoretical Domains

EuclideanGroup.toAffineIsometryMulEquiv

defimported Lean

EuclideanGroup n ≃* AffineIsometryEquiv ℝ (EuclideanSpace ℝ (Fin n)) _: the Euclidean group is the full group of affine isometries of Euclidean space. This upgrades toAffineIsometryHom to a group isomorphism with the same underlying map.

Statement

set_option autoImplicit true in
set_option relaxedAutoImplicit true in
open EuclideanGroup in
variable {n : ℕ} in
noncomputable def EuclideanGroup.toAffineIsometryMulEquiv :
    EuclideanGroup n ≃*
      AffineIsometryEquiv ℝ (EuclideanSpace ℝ (Fin n)) (EuclideanSpace ℝ (Fin n))
Defined in
Physlib, `EuclideanGroup.toAffineIsometryMulEquiv`
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
Built on 17
Used by 2

Lean source view module on GitHub

set_option autoImplicit true in
set_option relaxedAutoImplicit true in
open EuclideanGroup in
variable {n : ℕ} in
/-- `EuclideanGroup n ≃* AffineIsometryEquiv ℝ (EuclideanSpace ℝ (Fin n)) _`: the Euclidean group is the full group of affine isometries of Euclidean space. This upgrades `toAffineIsometryHom` to a group isomorphism with the same underlying map. -/
noncomputable def EuclideanGroup.toAffineIsometryMulEquiv :
    EuclideanGroup n ≃*
      AffineIsometryEquiv ℝ (EuclideanSpace ℝ (Fin n)) (EuclideanSpace ℝ (Fin n)) where
  toFun := toAffineIsometryHom
  invFun e := ⟨e 0, linearIsometryEquivToOrthogonal e.linearIsometryEquiv⟩
  left_inv A := by
    refine EuclideanGroup.ext ?_ ?_
    · simp
    · simp [linearIsometryEquiv_constVAdd_mul, orthogonalToLinearIsometryEquiv_left_inv]
  right_inv e := by
    apply AffineIsometryEquiv.ext; intro x
    simp only [toAffineIsometryHom_apply,
      orthogonalToLinearIsometryEquiv_right_inv,
      AffineIsometryEquiv.coe_mul, Function.comp_apply,
      LinearIsometryEquiv.coe_toAffineIsometryEquiv,
      AffineIsometryEquiv.coe_constVAdd, vadd_eq_add]
    have h := e.map_vadd 0 x
    simp [vadd_eq_add, add_zero] at h
    rw [h, add_comm]
  map_mul' := toAffineIsometryHom.map_mul'
See it in the graphDiscuss this resultChallenge it