aboutsummaryrefslogtreecommitdiff
path: root/theories/Ints/Int31.v
diff options
context:
space:
mode:
authorthery2007-06-06 10:00:46 +0000
committerthery2007-06-06 10:00:46 +0000
commit30b610dd264a537fbc3ecd3191accebf5d7e0179 (patch)
treeeda9a60dd1f6f960729f287fb6324b93966c42d3 /theories/Ints/Int31.v
parent59e1e2d725febdcae1c9eb478c1f95566ddcc19e (diff)
tail0
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@9877 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'theories/Ints/Int31.v')
-rw-r--r--theories/Ints/Int31.v8
1 files changed, 8 insertions, 0 deletions
diff --git a/theories/Ints/Int31.v b/theories/Ints/Int31.v
index 8a19e878d3..59e45c320a 100644
--- a/theories/Ints/Int31.v
+++ b/theories/Ints/Int31.v
@@ -394,4 +394,12 @@ Definition head031 (i:int31) :=
| D1 => n
end)
i On
+.
+
+Definition tail031 (i:int31) :=
+ recr _ (fun _ => T31) (fun b si rec n => match b with
+ | D0 => rec (add31 n In)
+ | D1 => n
+ end)
+ i On
. \ No newline at end of file