-
Notifications
You must be signed in to change notification settings - Fork 76
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
Additional variants on choice #1317
Draft
lowasser
wants to merge
27
commits into
UniMath:master
Choose a base branch
from
lowasser:omniscience-principles
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
89d631e
Progress
lowasser 37d2662
More entailments
lowasser 7bd6aa0
LEM implies WCC
lowasser dc396d0
Formatting
lowasser 8059a59
Lots more
lowasser 2e79862
Leave a TODO for the remaining hard one
lowasser 7eb29ce
make pre-commit
lowasser 4a8542e
Simplify
lowasser 36d9bd0
Indentation
lowasser 774e3a2
Fix imports
lowasser 8731448
Cite Bridges
lowasser d002257
Formatting
lowasser aee7864
Formatting
lowasser 8a68948
Format
lowasser 8063719
Fix DC to use sets
lowasser 19524ca
Switch to the two-subtype variant of LLPO
lowasser df7c488
Update src/foundation/axiom-of-countable-choice.lagda.md
lowasser 4fdd9ca
Add a table of choice principles
lowasser 72609d7
Merge remote-tracking branch 'origin/omniscience-principles' into omn…
lowasser dc1c22e
vscode settings
lowasser 334ca22
Remove nonexistent principle from table
lowasser 4fc2fa5
Fix link
lowasser 95ff15b
Move things around
lowasser 91fc263
Fix Diaconescu
lowasser f6dcde3
More cleanups; WLEM=>WLPO
lowasser e8c04c3
make pre-commit
lowasser d0df062
Fix Diaconescu
lowasser File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
# The axiom of countable choice | ||
|
||
```agda | ||
module foundation.axiom-of-countable-choice where | ||
``` | ||
|
||
<details><summary>Imports</summary> | ||
|
||
```agda | ||
open import elementary-number-theory.equality-natural-numbers | ||
open import elementary-number-theory.natural-numbers | ||
|
||
open import foundation.axiom-of-choice | ||
open import foundation.function-types | ||
open import foundation.inhabited-types | ||
open import foundation.sets | ||
open import foundation.universe-levels | ||
``` | ||
|
||
</details> | ||
|
||
## Idea | ||
|
||
The | ||
{{#concept "axiom of countable choice" WD="axiom of countable choice" WDID=Q1000116 Agda=ACω}} | ||
asserts that for every family of [inhabited](foundation.inhabited-types.md) | ||
types `F` indexed by the type `ℕ` of | ||
[natural numbers](elementary-number-theory.natural-numbers.md), the type of | ||
sections of that family `(n : ℕ) → B n` is inhabited. | ||
|
||
## Definition | ||
|
||
### Instances of choice | ||
|
||
```agda | ||
instance-countable-choice : {l : Level} → (ℕ → Set l) → UU l | ||
instance-countable-choice F = | ||
((n : ℕ) → is-inhabited (type-Set (F n))) → | ||
is-inhabited ((n : ℕ) → type-Set (F n)) | ||
``` | ||
|
||
### The axiom of countable choice | ||
|
||
```agda | ||
level-countable-choice : (l : Level) → UU (lsuc l) | ||
level-countable-choice l = (F : ℕ → Set l) → instance-countable-choice F | ||
|
||
axiom-of-countable-choice : UUω | ||
axiom-of-countable-choice = {l : Level} → level-countable-choice l | ||
``` | ||
|
||
## Properties | ||
|
||
### The axiom of choice for sets implies the axiom of countable choice | ||
|
||
```agda | ||
level-countable-choice-level-axiom-of-choice-Set : | ||
{l : Level} → level-axiom-of-choice-Set lzero l → level-countable-choice l | ||
level-countable-choice-level-axiom-of-choice-Set ac-l = ac-l ℕ-Set | ||
|
||
countable-choice-axiom-of-choice-Set : | ||
axiom-of-choice-Set → axiom-of-countable-choice | ||
countable-choice-axiom-of-choice-Set ac = | ||
level-countable-choice-level-axiom-of-choice-Set ac | ||
``` | ||
|
||
## Table of choice principles | ||
|
||
{{#include tables/choice-principles.md}} | ||
|
||
## External links | ||
|
||
- [Axiom of countable choice](https://ncatlab.org/nlab/show/countable+choice) at | ||
nLab |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
@@ -0,0 +1,70 @@ | ||||||
# The axiom of dependent choice | ||||||
|
||||||
```agda | ||||||
module foundation.axiom-of-dependent-choice where | ||||||
``` | ||||||
|
||||||
<details><summary>Imports</summary> | ||||||
|
||||||
```agda | ||||||
open import elementary-number-theory.natural-numbers | ||||||
|
||||||
open import foundation.binary-relations | ||||||
open import foundation.existential-quantification | ||||||
open import foundation.inhabited-types | ||||||
open import foundation.propositions | ||||||
open import foundation.sets | ||||||
open import foundation.universe-levels | ||||||
``` | ||||||
|
||||||
</details> | ||||||
|
||||||
## Statement | ||||||
|
||||||
The | ||||||
{{#concept "axiom of dependent choice" WD="axiom of dependent choice" WDID=Q3303153}} | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
asserts that for every [inhabited](foundation.inhabited-types.md) | ||||||
[set](foundation.sets.md) `A` and | ||||||
[binary relation](foundation.binary-relations.md) `R` on `A`, such that for | ||||||
every `a : A`, `∃ A (λ b → R a b)`, there is a sequence `f : ℕ → A` with | ||||||
`R (f n) (f (succ-ℕ n))` for every `n`. | ||||||
|
||||||
### Instances of dependent choice | ||||||
|
||||||
```agda | ||||||
module _ | ||||||
{l1 l2 : Level} | ||||||
(A : Set l1) (H : is-inhabited (type-Set A)) | ||||||
(R : Relation-Prop l2 (type-Set A)) | ||||||
(total-R : (a : type-Set A) → exists (type-Set A) (R a)) | ||||||
where | ||||||
|
||||||
instance-dependent-choice-Prop : Prop (l1 ⊔ l2) | ||||||
instance-dependent-choice-Prop = | ||||||
∃ (ℕ → type-Set A) (λ f → Π-Prop ℕ (λ n → R (f n) (f (succ-ℕ n)))) | ||||||
|
||||||
instance-dependent-choice : UU (l1 ⊔ l2) | ||||||
instance-dependent-choice = type-Prop instance-dependent-choice-Prop | ||||||
``` | ||||||
|
||||||
### The axiom of dependent choice | ||||||
|
||||||
```agda | ||||||
level-ADC : (l1 l2 : Level) → UU (lsuc (l1 ⊔ l2)) | ||||||
level-ADC l1 l2 = | ||||||
(A : Set l1) (H : is-inhabited (type-Set A)) → | ||||||
(R : Relation-Prop l2 (type-Set A)) | ||||||
(total-R : (a : type-Set A) → exists (type-Set A) (R a)) → | ||||||
instance-dependent-choice A H R total-R | ||||||
|
||||||
ADC : UUω | ||||||
ADC = {l1 l2 : Level} → level-ADC l1 l2 | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Following the naming of |
||||||
``` | ||||||
|
||||||
## Table of choice principles | ||||||
|
||||||
{{#include tables/choice-principles.md}} | ||||||
|
||||||
## External links | ||||||
|
||||||
- [Axiom of dependent choice](https://en.wikipedia.org/wiki/Axiom_of_dependent_choice) |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.