Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
C
cpdt
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
research
cpdt
Commits
a555abd7
Commit
a555abd7
authored
Nov 02, 2008
by
Adam Chlipala
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Progress and preservation
parent
da08159d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
49 additions
and
0 deletions
+49
-0
Firstorder.v
src/Firstorder.v
+49
-0
No files found.
src/Firstorder.v
View file @
a555abd7
...
@@ -296,4 +296,53 @@ Module Concrete.
...
@@ -296,4 +296,53 @@ Module Concrete.
Qed
.
Qed
.
End
subst
.
End
subst
.
Hint
Resolve
subst_hasType_closed
.
Notation
"[ x ~> e1 ] e2"
:=
(
subst
x
e1
e2
)
(
no
associativity
,
at
level
80
)
.
Inductive
val
:
exp
->
Prop
:=
|
VConst
:
forall
b
,
val
(
Const
b
)
|
VAbs
:
forall
x
e
,
val
(
Abs
x
e
)
.
Hint
Constructors
val
.
Reserved
Notation
"e1 ==> e2"
(
no
associativity
,
at
level
90
)
.
Inductive
step
:
exp
->
exp
->
Prop
:=
|
Beta
:
forall
x
e1
e2
,
App
(
Abs
x
e1
)
e2
==>
[
x
~>
e2
]
e1
|
Cong1
:
forall
e1
e2
e1
'
,
e1
==>
e1
'
->
App
e1
e2
==>
App
e1
'
e2
|
Cong2
:
forall
e1
e2
e2
'
,
val
e1
->
e2
==>
e2
'
->
App
e1
e2
==>
App
e1
e2
'
where
"e1 ==> e2"
:=
(
step
e1
e2
)
.
Hint
Constructors
step
.
Theorem
progress
:
forall
G
e
t
,
G
|-
e
e
:
t
->
G
=
nil
->
val
e
\
/
exists
e
'
,
e
==>
e
'
.
induction
1
;
crush
;
eauto
;
try
match
goal
with
|
[
H
:
_
|-
e
_
:
_
-->
_
|-
_
]
=>
inversion
H
end
;
repeat
match
goal
with
|
[
H
:
_
|-
_
]
=>
solve
[
inversion
H
;
crush
;
eauto
]
end
.
Qed
.
Theorem
preservation
:
forall
G
e
t
,
G
|-
e
e
:
t
->
G
=
nil
->
forall
e
'
,
e
==>
e
'
->
G
|-
e
e
'
:
t
.
induction
1
;
inversion
2
;
crush
;
eauto
;
match
goal
with
|
[
H
:
_
|-
e
Abs
_
_
:
_
|-
_
]
=>
inversion
H
end
;
eauto
.
Qed
.
End
Concrete
.
End
Concrete
.
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