Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
Refinedrust Dev
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
Package Registry
Model registry
Operate
Environments
Terraform modules
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
Lennard Gäher
Refinedrust Dev
Commits
26bcd011
Verified
Commit
26bcd011
authored
9 months ago
by
Vincent Lafeychine
Browse files
Options
Downloads
Patches
Plain Diff
feat(automation): Solve mask side condition
parent
f51608d0
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
theories/rust_typing/automation.v
+38
-0
38 additions, 0 deletions
theories/rust_typing/automation.v
theories/rust_typing/existentials_na.v
+0
-36
0 additions, 36 deletions
theories/rust_typing/existentials_na.v
with
38 additions
and
36 deletions
theories/rust_typing/automation.v
+
38
−
0
View file @
26bcd011
...
...
@@ -10,6 +10,40 @@ Set Default Proof Using "Type".
(
**
*
Registering
extensions
to
Lithium
*
)
(
**
More
automation
for
sets
*
)
Lemma
difference_union_subseteq
(
E
F
H
H
'
:
coPset
)
:
E
⊆
F
→
F
∖
H
∪
H
'
=
F
→
(
F
∖
H
∖
E
)
∪
H
'
∪
E
=
F
.
Proof
.
set_unfold
.
intros
?
Hcond
x
.
specialize
Hcond
with
x
.
split
;
first
intuition
.
destruct
(
decide
(
x
∈
E
));
intuition
.
Qed
.
Lemma
difference_union_subseteq
'
(
E
F
:
coPset
)
:
E
⊆
F
→
F
∖
E
∪
E
=
F
.
Proof
.
set_unfold
.
intros
?
x
.
split
;
first
intuition
.
destruct
(
decide
(
x
∈
E
));
intuition
.
Qed
.
Lemma
difference_union_comm
(
E
E
'
A
B
:
coPset
)
:
A
∪
E
'
∪
E
=
B
→
A
∪
E
∪
E
'
=
B
.
Proof
.
set_solver
.
Qed
.
Global
Hint
Resolve
difference_union_subseteq
'
|
30
:
ndisj
.
Global
Hint
Resolve
difference_union_subseteq
|
50
:
ndisj
.
Global
Hint
Resolve
difference_union_comm
|
80
:
ndisj
.
(
**
More
automation
for
modular
arithmetics
.
*
)
Ltac
Zify
.
zify_post_hook
::=
Z
.
to_euclidean_division_equations
.
...
...
@@ -905,6 +939,10 @@ Ltac sidecond_hook ::=
solve_ty_allows
|
|-
trait_incl_marker
_
=>
solve_trait_incl
|
|-
_
##
_
=>
solve_ndisj
|
|-
_
∪
_
=
_
=>
solve_ndisj
|
|-
_
=>
try
solve_layout_alg
;
try
solve_op_alg
;
...
...
This diff is collapsed.
Click to expand it.
theories/rust_typing/existentials_na.v
+
0
−
36
View file @
26bcd011
...
...
@@ -3,41 +3,6 @@ From refinedrust Require Import uninit int ltype_rules.
From
lrust
.
lifetime
Require
Import
na_borrow
.
Set
Default
Proof
Using
"Type"
.
Lemma
difference_union_subseteq
(
E
F
H
H
'
:
coPset
)
:
E
⊆
F
→
F
∖
H
∪
H
'
=
F
→
(
F
∖
H
∖
E
)
∪
H
'
∪
E
=
F
.
Proof
.
set_unfold
.
intros
?
Hcond
x
.
specialize
Hcond
with
x
.
split
;
first
intuition
.
destruct
(
decide
(
x
∈
E
));
intuition
.
Qed
.
Lemma
difference_union_subseteq
'
(
E
F
:
coPset
)
:
E
⊆
F
→
F
∖
E
∪
E
=
F
.
Proof
.
set_unfold
.
intros
?
x
.
split
;
first
intuition
.
destruct
(
decide
(
x
∈
E
));
intuition
.
Qed
.
Lemma
difference_union_comm
(
E
E
'
A
B
:
coPset
)
:
A
∪
E
'
∪
E
=
B
→
A
∪
E
∪
E
'
=
B
.
Proof
.
set_solver
.
Qed
.
Global
Hint
Resolve
difference_union_subseteq
'
|
30
:
ndisj
.
Global
Hint
Resolve
difference_union_subseteq
|
50
:
ndisj
.
Global
Hint
Resolve
difference_union_comm
|
80
:
ndisj
.
Record
na_ex_inv_def
`
{!
typeGS
Σ
}
(
X
:
Type
)
(
Y
:
Type
)
:
Type
:=
na_mk_ex_inv_def
'
{
na_inv_xr
:
Type
;
na_inv_xr_inh
:
Inhabited
na_inv_xr
;
...
...
@@ -1142,7 +1107,6 @@ Section generated_code.
Unshelve
.
all
:
sidecond_solver
.
Unshelve
.
all
:
sidecond_hammer
.
Unshelve
.
all
:
solve_ndisj
.
Qed
.
End
proof
.
...
...
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