summaryrefslogtreecommitdiff
path: root/backends/hol4/divDefLibTestScript.sml
diff options
context:
space:
mode:
authorSon Ho2023-05-12 20:54:54 +0200
committerSon HO2023-06-04 21:54:38 +0200
commit62699c2ebb2d10301f437ca06961a82c30913405 (patch)
tree1c01e85ac04fc5109274abdac2b537b3cf03ad9d /backends/hol4/divDefLibTestScript.sml
parenteb7c257b30840ee947e35db0dd90f3d48894e3dc (diff)
Fix minor issues
Diffstat (limited to '')
-rw-r--r--backends/hol4/divDefLibTestScript.sml12
1 files changed, 8 insertions, 4 deletions
diff --git a/backends/hol4/divDefLibTestScript.sml b/backends/hol4/divDefLibTestScript.sml
index c4a57783..b1243065 100644
--- a/backends/hol4/divDefLibTestScript.sml
+++ b/backends/hol4/divDefLibTestScript.sml
@@ -8,12 +8,16 @@ open primitivesLib
open divDefTheory divDefLib
val [even_def, odd_def] = DefineDiv ‘
- (even (i : int) : bool result =
- if i = 0 then Return T else odd (i - 1)) /\
- (odd (i : int) : bool result =
- if i = 0 then Return F else even (i - 1))
+ (even (i : int) : bool result = if i = 0 then Return T else odd (i - 1)) /\
+ (odd (i : int) : bool result = if i = 0 then Return F else even (i - 1))
+Datatype:
+ list_t =
+ ListCons 't list_t
+ | ListNil
+End
+
val [nth_def] = DefineDiv ‘
nth (ls : 't list_t) (i : u32) : 't result =
case ls of