Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
PROSA - Formally Proven Schedulability Analysis
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Marco Maida
PROSA - Formally Proven Schedulability Analysis
Commits
9aa57786
Commit
9aa57786
authored
Jan 05, 2018
by
Felipe Cerqueira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add mapP lemma for non-eqTypes lists
parent
a0354880
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
util/list.v
util/list.v
+12
-0
No files found.
util/list.v
View file @
9aa57786
...
...
@@ -94,6 +94,18 @@ Section UniqList.
}
by
apply
filter_idx_lt_take
.
Qed
.
Lemma
mapP2
(
T
:
Type
)
(
T'
:
eqType
)
(
s
:
seq
T
)
(
f
:
T
->
T'
)
y
:
reflect
(
exists2
x
,
List
.
In
x
s
&
y
=
f
x
)
(
y
\
in
map
f
s
).
Proof
.
elim
:
s
=>
[|
x
s
IHs
]
;
first
by
right
;
case
.
rewrite
/=
in_cons
eq_sym
;
case
Hxy
:
(
f
x
==
y
)
;
first
by
left
;
exists
x
;
[
by
left
|
by
rewrite
(
eqP
Hxy
)].
apply
:
(
iffP
IHs
)
=>
[[
x'
Hx'
->]|[
x'
Hx'
Dy
]]
;
first
by
exists
x'
;
[
by
right
|
by
done
].
exists
x'
;
last
by
done
.
by
subst
y
;
move
:
Hx'
=>
[
EQ
|
IN
]
//
;
subst
;
rewrite
eq_refl
in
Hxy
.
Qed
.
End
UniqList
.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment