add some properties of Var.Compare

This commit is contained in:
rhiannon morris 2022-02-27 01:50:01 +01:00
parent c653fcb664
commit 3722c769cf
1 changed files with 10 additions and 0 deletions

View File

@ -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