Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
iris
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
Tej Chajed
iris
Commits
d8ad2335
Commit
d8ad2335
authored
9 years ago
by
Ralf Jung
Browse files
Options
Downloads
Patches
Plain Diff
group definitions better
parent
31321366
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
barrier/tests.v
+5
-4
5 additions, 4 deletions
barrier/tests.v
with
5 additions
and
4 deletions
barrier/tests.v
+
5
−
4
View file @
d8ad2335
...
@@ -68,6 +68,11 @@ Module LiftingTests.
...
@@ -68,6 +68,11 @@ Module LiftingTests.
n1
.
n1
.
Definition
FindPred
n2
:=
Rec
(
Let
(
Plus
(
Var
1
)
(
LitNat
1
))
Definition
FindPred
n2
:=
Rec
(
Let
(
Plus
(
Var
1
)
(
LitNat
1
))
(
FindPred'
(
Var
2
)
(
Var
0
)
n2
.[
ren
(
+
3
)]
(
Var
1
)))
.
(
FindPred'
(
Var
2
)
(
Var
0
)
n2
.[
ren
(
+
3
)]
(
Var
1
)))
.
Definition
Pred
:=
Lam
(
If
(
Le
(
Var
0
)
(
LitNat
0
))
(
LitNat
0
)
(
App
(
FindPred
(
Var
0
))
(
LitNat
0
))
)
.
Lemma
FindPred_spec
n1
n2
E
Q
:
Lemma
FindPred_spec
n1
n2
E
Q
:
(
■
(
n1
<
n2
)
∧
Q
(
LitNatV
$
pred
n2
))
⊑
(
■
(
n1
<
n2
)
∧
Q
(
LitNatV
$
pred
n2
))
⊑
wp
(
Σ
:=
Σ
)
E
(
App
(
FindPred
(
LitNat
n2
))
(
LitNat
n1
))
Q
.
wp
(
Σ
:=
Σ
)
E
(
App
(
FindPred
(
LitNat
n2
))
(
LitNat
n1
))
Q
.
...
@@ -97,10 +102,6 @@ Module LiftingTests.
...
@@ -97,10 +102,6 @@ Module LiftingTests.
assert
(
Heq
:
n1
=
pred
n2
)
by
omega
.
by
subst
n1
.
assert
(
Heq
:
n1
=
pred
n2
)
by
omega
.
by
subst
n1
.
Qed
.
Qed
.
Definition
Pred
:=
Lam
(
If
(
Le
(
Var
0
)
(
LitNat
0
))
(
LitNat
0
)
(
App
(
FindPred
(
Var
0
))
(
LitNat
0
))
)
.
Lemma
Pred_spec
n
E
Q
:
Lemma
Pred_spec
n
E
Q
:
▷
Q
(
LitNatV
$
pred
n
)
⊑
wp
(
Σ
:=
Σ
)
E
(
App
Pred
(
LitNat
n
))
Q
.
▷
Q
(
LitNatV
$
pred
n
)
⊑
wp
(
Σ
:=
Σ
)
E
(
App
Pred
(
LitNat
n
))
Q
.
Proof
.
Proof
.
...
...
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