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
why3
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
126
Issues
126
List
Boards
Labels
Service Desk
Milestones
Merge Requests
16
Merge Requests
16
Operations
Operations
Incidents
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Why3
why3
Commits
970eea5e
Commit
970eea5e
authored
Mar 24, 2016
by
Guillaume Melquiond
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow elision of module substitution right-hand sides.
parent
2f6f8384
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
9 deletions
+14
-9
src/parser/parser.mly
src/parser/parser.mly
+5
-0
theories/set.why
theories/set.why
+9
-9
No files found.
src/parser/parser.mly
View file @
970eea5e
...
...
@@ -260,10 +260,15 @@ clone_subst:
single_clone_subst
:
|
TYPE
qualid
ty_var
*
EQUAL
ty
{
CStsym
(
$
2
,$
3
,$
5
)
}
|
TYPE
qualid
{
CStsym
(
$
2
,
[]
,
PTtyapp
(
$
2
,
[]
))
}
|
CONSTANT
qualid
EQUAL
qualid
{
CSfsym
(
$
2
,$
4
)
}
|
CONSTANT
qualid
{
CSfsym
(
$
2
,$
2
)
}
|
FUNCTION
qualid
EQUAL
qualid
{
CSfsym
(
$
2
,$
4
)
}
|
FUNCTION
qualid
{
CSfsym
(
$
2
,$
2
)
}
|
PREDICATE
qualid
EQUAL
qualid
{
CSpsym
(
$
2
,$
4
)
}
|
PREDICATE
qualid
{
CSpsym
(
$
2
,$
2
)
}
|
VAL
qualid
EQUAL
qualid
{
CSvsym
(
$
2
,$
4
)
}
|
VAL
qualid
{
CSvsym
(
$
2
,$
2
)
}
|
AXIOM
qualid
{
CSaxiom
(
$
2
)
}
|
LEMMA
qualid
{
CSlemma
(
$
2
)
}
|
GOAL
qualid
{
CSgoal
(
$
2
)
}
...
...
theories/set.why
View file @
970eea5e
...
...
@@ -129,14 +129,14 @@ theory Set
axiom Equal_is_eq : forall s1 s2 : set 'a. equal s1 s2 -> s1 = s2
*)
clone export SetGen with type set
= set
,
predicate mem
= mem
, lemma extensionality,
constant empty
= empty
, lemma empty_def,
function add
= add
, lemma add_def,
function remove
= remove
, lemma remove_def,
function union
= union
, lemma union_def,
function inter
= inter
, lemma inter_def,
function diff
= diff
, lemma diff_def
clone export SetGen with type set,
predicate mem, lemma extensionality,
constant empty, lemma empty_def,
function add, lemma add_def,
function remove, lemma remove_def,
function union, lemma union_def,
function inter, lemma inter_def,
function diff, lemma diff_def
end
...
...
@@ -165,7 +165,7 @@ theory Fset
type set 'a
val constant empty : set 'a
clone export SetGen with type set
= set, function empty =
empty
clone export SetGen with type set
, function
empty
function cardinal (set 'a) : int
...
...
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