Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Simon Spies
stdpp
Commits
0ec18c14
Commit
0ec18c14
authored
Sep 03, 2014
by
Robbert Krebbers
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Repeat function on streams.
parent
2e1b8a41
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
theories/streams.v
theories/streams.v
+1
-0
No files found.
theories/streams.v
View file @
0ec18c14
...
...
@@ -28,6 +28,7 @@ Global Instance stream_fmap : FMap stream := λ A B f,
Fixpoint
stake
{
A
}
(
n
:
nat
)
(
s
:
stream
A
)
:
=
match
n
with
0
=>
[]
|
S
n
=>
shead
s
::
stake
n
(
stail
s
)
end
.
CoFixpoint
srepeat
{
A
}
(
x
:
A
)
:
stream
A
:
=
x
:
.
:
srepeat
x
.
Section
stream_properties
.
Context
{
A
:
Type
}.
...
...
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