Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FloVer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
AVA
FloVer
Commits
23705abc
Commit
23705abc
authored
6 years ago
by
Joachim Bard
Browse files
Options
Downloads
Patches
Plain Diff
adding inverse to smt_expr_eq
parent
e98bf643
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
coq/SMTArith.v
+18
-5
18 additions, 5 deletions
coq/SMTArith.v
with
18 additions
and
5 deletions
coq/SMTArith.v
+
18
−
5
View file @
23705abc
...
...
@@ -189,6 +189,7 @@ Fixpoint smt_expr_eq (e: SMTArith) (e': expr Q) : bool :=
|
Expressions
.
Const
_
r
'
,
ConstQ
r
=>
Qeq_bool
r
r
'
|
Var
_
x
'
,
VarQ
x
=>
beq_nat
x
x
'
|
Unop
Neg
e
'
,
UMinusQ
e
=>
smt_expr_eq
e
e
'
|
Unop
Inv
e
'
,
DivQ
(
ConstQ
(
1
#
1
))
e
=>
smt_expr_eq
e
e
'
|
Binop
Plus
e1
'
e2
'
,
PlusQ
e1
e2
=>
(
smt_expr_eq
e1
e1
'
)
&&
(
smt_expr_eq
e2
e2
'
)
|
Binop
Sub
e1
'
e2
'
,
MinusQ
e1
e2
=>
(
smt_expr_eq
e1
e1
'
)
&&
(
smt_expr_eq
e2
e2
'
)
|
Binop
Mult
e1
'
e2
'
,
TimesQ
e1
e2
=>
(
smt_expr_eq
e1
e1
'
)
&&
(
smt_expr_eq
e2
e2
'
)
...
...
@@ -214,11 +215,23 @@ Proof.
-
destruct
e
;
try
discriminate
.
intros
H
.
apply
Qeq_bool_eq
in
H
.
apply
Qeq_eqR
in
H
.
cbn
.
now
rewrite
H
.
-
destruct
e
,
u
;
try
discriminate
.
intros
Heq
H
.
inversion
H
;
subst
.
econstructor
;
eauto
.
destruct
m
;
try
discriminate
.
eapply
IHe
'
;
auto
.
+
intros
Heq
H
.
inversion
H
;
subst
.
econstructor
;
eauto
.
destruct
m
;
try
discriminate
.
eapply
IHe
'
;
auto
.
+
destruct
e1
;
try
discriminate
.
destruct
r
as
[
n
d
].
destruct
n
;
try
discriminate
.
destruct
p
;
try
discriminate
.
destruct
d
;
try
discriminate
.
cbn
.
intros
Heq
H
.
inversion
H
;
subst
.
destruct
m
;
try
discriminate
.
eapply
Binop_dist
'
;
eauto
.
cbn
.
rewrite
RMicromega
.
IQR_1
.
apply
RealSimps
.
inv_eq_1_div
.
-
intros
Heq
H
.
inversion
H
;
subst
.
assert
(
m1
=
REAL
)
by
(
eapply
toRTMap_eval_REAL
;
eauto
).
...
...
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