Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Adam
Iris
Commits
998b8484
Commit
998b8484
authored
Sep 30, 2021
by
Ralf Jung
Browse files
perf experiment: dont make frame_fractional an instance
parent
d2c226e7
Changes
1
Hide whitespace changes
Inline
Side-by-side
iris/bi/lib/fractional.v
View file @
998b8484
...
...
@@ -14,9 +14,10 @@ Global Arguments AsFractional {_} _%I _%I _%Qp.
Global
Arguments
fractional
{
_
_
_
}
_
_
.
Global
Hint
Mode
AsFractional
-
+
-
-
:
typeclass_instances
.
Global
Hint
Mode
AsFractional
-
!
-
-
:
typeclass_instances
.
(* To make [as_fractional_fractional] a useful instance, we have to
allow [q] to be an evar. *)
allow [q] to be an evar. The head of [Φ] will always be a λ so ! is
not a useful mode there. *)
Global
Hint
Mode
AsFractional
-
-
+
-
:
typeclass_instances
.
Section
fractional
.
...
...
@@ -178,7 +179,8 @@ Section fractional.
Global
Existing
Instances
frame_fractional_hyps_l
frame_fractional_hyps_r
frame_fractional_hyps_half
.
Global
Instance
frame_fractional
p
R
r
Φ
P
q
RES
:
(* Not an instance because of performance; you can locally add it if you are willing to pay the cost. *)
Lemma
frame_fractional
p
R
r
Φ
P
q
RES
:
AsFractional
R
Φ
r
→
AsFractional
P
Φ
q
→
FrameFractionalHyps
p
R
Φ
RES
r
q
→
Frame
p
R
P
RES
.
(* No explicit priority, as default prio > [frame_here]'s 1. *)
...
...
Write
Preview
Supports
Markdown
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