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
bdc1ccb6
Commit
bdc1ccb6
authored
Nov 16, 2009
by
Adam Chlipala
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Port Interps
parent
355b7174
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
12 deletions
+13
-12
Impure.v
src/Impure.v
+1
-1
Intensional.v
src/Intensional.v
+1
-1
Interps.v
src/Interps.v
+11
-10
No files found.
src/Impure.v
View file @
bdc1ccb6
(
*
Copyright
(
c
)
2008
,
Adam
Chlipala
(
*
Copyright
(
c
)
2008
-
2009
,
Adam
Chlipala
*
*
This
work
is
licensed
under
a
*
Creative
Commons
Attribution
-
Noncommercial
-
No
Derivative
Works
3.0
...
...
src/Intensional.v
View file @
bdc1ccb6
(
*
Copyright
(
c
)
2008
,
Adam
Chlipala
(
*
Copyright
(
c
)
2008
-
2009
,
Adam
Chlipala
*
*
This
work
is
licensed
under
a
*
Creative
Commons
Attribution
-
Noncommercial
-
No
Derivative
Works
3.0
...
...
src/Interps.v
View file @
bdc1ccb6
(
*
Copyright
(
c
)
2008
,
Adam
Chlipala
(
*
Copyright
(
c
)
2008
-
2009
,
Adam
Chlipala
*
*
This
work
is
licensed
under
a
*
Creative
Commons
Attribution
-
Noncommercial
-
No
Derivative
Works
3.0
...
...
@@ -85,8 +85,8 @@ Module STLC.
|
t1
-->
t2
=>
typeDenote
t1
->
typeDenote
t2
end
.
Fixpoint
expDenote
t
(
e
:
exp
typeDenote
t
)
{
struct
e
}
:
typeDenote
t
:=
match
e
in
(
exp
_
t
)
return
(
typeDenote
t
)
with
Fixpoint
expDenote
t
(
e
:
exp
typeDenote
t
)
:
typeDenote
t
:=
match
e
with
|
Var
_
v
=>
v
|
Const
n
=>
n
...
...
@@ -113,8 +113,8 @@ Module STLC.
Section
cfold
.
Variable
var
:
type
->
Type
.
Fixpoint
cfold
t
(
e
:
exp
var
t
)
{
struct
e
}
:
exp
var
t
:=
match
e
in
exp
_
t
return
exp
_
t
with
Fixpoint
cfold
t
(
e
:
exp
var
t
)
:
exp
var
t
:=
match
e
with
|
Var
_
v
=>
#
v
|
Const
n
=>
^
n
...
...
@@ -260,8 +260,8 @@ Module PSLC.
|
t1
++
t2
=>
typeDenote
t1
+
typeDenote
t2
end
%
type
.
Fixpoint
expDenote
t
(
e
:
exp
typeDenote
t
)
{
struct
e
}
:
typeDenote
t
:=
match
e
in
(
exp
_
t
)
return
(
typeDenote
t
)
with
Fixpoint
expDenote
t
(
e
:
exp
typeDenote
t
)
:
typeDenote
t
:=
match
e
with
|
Var
_
v
=>
v
|
Const
n
=>
n
...
...
@@ -312,14 +312,15 @@ Module PSLC.
|
_
=>
tt
end
.
Definition
pairOut
t1
t2
(
e
:
exp
var
(
t1
**
t2
))
:
option
(
exp
var
t1
*
exp
var
t2
)
:=
Definition
pairOut
t1
t2
(
e
:
exp
var
(
t1
**
t2
))
:
option
(
exp
var
t1
*
exp
var
t2
)
:=
match
e
in
exp
_
t
return
pairOutType
t
with
|
Pair
_
_
e1
e2
=>
Some
(
e1
,
e2
)
|
_
=>
pairOutDefault
_
end
.
Fixpoint
cfold
t
(
e
:
exp
var
t
)
{
struct
e
}
:
exp
var
t
:=
match
e
in
exp
_
t
return
exp
_
t
with
Fixpoint
cfold
t
(
e
:
exp
var
t
)
:
exp
var
t
:=
match
e
with
|
Var
_
v
=>
#
v
|
Const
n
=>
^
n
...
...
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