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
8e14fcf8
Commit
8e14fcf8
authored
2 years ago
by
Ralf Jung
Browse files
Options
Downloads
Patches
Plain Diff
avoid MakeIntuitionistically turning a True into emp for affine BI
parent
ceedda12
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_make.v
+10
-1
10 additions, 1 deletion
iris/proofmode/class_instances_make.v
tests/proofmode.ref
+13
-2
13 additions, 2 deletions
tests/proofmode.ref
tests/proofmode.v
+8
-1
8 additions, 1 deletion
tests/proofmode.v
with
31 additions
and
4 deletions
iris/proofmode/class_instances_make.v
+
10
−
1
View file @
8e14fcf8
...
@@ -138,8 +138,17 @@ Proof.
...
@@ -138,8 +138,17 @@ Proof.
by
rewrite
/
KnownMakeIntuitionistically
/
MakeIntuitionistically
by
rewrite
/
KnownMakeIntuitionistically
/
MakeIntuitionistically
intuitionistically_emp
.
intuitionistically_emp
.
Qed
.
Qed
.
(** For affine BIs, we would prefer [□ True] to become [True] rather than [emp],
so we have this instance with lower cost than the next. *)
Global
Instance
make_intuitionistically_True_affine
:
BiAffine
PROP
→
@
KnownMakeIntuitionistically
PROP
True
True
|
0
.
Proof
.
intros
.
rewrite
/
KnownMakeIntuitionistically
/
MakeIntuitionistically
intuitionistically_True_emp
True_emp
//.
Qed
.
Global
Instance
make_intuitionistically_True
:
Global
Instance
make_intuitionistically_True
:
@
KnownMakeIntuitionistically
PROP
True
emp
|
0
.
@
KnownMakeIntuitionistically
PROP
True
emp
|
1
.
Proof
.
Proof
.
by
rewrite
/
KnownMakeIntuitionistically
/
MakeIntuitionistically
by
rewrite
/
KnownMakeIntuitionistically
/
MakeIntuitionistically
intuitionistically_True_emp
.
intuitionistically_True_emp
.
...
...
This diff is collapsed.
Click to expand it.
tests/proofmode.ref
+
13
−
2
View file @
8e14fcf8
...
@@ -503,9 +503,9 @@ No applicable tactic.
...
@@ -503,9 +503,9 @@ No applicable tactic.
1 goal
1 goal
PROP : bi
PROP : bi
H
: BiAffine PROP
BiAffine0
: BiAffine PROP
P, Q : PROP
P, Q : PROP
H
0
: Laterable Q
H : Laterable Q
============================
============================
"HP" : ▷ P
"HP" : ▷ P
"HQ" : Q
"HQ" : Q
...
@@ -534,6 +534,17 @@ No applicable tactic.
...
@@ -534,6 +534,17 @@ No applicable tactic.
"H" : ⌜φ⌝ -∗ P
"H" : ⌜φ⌝ -∗ P
--------------------------------------∗
--------------------------------------∗
⌜φ⌝ -∗ P
⌜φ⌝ -∗ P
"test_iFrame_not_add_emp_for_intuitionistically"
: string
1 goal
PROP : bi
BiAffine0 : BiAffine PROP
P : PROP
============================
"H" : P
--------------------------------------□
∃ _ : nat, True
"elim_mod_accessor"
"elim_mod_accessor"
: string
: string
1 goal
1 goal
...
...
This diff is collapsed.
Click to expand it.
tests/proofmode.v
+
8
−
1
View file @
8e14fcf8
...
@@ -1261,7 +1261,7 @@ Proof.
...
@@ -1261,7 +1261,7 @@ Proof.
iIntros
"[P _]"
.
done
.
iIntros
"[P _]"
.
done
.
Qed
.
Qed
.
Lemma
test_iModIntro_make_laterable
`{
BiAffine
PROP
}
(
P
Q
:
PROP
)
:
Lemma
test_iModIntro_make_laterable
`{
!
BiAffine
PROP
}
(
P
Q
:
PROP
)
:
Laterable
Q
→
Laterable
Q
→
P
-∗
Q
-∗
make_laterable
(
▷
P
∗
Q
)
.
P
-∗
Q
-∗
make_laterable
(
▷
P
∗
Q
)
.
Proof
.
Proof
.
...
@@ -1284,6 +1284,13 @@ Proof.
...
@@ -1284,6 +1284,13 @@ Proof.
iIntros
(
Hφ
)
"H"
.
iRevert
(
Hφ
)
.
Show
.
done
.
iIntros
(
Hφ
)
"H"
.
iRevert
(
Hφ
)
.
Show
.
done
.
Qed
.
Qed
.
(* Check that when framing things under the □ modality, we do not add [emp] in
affine BIs. *)
Check
"test_iFrame_not_add_emp_for_intuitionistically"
.
Lemma
test_iFrame_not_add_emp_for_intuitionistically
`{
!
BiAffine
PROP
}
(
P
:
PROP
)
:
□
P
-∗
∃
_
:
nat
,
□
P
.
Proof
.
iIntros
"#H"
.
iFrame
"H"
.
Show
.
by
iExists
0
.
Qed
.
End
tests
.
End
tests
.
Section
parsing_tests
.
Section
parsing_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