Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Tej Chajed
stdpp
Commits
c12240a8
Commit
c12240a8
authored
Jan 12, 2016
by
Robbert Krebbers
Browse files
Destructor for cons.
parent
1c8f2fb8
Changes
1
Hide whitespace changes
Inline
Side-by-side
theories/list.v
View file @
c12240a8
...
@@ -34,6 +34,9 @@ Notation "x ≢ₚ y":= (¬x ≡ₚ y) (at level 70, no associativity) : C_scope
...
@@ -34,6 +34,9 @@ Notation "x ≢ₚ y":= (¬x ≡ₚ y) (at level 70, no associativity) : C_scope
Notation
"( x ≢ₚ)"
:
=
(
λ
y
,
x
≢ₚ
y
)
(
only
parsing
)
:
C_scope
.
Notation
"( x ≢ₚ)"
:
=
(
λ
y
,
x
≢ₚ
y
)
(
only
parsing
)
:
C_scope
.
Notation
"(≢ₚ x )"
:
=
(
λ
y
,
y
≢ₚ
x
)
(
only
parsing
)
:
C_scope
.
Notation
"(≢ₚ x )"
:
=
(
λ
y
,
y
≢ₚ
x
)
(
only
parsing
)
:
C_scope
.
Instance
maybe_cons
{
A
}
:
Maybe2
(@
cons
A
)
:
=
λ
l
,
match
l
with
x
::
l
=>
Some
(
x
,
l
)
|
_
=>
None
end
.
(** * Definitions *)
(** * Definitions *)
(** Setoid equality lifted to lists *)
(** Setoid equality lifted to lists *)
Inductive
list_equiv
`
{
Equiv
A
}
:
Equiv
(
list
A
)
:
=
Inductive
list_equiv
`
{
Equiv
A
}
:
Equiv
(
list
A
)
:
=
...
...
Write
Preview
Supports
Markdown
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