add weakD

This commit is contained in:
rhiannon morris 2023-03-25 20:48:49 +01:00
parent 100063ab91
commit ab82883214

View file

@ -132,3 +132,8 @@ DecEq (Dim d) where
public export %inline public export %inline
BV : (i : Nat) -> (0 _ : LT i d) => Dim d BV : (i : Nat) -> (0 _ : LT i d) => Dim d
BV i = B $ V i BV i = B $ V i
export
weakD : {default 1 by : Nat} -> Dim d -> Dim (by + d)
weakD p = p // shift by