-
Notifications
You must be signed in to change notification settings - Fork 91
Well-founded material sets #1637
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
Draft
fredrik-bakke
wants to merge
15
commits into
UniMath:master
Choose a base branch
from
fredrik-bakke:material-types
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 5 commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
9860ec7
define material types
fredrik-bakke c98ae14
remove unrelated additions and edits
fredrik-bakke 2cda52f
fix name
fredrik-bakke 878a5c8
Merge branch 'master' into material-types
fredrik-bakke 0072344
remove additional projects
fredrik-bakke 5883035
Update src/set-theory/elementhood-structures.lagda.md
fredrik-bakke 202c2e6
Update src/set-theory/well-founded-material-sets.lagda.md
fredrik-bakke b839cd7
review
fredrik-bakke 4815b3b
edits
fredrik-bakke 13c3497
edit
fredrik-bakke b72444c
edit
fredrik-bakke da09fd3
Merge branch 'master' into material-types
fredrik-bakke 0ce2212
more edits
fredrik-bakke 62f46ad
typos
fredrik-bakke 63e5f7f
wikidata "is an element of"
fredrik-bakke 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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,217 @@ | ||
| # Elementhood structures | ||
|
|
||
| ```agda | ||
| module set-theory.elementhood-structures where | ||
| ``` | ||
|
|
||
| <details><summary>Imports</summary> | ||
|
|
||
| ```agda | ||
| open import foundation.binary-relations | ||
| open import foundation.dependent-pair-types | ||
| open import foundation.equivalences | ||
| open import foundation.function-types | ||
| open import foundation.functoriality-dependent-function-types | ||
| open import foundation.functoriality-dependent-pair-types | ||
| open import foundation.identity-types | ||
| open import foundation.propositions | ||
| open import foundation.separated-types-subuniverses | ||
| open import foundation.subtypes | ||
| open import foundation.universe-levels | ||
|
|
||
| open import foundation-core.contractible-types | ||
| open import foundation-core.torsorial-type-families | ||
|
|
||
| open import order-theory.accessible-elements-relations | ||
| open import order-theory.preorders | ||
|
|
||
| open import orthogonal-factorization-systems.reflective-global-subuniverses | ||
| ``` | ||
|
|
||
| </details> | ||
|
|
||
| ## Idea | ||
|
|
||
| Given a type `A` and a [binary relation](foundation.binary-relations.md) | ||
| `_∈_ : A → A → Type` dubbed an _elementhood relation_, we say that the | ||
| elementhood relation is | ||
| {{#concept "extensional" Disambiguation="elementhood" Agda=is-extensional-elementhood-Relation}} | ||
| if the canonical map | ||
|
|
||
| ```text | ||
| (x = y) → (Π (u : A), (u ∈ x) ≃ (u ∈ y)) | ||
| ``` | ||
|
|
||
| is an [equivalence](foundation-core.equivalences.md). | ||
|
|
||
| An extensional elementhood relation on `A` endows the type `A` with the | ||
| [structure](foundation.structure.md) of | ||
| {{#concept "elementhood" Disambiguation="on a type" Agda=Elementhood-Structure}}. | ||
|
|
||
| ## Definitions | ||
|
|
||
| ### The canonical comparison map | ||
|
|
||
| ```agda | ||
| module _ | ||
| {l1 l2 : Level} {A : UU l1} (_∈_ : Relation l2 A) | ||
| where | ||
|
|
||
| equiv-elementhood-eq-Relation : | ||
| (x y : A) → (x = y) → (u : A) → (u ∈ x) ≃ (u ∈ y) | ||
| equiv-elementhood-eq-Relation x .x refl u = id-equiv | ||
| ``` | ||
|
|
||
| ### The extensionality predicate on elementhood relations | ||
|
|
||
| ```agda | ||
| module _ | ||
| {l1 l2 : Level} {A : UU l1} (_∈_ : Relation l2 A) | ||
| where | ||
|
|
||
| is-extensional-elementhood-Relation : UU (l1 ⊔ l2) | ||
| is-extensional-elementhood-Relation = | ||
| (x y : A) → is-equiv (equiv-elementhood-eq-Relation _∈_ x y) | ||
|
|
||
| abstract | ||
| is-prop-is-extensional-elementhood-Relation : | ||
| is-prop is-extensional-elementhood-Relation | ||
| is-prop-is-extensional-elementhood-Relation = | ||
| is-prop-Π | ||
| ( λ x → | ||
| is-prop-Π | ||
| ( λ y → | ||
| is-property-is-equiv (equiv-elementhood-eq-Relation _∈_ x y))) | ||
|
|
||
| is-extensional-elementhood-prop-Relation : Prop (l1 ⊔ l2) | ||
| is-extensional-elementhood-prop-Relation = | ||
| ( is-extensional-elementhood-Relation , | ||
| is-prop-is-extensional-elementhood-Relation) | ||
| ``` | ||
|
|
||
| ### The type of elementhood structures on a type | ||
|
|
||
| ```agda | ||
| Elementhood-Structure : | ||
| {l1 : Level} (l2 : Level) (A : UU l1) → UU (l1 ⊔ lsuc l2) | ||
| Elementhood-Structure l2 A = | ||
| type-subtype (is-extensional-elementhood-prop-Relation {l2 = l2} {A}) | ||
|
|
||
| module _ | ||
| {l1 l2 : Level} {A : UU l1} (R@(_∈_ , _) : Elementhood-Structure l2 A) | ||
| where | ||
|
|
||
| elementhood-Elementhood-Structure : Relation l2 A | ||
| elementhood-Elementhood-Structure = pr1 R | ||
|
|
||
| is-extensional-Elementhood-Structure : | ||
| is-extensional-elementhood-Relation elementhood-Elementhood-Structure | ||
| is-extensional-Elementhood-Structure = pr2 R | ||
|
|
||
| equiv-eq-Elementhood-Structure : | ||
| (x y : A) → (x = y) → (u : A) → (u ∈ x) ≃ (u ∈ y) | ||
| equiv-eq-Elementhood-Structure = | ||
| equiv-elementhood-eq-Relation _∈_ | ||
|
|
||
| extensionality-Elementhood-Structure : | ||
| (x y : A) → (x = y) ≃ ((u : A) → (u ∈ x) ≃ (u ∈ y)) | ||
| extensionality-Elementhood-Structure x y = | ||
| ( equiv-eq-Elementhood-Structure x y , | ||
| is-extensional-Elementhood-Structure x y) | ||
|
|
||
| inv-extensionality-Elementhood-Structure : | ||
| (x y : A) → ((u : A) → (u ∈ x) ≃ (u ∈ y)) ≃ (x = y) | ||
| inv-extensionality-Elementhood-Structure x y = | ||
| inv-equiv (extensionality-Elementhood-Structure x y) | ||
|
|
||
| eq-equiv-Elementhood-Structure : | ||
| (x y : A) → ((u : A) → (u ∈ x) ≃ (u ∈ y)) → (x = y) | ||
| eq-equiv-Elementhood-Structure x y = | ||
| map-inv-equiv (extensionality-Elementhood-Structure x y) | ||
| ``` | ||
|
|
||
| ### The type of elements of an element | ||
|
|
||
| ```agda | ||
| module _ | ||
| {l1 l2 : Level} {A : UU l1} (R@(_∈_ , _) : Elementhood-Structure l2 A) | ||
| where | ||
|
|
||
| element-Elementhood-Structure : A → UU (l1 ⊔ l2) | ||
| element-Elementhood-Structure x = Σ A (_∈ x) | ||
| ``` | ||
|
|
||
| ## Properties | ||
|
|
||
| ### Elementhood relations valued in localizations | ||
|
|
||
| If the elementhood relation `_∈_ : A → A → Type` is valued in a | ||
| [localization](orthogonal-factorization-systems.reflective-global-subuniverses.md) | ||
| `ℒ`, then `A` is `ℒ`-[separated](foundation.separated-types-subuniverses.md). | ||
|
|
||
| This is a generalization of Proposition 1 of {{#cite GS24}}. | ||
|
|
||
| **Proof.** By extensionality, `(x = y) ≃ ((u : A) → (u ∈ x) ≃ (u ∈ y))`, and | ||
| the right hand side is a dependent product of equivalence types between | ||
| `ℒ`-types, and so is itself an `ℒ`-type. ∎ | ||
|
|
||
| ```agda | ||
| module _ | ||
| {α β : Level → Level} {l1 l2 : Level} | ||
| (ℒ : reflective-global-subuniverse α β) | ||
| {A : UU l1} (R@(_∈_ , _) : Elementhood-Structure l2 A) | ||
| where | ||
|
|
||
| abstract | ||
| is-separated-is-in-global-reflective-subuniverse-Elementhood-Structure : | ||
| ((x y : A) → is-in-reflective-global-subuniverse ℒ (x ∈ y)) → | ||
| (x y : A) → is-in-reflective-global-subuniverse ℒ (x = y) | ||
| is-separated-is-in-global-reflective-subuniverse-Elementhood-Structure | ||
| H x y = | ||
| is-closed-under-equiv-reflective-global-subuniverse ℒ | ||
| ( (u : A) → (u ∈ x) ≃ (u ∈ y)) | ||
| ( x = y) | ||
| ( inv-extensionality-Elementhood-Structure R x y) | ||
| ( is-in-reflective-global-subuniverse-Π ℒ | ||
| ( λ u → is-in-reflective-global-subuniverse-equiv ℒ (H u x) (H u y))) | ||
| ``` | ||
|
|
||
| ### Uniqueness of comprehensions | ||
|
|
||
| This is Proposition 4 of {{#cite GS24}}. | ||
|
|
||
| ```agda | ||
| module _ | ||
| {l1 l2 : Level} {A : UU l1} (R@(_∈_ , _) : Elementhood-Structure l2 A) | ||
| where | ||
|
|
||
| abstract | ||
| uniqueness-comprehension-Elementhood-Structure' : | ||
| {l3 : Level} (ϕ : A → UU l3) → | ||
| is-proof-irrelevant (Σ A (λ x → (u : A) → ϕ u ≃ (u ∈ x))) | ||
| uniqueness-comprehension-Elementhood-Structure' ϕ (x , α) = | ||
| is-contr-equiv' | ||
| ( Σ A (x =_)) | ||
| ( equiv-tot | ||
| ( λ y → | ||
| equiv-Π-equiv-family | ||
| ( λ u → equiv-precomp-equiv (α u) (u ∈ y)) ∘e | ||
| ( extensionality-Elementhood-Structure R x y))) | ||
| ( is-torsorial-Id x) | ||
|
|
||
| abstract | ||
| uniqueness-comprehension-Elementhood-Structure : | ||
| {l3 : Level} (ϕ : A → UU l3) → | ||
| is-prop (Σ A (λ x → (u : A) → ϕ u ≃ (u ∈ x))) | ||
| uniqueness-comprehension-Elementhood-Structure ϕ = | ||
| is-prop-is-proof-irrelevant | ||
| ( uniqueness-comprehension-Elementhood-Structure' ϕ) | ||
| ``` | ||
|
|
||
| ## References | ||
|
|
||
| {{#bibliography}} | ||
|
|
||
| ## External links | ||
|
|
||
| - <https://elisabeth.stenholm.one/univalent-material-set-theory/e-structure.core.html> | ||
fredrik-bakke marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
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.
This can be removed, as it is just a copy of (some of) the code at
https://git.app.uib.no/hott/hott-set-theoryThere 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.
Hm, or is it nice to have a link to a snapshot of the code in nice clickable html? 🤔
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.
Oh, I didn't notice the main version does not have a clickable html page. That is definitely very handy.