Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Iris
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
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
Simcha van Collem
Iris
Commits
f0582c61
Commit
f0582c61
authored
8 years ago
by
Robbert Krebbers
Browse files
Options
Downloads
Patches
Plain Diff
Support strong framing of the whole spatial context.
parent
95b3911c
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
theories/proofmode/sel_patterns.v
+3
-2
3 additions, 2 deletions
theories/proofmode/sel_patterns.v
theories/proofmode/tactics.v
+5
-5
5 additions, 5 deletions
theories/proofmode/tactics.v
with
8 additions
and
7 deletions
theories/proofmode/sel_patterns.v
+
3
−
2
View file @
f0582c61
...
...
@@ -5,7 +5,7 @@ Set Default Proof Using "Type".
Inductive
sel_pat
:=
|
SelPure
|
SelPersistent
|
SelSpatial
|
SelSpatial
:
bool
→
sel_pat
|
SelName
:
bool
→
string
→
sel_pat
.
Fixpoint
sel_pat_pure
(
ps
:
list
sel_pat
)
:
bool
:=
...
...
@@ -23,7 +23,8 @@ Fixpoint parse_go (ts : list token) (k : list sel_pat) : option (list sel_pat) :
|
TName
s
::
ts
=>
parse_go
ts
(
SelName
false
s
::
k
)
|
TPure
::
ts
=>
parse_go
ts
(
SelPure
::
k
)
|
TAlways
::
ts
=>
parse_go
ts
(
SelPersistent
::
k
)
|
TSep
::
ts
=>
parse_go
ts
(
SelSpatial
::
k
)
|
THat
::
TSep
::
ts
=>
parse_go
ts
(
SelSpatial
true
::
k
)
|
TSep
::
ts
=>
parse_go
ts
(
SelSpatial
false
::
k
)
|
_
=>
None
end
.
Definition
parse
(
s
:
string
)
:
option
(
list
sel_pat
)
:=
...
...
This diff is collapsed.
Click to expand it.
theories/proofmode/tactics.v
+
5
−
5
View file @
f0582c61
...
...
@@ -76,7 +76,7 @@ Ltac iElaborateSelPat pat tac :=
let
Hs'
:=
eval
env_cbv
in
(
env_dom
(
env_persistent
Δ
))
in
let
Δ'
:=
eval
env_cbv
in
(
envs_clear_persistent
Δ
)
in
go
pat
Δ'
((
ESelName
true
<$>
Hs'
)
++
Hs
)
|
SelSpatial
::
?pat
=>
|
SelSpatial
_
::
?pat
=>
let
Hs'
:=
eval
env_cbv
in
(
env_dom
(
env_spatial
Δ
))
in
let
Δ'
:=
eval
env_cbv
in
(
envs_clear_spatial
Δ
)
in
go
pat
Δ'
((
ESelName
false
<$>
Hs'
)
++
Hs
)
...
...
@@ -202,15 +202,15 @@ Local Ltac iFrameAnyPersistent :=
let
Hs
:=
eval
cbv
in
(
env_dom
(
env_persistent
Δ
))
in
go
Hs
end
.
Local
Ltac
iFrameAnySpatial
:=
Local
Ltac
iFrameAnySpatial
strong
:=
let
rec
go
Hs
:=
match
Hs
with
[]
=>
idtac
|
?H
::
?Hs
=>
try
iFrameHyp
tr
ue
H
;
go
Hs
end
in
match
Hs
with
[]
=>
idtac
|
?H
::
?Hs
=>
try
iFrameHyp
s
tr
ong
H
;
go
Hs
end
in
match
goal
with
|
|
-
of_envs
?Δ
⊢
_
=>
let
Hs
:=
eval
cbv
in
(
env_dom
(
env_spatial
Δ
))
in
go
Hs
end
.
Tactic
Notation
"iFrame"
:=
iFrameAnySpatial
.
Tactic
Notation
"iFrame"
:=
iFrameAnySpatial
false
.
Tactic
Notation
"iFrame"
"("
constr
(
t1
)
")"
:=
iFramePure
t1
.
...
...
@@ -239,7 +239,7 @@ Tactic Notation "iFrame" constr(Hs) :=
|
[]
=>
idtac
|
SelPure
::
?Hs
=>
iFrameAnyPure
;
go
Hs
|
SelPersistent
::
?Hs
=>
iFrameAnyPersistent
;
go
Hs
|
SelSpatial
::
?Hs
=>
iFrameAnySpatial
;
go
Hs
|
SelSpatial
?b
::
?Hs
=>
iFrameAnySpatial
b
;
go
Hs
|
SelName
?b
?H
::
?Hs
=>
iFrameHyp
b
H
;
go
Hs
end
in
let
Hs
:=
sel_pat
.
parse
Hs
in
go
Hs
.
...
...
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