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
!414
Add lemma `filter_app_complement`.
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Add lemma `filter_app_complement`.
robbert/filter_app_complement
into
master
Overview
1
Commits
1
Pipelines
1
Changes
1
Merged
Robbert Krebbers
requested to merge
robbert/filter_app_complement
into
master
2 years ago
Overview
1
Commits
1
Pipelines
1
Changes
1
Expand
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
1ddf1797
1 commit,
2 years ago
1 file
+
7
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
stdpp/list.v
+
7
−
0
Options
@@ -2033,6 +2033,13 @@ Section filter.
rewrite
reverse_cons
,
filter_app
,
IHl
,
!
filter_cons
.
case_decide
;
[
by
rewrite
reverse_cons
|
by
rewrite
filter_nil
,
app_nil_r
]
.
Qed
.
Lemma
filter_app_complement
l
:
filter
P
l
++
filter
(
λ
x
,
¬
P
x
)
l
≡
ₚ
l
.
Proof
.
induction
l
as
[|
x
l
IH
];
simpl
;
[
done
|]
.
case_decide
.
-
rewrite
decide_False
by
naive_solver
.
simpl
.
by
rewrite
IH
.
-
rewrite
decide_True
by
done
.
by
rewrite
<-
Permutation_middle
,
IH
.
Qed
.
End
filter
.
Lemma
list_filter_iff
(
P1
P2
:
A
→
Prop
)
Loading