Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Why3
why3
Commits
054f3dce
Commit
054f3dce
authored
Sep 18, 2011
by
Jean-Christophe Filliâtre
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
new lemmas for theory NumOf
parent
947bbbba
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
theories/int.why
theories/int.why
+7
-2
No files found.
theories/int.why
View file @
054f3dce
...
...
@@ -174,8 +174,8 @@ theory NumOfParam
forall p : param, a b : int.
a < b -> pr p (b-1) -> num_of p a b = 1 + num_of p a (b-1)
lemma Num_of_
non_negative
:
forall p : param, a b : int. 0 <= num_of p a b
lemma Num_of_
bounds
:
forall p : param, a b : int.
a < b ->
0 <= num_of p a b
<= b - a
(* direct when a>=b, by induction on b when a <= b *)
lemma Num_of_append :
...
...
@@ -197,6 +197,11 @@ theory NumOfParam
(forall n : int. a <= n < b -> not pr p n) -> num_of p a b = 0
(* by induction on b *)
lemma Full :
forall p : param, a b : int. a < b ->
(forall n : int. a <= n < b -> pr p n) -> num_of p a b = b - a
(* by induction on b *)
lemma num_of_increasing:
forall p : param, i j k : int.
i <= j <= k -> num_of p i j <= num_of p i k
...
...
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