MPE Home Metamath Proof Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >  df-relexp Structured version   Visualization version   GIF version

Definition df-relexp 15153
Description: Definition of repeated composition of a relation with itself, aka relation exponentiation. (Contributed by Drahflow, 12-Nov-2015.) (Revised by RP, 22-May-2020.)
Assertion
Ref Expression
df-relexp ↑𝑟 = (𝑟 ∈ V, 𝑛 ∈ ℕ0 ↦ if(𝑛 = 0, ( I ↾ (dom 𝑟 ∪ ran 𝑟)), (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥 ∘ 𝑟)), (𝑧 ∈ V ↦ 𝑟))‘𝑛)))
Distinct variable group:   𝑛,𝑟,𝑥,𝑦,𝑧

Detailed syntax breakdown of Definition df-relexp
StepHypRef Expression
1 crelexp 15152 . 2 class ↑𝑟
2 vr . . 3 setvar 𝑟
3 vn . . 3 setvar 𝑛
4 cvv 3451 . . 3 class V
5 cn0 12587 . . 3 class ℕ0
63cv 1569 . . . . 5 class 𝑛
7 cc0 11181 . . . . 5 class 0
86, 7wceq 1570 . . . 4 wff 𝑛 = 0
9 cid 5545 . . . . 5 class I
102cv 1569 . . . . . . 7 class 𝑟
1110cdm 5651 . . . . . 6 class dom 𝑟
1210crn 5652 . . . . . 6 class ran 𝑟
1311, 12cun 3897 . . . . 5 class (dom 𝑟 ∪ ran 𝑟)
149, 13cres 5653 . . . 4 class ( I ↾ (dom 𝑟 ∪ ran 𝑟))
15 vx . . . . . . 7 setvar 𝑥
16 vy . . . . . . 7 setvar 𝑦
1715cv 1569 . . . . . . . 8 class 𝑥
1817, 10ccom 5655 . . . . . . 7 class (𝑥 ∘ 𝑟)
1915, 16, 4, 4, 18cmpo 7414 . . . . . 6 class (𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥 ∘ 𝑟))
20 vz . . . . . . 7 setvar 𝑧
2120, 4, 10cmpt 5186 . . . . . 6 class (𝑧 ∈ V ↦ 𝑟)
22 c1 11182 . . . . . 6 class 1
2319, 21, 22cseq 14124 . . . . 5 class seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥 ∘ 𝑟)), (𝑧 ∈ V ↦ 𝑟))
246, 23cfv 6531 . . . 4 class (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥 ∘ 𝑟)), (𝑧 ∈ V ↦ 𝑟))‘𝑛)
258, 14, 24cif 4482 . . 3 class if(𝑛 = 0, ( I ↾ (dom 𝑟 ∪ ran 𝑟)), (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥 ∘ 𝑟)), (𝑧 ∈ V ↦ 𝑟))‘𝑛))
262, 3, 4, 5, 25cmpo 7414 . 2 class (𝑟 ∈ V, 𝑛 ∈ ℕ0 ↦ if(𝑛 = 0, ( I ↾ (dom 𝑟 ∪ ran 𝑟)), (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥 ∘ 𝑟)), (𝑧 ∈ V ↦ 𝑟))‘𝑛)))
271, 26wceq 1570 1 wff ↑𝑟 = (𝑟 ∈ V, 𝑛 ∈ ℕ0 ↦ if(𝑛 = 0, ( I ↾ (dom 𝑟 ∪ ran 𝑟)), (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥 ∘ 𝑟)), (𝑧 ∈ V ↦ 𝑟))‘𝑛)))
Colors of variables:    wff setvar class
This definition is used by:  reldmrelexp  15154  relexp0g  15155  relexpsucnnr  15158  relexp1g  15159
  Copyright terms: Public domain W3C validator