make lteZero' and lteSucc' into hints

This commit is contained in:
rhiannon morris 2022-04-12 16:48:23 +02:00
parent de6ec78e23
commit 56ddd59fb4
1 changed files with 2 additions and 2 deletions

View File

@ -9,12 +9,12 @@ data LTE' : Nat -> Nat -> Type where
LTESuccR : LTE' m n -> LTE' m (S n)
%builtin Natural LTE'
public export
public export %hint
lteZero' : {n : Nat} -> LTE' 0 n
lteZero' {n = 0} = LTERefl
lteZero' {n = S n} = LTESuccR lteZero'
public export
public export %hint
lteSucc' : LTE' m n -> LTE' (S m) (S n)
lteSucc' LTERefl = LTERefl
lteSucc' (LTESuccR p) = LTESuccR $ lteSucc' p