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
da1b090e
Commit
da1b090e
authored
Jun 28, 2010
by
Adam Chlipala
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
A suggestion from sbriais: mention that Coq >=8.2 allows omitted match cases
parent
ca86e959
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
MoreDep.v
src/MoreDep.v
+1
-1
No files found.
src/MoreDep.v
View file @
da1b090e
...
@@ -121,7 +121,7 @@ Error: Non exhaustive pattern-matching: no clause found for pattern Nil
...
@@ -121,7 +121,7 @@ Error: Non exhaustive pattern-matching: no clause found for pattern Nil
]]
]]
Unlike
in
ML
,
we
cannot
use
inexhaustive
pattern
matching
,
because
there
is
no
conception
of
a
%
\
texttt
{%
#
<
tt
>
#
Match
#
</
tt
>
#
%}%
exception
to
be
thrown
.
We
might
try
using
an
[
in
]
clause
somehow
.
Unlike
in
ML
,
we
cannot
use
inexhaustive
pattern
matching
,
because
there
is
no
conception
of
a
%
\
texttt
{%
#
<
tt
>
#
Match
#
</
tt
>
#
%}%
exception
to
be
thrown
.
In
fact
,
recent
versions
of
Coq
%
\
textit
{%
#
<
i
>
#
do
#
</
i
>
#
%}%
allow
this
,
by
implicit
translation
to
a
[
match
]
that
considers
all
constructors
.
It
is
educational
to
discover
that
encoding
ourselves
directly
.
We
might
try
using
an
[
in
]
clause
somehow
.
[[
[[
Definition
hd
n
(
ls
:
ilist
(
S
n
))
:
A
:=
Definition
hd
n
(
ls
:
ilist
(
S
n
))
:
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