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
d15da6d4
Commit
d15da6d4
authored
13 years ago
by
MARCHE Claude
Browse files
Options
Downloads
Patches
Plain Diff
more lemmas on absolute value and subtraction
parent
c74f2024
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
theories/algebra.why
+3
-0
3 additions, 0 deletions
theories/algebra.why
theories/int.why
+4
-0
4 additions, 0 deletions
theories/int.why
theories/real.why
+4
-0
4 additions, 0 deletions
theories/real.why
with
11 additions
and
0 deletions
theories/algebra.why
+
3
−
0
View file @
d15da6d4
...
@@ -32,6 +32,9 @@ theory Group
...
@@ -32,6 +32,9 @@ theory Group
clone Assoc with type t = t, function op = op
clone Assoc with type t = t, function op = op
axiom Inv_def : forall x:t. op x (inv x) = unit
axiom Inv_def : forall x:t. op x (inv x) = unit
lemma Inv_unit : forall x y:t. op x (inv y) = unit -> x = y
end
end
theory CommutativeGroup
theory CommutativeGroup
...
...
This diff is collapsed.
Click to expand it.
theories/int.why
+
4
−
0
View file @
d15da6d4
...
@@ -19,8 +19,12 @@ theory Abs
...
@@ -19,8 +19,12 @@ theory Abs
function abs (x:int) : int = if x >= 0 then x else -x
function abs (x:int) : int = if x >= 0 then x else -x
lemma Abs_le: forall x y:int. abs x <= y <-> -y <= x <= y
lemma Abs_pos: forall x:int. abs x >= 0
lemma Abs_pos: forall x:int. abs x >= 0
lemma Abs_zero: forall x:int. abs x = 0 -> x = 0
end
end
theory MinMax
theory MinMax
...
...
This diff is collapsed.
Click to expand it.
theories/real.why
+
4
−
0
View file @
d15da6d4
...
@@ -11,6 +11,8 @@ theory Real
...
@@ -11,6 +11,8 @@ theory Real
clone export algebra.OrderedField with type t = real,
clone export algebra.OrderedField with type t = real,
function zero = zero, function one = one, predicate (<=) = (<=)
function zero = zero, function one = one, predicate (<=) = (<=)
lemma sub_zero: forall x y:real. x - y = 0.0 -> x = y
end
end
theory RealInfix
theory RealInfix
...
@@ -40,6 +42,8 @@ theory Abs
...
@@ -40,6 +42,8 @@ theory Abs
lemma Abs_pos: forall x:real. abs x >= 0.0
lemma Abs_pos: forall x:real. abs x >= 0.0
lemma Abs_zero: forall x:real. abs x = 0.0 -> x = 0.0
end
end
theory MinMax
theory MinMax
...
...
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