Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
alphaLib
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
POTTIER Francois
alphaLib
Commits
cb4a6b53
Commit
cb4a6b53
authored
8 years ago
by
POTTIER Francois
Browse files
Options
Downloads
Patches
Plain Diff
Added [disjoint].
parent
f19a02dc
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/Toolbox.cppo.ml
+12
-3
12 additions, 3 deletions
src/Toolbox.cppo.ml
with
12 additions
and
3 deletions
src/Toolbox.cppo.ml
+
12
−
3
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
()
(* -------------------------------------------------------------------------- *)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment