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
693cf003
Commit
693cf003
authored
6 years ago
by
Guillaume Melquiond
Browse files
Options
Downloads
Patches
Plain Diff
Make sure that RealInfix.(-.) unfolds to Real.(-).
parent
68d34132
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!103
Improve goals generated by the Gappa printer.
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
lib/coq/real/RealInfix.v
+0
-7
0 additions, 7 deletions
lib/coq/real/RealInfix.v
lib/isabelle/realizations.2018
+1
-1
1 addition, 1 deletion
lib/isabelle/realizations.2018
stdlib/real.mlw
+4
-1
4 additions, 1 deletion
stdlib/real.mlw
with
5 additions
and
9 deletions
lib/coq/real/RealInfix.v
+
0
−
7
View file @
693cf003
...
...
@@ -15,10 +15,3 @@ Require Import BuiltIn.
Require
BuiltIn
.
Require
real
.
Real
.
(
*
Why3
goal
*
)
Lemma
infix_mndt_def
:
forall
(
x
:
R
)
(
y
:
R
),
((
x
-
y
)
%
R
=
(
x
+
(
-
y
)
%
R
)
%
R
).
Proof
.
intros
x
y
.
reflexivity
.
Qed
.
This diff is collapsed.
Click to expand it.
lib/isabelle/realizations.2018
+
1
−
1
View file @
693cf003
...
...
@@ -7,7 +7,7 @@ f93d912698cd9b10846cd861492655f1c6cf9ab0 int/MinMax.xml
9e550b757adffdb78db010e8aa14b85a065b3c60 int/Power.xml
79ca42a9fba90deb0e8eb7fb5396de8a756ac969 bool/Bool.xml
6bb79ae3bc3abb9b0710a2dfd58c0bd2c41b8f13 real/Real.xml
657f5992027dc0d739351289093cac512a534fcb
real/RealInfix.xml
f80da4609433de4d5ccb6ebbbe0fa954c5ed5187
real/RealInfix.xml
c2410d334c7e0852086bb13cae1189f601f3b1c6 real/Abs.xml
da70a842eac8ff6687f1d119c309be4c227976ff real/MinMax.xml
3cc6bd97503e596fae70c51ef1d5401a62114b94 real/FromInt.xml
...
...
This diff is collapsed.
Click to expand it.
stdlib/real.mlw
+
4
−
1
View file @
693cf003
...
...
@@ -20,7 +20,6 @@ module Real
val function (*) real real : real
val predicate (<) real real : bool
let (-) (x y : real) = x + -y
let predicate (>) (x y : real) = y < x
let predicate (<=) (x y : real) = x < y || x = y
let predicate (>=) (x y : real) = y <= x
...
...
@@ -30,6 +29,10 @@ module Real
function (-_) = (-_), function (+) = (+),
function (*) = (*), predicate (<=) = (<=)
let (-) (x y : real)
ensures { result = x - y }
= x + -y
val (/) (x y:real) : real
requires { y <> 0.0 }
ensures { result = x / y }
...
...
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