Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

[Merged by Bors] - feat(logic/function/basic): not_surjective_Type #12311

Closed
wants to merge 1 commit into from

Conversation

ChrisHughes24
Copy link
Member


Zulip discussion. @digama0 suggested this theorem should be in mathlib. The proof is slightly more complicated than it is in the discussion because certain simp lemmas aren't available at this point in mathlib.

Open in Gitpod

@ChrisHughes24 ChrisHughes24 added the awaiting-review The author would like community review of the PR label Feb 26, 2022
@@ -213,6 +213,23 @@ theorem cantor_injective {α : Type*} (f : (set α) → α) :
cantor_surjective (λ a b, ∀ U, a = f U → U b) $
right_inverse.surjective (λ U, funext $ λ a, propext ⟨λ h, h U rfl, λ h' U' e, i e ▸ h'⟩)

/-- There is no surjection from `α : Type u` into `Type u`. This theorem
demonstrates why `Type : Type` would be inconsistent in Lean. -/
theorem not_surjective_Type {α : Type u} (f : α → Type (max u v)) :
Copy link
Member

@TwoFX TwoFX Feb 27, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you are willing to move the theorem to logic/small.lean, then the proof is just

not_small_type ∘ small_of_surjective

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That file has a lot of dependencies, comparatively speaking. Perhaps the proof can be used to shorten this one, but I think it is fine where it is.

@digama0
Copy link
Member

digama0 commented Feb 27, 2022

bors r+

@github-actions github-actions bot added ready-to-merge All that is left is for bors to build and merge this PR. (Remember you need to say `bors r+`.) and removed awaiting-review The author would like community review of the PR labels Feb 27, 2022
bors bot pushed a commit that referenced this pull request Feb 27, 2022
@bors
Copy link

bors bot commented Feb 27, 2022

Pull request successfully merged into master.

Build succeeded:

@bors bors bot changed the title feat(logic/function/basic): not_surjective_Type [Merged by Bors] - feat(logic/function/basic): not_surjective_Type Feb 27, 2022
@bors bors bot closed this Feb 27, 2022
@bors bors bot deleted the not_surjective_Type branch February 27, 2022 10:57
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
ready-to-merge All that is left is for bors to build and merge this PR. (Remember you need to say `bors r+`.)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants