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
133d0628
Commit
133d0628
authored
Nov 11, 2009
by
Adam Chlipala
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Start of MoreDep port; new [dep_destruct] based on [dependent destruction]
parent
cffeeacc
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
53 additions
and
74 deletions
+53
-74
Coinductive.v
src/Coinductive.v
+1
-1
InductiveTypes.v
src/InductiveTypes.v
+1
-1
MoreDep.v
src/MoreDep.v
+43
-33
Predicates.v
src/Predicates.v
+1
-1
Subset.v
src/Subset.v
+1
-1
Tactics.v
src/Tactics.v
+6
-37
No files found.
src/Coinductive.v
View file @
133d0628
(
*
Copyright
(
c
)
2008
,
Adam
Chlipala
(
*
Copyright
(
c
)
2008
-
2009
,
Adam
Chlipala
*
*
*
This
work
is
licensed
under
a
*
This
work
is
licensed
under
a
*
Creative
Commons
Attribution
-
Noncommercial
-
No
Derivative
Works
3.0
*
Creative
Commons
Attribution
-
Noncommercial
-
No
Derivative
Works
3.0
...
...
src/InductiveTypes.v
View file @
133d0628
(
*
Copyright
(
c
)
2008
,
Adam
Chlipala
(
*
Copyright
(
c
)
2008
-
2009
,
Adam
Chlipala
*
*
*
This
work
is
licensed
under
a
*
This
work
is
licensed
under
a
*
Creative
Commons
Attribution
-
Noncommercial
-
No
Derivative
Works
3.0
*
Creative
Commons
Attribution
-
Noncommercial
-
No
Derivative
Works
3.0
...
...
src/MoreDep.v
View file @
133d0628
This diff is collapsed.
Click to expand it.
src/Predicates.v
View file @
133d0628
(
*
Copyright
(
c
)
2008
,
Adam
Chlipala
(
*
Copyright
(
c
)
2008
-
2009
,
Adam
Chlipala
*
*
*
This
work
is
licensed
under
a
*
This
work
is
licensed
under
a
*
Creative
Commons
Attribution
-
Noncommercial
-
No
Derivative
Works
3.0
*
Creative
Commons
Attribution
-
Noncommercial
-
No
Derivative
Works
3.0
...
...
src/Subset.v
View file @
133d0628
(
*
Copyright
(
c
)
2008
,
Adam
Chlipala
(
*
Copyright
(
c
)
2008
-
2009
,
Adam
Chlipala
*
*
*
This
work
is
licensed
under
a
*
This
work
is
licensed
under
a
*
Creative
Commons
Attribution
-
Noncommercial
-
No
Derivative
Works
3.0
*
Creative
Commons
Attribution
-
Noncommercial
-
No
Derivative
Works
3.0
...
...
src/Tactics.v
View file @
133d0628
...
@@ -143,45 +143,14 @@ Ltac crush' lemmas invOne :=
...
@@ -143,45 +143,14 @@ Ltac crush' lemmas invOne :=
Ltac
crush
:=
crush
'
false
fail
.
Ltac
crush
:=
crush
'
false
fail
.
Theorem
dep_destruct
:
forall
(
T
:
Type
)
(
T
'
:
T
->
Type
)
x
(
v
:
T
'
x
)
(
P
:
T
'
x
->
Type
)
,
Require
Import
Program
.
Equality
.
(
forall
x
'
(
v
'
:
T
'
x
'
)
(
Heq
:
x
'
=
x
)
,
P
(
match
Heq
in
(
_
=
x
)
return
(
T
'
x
)
with
|
refl_equal
=>
v
'
end
))
->
P
v
.
intros
.
generalize
(
X
_
v
(
refl_equal
_
))
;
trivial
.
Qed
.
Ltac
dep_destruct
E
:=
Ltac
dep_destruct
E
:=
let
doit
A
:=
let
x
:=
fresh
"x"
in
let
T
:=
type
of
A
in
remember
E
as
x
;
simpl
in
x
;
dependent
destruction
x
;
generalize
dependent
E
;
try
match
goal
with
let
e
:=
fresh
"e"
in
|
[
H
:
_
=
E
|-
_
]
=>
rewrite
<-
H
in
*;
clear
H
intro
e
;
pattern
e
;
end
.
apply
(
@
dep_destruct
T
)
;
let
x
:=
fresh
"x"
with
v
:=
fresh
"v"
in
intros
x
v
;
destruct
v
;
crush
;
let
bestEffort
Heq
E
tac
:=
repeat
match
goal
with
|
[
H
:
context
[
E
]
|-
_
]
=>
match
H
with
|
Heq
=>
fail
1
|
_
=>
generalize
dependent
H
end
end
;
generalize
Heq
;
tac
Heq
;
clear
Heq
;
intro
Heq
;
rewrite
(
UIP_refl
_
_
Heq
)
;
intros
in
repeat
match
goal
with
|
[
Heq
:
?
X
=
?
X
|-
_
]
=>
generalize
(
UIP_refl
_
_
Heq
)
;
intro
;
subst
;
clear
Heq
|
[
Heq
:
?
E
=
_
|-
_
]
=>
bestEffort
Heq
E
ltac
:
(
fun
E
=>
rewrite
E
)
|
[
Heq
:
_
=
?
E
|-
_
]
=>
bestEffort
Heq
E
ltac
:
(
fun
E
=>
rewrite
<-
E
)
end
in
match
type
of
E
with
|
_
?
A
=>
doit
A
|
_
_
?
A
=>
doit
A
|
_
_
_
?
A
=>
doit
A
end
.
Ltac
clear_all
:=
Ltac
clear_all
:=
repeat
match
goal
with
repeat
match
goal
with
...
...
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