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
123
Issues
123
List
Boards
Labels
Service Desk
Milestones
Merge Requests
15
Merge Requests
15
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
c403f5af
Commit
c403f5af
authored
Jan 31, 2013
by
Guillaume Melquiond
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove spurious newline at end of equivalence lemmas for Coq proofs.
parent
8e8e4595
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
1 addition
and
13 deletions
+1
-13
lib/coq/int/Int.v
lib/coq/int/Int.v
+0
-3
lib/coq/real/Real.v
lib/coq/real/Real.v
+0
-5
lib/coq/real/Square.v
lib/coq/real/Square.v
+0
-2
src/printer/coq.ml
src/printer/coq.ml
+1
-3
No files found.
lib/coq/int/Int.v
View file @
c403f5af
...
...
@@ -12,8 +12,6 @@ Lemma infix_lseq_def : forall (x:Z) (y:Z), (x <= y)%Z <-> ((x < y)%Z \/
exact
Zle_lt_or_eq_iff
.
Qed
.
(
*
Why3
comment
*
)
(
*
infix_pl
is
replaced
with
(
x
+
x1
)
%
Z
by
the
coq
driver
*
)
...
...
@@ -92,7 +90,6 @@ Lemma infix_mn_def : forall (x:Z) (y:Z), ((x - y)%Z = (x + (-y)%Z)%Z).
reflexivity
.
Qed
.
(
*
Why3
goal
*
)
Lemma
Comm1
:
forall
(
x
:
Z
)
(
y
:
Z
),
((
x
*
y
)
%
Z
=
(
y
*
x
)
%
Z
).
Proof
.
...
...
lib/coq/real/Real.v
View file @
c403f5af
...
...
@@ -12,8 +12,6 @@ Lemma infix_lseq_def : forall (x:R) (y:R), (x <= y)%R <-> ((x < y)%R \/
reflexivity
.
Qed
.
(
*
Why3
comment
*
)
(
*
infix_pl
is
replaced
with
(
x
+
x1
)
%
R
by
the
coq
driver
*
)
...
...
@@ -88,8 +86,6 @@ Lemma infix_mn_def : forall (x:R) (y:R), ((x - y)%R = (x + (-y)%R)%R).
reflexivity
.
Qed
.
(
*
Why3
goal
*
)
Lemma
Comm1
:
forall
(
x
:
R
)
(
y
:
R
),
((
x
*
y
)
%
R
=
(
y
*
x
)
%
R
).
Proof
.
...
...
@@ -122,7 +118,6 @@ Lemma infix_sl_def : forall (x:R) (y:R), ((Rdiv x y)%R = (x * (Rinv y))%R).
reflexivity
.
Qed
.
(
*
Why3
goal
*
)
Lemma
add_div
:
forall
(
x
:
R
)
(
y
:
R
)
(
z
:
R
),
(
~
(
z
=
0
%
R
))
->
((
Rdiv
(
x
+
y
)
%
R
z
)
%
R
=
((
Rdiv
x
z
)
%
R
+
(
Rdiv
y
z
)
%
R
)
%
R
).
...
...
lib/coq/real/Square.v
View file @
c403f5af
...
...
@@ -10,8 +10,6 @@ Lemma sqr_def : forall (x:R), ((Rsqr x) = (x * x)%R).
reflexivity
.
Qed
.
(
*
Why3
comment
*
)
(
*
sqrt
is
replaced
with
(
sqrt
x
)
by
the
coq
driver
*
)
...
...
src/printer/coq.ml
View file @
c403f5af
...
...
@@ -778,8 +778,7 @@ let print_equivalence_lemma ~prev info fmt name (ls,ld) =
print_ne_params
all_ty_params
(
print_expr
info
)
def_formula
;
fprintf
fmt
"%a@
\n
"
(
print_previous_proof
(
Some
(
all_ty_params
,
def_formula
))
info
)
prev
;
fprintf
fmt
"@
\n
"
(
print_previous_proof
(
Some
(
all_ty_params
,
def_formula
))
info
)
prev
let
print_equivalence_lemma
~
old
info
fmt
((
ls
,_
)
as
d
)
=
if
info
.
realization
&&
(
Mid
.
mem
ls
.
ls_name
info
.
info_syn
)
then
...
...
@@ -788,7 +787,6 @@ let print_equivalence_lemma ~old info fmt ((ls,_) as d) =
let
prev
=
output_till_statement
fmt
old
name
in
(
print_equivalence_lemma
~
prev
info
fmt
name
d
;
forget_tvs
()
)
let
print_logic_decl
~
old
info
fmt
d
=
(** During realization the definition of a "builtin" symbol is
printed and an equivalence lemma with associated coq function is
...
...
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