Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
stdpp
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
Model registry
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
Iris
stdpp
Commits
5695ee20
Commit
5695ee20
authored
5 years ago
by
Ralf Jung
Browse files
Options
Downloads
Patches
Plain Diff
coqdoc++
parent
c081e1b7
No related branches found
No related tags found
1 merge request
!75
make solve_ndisj more powerful
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
theories/namespaces.v
+7
-7
7 additions, 7 deletions
theories/namespaces.v
with
7 additions
and
7 deletions
theories/namespaces.v
+
7
−
7
View file @
5695ee20
...
@@ -68,27 +68,27 @@ Section namespace.
...
@@ -68,27 +68,27 @@ Section namespace.
Proof
.
intros
.
by
apply
symmetry
,
ndot_preserve_disjoint_l
.
Qed
.
Proof
.
intros
.
by
apply
symmetry
,
ndot_preserve_disjoint_l
.
Qed
.
End
namespace
.
End
namespace
.
(* The hope is that registering these will suffice to solve most goals
(*
*
The hope is that registering these will suffice to solve most goals
of the forms:
of the forms:
- [N1 ## N2]
- [N1 ## N2]
- [↑N1 ⊆ E ∖ ↑N2 ∖ .. ∖ ↑Nn]
- [↑N1 ⊆ E ∖ ↑N2 ∖ .. ∖ ↑Nn]
- [E1 ∖ ↑N1 ⊆ E2 ∖ ↑N2 ∖ .. ∖ ↑Nn] *)
- [E1 ∖ ↑N1 ⊆ E2 ∖ ↑N2 ∖ .. ∖ ↑Nn] *)
Create
HintDb
ndisj
.
Create
HintDb
ndisj
.
(* Rules for goals of the form [_ ⊆ _] *)
(*
*
Rules for goals of the form [_ ⊆ _] *)
(* If-and-only-if rules. Well, not quite, but for the fragment we are
(*
*
If-and-only-if rules. Well, not quite, but for the fragment we are
considering they are. *)
considering they are. *)
Hint
Resolve
(
subseteq_difference_r
(
A
:=
positive
)
(
C
:=
coPset
))
:
ndisj
.
Hint
Resolve
(
subseteq_difference_r
(
A
:=
positive
)
(
C
:=
coPset
))
:
ndisj
.
Hint
Resolve
(
empty_subseteq
(
A
:=
positive
)
(
C
:=
coPset
))
:
ndisj
.
Hint
Resolve
(
empty_subseteq
(
A
:=
positive
)
(
C
:=
coPset
))
:
ndisj
.
Hint
Resolve
(
union_least
(
A
:=
positive
)
(
C
:=
coPset
))
:
ndisj
.
Hint
Resolve
(
union_least
(
A
:=
positive
)
(
C
:=
coPset
))
:
ndisj
.
(* Fallback, loses lots of information but lets other rules make progress. *)
(*
*
Fallback, loses lots of information but lets other rules make progress. *)
Hint
Resolve
(
subseteq_difference_l
(
A
:=
positive
)
(
C
:=
coPset
))
|
100
:
ndisj
.
Hint
Resolve
(
subseteq_difference_l
(
A
:=
positive
)
(
C
:=
coPset
))
|
100
:
ndisj
.
Hint
Resolve
nclose_subseteq'
|
100
:
ndisj
.
Hint
Resolve
nclose_subseteq'
|
100
:
ndisj
.
(* Rules for goals of the form [_ ## _] *)
(*
*
Rules for goals of the form [_ ## _] *)
(* The base rule that we want to ultimately get down to. *)
(*
*
The base rule that we want to ultimately get down to. *)
Hint
Extern
0
(_
##
_)
=>
apply
ndot_ne_disjoint
;
congruence
:
ndisj
.
Hint
Extern
0
(_
##
_)
=>
apply
ndot_ne_disjoint
;
congruence
:
ndisj
.
(* Fallback, loses lots of information but lets other rules make progress.
(*
*
Fallback, loses lots of information but lets other rules make progress.
Tests show trying [disjoint_difference_l1] first gives better performance. *)
Tests show trying [disjoint_difference_l1] first gives better performance. *)
Hint
Resolve
(
disjoint_difference_l1
(
A
:=
positive
)
(
C
:=
coPset
))
|
50
:
ndisj
.
Hint
Resolve
(
disjoint_difference_l1
(
A
:=
positive
)
(
C
:=
coPset
))
|
50
:
ndisj
.
Hint
Resolve
(
disjoint_difference_l2
(
A
:=
positive
)
(
C
:=
coPset
))
|
100
:
ndisj
.
Hint
Resolve
(
disjoint_difference_l2
(
A
:=
positive
)
(
C
:=
coPset
))
|
100
:
ndisj
.
...
...
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