add some properties of Var.Compare
This commit is contained in:
parent
c653fcb664
commit
3722c769cf
1 changed files with 10 additions and 0 deletions
|
@ -185,6 +185,16 @@ compareP VZ (VS j) = IsLT LTZ
|
|||
compareP (VS i) VZ = IsGT LTZ
|
||||
compareP (VS i) (VS j) = compareS $ compareP i j
|
||||
|
||||
export
|
||||
0 compareSelf : (c : Compare i i) -> c = IsEQ
|
||||
compareSelf (IsLT lt) = absurd lt
|
||||
compareSelf IsEQ = Refl
|
||||
compareSelf (IsGT gt) = absurd gt
|
||||
|
||||
export
|
||||
0 comparePSelf : (i : Var n) -> compareP i i = IsEQ
|
||||
comparePSelf i = compareSelf {}
|
||||
|
||||
|
||||
public export
|
||||
data LTE : Var n -> Var n -> Type where
|
||||
|
|
Loading…
Reference in a new issue