Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
alphaLib
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
POTTIER Francois
alphaLib
Commits
cb4a6b53
Commit
cb4a6b53
authored
Feb 01, 2017
by
POTTIER Francois
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added [disjoint].
parent
f19a02dc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
3 deletions
+12
-3
src/Toolbox.cppo.ml
src/Toolbox.cppo.ml
+12
-3
No files found.
src/Toolbox.cppo.ml
View file @
cb4a6b53
...
...
@@ -144,15 +144,24 @@ end
let
ba
:
nominal_term
->
Atom
.
Set
.
t
=
new
ba
#
visit_term
()
let
ba_list
ts
=
List
.
fold_left
(
fun
accu
t
->
Atom
.
Set
.
disjoint_union
accu
(
ba
t
))
Atom
.
Set
.
empty
ts
(* [wf t] checks whether the term [t] is well-formed, and returns no result.
The exception [IllFormed x] is raised if the atom [x] occurs twice in a
binding position.*)
binding position.
*)
let
wf
t
=
let
(
_
:
Atom
.
Set
.
t
)
=
ba
t
in
()
(* TEMPORARY add a disjointness check; this boils down to checking that a
list of terms is well-formed. *)
(* [disjoint ts] checks that the terms in the list [ts] are well-formed and
disjoint. The exception [IllFormed x] is raised if the atom [x] occurs
twice in a binding position. *)
let
disjoint
ts
=
let
(
_
:
Atom
.
Set
.
t
)
=
ba_list
ts
in
()
(* -------------------------------------------------------------------------- *)
...
...
Write
Preview
Markdown
is supported
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