I am trying to proof inverse property over integer (which is represented as setoid i.e (a , b)
represents a - b.)
I have defined the negation part as - (a , b) = (b , a)
:
-_ : ℤ -> ℤ
- (x , y) = (y , x)
is0 : ℤ → Set
is0 (a , b) = a ≡ b
leftInverse : (x : ℤ) → - x + x ≡ zero
leftInverse (x , x₁) = {!!}
The goal of this is : (x₁ ℕ.+ x) , (x ℕ.+ x₁) ≡ 0 , 0
I can not use cong₂
here. I am thinking of using if else statement but I dont know that it will be proof. How should i proceed??