git.iko.soy
/
Idris-dev
readme
files
commits
refs
on
master
help
sign in
Elements of Fin when converted to Nat are smaller than the Bound. (#3407)
9dd3e00
Apostolis Xekoukoulotakis
10 years ago
libs/contrib/Data/Fin/Extra.idr
new file
+9
compare with master
unified
split
@@ -0,0 +1,9 @@
1
+
module Data.Fin.Extra
2
+
3
+
import Data.Fin
4
+
5
+
||| Proof that an element **n** of Fin **m** , when converted to Nat is smaller than the bound **m**.
6
+
public export
7
+
elemSmallerThanBound : (n : Fin m) -> LTE (finToNat n) m
8
+
elemSmallerThanBound FZ = LTEZero
9
+
elemSmallerThanBound (FS x) = LTESucc (elemSmallerThanBound x)
libs/contrib/contrib.ipkg
+3
−1
@@ -25,4 +25,6 @@ modules = CFFI, CFFI.Types, CFFI.Memory,
25
25
26
Network.Cgi, Network.Socket,
26
Network.Cgi, Network.Socket,
27
27
28
−
System.Concurrency.Process
28
+
System.Concurrency.Process
,
29
+
30
+
Data.Fin.Extra
keys
esc to close
j k
move down, up
enter
open
esc
back, or up a level
1 2 3 4
readme, files, commits, refs
/
filter
y
copy the clone command
c
compare the chosen commit with another (or shift-click both)
?
show or hide this list