Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
Iris
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
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
Rice Wine
Iris
Commits
010154e2
Commit
010154e2
authored
8 years ago
by
Ralf Jung
Browse files
Options
Downloads
Patches
Plain Diff
fix fractional IntoAnd instances
parent
039f9fd5
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
theories/base_logic/lib/fractional.v
+16
-6
16 additions, 6 deletions
theories/base_logic/lib/fractional.v
with
16 additions
and
6 deletions
theories/base_logic/lib/fractional.v
+
16
−
6
View file @
010154e2
...
...
@@ -128,14 +128,24 @@ Section fractional.
FromSep
Q
P
P
.
Proof
.
rewrite
/
FromSep
=>
-
[
->
<-
]
[
->
_]
.
by
rewrite
Qp_div_2
.
Qed
.
Global
Instance
into_and_fractional
P
P1
P2
Φ
q1
q2
:
Global
Instance
into_and_fractional
b
P
P1
P2
Φ
q1
q2
:
AsFractional
P
Φ
(
q1
+
q2
)
→
AsFractional
P1
Φ
q1
→
AsFractional
P2
Φ
q2
→
IntoAnd
false
P
P1
P2
.
Proof
.
by
rewrite
/
IntoAnd
=>
-
[
->
->
]
[
->
_]
[
->
_]
.
Qed
.
Global
Instance
into_and_fractional_half
P
Q
Φ
q
:
IntoAnd
b
P
P1
P2
.
Proof
.
(* TODO: We need a better way to handle this boolean here.
Ideally, it'd not even be possible to make the mistake that
was originally made here, which is to give this instance for
"false" only, thus breaking some intro patterns. *)
intros
H1
H2
H3
.
apply
mk_into_and_sep
.
revert
H1
H2
H3
.
by
rewrite
/
IntoAnd
=>
-
[
->
->
]
[
->
_]
[
->
_]
.
Qed
.
Global
Instance
into_and_fractional_half
b
P
Q
Φ
q
:
AsFractional
P
Φ
q
→
AsFractional
Q
Φ
(
q
/
2
)
→
IntoAnd
false
P
Q
Q
|
100
.
Proof
.
by
rewrite
/
IntoAnd
-
{
1
}(
Qp_div_2
q
)=>
-
[
->->
][
->
_]
.
Qed
.
IntoAnd
b
P
Q
Q
|
100
.
Proof
.
intros
H1
H2
.
apply
mk_into_and_sep
.
revert
H1
H2
.
by
rewrite
/
IntoAnd
-
{
1
}(
Qp_div_2
q
)=>
-
[
->->
][
->
_]
.
Qed
.
(* The instance [frame_fractional] can be tried at all the nodes of
the proof search. The proof search then fails almost always on
...
...
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