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
668b6595
Commit
668b6595
authored
Jan 08, 2016
by
Jean-Christophe Filliâtre
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
library: fixed typos in bag
parent
dbe85a01
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
theories/bag.why
theories/bag.why
+5
-4
No files found.
theories/bag.why
View file @
668b6595
...
...
@@ -39,11 +39,12 @@ theory Bag
axiom occ_singleton: forall x y: 'a.
(x = y /\ (nb_occ y (singleton x)) = 1) \/
(x <> y /\ (nb_occ y (singleton x)) = 0)
(* FIXME? nb_occ y (singleton x) = if x = y then 1 else 0 *)
lemma occ_singleton_eq:
forall x y: 'a. x = y ->
(nb_occ y (singleton x)
) = 1
forall x y: 'a. x = y ->
nb_occ y (singleton x
) = 1
lemma occ_singleton_neq:
forall x y: 'a. x <> y ->
(nb_occ y (singleton x)
) = 0
forall x y: 'a. x <> y ->
nb_occ y (singleton x
) = 0
function union (bag 'a) (bag 'a) : bag 'a
...
...
@@ -60,7 +61,7 @@ theory Bag
lemma Union_assoc:
forall a b c: bag 'a. union a (union b c) = union (union a b) c
lemma bag_simpl:
lemma bag_simpl
_right
:
forall a b c: bag 'a. union a b = union c b -> a = c
lemma bag_simpl_left:
...
...
@@ -72,7 +73,7 @@ theory Bag
lemma occ_add_eq:
forall b: bag 'a, x y: 'a.
x = y -> nb_occ
x (add x b) = nb_occ x
b + 1
x = y -> nb_occ
y (add x b) = nb_occ y
b + 1
lemma occ_add_neq: forall b: bag 'a, x y: 'a.
x <> y -> nb_occ y (add x b) = nb_occ y b
...
...
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