more formatting stuff
This commit is contained in:
parent
e264a18e21
commit
c653fcb664
1 changed files with 4 additions and 4 deletions
|
@ -194,20 +194,20 @@ data LTE : Var n -> Var n -> Type where
|
||||||
export
|
export
|
||||||
Reflexive (Var n) LTE where
|
Reflexive (Var n) LTE where
|
||||||
reflexive {x = VZ} = LTEZ
|
reflexive {x = VZ} = LTEZ
|
||||||
reflexive {x = VS i} = LTES $ reflexive {x=i}
|
reflexive {x = VS i} = LTES $ reflexive {x = i}
|
||||||
|
|
||||||
export
|
export
|
||||||
Transitive (Var n) LTE where
|
Transitive (Var n) LTE where
|
||||||
transitive LTEZ q = LTEZ
|
transitive LTEZ q = LTEZ
|
||||||
transitive (LTES p) (LTES q) = LTES $ transitive p q {rel=Var.LTE}
|
transitive (LTES p) (LTES q) = LTES $ transitive p q {rel = Var.LTE}
|
||||||
|
|
||||||
export
|
export
|
||||||
Antisymmetric (Var n) LTE where
|
Antisymmetric (Var n) LTE where
|
||||||
antisymmetric LTEZ LTEZ = Refl
|
antisymmetric LTEZ LTEZ = Refl
|
||||||
antisymmetric (LTES p) (LTES q) = cong VS $ antisymmetric p q {rel=Var.LTE}
|
antisymmetric (LTES p) (LTES q) = cong VS $ antisymmetric p q {rel = Var.LTE}
|
||||||
|
|
||||||
export
|
export
|
||||||
splitLTE : {j : Var n} -> i `Var.LTE` j -> Either (i = j) (i `Var.LT` j)
|
splitLTE : {j : Var n} -> i `LTE` j -> Either (i = j) (i `LT` j)
|
||||||
splitLTE {j = VZ} LTEZ = Left Refl
|
splitLTE {j = VZ} LTEZ = Left Refl
|
||||||
splitLTE {j = VS _} LTEZ = Right LTZ
|
splitLTE {j = VS _} LTEZ = Right LTZ
|
||||||
splitLTE (LTES p) with (splitLTE p)
|
splitLTE (LTES p) with (splitLTE p)
|
||||||
|
|
Loading…
Reference in a new issue