Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Iris
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Gaëtan Gilbert
Iris
Commits
ac310b6a
Commit
ac310b6a
authored
2 years ago
by
Gregory Malecha
Browse files
Options
Downloads
Patches
Plain Diff
Minor notation cleanup to avoid casts.
parent
d7eae97a
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
iris/si_logic/siprop.v
+1
-2
1 addition, 2 deletions
iris/si_logic/siprop.v
tests/proofmode.v
+7
-7
7 additions, 7 deletions
tests/proofmode.v
tests/proofmode_monpred.v
+1
-1
1 addition, 1 deletion
tests/proofmode_monpred.v
with
9 additions
and
10 deletions
iris/si_logic/siprop.v
+
1
−
2
View file @
ac310b6a
...
...
@@ -130,8 +130,7 @@ Ltac unseal := rewrite !unseal_eqs /=.
Section
primitive
.
Local
Arguments
siProp_holds
!
_
_
/.
Notation
"P ⊢ Q"
:=
(
siProp_entails
P
Q
)
(
at
level
99
,
Q
at
level
200
,
right
associativity
)
.
Notation
"P ⊢ Q"
:=
(
siProp_entails
P
Q
)
.
Notation
"'True'"
:=
(
siProp_pure
True
)
:
siProp_scope
.
Notation
"'False'"
:=
(
siProp_pure
False
)
:
siProp_scope
.
Notation
"'⌜' φ '⌝'"
:=
(
siProp_pure
φ
%
type
%
stdpp
)
:
siProp_scope
.
...
...
This diff is collapsed.
Click to expand it.
tests/proofmode.v
+
7
−
7
View file @
ac310b6a
...
...
@@ -865,7 +865,7 @@ Lemma test_specialize_intuitionistic P Q :
□
P
-∗
□
(
P
-∗
Q
)
-∗
□
Q
.
Proof
.
iIntros
"#HP #HQ"
.
iSpecialize
(
"HQ"
with
"HP"
)
.
done
.
Qed
.
Lemma
test_iEval
x
y
:
⌜
(
y
+
x
)
%
nat
=
1
⌝
-∗
⌜
S
(
x
+
y
)
=
2
%
nat
⌝
:
PROP
.
Lemma
test_iEval
x
y
:
⌜
(
y
+
x
)
%
nat
=
1
⌝
⊢@
{
PROP
}
⌜
S
(
x
+
y
)
=
2
%
nat
⌝.
Proof
.
iIntros
(
H
)
.
iEval
(
rewrite
(
Nat
.
add_comm
x
y
)
//
H
)
.
...
...
@@ -880,21 +880,21 @@ Proof.
Qed
.
Check
"test_iSimpl_in"
.
Lemma
test_iSimpl_in
x
y
:
⌜
(
3
+
x
)
%
nat
=
y
⌝
-∗
⌜
S
(
S
(
S
x
))
=
y
⌝
:
PROP
.
Lemma
test_iSimpl_in
x
y
:
⌜
(
3
+
x
)
%
nat
=
y
⌝
⊢@
{
PROP
}
⌜
S
(
S
(
S
x
))
=
y
⌝.
Proof
.
iIntros
"H"
.
iSimpl
in
"H"
.
Show
.
done
.
Qed
.
Lemma
test_iSimpl_in_2
x
y
z
:
⌜
(
3
+
x
)
%
nat
=
y
⌝
-∗
⌜
(
1
+
y
)
%
nat
=
z
⌝
-∗
⌜
S
(
S
(
S
x
))
=
y
⌝
:
PROP
.
⌜
(
3
+
x
)
%
nat
=
y
⌝
⊢@
{
PROP
}
⌜
(
1
+
y
)
%
nat
=
z
⌝
-∗
⌜
S
(
S
(
S
x
))
=
y
⌝.
Proof
.
iIntros
"H1 H2"
.
iSimpl
in
"H1 H2"
.
Show
.
done
.
Qed
.
Lemma
test_iSimpl_in3
x
y
z
:
⌜
(
3
+
x
)
%
nat
=
y
⌝
-∗
⌜
(
1
+
y
)
%
nat
=
z
⌝
-∗
⌜
S
(
S
(
S
x
))
=
y
⌝
:
PROP
.
⌜
(
3
+
x
)
%
nat
=
y
⌝
⊢@
{
PROP
}
⌜
(
1
+
y
)
%
nat
=
z
⌝
-∗
⌜
S
(
S
(
S
x
))
=
y
⌝.
Proof
.
iIntros
"#H1 H2"
.
iSimpl
in
"#"
.
Show
.
done
.
Qed
.
Check
"test_iSimpl_in4"
.
Lemma
test_iSimpl_in4
x
y
:
⌜
(
3
+
x
)
%
nat
=
y
⌝
-∗
⌜
S
(
S
(
S
x
))
=
y
⌝
:
PROP
.
Lemma
test_iSimpl_in4
x
y
:
⌜
(
3
+
x
)
%
nat
=
y
⌝
⊢@
{
PROP
}
⌜
S
(
S
(
S
x
))
=
y
⌝.
Proof
.
iIntros
"H"
.
Fail
iSimpl
in
"%"
.
by
iSimpl
in
"H"
.
Qed
.
Check
"test_iRename"
.
...
...
This diff is collapsed.
Click to expand it.
tests/proofmode_monpred.v
+
1
−
1
View file @
ac310b6a
...
...
@@ -67,7 +67,7 @@ Section tests.
iStartProof
.
iIntros
(
n
)
"$"
.
Qed
.
Lemma
test_embed_wand
(
P
Q
:
PROP
)
:
(
⎡
P
⎤
-∗
⎡
Q
⎤
)
-∗
⎡
P
-∗
Q
⎤
:
monPred
.
Lemma
test_embed_wand
(
P
Q
:
PROP
)
:
(
⎡
P
⎤
-∗
⎡
Q
⎤
)
⊢@
{
monPredI
}
⎡
P
-∗
Q
⎤
.
Proof
.
iIntros
"H HP"
.
by
iApply
"H"
.
Qed
.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment