Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
frama-c
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
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
pub
frama-c
Commits
011af158
Commit
011af158
authored
9 months ago
by
Cécile Ruet-Cros
Browse files
Options
Downloads
Patches
Plain Diff
[wp] vset cleanup useless lemmas
parent
526c153e
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/plugins/wp/Vset.ml
+1
-1
1 addition, 1 deletion
src/plugins/wp/Vset.ml
src/plugins/wp/share/why3/frama_c_wp/vset.mlw
+0
-18
0 additions, 18 deletions
src/plugins/wp/share/why3/frama_c_wp/vset.mlw
with
1 addition
and
19 deletions
src/plugins/wp/Vset.ml
+
1
−
1
View file @
011af158
...
@@ -112,7 +112,7 @@ let typecheck_unop (params:tau option list) : tau =
...
@@ -112,7 +112,7 @@ let typecheck_unop (params:tau option list) : tau =
let
typecheck_range
(
_
:
tau
option
list
)
:
tau
=
let
typecheck_range
(
_
:
tau
option
list
)
:
tau
=
tau_of_set
Logic
.
Int
tau_of_set
Logic
.
Int
let
p_member
=
Lang
.
extern_p
~
library
~
bool
:
"member_bool"
~
prop
:
"mem
ber
"
()
let
p_member
=
Lang
.
extern_p
~
library
~
bool
:
"member_bool"
~
prop
:
"mem"
()
let
f_empty
=
Lang
.
extern_f
~
library
"empty"
let
f_empty
=
Lang
.
extern_f
~
library
"empty"
let
f_union
=
Lang
.
extern_f
~
library
~
typecheck
:
typecheck_binop
"union"
let
f_union
=
Lang
.
extern_f
~
library
~
typecheck
:
typecheck_binop
"union"
let
f_inter
=
Lang
.
extern_f
~
library
~
typecheck
:
typecheck_binop
"inter"
let
f_inter
=
Lang
.
extern_f
~
library
~
typecheck
:
typecheck_binop
"inter"
...
...
This diff is collapsed.
Click to expand it.
src/plugins/wp/share/why3/frama_c_wp/vset.mlw
+
0
−
18
View file @
011af158
...
@@ -35,7 +35,6 @@ theory Vset
...
@@ -35,7 +35,6 @@ theory Vset
(* -------------------------------------------------------------------------- *)
(* -------------------------------------------------------------------------- *)
function member_bool 'a (set 'a) : bool
function member_bool 'a (set 'a) : bool
predicate member (elt:'a) (s: set 'a) = mem elt s
predicate eqset (a : set 'a) (b : set 'a) =
predicate eqset (a : set 'a) (b : set 'a) =
forall x : 'a. (member x a) <-> (member x b)
forall x : 'a. (member x a) <-> (member x b)
...
@@ -48,23 +47,6 @@ theory Vset
...
@@ -48,23 +47,6 @@ theory Vset
axiom member_bool : forall x:'a. forall s:set 'a [member_bool x s].
axiom member_bool : forall x:'a. forall s:set 'a [member_bool x s].
if member x s then member_bool x s = True else member_bool x s = False
if member x s then member_bool x s = True else member_bool x s = False
lemma member_empty : forall x:'a [member x empty].
not (member x empty)
lemma member_singleton : forall x:'a,y:'a [member x (singleton y)].
member x (singleton y) <-> x=y
lemma member_union : forall x:'a. forall a:set 'a,b:set 'a [member x (union a b)].
member x (union a b) <-> (member x a) \/ (member x b)
lemma member_inter : forall x:'a. forall a:set 'a,b:set 'a [member x (inter a b)].
member x (inter a b) <-> (member x a) /\ (member x b)
lemma union_empty : forall a:set 'a [(union a empty)|(union empty a)].
(union a empty) = a /\ (union empty a) = a
lemma inter_empty : forall a:set 'a [(inter a empty)|(inter empty a)].
(inter a empty) = empty /\ (inter empty a) = empty
axiom member_range : forall x:int,a:int,b:int [member x (range a b)].
axiom member_range : forall x:int,a:int,b:int [member x (range a b)].
member x (range a b) <-> (a <= x /\ x <= b)
member x (range a b) <-> (a <= x /\ x <= b)
...
...
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