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
S
stdpp
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
52
Issues
52
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Iris
stdpp
Commits
370c0cf4
Commit
370c0cf4
authored
Jun 17, 2020
by
Robbert Krebbers
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix compatibility with old Coq versions.
parent
2f5854bd
Pipeline
#29596
passed with stage
in 10 minutes and 35 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
theories/finite.v
theories/finite.v
+2
-2
No files found.
theories/finite.v
View file @
370c0cf4
...
...
@@ -154,7 +154,7 @@ Lemma finite_bijective A `{Finite A} B `{Finite B} :
Proof
.
split
.
-
intros
;
destruct
(
proj1
(
finite_inj
A
B
))
as
[
f
?]
;
auto
with
lia
.
exists
f
;
eauto
using
finite_inj_surj
.
exists
f
;
split
;
[
done
|].
by
apply
finite_inj_surj
.
-
intros
(
f
&?&?).
apply
(
anti_symm
(
≤
))
;
apply
finite_inj
.
+
by
exists
f
.
+
destruct
(
surj_cancel
f
)
as
(
g
&?).
exists
g
.
apply
cancel_inj
.
...
...
@@ -274,7 +274,7 @@ Next Obligation.
Qed
.
Next
Obligation
.
intros
??????
[
x
|
y
]
;
rewrite
elem_of_app
,
!
elem_of_list_fmap
;
eauto
using
elem_of_enum
.
[
left
|
right
]
;
(
eexists
;
split
;
[
done
|
apply
elem_of_enum
])
.
Qed
.
Lemma
sum_card
`
{
Finite
A
,
Finite
B
}
:
card
(
A
+
B
)
=
card
A
+
card
B
.
Proof
.
unfold
card
.
simpl
.
by
rewrite
app_length
,
!
fmap_length
.
Qed
.
...
...
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