Fill in some of 3.5, fix numbering - #268
Merged
Merged
Conversation
gaearon
commented
Aug 4, 2025
| z ∈ (SetTheory.Set.slice x Y) ↔ ∃ y:Y, z = (⟨x, y⟩:OrderedPair) := replacement_axiom _ _ | ||
|
|
||
| /-- Definition 3.5.2 (Cartesian product) -/ | ||
| /-- Definition 3.5.4 (Cartesian product) -/ |
| apply ext; | ||
| aesop | ||
|
|
||
| /-- Example 3.5.5 / Exercise 3.6.5. There is a bijection between `X ×ˢ Y` and `Y ×ˢ X`. -/ |
Contributor
Author
There was a problem hiding this comment.
Calling out the future exercise explicitly so it's clear why we're not filling this in.
| invFun := sorry | ||
| left_inv := sorry | ||
| right_inv := sorry | ||
| /-- Example 3.5.5. A function of two variables can be thought of as a function of a pair. -/ |
gaearon
commented
Aug 4, 2025
| tuple a = tuple b ↔ a = b := by sorry | ||
|
|
||
| /-- Example 3.5.8. There is a bijection between `(X ×ˢ Y) ×ˢ Z` and `X ×ˢ (Y ×ˢ Z)`. -/ | ||
| noncomputable abbrev SetTheory.Set.prod_associator (X Y Z:Set) : (X ×ˢ Y) ×ˢ Z ≃ X ×ˢ (Y ×ˢ Z) where |
Contributor
Author
There was a problem hiding this comment.
I've fully filled this in because it wasn't a "why" and it wasn't part of an exercise.
gaearon
commented
Aug 4, 2025
| noncomputable abbrev SetTheory.Set.prod_equiv_prod (X Y:Set) : | ||
| ((X ×ˢ Y):_root_.Set Object) ≃ (X:_root_.Set Object) ×ˢ (Y:_root_.Set Object) where | ||
| toFun := fun z ↦ ⟨(fst z, snd z), by simp⟩ | ||
| invFun := fun z ↦ mk_cartesian ⟨z.val.1, z.prop.1⟩ ⟨z.val.2, z.prop.2⟩ |
Contributor
Author
There was a problem hiding this comment.
Filled these in because it's auxiliary to the book.
gaearon
commented
Aug 4, 2025
| right_inv := sorry | ||
|
|
||
| /-- Example 3.5.5. A function of two variables can be thought of as a function of a pair. -/ | ||
| noncomputable abbrev SetTheory.Set.curry_equiv {X Y Z:Set} : (X → Y → Z) ≃ (X ×ˢ Y → Z) where |
Contributor
Author
There was a problem hiding this comment.
Filled this in because it isn't a "why" or an exercise.
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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's a few changes in here:
mem_insertlemma so we can unwrap >3-item sets without mentioning the instance.curry,uncurry,curry_uncurry, anduncurry_curryinto an equivalence. This matches how other equivalences are shown and is IMO a bit more intuitive. It took me a while to see why they're defined at all.