Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
POTTIER Francois
menhir
Commits
6e784890
Commit
6e784890
authored
Jul 03, 2015
by
POTTIER Francois
Browse files
More uniformity between [CompletedNat] and [CompletedNatWitness].
parent
c9ae71cd
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/CompletedNat.ml
View file @
6e784890
...
...
@@ -20,6 +20,12 @@ let equal p1 p2 =
let
bottom
=
Infinity
let
epsilon
=
Finite
0
let
singleton
_
=
Finite
1
let
is_maximal
p
=
match
p
with
|
Finite
0
->
...
...
@@ -42,6 +48,13 @@ let min_lazy p1 p2 =
|
_
->
min
p1
(
Lazy
.
force
p2
)
let
until_finite
p1
p2
=
match
p1
with
|
Finite
_
->
p1
|
Infinity
->
Lazy
.
force
p2
let
add
p1
p2
=
match
p1
,
p2
with
|
Finite
i1
,
Finite
i2
->
...
...
src/CompletedNat.mli
View file @
6e784890
...
...
@@ -7,10 +7,15 @@ type t =
include
Fix
.
PROPERTY
with
type
property
=
t
val
epsilon
:
t
val
singleton
:
'
a
->
t
val
min
:
t
->
t
->
t
val
add
:
t
->
t
->
t
val
min_lazy
:
t
->
t
Lazy
.
t
->
t
val
add_lazy
:
t
->
t
Lazy
.
t
->
t
val
until_finite
:
t
->
t
Lazy
.
t
->
t
val
print
:
t
->
string
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment