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
Merge requests
!75
make solve_ndisj more powerful
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
make solve_ndisj more powerful
ralf/solve_ndisj
into
master
Overview
19
Commits
4
Pipelines
0
Changes
4
Merged
Ralf Jung
requested to merge
ralf/solve_ndisj
into
master
5 years ago
Overview
16
Commits
4
Pipelines
0
Changes
2
Expand
Fixes
#34 (closed)
.
0
0
Merge request reports
Compare
version 2
version 4
c081e1b7
5 years ago
version 3
248a89ff
5 years ago
version 2
d1b91fbe
5 years ago
version 1
7c3203e7
5 years ago
master (base)
and
version 3
latest version
5695ee20
4 commits,
5 years ago
version 4
c081e1b7
3 commits,
5 years ago
version 3
248a89ff
3 commits,
5 years ago
version 2
d1b91fbe
2 commits,
5 years ago
version 1
7c3203e7
1 commit,
5 years ago
Show latest version
2 files
+
16
−
9
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
theories/namespaces.v
+
12
−
7
Options
@@ -66,9 +66,6 @@ Section namespace.
Lemma
ndot_preserve_disjoint_r
N
E
x
:
E
##
↑
N
→
E
##
↑
N
.
@
x
.
Proof
.
intros
.
by
apply
symmetry
,
ndot_preserve_disjoint_l
.
Qed
.
Lemma
ndisj_difference_l
E
N1
N2
:
↑
N2
⊆
(
↑
N1
:
coPset
)
→
E
∖
↑
N1
##
↑
N2
.
Proof
.
set_solver
.
Qed
.
End
namespace
.
(* The hope is that registering these will suffice to solve most goals
@@ -77,17 +74,25 @@ of the forms:
- [↑N1 ⊆ E ∖ ↑N2 ∖ .. ∖ ↑Nn]
- [E1 ∖ ↑N1 ⊆ E2 ∖ ↑N2 ∖ .. ∖ ↑Nn] *)
Create
HintDb
ndisj
.
(* Rules for goals of the form [_ ⊆ _] *)
(* If-and-only-if rules. Well, not quite, but for the fragment we are
considering they are. *)
Hint
Resolve
(
subseteq_difference_r
(
A
:=
positive
)
(
C
:=
coPset
))
:
ndisj
.
Hint
Resolve
nclose_subseteq'
:
ndisj
.
Hint
Resolve
(
empty_subseteq
(
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. *)
Hint
Resolve
(
subseteq_difference_l
(
A
:=
positive
)
(
C
:=
coPset
))
|
100
:
ndisj
.
Hint
Resolve
nclose_subseteq'
|
100
:
ndisj
.
(* Rules for goals of the form [_ ## _] *)
(* The base rule that we want to ultimately get down to. *)
Hint
Extern
0
(_
##
_)
=>
apply
ndot_ne_disjoint
;
congruence
:
ndisj
.
Hint
Resolve
ndot_preserve_disjoint_l
ndot_preserve_disjoint_r
:
ndisj
.
Hint
Resolve
ndisj_difference_l
:
ndisj
.
Hint
Resolve
(
disjoint_difference_l
(
A
:=
positive
)
(
C
:=
coPset
))
|
100
:
ndisj
.
(* Fallback, loses lots of information but lets other rules make progress.
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_l2
(
A
:=
positive
)
(
C
:=
coPset
))
|
100
:
ndisj
.
Hint
Resolve
ndot_preserve_disjoint_l
ndot_preserve_disjoint_r
|
100
:
ndisj
.
Ltac
solve_ndisj
:=
repeat
match
goal
with
Loading