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
Pierre Roux
Iris
Commits
0e1bdaf4
Commit
0e1bdaf4
authored
3 years ago
by
Ralf Jung
Browse files
Options
Downloads
Patches
Plain Diff
better error for iModIntro on mask-changing update
parent
15946faa
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
iris/proofmode/class_instances_updates.v
+6
-0
6 additions, 0 deletions
iris/proofmode/class_instances_updates.v
tests/proofmode.ref
+10
-0
10 additions, 0 deletions
tests/proofmode.ref
tests/proofmode.v
+9
-0
9 additions, 0 deletions
tests/proofmode.v
with
25 additions
and
0 deletions
iris/proofmode/class_instances_updates.v
+
6
−
0
View file @
0e1bdaf4
...
@@ -129,6 +129,12 @@ Proof. by rewrite /FromModal /= -bupd_intro. Qed.
...
@@ -129,6 +129,12 @@ Proof. by rewrite /FromModal /= -bupd_intro. Qed.
Global
Instance
from_modal_fupd
E
P
`{
!
BiFUpd
PROP
}
:
Global
Instance
from_modal_fupd
E
P
`{
!
BiFUpd
PROP
}
:
FromModal
True
modality_id
(|
=
{
E
}=>
P
)
(|
=
{
E
}=>
P
)
P
.
FromModal
True
modality_id
(|
=
{
E
}=>
P
)
(|
=
{
E
}=>
P
)
P
.
Proof
.
by
rewrite
/
FromModal
/=
-
fupd_intro
.
Qed
.
Proof
.
by
rewrite
/
FromModal
/=
-
fupd_intro
.
Qed
.
Global
Instance
from_modal_fupd_wrong_mask
E1
E2
P
`{
!
BiFUpd
PROP
}
:
FromModal
(
pm_error
"Only non-mask-changing update modalities can be introduced directly.
Use [iApply fupd_mask_intro] to introduce mask-changing update modalities"
)
modality_id
(|
=
{
E1
,
E2
}=>
P
)
(|
=
{
E1
,
E2
}=>
P
)
P
|
100
.
Proof
.
by
intros
[]
.
Qed
.
Global
Instance
elim_modal_bupd
`{
!
BiBUpd
PROP
}
p
P
Q
:
Global
Instance
elim_modal_bupd
`{
!
BiBUpd
PROP
}
p
P
Q
:
ElimModal
True
p
false
(|
==>
P
)
P
(|
==>
Q
)
(|
==>
Q
)
.
ElimModal
True
p
false
(|
==>
P
)
P
(|
==>
Q
)
(|
==>
Q
)
.
...
...
This diff is collapsed.
Click to expand it.
tests/proofmode.ref
+
10
−
0
View file @
0e1bdaf4
...
@@ -717,6 +717,16 @@ The command has indeed failed with message:
...
@@ -717,6 +717,16 @@ The command has indeed failed with message:
Tactic failure:
Tactic failure:
"Goal and eliminated modality must have the same mask.
"Goal and eliminated modality must have the same mask.
Use [iMod (fupd_mask_subseteq E2)] to adjust the mask of your goal to [E2]".
Use [iMod (fupd_mask_subseteq E2)] to adjust the mask of your goal to [E2]".
"iModIntro_mask_mismatch"
: string
The command has indeed failed with message:
Tactic failure:
"Only non-mask-changing update modalities can be introduced directly.
Use [iApply fupd_mask_intro] to introduce mask-changing update modalities".
The command has indeed failed with message:
Tactic failure:
"Only non-mask-changing update modalities can be introduced directly.
Use [iApply fupd_mask_intro] to introduce mask-changing update modalities".
"test_pure_name"
"test_pure_name"
: string
: string
1 goal
1 goal
...
...
This diff is collapsed.
Click to expand it.
tests/proofmode.v
+
9
−
0
View file @
0e1bdaf4
...
@@ -1401,6 +1401,15 @@ Proof.
...
@@ -1401,6 +1401,15 @@ Proof.
Fail
iIntros
">HP"
.
Fail
iIntros
">HP"
.
iIntros
"HP"
.
Fail
iMod
"HP"
.
iIntros
"HP"
.
Fail
iMod
"HP"
.
Abort
.
Abort
.
Check
"iModIntro_mask_mismatch"
.
Lemma
iMod_mask_mismatch
`{
!
BiFUpd
PROP
}
E1
E2
(
P
:
PROP
)
:
⊢
|
=
{
E1
,
E2
}=>
P
.
Proof
.
Fail
iModIntro
.
Fail
iIntros
"!>"
.
Abort
.
End
error_tests
.
End
error_tests
.
Section
pure_name_tests
.
Section
pure_name_tests
.
...
...
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