-
Notifications
You must be signed in to change notification settings - Fork 298
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Merged by Bors] - feat(combinatorics/hall): Hall's marriage theorem #5695
Conversation
I need some help satisfying the linter - certain arguments go unused but figuring out how to order them is a bit weird. |
Switching to the awaiting-author label because I realized we can use |
@agusakov I added a Getting theorem hall_rel {α β : Type*} [fintype α] [decidable_eq β]
(r : α → β → Prop) [fintype β] :
(∀ (A : finset α), A.card ≤ fintype.card (rel.image r A))
↔ (∃ (f : α → β), function.injective f ∧ ∀ x, r x (f x)) := |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! This looks pretty much ready to go to me.
bors d+
✌️ agusakov can now approve this pull request. To approve and merge a pull request, simply reply with |
@bryangingechen Thanks -- I've incorporated your suggestions |
bors r+ |
Pull request successfully merged into master. Build succeeded: |
We state and prove Hall's marriage theorem with respect to fintypes and relations.
Coauthor: @b-mehta @kmill