Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
lambda-rust
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
Model registry
Operate
Environments
Monitor
Service Desk
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
Iris
lambda-rust
Commits
0f509524
Commit
0f509524
authored
8 years ago
by
Jacques-Henri Jourdan
Browse files
Options
Downloads
Patches
Plain Diff
Uses of iInduction.
parent
6a4a0eca
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
perm_incl.v
+6
-6
6 additions, 6 deletions
perm_incl.v
type_incl.v
+6
-7
6 additions, 7 deletions
type_incl.v
with
12 additions
and
13 deletions
perm_incl.v
+
6
−
6
View file @
0f509524
...
...
@@ -203,12 +203,12 @@ Section props.
destruct
v
as
[[[|
l
|]|]|];
iIntros
"H"
;
try
iDestruct
"H"
as
"[]"
;
iDestruct
"H"
as
(
l0
)
"[EQ H]"
;
iDestruct
"EQ"
as
%
[
=
]
.
subst
l0
.
simpl
.
iVsIntro
.
iRevert
"H"
.
change
(
ndot
(
A
:=
nat
))
with
(
λ
N
i
,
N
.
@
(
0
+
i
)
%
nat
)
.
generalize
O
at
2
.
(* TODO : use iInduction, but we need to do it under generalization of O. *)
induction
(
combine_offs
tyl
0
)
as
[|[
ty
offs
]
ll
IH
]
.
by
auto
.
iIntros
(
i
)
"H"
.
rewrite
big_sepL_cons
/=.
iDestruct
"H"
as
"[H0 H]"
.
setoid_rewrite
<-
Nat
.
add_succ_comm
.
iDestruct
(
IH
with
"
[]
H"
)
as
"$"
.
done
.
simpl
.
iVsIntro
.
change
(
ndot
(
A
:=
nat
))
with
(
λ
N
i
,
N
.
@
(
0
+
i
)
%
nat
)
.
generalize
O
at
2
;
intro
i
.
i
I
nduction
(
combine_offs
tyl
0
)
as
[|[
ty
offs
]
ll
]
"IH"
forall
(
i
)
.
by
auto
.
rewrite
big_sepL_cons
/=.
iDestruct
"H"
as
"[H0 H]"
.
setoid_rewrite
<-
Nat
.
add_succ_comm
.
iDestruct
(
"
IH
"
$!
(
S
i
)
with
"H"
)
as
"$"
.
iExists
_
.
iSplit
.
done
.
admit
.
(* FIXME : namespaces problem. *)
Admitted
.
...
...
This diff is collapsed.
Click to expand it.
type_incl.v
+
6
−
7
View file @
0f509524
...
...
@@ -108,12 +108,11 @@ Section ty_incl.
iVs
(
Himpl
with
"Hρ"
)
as
"#Himpl"
.
iIntros
"!==>!#*H"
.
iDestruct
"H"
as
(
vll
)
"(%&%&H)"
.
iExists
_
.
iSplit
.
done
.
iSplit
.
by
rewrite
-
(
Forall2_length
_
_
_
HFA
)
.
by
iApply
(
"Himpl"
with
"[] H"
)
.
-
rewrite
/
Π
/=.
iRevert
"Hρ"
.
generalize
O
.
change
(
ndot
(
A
:=
nat
))
with
(
λ
N
i
,
N
.
@
(
0
+
i
)
%
nat
)
.
generalize
O
.
(* TODO : use iInduction, but we need to do it under generalization of O. *)
induction
HFA
as
[|
ty1
ty2
tyl1
tyl2
Hincl
HFA
IH
]
.
+
iIntros
(
i
offs
)
"_!==>!#*_/="
.
rewrite
big_sepL_nil
.
eauto
.
+
iIntros
(
i
offs
)
"#Hρ"
.
iVs
(
IH
with
"[] []"
)
as
"#Hqimpl"
.
by
iClear
"Hρ"
.
done
.
-
rewrite
/
Π
/=.
iRevert
"Hρ"
.
generalize
O
;
intros
offs
.
change
(
ndot
(
A
:=
nat
))
with
(
λ
N
i
,
N
.
@
(
0
+
i
)
%
nat
)
.
generalize
O
;
intros
i
.
iInduction
HFA
as
[|
ty1
ty2
tyl1
tyl2
Hincl
HFA
]
"IH"
forall
(
i
offs
)
.
+
iIntros
"_!==>!#*_/="
.
rewrite
big_sepL_nil
.
eauto
.
+
iIntros
"#Hρ"
.
iVs
(
"IH"
$!
_
_
with
"[]"
)
as
"#Hqimpl"
;
try
done
.
iVs
(
Hincl
with
"Hρ"
)
as
"[_ #Hhimpl]"
.
iIntros
"!==>!#*"
.
rewrite
!
big_sepL_cons
.
iIntros
"[Hh Hq]"
.
setoid_rewrite
<-
Nat
.
add_succ_comm
.
...
...
@@ -137,7 +136,7 @@ Section ty_incl.
admit
.
Admitted
.
(* TODO *)
(* TODO
, depends on [ty_incl_prod_cons_l]
*)
Lemma
ty_incl_prod_flatten
ρ
tyl1
tyl2
tyl3
:
ty_incl
ρ
(
Π
(
tyl1
++
Π
tyl2
::
tyl3
))
(
Π
(
tyl1
++
tyl2
++
tyl3
))
.
...
...
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