Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
why3
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Monitor
Service Desk
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Why3
why3
Commits
a924b931
Commit
a924b931
authored
8 years ago
by
MARCHE Claude
Browse files
Options
Downloads
Patches
Plain Diff
keyword 'range' should be allowed as lident
parent
aa0e76c9
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/parser/parser.mly
+1
-0
1 addition, 0 deletions
src/parser/parser.mly
theories/map.why
+3
-3
3 additions, 3 deletions
theories/map.why
with
4 additions
and
3 deletions
src/parser/parser.mly
+
1
−
0
View file @
a924b931
...
...
@@ -995,6 +995,7 @@ uident_nq:
lident
:
|
LIDENT
{
mk_id
$
1
$
startpos
$
endpos
}
|
lident_keyword
{
mk_id
$
1
$
startpos
$
endpos
}
|
LIDENT_QUOTE
{
mk_id
$
1
$
startpos
$
endpos
}
lident_nq
:
...
...
This diff is collapsed.
Click to expand it.
theories/map.why
+
3
−
3
View file @
a924b931
...
...
@@ -195,14 +195,14 @@ theory MapInjection
(** [surjective a n] is true when [a] is a surjection
from [(0..n-1)] to [(0..n-1)] *)
predicate range
'
(a: map int int) (n: int) =
predicate range (a: map int int) (n: int) =
forall i: int. 0 <= i < n -> 0 <= a[i] < n
(** [range
'
a n] is true when [a] maps the domain
(** [range a n] is true when [a] maps the domain
[(0..n-1)] into [(0..n-1)] *)
lemma injective_surjective:
forall a: map int int, n: int.
injective a n -> range
'
a n -> surjective a n
injective a n -> range a n -> surjective a n
(** main lemma: an injection on [(0..n-1)] that
ranges into [(0..n-1)] is also a surjection *)
...
...
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