-- Module: Mathlib.LinearAlgebra.CliffordAlgebra.SpinGroup
Goal:
R : Type u_1
inst : CommRing R
M : Type u_2
inst_1 : AddCommGroup M
inst_2 : Module R M
Q : QuadraticForm R M
x : (CliffordAlgebra Q)ˣ
hx :
  Membership.mem (γ := Subgroup (CliffordAlgebra Q)ˣ)
    (Subgroup.closure (Units.val ⁻¹' Set.range (ι := M) (⇑(ι Q) : (a : M) → CliffordAlgebra Q))) x
inst_3 : Invertible (α := R) 2
m : M
mem :
  ∀ (x : (CliffordAlgebra Q)ˣ)
    (hx :
      Membership.mem (γ := Set (CliffordAlgebra Q)ˣ)
        (Units.val ⁻¹' Set.range (ι := M) (⇑(ι Q) : (a : M) → CliffordAlgebra Q)) x)
    (m : M),
    HMul.hMul (β := CliffordAlgebra Q) (↑x : CliffordAlgebra Q)
          ((ι Q : (a : M) → CliffordAlgebra Q) m : CliffordAlgebra Q) *
        (↑x⁻¹ : CliffordAlgebra Q) ∈
      (ι Q).range
inv_mem :
  ∀ (x : (CliffordAlgebra Q)ˣ)
    (hx :
      Membership.mem (γ := Set (CliffordAlgebra Q)ˣ)
        (Units.val ⁻¹' Set.range (ι := M) (⇑(ι Q) : (a : M) → CliffordAlgebra Q)) x)
    (m : M),
    HMul.hMul (β := CliffordAlgebra Q) (↑x⁻¹ : CliffordAlgebra Q)
          ((ι Q : (a : M) → CliffordAlgebra Q) m : CliffordAlgebra Q) *
        (↑x⁻¹⁻¹ : CliffordAlgebra Q) ∈
      (ι Q).range
one :
  ∀ (m : M),
    HMul.hMul (α := CliffordAlgebra Q) (β := CliffordAlgebra Q) ((↑1 : CliffordAlgebra Q) : CliffordAlgebra Q)
          ((ι Q : (a : M) → CliffordAlgebra Q) m : CliffordAlgebra Q) *
        (↑1⁻¹ : CliffordAlgebra Q) ∈
      (ι Q).range
mul :
  ∀ (y z : (CliffordAlgebra Q)ˣ),
    Membership.mem (γ := Subgroup (CliffordAlgebra Q)ˣ)
        (Subgroup.closure (Units.val ⁻¹' Set.range (ι := M) (⇑(ι Q) : (a : M) → CliffordAlgebra Q))) y →
      Membership.mem (γ := Subgroup (CliffordAlgebra Q)ˣ)
          (Subgroup.closure (Units.val ⁻¹' Set.range (ι := M) (⇑(ι Q) : (a : M) → CliffordAlgebra Q))) z →
        ∀
          (hy :
            ∀ (m : M),
              HMul.hMul (β := CliffordAlgebra Q) (↑y : CliffordAlgebra Q)
                    ((ι Q : (a : M) → CliffordAlgebra Q) m : CliffordAlgebra Q) *
                  (↑y⁻¹ : CliffordAlgebra Q) ∈
                (ι Q).range)
          (hz :
            ∀ (m : M),
              HMul.hMul (β := CliffordAlgebra Q) (↑z : CliffordAlgebra Q)
                    ((ι Q : (a : M) → CliffordAlgebra Q) m : CliffordAlgebra Q) *
                  (↑z⁻¹ : CliffordAlgebra Q) ∈
                (ι Q).range)
          (m : M),
          HMul.hMul (β := CliffordAlgebra Q) (↑(y * z) : CliffordAlgebra Q)
                ((ι Q : (a : M) → CliffordAlgebra Q) m : CliffordAlgebra Q) *
              (↑(y * z)⁻¹ : CliffordAlgebra Q) ∈
            (ι Q).range
⊢ HMul.hMul (β := CliffordAlgebra Q) (↑x : CliffordAlgebra Q)
        ((ι Q : (a : M) → CliffordAlgebra Q) m : CliffordAlgebra Q) *
      (↑x⁻¹ : CliffordAlgebra Q) ∈
    (ι Q).range

Tactic:
induction hx using Subgroup.closure_induction'' generalizing m with
  | mem x hx =>
    obtain ⟨a, ha⟩ := hx
    letI := x.invertible
    letI : Invertible (ι Q a) := by rwa [ha]
    letI : Invertible (Q a) := invertibleOfInvertibleι Q a
    simp_rw [← invOf_units x, ← ha, ι_mul_ι_mul_invOf_ι, LinearMap.mem_range_self]
  | inv_mem x hx =>
    obtain ⟨a, ha⟩ := hx
    letI := x.invertible
    letI : Invertible (ι Q a) := by rwa [ha]
    letI : Invertible (Q a) := invertibleOfInvertibleι Q a
    simp_rw [← invOf_units x, inv_inv, ← ha, invOf_ι_mul_ι_mul_ι, LinearMap.mem_range_self]
  | one => simp_rw [inv_one, Units.val_one, one_mul, mul_one, LinearMap.mem_range_self]
  | mul y z _ _ hy hz =>
    simp_rw [mul_inv_rev, Units.val_mul]
    suffices ↑y * (↑z * ι Q m * ↑z⁻¹) * ↑y⁻¹ ∈ _ by
      simpa only [mul_assoc] using this
    obtain ⟨z', hz'⟩ := hz m
    obtain ⟨y', hy'⟩ := hy z'
    simp_rw [← hz', ← hy', LinearMap.mem_range_self]

Premises used: CliffordAlgebra.ι_mul_ι_mul_invOf_ι, inv_one, CliffordAlgebra.invOf_ι_mul_ι_mul_ι, LinearMap.mem_range_self, InvMemClass.inv_mem, inv_inv, Units.val_one, mul_inv_rev, mul_one, invOf_units, Units.val_mul, one_mul