Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Iris
stdpp
Commits
c36246fc
Commit
c36246fc
authored
Feb 06, 2019
by
Robbert Krebbers
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More consistent indentation in `infinite`.
parent
7d49702c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
theories/infinite.v
theories/infinite.v
+4
-3
No files found.
theories/infinite.v
View file @
c36246fc
...
...
@@ -6,9 +6,10 @@ From stdpp Require Import pretty relations.
(** The class [Infinite] axiomatizes types with infinitely many elements
by giving an injection from the natural numbers into the type. It is mostly
used to provide a generic [fresh] algorithm. *)
Class
Infinite
A
:
=
{
inject
:
nat
→
A
;
inject_injective
:
>
Inj
(=)
(=)
inject
}.
Class
Infinite
A
:
=
{
inject
:
nat
→
A
;
inject_injective
:
>
Inj
(=)
(=)
inject
;
}.
Instance
string_infinite
:
Infinite
string
:
=
{|
inject
:
=
λ
x
,
"~"
+
:
+
pretty
x
|}.
Instance
nat_infinite
:
Infinite
nat
:
=
{|
inject
:
=
id
|}.
...
...
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