Theorem: Lean4Axiomatic.Rational.dist_substR (Lean4Axiomatic/Rational/Metric.lean)

State before:
ℕ ℤ ℚ : Type
inst✝¹² : Natural ℕ
inst✝¹¹ : Integer ℤ
inst✝¹⁰ : Core ℚ
inst✝⁹ : Addition ℚ
inst✝⁸ : Negation ℚ
inst✝⁷ : Subtraction ℚ
inst✝⁶ : Multiplication ℚ
inst✝⁵ : Reciprocation ℚ
inst✝⁴ : Division ℚ
inst✝³ : Sign ℚ
inst✝² : Order ℚ
inst✝¹ : MinMax ℚ
inst✝ : Metric ℚ
p₁ p₂ q : ℚ
⊢ p₁ ≃ p₂ → dist q p₁ ≃ dist q p₂
Tactic:
intro (_ : p₁ ≃ p₂)
State after:
ℕ ℤ ℚ : Type
inst✝¹² : Natural ℕ
inst✝¹¹ : Integer ℤ
inst✝¹⁰ : Core ℚ
inst✝⁹ : Addition ℚ
inst✝⁸ : Negation ℚ
inst✝⁷ : Subtraction ℚ
inst✝⁶ : Multiplication ℚ
inst✝⁵ : Reciprocation ℚ
inst✝⁴ : Division ℚ
inst✝³ : Sign ℚ
inst✝² : Order ℚ
inst✝¹ : MinMax ℚ
inst✝ : Metric ℚ
p₁ p₂ q : ℚ
x✝ : p₁ ≃ p₂
⊢ dist q p₁ ≃ dist q p₂

State before:
ℕ ℤ ℚ : Type
inst✝¹² : Natural ℕ
inst✝¹¹ : Integer ℤ
inst✝¹⁰ : Core ℚ
inst✝⁹ : Addition ℚ
inst✝⁸ : Negation ℚ
inst✝⁷ : Subtraction ℚ
inst✝⁶ : Multiplication ℚ
inst✝⁵ : Reciprocation ℚ
inst✝⁴ : Division ℚ
inst✝³ : Sign ℚ
inst✝² : Order ℚ
inst✝¹ : MinMax ℚ
inst✝ : Metric ℚ
p₁ p₂ q : ℚ
x✝ : p₁ ≃ p₂
⊢ dist q p₁ ≃ dist q p₂
Tactic:
calc
  _ ≃ dist q p₁    := eqv_refl
  _ ≃ abs (q - p₁) := dist_abs
  _ ≃ abs (q - p₂) := abs_subst (sub_substR ‹p₁ ≃ p₂›)
  _ ≃ dist q p₂    := eqv_symm dist_abs
State after:
no goals