Inverse of a unit is a unit
Provedpell_unit_invnumber-theorypell-equation
Negating the irrational part of a unit gives a unit: if then . Provides inverse units for solution descent.
Preamble
import Mathlib.Tactic
Formal statement
theorem pell_unit_inv {D u v : Int} (h : u ^ 2 - D * v ^ 2 = 1) : u ^ 2 - D * (-v) ^ 2 = 1 := by sorrySource