-
Notifications
You must be signed in to change notification settings - Fork 91
Totally bounded sets are propositionally decidable #1625
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
base: master
Are you sure you want to change the base?
Totally bounded sets are propositionally decidable #1625
Conversation
src/real-numbers/inhabited-totally-bounded-subsets-real-numbers.lagda.md
Outdated
Show resolved
Hide resolved
src/metric-spaces/inhabited-totally-bounded-subspaces-metric-spaces.lagda.md
Outdated
Show resolved
Hide resolved
src/univalent-combinatorics/inhabited-finitely-enumerable-types.lagda.md
Outdated
Show resolved
Hide resolved
src/univalent-combinatorics/inhabited-finitely-enumerable-types.lagda.md
Outdated
Show resolved
Hide resolved
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.
Just got some comments on naming and proof strategies
Co-authored-by: Fredrik Bakke <[email protected]>
Co-authored-by: Fredrik Bakke <[email protected]>
…s.lagda.md Co-authored-by: Fredrik Bakke <[email protected]>
Co-authored-by: Fredrik Bakke <[email protected]>
…paces.lagda.md Co-authored-by: Fredrik Bakke <[email protected]>
…ded' into decidable-inhabited-totally-bounded
| ( approximation-net-Metric-Space X ε S) | ||
| ``` | ||
|
|
||
| ### Given any net for a metric space `X`, it is propositionally decidable whether `X` is inhabited |
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.
Being inhabited is already a proposition
| ### Given any net for a metric space `X`, it is propositionally decidable whether `X` is inhabited | |
| ### Given any net for a metric space `X`, it is decidable whether `X` is inhabited |
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.
I'm trying to reference https://unimath.github.io/agda-unimath/logic.propositionally-decidable-types.html?highlight=Propositionally#propositionally-decidable-types specifically, which seems to be setting up a different term?
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.
Maybe that should be "X is propositionally decidable"?
| ( finitely-enumerable-subset-net-Metric-Space | ||
| ( metric-space-subset-ℝ S) | ||
| ( δ) | ||
| ( M δ) , | ||
| backward-implication | ||
| ( is-coinhabited-net-Metric-Space (metric-space-subset-ℝ S) δ (M δ)) | ||
| ( |S|)) |
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.
This was better before
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.
even though coinhabitedness is a stronger result, either direction is still useful, as demonstrated here, and can/should still be recorded.
| ### The standard finite types are decidable | ||
|
|
||
| ```agda | ||
| is-decidable-Fin : (n : ℕ) → is-decidable (Fin n) | ||
| is-decidable-Fin zero-ℕ = inr (λ ()) | ||
| is-decidable-Fin (succ-ℕ n) = inl (neg-one-Fin n) | ||
|
|
||
| is-inhabited-or-empty-Fin : (n : ℕ) → is-inhabited-or-empty (Fin n) | ||
| is-inhabited-or-empty-Fin n = | ||
| is-inhabited-or-empty-is-decidable (is-decidable-Fin n) | ||
| ``` | ||
|
|
||
| ### The finite types are propositionally decidable | ||
|
|
||
| ```agda | ||
| module _ | ||
| {l : Level} (X : Finite-Type l) | ||
| where | ||
|
|
||
| is-inhabited-or-empty-type-Finite-Type : | ||
| is-inhabited-or-empty (type-Finite-Type X) | ||
| is-inhabited-or-empty-type-Finite-Type = | ||
| rec-trunc-Prop | ||
| ( is-inhabited-or-empty-Prop (type-Finite-Type X)) | ||
| ( λ (n , Fin-n≃X) → | ||
| is-inhabited-or-empty-equiv' Fin-n≃X (is-inhabited-or-empty-Fin n)) | ||
| ( is-finite-type-Finite-Type 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.
These results are about not-necessarily-inhabited finite types, so they should go in standard-finite-types and finite-types respectively
| ( λ (N , Fin-n↠X) → | ||
| is-inhabited-or-empty-surjection | ||
| ( Fin-n↠X) | ||
| ( is-inhabited-or-empty-Fin N)) |
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.
| ( λ (N , Fin-n↠X) → | |
| is-inhabited-or-empty-surjection | |
| ( Fin-n↠X) | |
| ( is-inhabited-or-empty-Fin N)) | |
| ( λ (n , Fin-n↠X) → | |
| is-inhabited-or-empty-surjection | |
| ( Fin-n↠X) | |
| ( is-inhabited-or-empty-Fin n)) |
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.
since you use a lower case n in Fin-n↠X
...and so are lots of other simple types for which that principle wasn't written down yet?