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
8823bade
Commit
8823bade
authored
Oct 03, 2008
by
Adam Chlipala
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MoreSpecif
parent
13c30b7f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
54 additions
and
1 deletion
+54
-1
Makefile
Makefile
+1
-1
MoreSpecif.v
src/MoreSpecif.v
+53
-0
No files found.
Makefile
View file @
8823bade
MODULES_NODOC
:=
Tactics
MODULES_NODOC
:=
Tactics
MoreSpecif
MODULES_PROSE
:=
Intro
MODULES_CODE
:=
StackMachine InductiveTypes Predicates Coinductive Subset
MODULES_DOC
:=
$(MODULES_PROSE)
$(MODULES_CODE)
...
...
src/MoreSpecif.v
0 → 100644
View file @
8823bade
(
*
Copyright
(
c
)
2008
,
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/
*
)
(
*
Types
and
notations
presented
in
Chapter
6
*
)
Set
Implicit
Arguments
.
Notation
"!"
:=
(
False_rec
_
_
)
:
specif_scope
.
Notation
"[ e ]"
:=
(
exist
_
e
_
)
:
specif_scope
.
Notation
"x <== e1 ; e2"
:=
(
let
(
x
,
_
)
:=
e1
in
e2
)
(
right
associativity
,
at
level
60
)
:
specif_scope
.
Open
Local
Scope
specif_scope
.
Delimit
Scope
specif_scope
with
specif
.
Notation
"'Yes'"
:=
(
left
_
_
)
:
specif_scope
.
Notation
"'No'"
:=
(
right
_
_
)
:
specif_scope
.
Notation
"'Reduce' x"
:=
(
if
x
then
Yes
else
No
)
(
at
level
50
)
:
specif_scope
.
Notation
"x || y"
:=
(
if
x
then
Yes
else
Reduce
y
)
(
at
level
50
)
:
specif_scope
.
Inductive
maybe
(
A
:
Type
)
(
P
:
A
->
Prop
)
:
Set
:=
|
Unknown
:
maybe
P
|
Found
:
forall
x
:
A
,
P
x
->
maybe
P
.
Notation
"{{ x | P }}"
:=
(
maybe
(
fun
x
=>
P
))
:
specif_scope
.
Notation
"??"
:=
(
Unknown
_
)
:
specif_scope
.
Notation
"[[ x ]]"
:=
(
Found
_
x
_
)
:
specif_scope
.
Notation
"x <- e1 ; e2"
:=
(
match
e1
with
|
Unknown
=>
??
|
Found
x
_
=>
e2
end
)
(
right
associativity
,
at
level
60
)
:
specif_scope
.
Notation
"x <-- e1 ; e2"
:=
(
match
e1
with
|
inright
_
=>
!!
|
inleft
(
exist
x
_
)
=>
e2
end
)
(
right
associativity
,
at
level
60
)
:
specif_scope
.
Notation
"e1 ;; e2"
:=
(
if
e1
then
e2
else
??
)
(
right
associativity
,
at
level
60
)
:
specif_scope
.
Notation
"e1 ;;; e2"
:=
(
if
e1
then
e2
else
!!
)
(
right
associativity
,
at
level
60
)
:
specif_scope
.
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