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
2de2e665
Commit
2de2e665
authored
Dec 04, 2009
by
Adam Chlipala
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Uncommented functor example
parent
4d8193c2
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
78 additions
and
1 deletion
+78
-1
Makefile
Makefile
+1
-1
Intro.v
src/Intro.v
+2
-0
Large.v
src/Large.v
+74
-0
toc.html
src/toc.html
+1
-0
No files found.
Makefile
View file @
2de2e665
...
...
@@ -2,7 +2,7 @@ MODULES_NODOC := Axioms Tactics MoreSpecif DepList
MODULES_PROSE
:=
Intro
MODULES_CODE
:=
StackMachine InductiveTypes Predicates Coinductive Subset
\
MoreDep DataStruct Equality Generic Universes Match Reflection
\
Firstorder Hoas Interps Extensional Intensional Impure
Large
Firstorder Hoas Interps Extensional Intensional Impure
MODULES_DOC
:=
$(MODULES_PROSE)
$(MODULES_CODE)
MODULES
:=
$(MODULES_NODOC)
$(MODULES_DOC)
VS
:=
$
(
MODULES:%
=
src/%.v
)
...
...
src/Intro.v
View file @
2de2e665
...
...
@@ -207,6 +207,8 @@ Proof Search in Ltac & \texttt{Match.v} \\
\
hline
Proof
by
Reflection
&
\
texttt
{
Reflection
.
v
}
\
\
\
hline
Proving
in
the
Large
&
\
texttt
{
Large
.
v
}
\
\
\
hline
First
-
Order
Abstract
Syntax
&
\
texttt
{
Firstorder
.
v
}
\
\
\
hline
Higher
-
Order
Abstract
Syntax
&
\
texttt
{
Hoas
.
v
}
\
\
...
...
src/Large.v
0 → 100644
View file @
2de2e665
(
*
Copyright
(
c
)
2009
,
Adam
Chlipala
*
*
This
work
is
licensed
under
a
*
Creative
Commons
Attribution
-
Noncommercial
-
No
Derivative
Works
3.0
*
Unported
License
.
*
The
license
text
is
available
at
:
*
http
:
//creativecommons.org/licenses/by-nc-nd/3.0/
*
)
(
*
begin
hide
*
)
Require
Import
Tactics
.
Set
Implicit
Arguments
.
(
*
end
hide
*
)
(
**
%
\
chapter
{
Proving
in
the
Large
}%
*
)
(
**
*
Modules
*
)
Module
Type
GROUP
.
Parameter
G
:
Set
.
Parameter
f
:
G
->
G
->
G
.
Parameter
e
:
G
.
Parameter
i
:
G
->
G
.
Axiom
assoc
:
forall
a
b
c
,
f
(
f
a
b
)
c
=
f
a
(
f
b
c
)
.
Axiom
ident
:
forall
a
,
f
e
a
=
a
.
Axiom
inverse
:
forall
a
,
f
(
i
a
)
a
=
e
.
End
GROUP
.
Module
Type
GROUP_THEOREMS
.
Declare
Module
M
:
GROUP
.
Axiom
ident
'
:
forall
a
,
M
.
f
a
M
.
e
=
a
.
Axiom
inverse
'
:
forall
a
,
M
.
f
a
(
M
.
i
a
)
=
M
.
e
.
Axiom
unique_ident
:
forall
e
'
,
(
forall
a
,
M
.
f
e
'
a
=
a
)
->
e
'
=
M
.
e
.
End
GROUP_THEOREMS
.
Module
Group
(
M
:
GROUP
)
:
GROUP_THEOREMS
.
Module
M
:=
M
.
Import
M
.
Theorem
inverse
'
:
forall
a
,
f
a
(
i
a
)
=
e
.
intro
.
rewrite
<-
(
ident
(
f
a
(
i
a
)))
.
rewrite
<-
(
inverse
(
f
a
(
i
a
)))
at
1.
rewrite
assoc
.
rewrite
assoc
.
rewrite
<-
(
assoc
(
i
a
)
a
(
i
a
))
.
rewrite
inverse
.
rewrite
ident
.
apply
inverse
.
Qed
.
Theorem
ident
'
:
forall
a
,
f
a
e
=
a
.
intro
.
rewrite
<-
(
inverse
a
)
.
rewrite
<-
assoc
.
rewrite
inverse
'
.
apply
ident
.
Qed
.
Theorem
unique_ident
:
forall
e
'
,
(
forall
a
,
M
.
f
e
'
a
=
a
)
->
e
'
=
M
.
e
.
intros
.
rewrite
<-
(
H
e
)
.
symmetry
.
apply
ident
'
.
Qed
.
End
Group
.
src/toc.html
View file @
2de2e665
...
...
@@ -17,6 +17,7 @@
<li><a
href=
"Universes.html"
>
Universes and Axioms
</a>
<li><a
href=
"Match.html"
>
Proof Search in Ltac
</a>
<li><a
href=
"Reflection.html"
>
Proof by Reflection
</a>
<li><a
href=
"Large.html"
>
Proving in the Large
</a>
<li><a
href=
"Firstorder.html"
>
First-Order Abstract Syntax
</a>
<li><a
href=
"Hoas.html"
>
Higher-Order Abstract Syntax
</a>
<li><a
href=
"Interps.html"
>
Type-Theoretic Interpreters
</a>
...
...
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