Skip to content
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

refactor: simplify excluded middle proof #2625

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

james-smith-a8e6
Copy link

@james-smith-a8e6 james-smith-a8e6 commented Oct 5, 2023

The current Classical.em proof isn't that easy to follow. Since Lean has quotients, we can take a two-element type like Bool, and quotient it by x = y ∨ P. Then, the surjection Bool → A splits and we use the fact that Bool has decidable equality to decide P.

Based on proof at https://ncatlab.org/nlab/show/Diaconescu-Goodman-Myhill+theorem.

@leodemoura
Copy link
Member

Marking as low priority. Lean has proof irrelevance. Thus, this commit does not benefit users.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants