Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
stdpp
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
47
Issues
47
List
Boards
Labels
Service Desk
Milestones
Merge Requests
3
Merge Requests
3
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Iris
stdpp
Commits
535bab6d
Commit
535bab6d
authored
Aug 19, 2016
by
Ralf Jung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
make coqchk happy with prelude.pretty
parent
3774c94b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
theories/pretty.v
theories/pretty.v
+6
-1
No files found.
theories/pretty.v
View file @
535bab6d
...
...
@@ -37,6 +37,9 @@ Proof.
by
destruct
(
decide
(
0
<
x
)%
N
)
;
auto
using
pretty_N_go_help_irrel
.
Qed
.
Instance
pretty_N
:
Pretty
N
:
=
λ
x
,
pretty_N_go
x
""
%
string
.
Lemma
pretty_N_unfold
x
:
pretty
x
=
pretty_N_go
x
""
.
Proof
.
done
.
Qed
.
Instance
pretty_N_inj
:
Inj
(@
eq
N
)
(=)
pretty
.
Proof
.
assert
(
∀
x
y
,
x
<
10
→
y
<
10
→
...
...
@@ -44,7 +47,9 @@ Proof.
{
compute
;
intros
.
by
repeat
(
discriminate
||
case_match
).
}
cut
(
∀
x
y
s
s'
,
pretty_N_go
x
s
=
pretty_N_go
y
s'
→
String
.
length
s
=
String
.
length
s'
→
x
=
y
∧
s
=
s'
).
{
intros
help
x
y
?.
eapply
help
;
eauto
.
}
{
intros
help
x
y
Hp
.
eapply
(
help
x
y
""
""
)
;
[
by
rewrite
<-!
pretty_N_unfold
|].
eauto
.
}
assert
(
∀
x
s
,
¬
String
.
length
(
pretty_N_go
x
s
)
<
String
.
length
s
)
as
help
.
{
setoid_rewrite
<-
Nat
.
le_ngt
.
intros
x
;
induction
(
N
.
lt_wf_0
x
)
as
[
x
_
IH
]
;
intros
s
.
...
...
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