Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Janno
iris-coq
Commits
bf0b4bd4
Commit
bf0b4bd4
authored
Jun 06, 2018
by
Ralf Jung
Browse files
improve linebreak tests so that they do not rely on infix rendering
parent
700caaac
Changes
2
Hide whitespace changes
Inline
Side-by-side
tests/proofmode.ref
View file @
bf0b4bd4
...
...
@@ -22,42 +22,42 @@
1 subgoal
PROP : sbi
P : PROP
P
_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P
: PROP
============================
"HP" :
(P ∗ P ∗ P ∗ P ∗ P ∗ P ∗ P ∗ P ∗ P ∗ P)
∗ P
∗ P ∗ P ∗ P ∗ P ∗ P ∗ P ∗ P ∗
P
"HP" :
P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P
∗ P
_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_
P
--------------------------------------∗
P
True
1 subgoal
PROP : sbi
P : PROP
P
_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P
: PROP
============================
_ :
(P ∗ P ∗ P ∗ P ∗ P ∗ P ∗ P ∗ P ∗ P ∗ P)
∗ P
∗ P ∗ P ∗ P ∗ P ∗ P ∗ P ∗ P ∗
P
_ :
P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P
∗ P
_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_
P
--------------------------------------∗
P
True
1 subgoal
PROP : sbi
P : PROP
P
_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P
: PROP
============================
"HP" : TESTNOTATION {{ P
∗ P ∗ P ∗ P ∗ P ∗ P ∗ P ∗ P ∗ P ∗ P ∗ P ∗ P ∗
P |
P
∗ P ∗ P ∗ P ∗ P ∗ P ∗
P }}
"HP" : TESTNOTATION {{ P
_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_
P |
P
_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_
P }}
--------------------------------------∗
P
True
1 subgoal
PROP : sbi
P : PROP
P
_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P
: PROP
============================
_ : TESTNOTATION {{ P
∗ P ∗ P ∗ P ∗ P ∗ P ∗ P ∗ P ∗ P ∗ P ∗ P ∗ P ∗
P |
P
∗ P ∗ P ∗ P ∗ P ∗ P ∗
P }}
_ : TESTNOTATION {{ P
_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_
P |
P
_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_
P }}
--------------------------------------∗
P
True
1 subgoal
...
...
tests/proofmode.v
View file @
bf0b4bd4
...
...
@@ -39,15 +39,17 @@ Proof. iIntros "($ & $ & $)". iNext. by iExists 0. Qed.
(* Test line breaking of long assumptions. *)
Section
linebreaks
.
Lemma
print_long_line
P
:
(
P
∗
P
∗
P
∗
P
∗
P
∗
P
∗
P
∗
P
∗
P
∗
P
)
∗
P
∗
P
∗
P
∗
P
∗
P
∗
P
∗
P
∗
P
∗
P
-
∗
P
.
Lemma
print_long_line
(
P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P
:
PROP
)
:
P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P
∗
P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P
-
∗
True
.
Proof
.
iIntros
"HP"
.
Show
.
Abort
.
Lemma
print_long_line_anon
P
:
(
P
∗
P
∗
P
∗
P
∗
P
∗
P
∗
P
∗
P
∗
P
∗
P
)
∗
P
∗
P
∗
P
∗
P
∗
P
∗
P
∗
P
∗
P
∗
P
-
∗
P
.
Lemma
print_long_line_anon
(
P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P
:
PROP
)
:
P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P
∗
P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P
-
∗
True
.
Proof
.
iIntros
"?"
.
Show
.
Abort
.
...
...
@@ -55,16 +57,16 @@ Abort.
(* This is specifically crafted such that not having the `hv` in
the proofmode notation breaks the output. *)
Local
Notation
"'TESTNOTATION' '{{' P '|' Q '}' '}'"
:
=
(
P
∧
Q
)%
I
(
format
"'TESTNOTATION' '{{' P '|' Q '}' '}'"
)
:
bi_scope
.
Lemma
print_long_line
P
:
TESTNOTATION
{{
P
∗
P
∗
P
∗
P
∗
P
∗
P
∗
P
∗
P
∗
P
∗
P
∗
P
∗
P
∗
P
|
P
∗
P
∗
P
∗
P
∗
P
∗
P
∗
P
}}
-
∗
P
.
(
format
"'TESTNOTATION' '{{' P '|'
'/'
Q '}' '}'"
)
:
bi_scope
.
Lemma
print_long_line
(
P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P
:
PROP
)
:
TESTNOTATION
{{
P
_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P
|
P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_
P
}}
-
∗
True
.
Proof
.
iIntros
"HP"
.
Show
.
Abort
.
Lemma
print_long_line_anon
P
:
TESTNOTATION
{{
P
∗
P
∗
P
∗
P
∗
P
∗
P
∗
P
∗
P
∗
P
∗
P
∗
P
∗
P
∗
P
|
P
∗
P
∗
P
∗
P
∗
P
∗
P
∗
P
}}
-
∗
P
.
Lemma
print_long_line_anon
(
P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P
:
PROP
)
:
TESTNOTATION
{{
P
_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P
|
P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_P_
P
}}
-
∗
True
.
Proof
.
iIntros
"?"
.
Show
.
Abort
.
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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