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

remove Classical.arbitrary & (re)move introduction of Nonempty #64

Closed
TentativeConvert opened this issue Nov 25, 2024 · 2 comments
Closed

Comments

@TentativeConvert
Copy link
Collaborator

TentativeConvert commented Nov 25, 2024

  • Introduce Nonempty with some easy example before the final level of Quantus.
  • Explain how to use Nonempty with obtain, as already explained in the documentation of Nonempty.
  • Remove Classical.arbitrary from the final level of Quantus (and thus from the whole Game).

As an alternative to the first two points, remove Nonempty altogether by spelling out the condition as an existence statement.

@TentativeConvert
Copy link
Collaborator Author

fixed by 4c35653

@TentativeConvert
Copy link
Collaborator Author

For the record:

import Mathlib

variable (A : Type) (hne : Nonempty A) (hexists : (∃ a : A, true))

example : ∃ a : A , true := by
  obtain ⟨a,ha⟩ := hexists
  use a

example : ∃ a : A , true := by
  choose a ha using hexists
  use a

example : ∃ a : A , true := by
  --choose a ha using hne fails
  obtain ⟨a⟩ := hne
  use a

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

No branches or pull requests

1 participant