The areas / V01. The language of Mathlib
Mathlib.Data.Prod.TProd
25 declarations. Mathlib docs · Source
theorem List.TProd.mk.match_1.congr_eq_2 E1 #
∀ {ι : Type u_1} (motive : List ι → Sort u_2) (x : List ι) (h_1 : Unit → motive [])
(h_2 : (i : ι) → (is : List ι) → motive (i :: is)) (i : ι) (is : List ι),
x = i :: is →
(match x with
| [] => h_1 ()
| i :: is => h_2 i is) ≍
h_2 i is
theorem Set.tprod.match_1.congr_eq_1 E1 #
∀ {ι : Type u_1} {α : ι → Type u_2} (motive : List ι → ((i : ι) → Set (α i)) → Sort u_3) (x : List ι)
(x_1 : (i : ι) → Set (α i)) (h_1 : (x : (i : ι) → Set (α i)) → motive [] x)
(h_2 : (i : ι) → (is : List ι) → (t : (i : ι) → Set (α i)) → motive (i :: is) t) (x_2 : (i : ι) → Set (α i)),
x = [] →
x_1 = x_2 →
(match x, x_1 with
| [], x => h_1 x
| i :: is, t => h_2 i is t) ≍
h_1 x_2
theorem List.TProd.elim.match_1.congr_eq_1 E1 #
∀ {ι : Type u_1} {α : ι → Type u_2} (motive : (x : List ι) → List.TProd α x → (x_2 : ι) → x_2 ∈ x → Sort u_3)
(x : List ι) (x_1 : List.TProd α x) (x_2 : ι) (x_3 : x_2 ∈ x)
(h_1 :
(i : ι) → (is : List ι) → (v : List.TProd α (i :: is)) → (j : ι) → (hj : j ∈ i :: is) → motive (i :: is) v j hj)
(i : ι) (is : List ι) (v : List.TProd α (i :: is)) (j : ι) (hj : j ∈ i :: is),
x = i :: is →
x_1 ≍ v →
x_2 = j →
x_3 ≍ hj →
(match x, x_1, x_2, x_3 with
| i :: is, v, j, hj => h_1 i is v j hj) ≍
h_1 i is v j hj
theorem Set.tprod.match_1.congr_eq_2 E1 #
∀ {ι : Type u_1} {α : ι → Type u_2} (motive : List ι → ((i : ι) → Set (α i)) → Sort u_3) (x : List ι)
(x_1 : (i : ι) → Set (α i)) (h_1 : (x : (i : ι) → Set (α i)) → motive [] x)
(h_2 : (i : ι) → (is : List ι) → (t : (i : ι) → Set (α i)) → motive (i :: is) t) (i : ι) (is : List ι)
(t : (i : ι) → Set (α i)),
x = i :: is →
x_1 = t →
(match x, x_1 with
| [], x => h_1 x
| i :: is, t => h_2 i is t) ≍
h_2 i is t
theorem List.TProd.elim'.congr_simp E1 #
∀ {ι : Type u} {α : ι → Type v} {l : List ι} {inst : DecidableEq ι} [inst_1 : DecidableEq ι] (h : ∀ (i : ι), i ∈ l)
(v v_1 : List.TProd α l), v = v_1 → ∀ (i : ι), List.TProd.elim' h v i = List.TProd.elim' h v_1 i
theorem List.TProd.elim.congr_simp E1 #
∀ {ι : Type u} {α : ι → Type v} {inst : DecidableEq ι} [inst_1 : DecidableEq ι] {l : List ι} (x x_1 : List.TProd α l),
x = x_1 → ∀ {i : ι} (x_2 : i ∈ l), x.elim x_2 = x_1.elim x_2
theorem List.TProd.mk.match_1.congr_eq_1 E1 #
∀ {ι : Type u_1} (motive : List ι → Sort u_2) (x : List ι) (h_1 : Unit → motive [])
(h_2 : (i : ι) → (is : List ι) → motive (i :: is)),
x = [] →
(match x with
| [] => h_1 ()
| i :: is => h_2 i is) ≍
h_1 ()
abbrev List.TProd E1 #
{ι : Type u} → (ι → Type v) → List ι → Type v
The product of a family of types over a list.
def List.TProd.mk E1 #
{ι : Type u} → {α : ι → Type v} → (l : List ι) → ((i : ι) → α i) → List.TProd α l
Turning a function f : ∀ i, α i into an element of the iterated product TProd α l.
instance List.TProd.instInhabited E0 #
{ι : Type u} → {α : ι → Type v} → {l : List ι} → [(i : ι) → Inhabited (α i)] → Inhabited (List.TProd α l)
theorem List.TProd.fst_mk E0 #
∀ {ι : Type u} {α : ι → Type v} (i : ι) (l : List ι) (f : (i : ι) → α i), (List.TProd.mk (i :: l) f).1 = f i
theorem List.TProd.snd_mk E0 #
∀ {ι : Type u} {α : ι → Type v} (i : ι) (l : List ι) (f : (i : ι) → α i),
(List.TProd.mk (i :: l) f).2 = List.TProd.mk l f
def List.TProd.elim E1 #
{ι : Type u} → {α : ι → Type v} → [DecidableEq ι] → {l : List ι} → List.TProd α l → {i : ι} → i ∈ l → α i
Given an element of the iterated product l.Prod α, take a projection into direction i.
If i appears multiple times in l, this chooses the first component in direction i.
theorem List.TProd.elim_self E0 #
∀ {ι : Type u} {α : ι → Type v} {i : ι} {l : List ι} [inst : DecidableEq ι] (v : List.TProd α (i :: l)), v.elim ⋯ = v.1
theorem List.TProd.elim_of_ne E0 #
∀ {ι : Type u} {α : ι → Type v} {i j : ι} {l : List ι} [inst : DecidableEq ι] (hj : j ∈ i :: l) (hji : j ≠ i)
(v : List.TProd α (i :: l)), v.elim hj = List.TProd.elim v.2 ⋯
theorem List.TProd.elim_of_mem E0 #
∀ {ι : Type u} {α : ι → Type v} {i j : ι} {l : List ι} [inst : DecidableEq ι],
(i :: l).Nodup → ∀ (hj : j ∈ l) (v : List.TProd α (i :: l)), v.elim ⋯ = List.TProd.elim v.2 hj
theorem List.TProd.elim_mk E0 #
∀ {ι : Type u} {α : ι → Type v} [inst : DecidableEq ι] (l : List ι) (f : (i : ι) → α i) {i : ι} (hi : i ∈ l),
(List.TProd.mk l f).elim hi = f i
theorem List.TProd.ext E1 #
∀ {ι : Type u} {α : ι → Type v} [inst : DecidableEq ι] {l : List ι},
l.Nodup → ∀ {v w : List.TProd α l}, (∀ (i : ι) (hi : i ∈ l), v.elim hi = w.elim hi) → v = w
theorem List.TProd.ext_iff E0 #
∀ {ι : Type u} {α : ι → Type v} [inst : DecidableEq ι] {l : List ι} {x : l.Nodup} {v w : List.TProd α l},
v = w ↔ ∀ (i : ι) (hi : i ∈ l), v.elim hi = w.elim hi
def List.TProd.elim' E1 #
{ι : Type u} → {α : ι → Type v} → {l : List ι} → [DecidableEq ι] → (∀ (i : ι), i ∈ l) → List.TProd α l → (i : ι) → α i
A version of TProd.elim when l contains all elements. In this case we get a function into
Π i, α i.
theorem List.TProd.mk_elim E1 #
∀ {ι : Type u} {α : ι → Type v} {l : List ι} [inst : DecidableEq ι],
l.Nodup → ∀ (h : ∀ (i : ι), i ∈ l) (v : List.TProd α l), List.TProd.mk l (List.TProd.elim' h v) = v
def List.TProd.piEquivTProd E1 #
{ι : Type u} →
{α : ι → Type v} → {l : List ι} → [DecidableEq ι] → l.Nodup → (∀ (i : ι), i ∈ l) → ((i : ι) → α i) ≃ List.TProd α l
Pi-types are equivalent to iterated products.
def Set.tprod E1 #
{ι : Type u} → {α : ι → Type v} → (l : List ι) → ((i : ι) → Set (α i)) → Set (List.TProd α l)
A product of sets in TProd α l.
theorem Set.mk_preimage_tprod E1 #
∀ {ι : Type u} {α : ι → Type v} (l : List ι) (t : (i : ι) → Set (α i)),
List.TProd.mk l ⁻¹' Set.tprod l t = {i | i ∈ l}.pi t
theorem Set.elim_preimage_pi E1 #
∀ {ι : Type u} {α : ι → Type v} [inst : DecidableEq ι] {l : List ι},
l.Nodup → ∀ (h : ∀ (i : ι), i ∈ l) (t : (i : ι) → Set (α i)), List.TProd.elim' h ⁻¹' Set.univ.pi t = Set.tprod l t