Sets in product and pi types #
This file defines the product of sets in α × β
and in Π i, α i
along with the diagonal of a
type.
Main declarations #
Set.prod
: Binary product of sets. Fors : Set α
,t : Set β
, we haves.prod t : Set (α × β)
.Set.diagonal
: Diagonal of a type.Set.diagonal α = {(x, x) | x : α}
.Set.offDiag
: Off-diagonal.s ×ˢ s
without the diagonal.Set.pi
: Arbitrary product of sets.
Cartesian binary product of sets #
Equations
- Set.decidableMemProd x = And.decidable
Diagonal #
In this section we prove some lemmas about the diagonal set {p | p.1 = p.2}
and the diagonal map
fun x ↦ (x, x)
.
Equations
- Set.decidableMemDiagonal x = h x.1 x.2
A function is Function.const α a
for some a
if and only if ∀ x y, f x = f y
.
The fiber product $X \times_Y Z$.
Equations
- Function.Pullback f g = { p : X × Z // f p.1 = g p.2 }
Instances For
The fiber product $X \times_Y X$.
Equations
Instances For
The projection from the fiber product to the first factor.
Equations
- Function.Pullback.fst p = (↑p).1
Instances For
The projection from the fiber product to the second factor.
Equations
- Function.Pullback.snd p = (↑p).2
Instances For
The diagonal map $\Delta: X \to X \times_Y X$.
Equations
- toPullbackDiag f x = { val := (x, x), property := ⋯ }
Instances For
The diagonal $\Delta(X) \subseteq X \times_Y X$.
Equations
- Function.pullbackDiagonal f = {p : Function.Pullback f f | Function.Pullback.fst p = Function.Pullback.snd p}
Instances For
Three functions between the three pairs of spaces $X_i, Y_i, Z_i$ that are compatible induce a function $X_1 \times_{Y_1} Z_1 \to X_2 \times_{Y_2} Z_2$.
Equations
- Function.mapPullback mapX mapY mapZ commX commZ p = { val := (mapX (Function.Pullback.fst p), mapZ (Function.Pullback.snd p)), property := ⋯ }
Instances For
The projection $(X \times_Y Z) \times_Z (X \times_Y Z) \to X \times_Y X$.
Equations
- Function.PullbackSelf.map_fst = Function.mapPullback Function.Pullback.fst g Function.Pullback.fst ⋯ ⋯
Instances For
The projection $(X \times_Y Z) \times_X (X \times_Y Z) \to Z \times_Y Z$.
Equations
- Function.PullbackSelf.map_snd = Function.mapPullback Function.Pullback.snd f Function.Pullback.snd ⋯ ⋯
Instances For
Alias of the reverse direction of Set.offDiag_nonempty
.
Alias of the reverse direction of Set.offDiag_nonempty
.