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

Theorem relexpsucnnr 13613
Description: A reduction for relation exponentiation to the right. (Contributed by RP, 22-May-2020.)
Assertion
Ref Expression
relexpsucnnr ((𝑅𝑉𝑁 ∈ ℕ) → (𝑅𝑟(𝑁 + 1)) = ((𝑅𝑟𝑁) ∘ 𝑅))

Proof of Theorem relexpsucnnr
Dummy variables 𝑎 𝑏 𝑧 𝑛 𝑟 𝑥 𝑦 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 eqidd 2611 . . . 4 ((𝑅𝑉𝑁 ∈ ℕ) → (𝑟 ∈ V, 𝑛 ∈ ℕ0 ↦ if(𝑛 = 0, ( I ↾ (dom 𝑟 ∪ ran 𝑟)), (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑟)), (𝑧 ∈ V ↦ 𝑟))‘𝑛))) = (𝑟 ∈ V, 𝑛 ∈ ℕ0 ↦ if(𝑛 = 0, ( I ↾ (dom 𝑟 ∪ ran 𝑟)), (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑟)), (𝑧 ∈ V ↦ 𝑟))‘𝑛))))
2 simprr 792 . . . . 5 (((𝑅𝑉𝑁 ∈ ℕ) ∧ (𝑟 = 𝑅𝑛 = (𝑁 + 1))) → 𝑛 = (𝑁 + 1))
3 dmeq 5246 . . . . . . . . . . 11 (𝑟 = 𝑅 → dom 𝑟 = dom 𝑅)
4 rneq 5272 . . . . . . . . . . 11 (𝑟 = 𝑅 → ran 𝑟 = ran 𝑅)
53, 4uneq12d 3730 . . . . . . . . . 10 (𝑟 = 𝑅 → (dom 𝑟 ∪ ran 𝑟) = (dom 𝑅 ∪ ran 𝑅))
65reseq2d 5317 . . . . . . . . 9 (𝑟 = 𝑅 → ( I ↾ (dom 𝑟 ∪ ran 𝑟)) = ( I ↾ (dom 𝑅 ∪ ran 𝑅)))
7 eqidd 2611 . . . . . . . . . . 11 (𝑟 = 𝑅 → 1 = 1)
8 coeq2 5202 . . . . . . . . . . . 12 (𝑟 = 𝑅 → (𝑥𝑟) = (𝑥𝑅))
98mpt2eq3dv 6619 . . . . . . . . . . 11 (𝑟 = 𝑅 → (𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑟)) = (𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)))
10 id 22 . . . . . . . . . . . 12 (𝑟 = 𝑅𝑟 = 𝑅)
1110mpteq2dv 4673 . . . . . . . . . . 11 (𝑟 = 𝑅 → (𝑧 ∈ V ↦ 𝑟) = (𝑧 ∈ V ↦ 𝑅))
127, 9, 11seqeq123d 12672 . . . . . . . . . 10 (𝑟 = 𝑅 → seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑟)), (𝑧 ∈ V ↦ 𝑟)) = seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)), (𝑧 ∈ V ↦ 𝑅)))
1312fveq1d 6105 . . . . . . . . 9 (𝑟 = 𝑅 → (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑟)), (𝑧 ∈ V ↦ 𝑟))‘(𝑁 + 1)) = (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)), (𝑧 ∈ V ↦ 𝑅))‘(𝑁 + 1)))
146, 13ifeq12d 4056 . . . . . . . 8 (𝑟 = 𝑅 → if((𝑁 + 1) = 0, ( I ↾ (dom 𝑟 ∪ ran 𝑟)), (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑟)), (𝑧 ∈ V ↦ 𝑟))‘(𝑁 + 1))) = if((𝑁 + 1) = 0, ( I ↾ (dom 𝑅 ∪ ran 𝑅)), (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)), (𝑧 ∈ V ↦ 𝑅))‘(𝑁 + 1))))
1514ad2antrl 760 . . . . . . 7 (((𝑅𝑉𝑁 ∈ ℕ) ∧ (𝑟 = 𝑅 ∧ (𝑁 + 1) = (𝑁 + 1))) → if((𝑁 + 1) = 0, ( I ↾ (dom 𝑟 ∪ ran 𝑟)), (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑟)), (𝑧 ∈ V ↦ 𝑟))‘(𝑁 + 1))) = if((𝑁 + 1) = 0, ( I ↾ (dom 𝑅 ∪ ran 𝑅)), (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)), (𝑧 ∈ V ↦ 𝑅))‘(𝑁 + 1))))
1615a1i 11 . . . . . 6 (𝑛 = (𝑁 + 1) → (((𝑅𝑉𝑁 ∈ ℕ) ∧ (𝑟 = 𝑅 ∧ (𝑁 + 1) = (𝑁 + 1))) → if((𝑁 + 1) = 0, ( I ↾ (dom 𝑟 ∪ ran 𝑟)), (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑟)), (𝑧 ∈ V ↦ 𝑟))‘(𝑁 + 1))) = if((𝑁 + 1) = 0, ( I ↾ (dom 𝑅 ∪ ran 𝑅)), (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)), (𝑧 ∈ V ↦ 𝑅))‘(𝑁 + 1)))))
17 eqeq1 2614 . . . . . . . 8 (𝑛 = (𝑁 + 1) → (𝑛 = (𝑁 + 1) ↔ (𝑁 + 1) = (𝑁 + 1)))
1817anbi2d 736 . . . . . . 7 (𝑛 = (𝑁 + 1) → ((𝑟 = 𝑅𝑛 = (𝑁 + 1)) ↔ (𝑟 = 𝑅 ∧ (𝑁 + 1) = (𝑁 + 1))))
1918anbi2d 736 . . . . . 6 (𝑛 = (𝑁 + 1) → (((𝑅𝑉𝑁 ∈ ℕ) ∧ (𝑟 = 𝑅𝑛 = (𝑁 + 1))) ↔ ((𝑅𝑉𝑁 ∈ ℕ) ∧ (𝑟 = 𝑅 ∧ (𝑁 + 1) = (𝑁 + 1)))))
20 eqeq1 2614 . . . . . . . 8 (𝑛 = (𝑁 + 1) → (𝑛 = 0 ↔ (𝑁 + 1) = 0))
21 fveq2 6103 . . . . . . . 8 (𝑛 = (𝑁 + 1) → (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑟)), (𝑧 ∈ V ↦ 𝑟))‘𝑛) = (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑟)), (𝑧 ∈ V ↦ 𝑟))‘(𝑁 + 1)))
2220, 21ifbieq2d 4061 . . . . . . 7 (𝑛 = (𝑁 + 1) → if(𝑛 = 0, ( I ↾ (dom 𝑟 ∪ ran 𝑟)), (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑟)), (𝑧 ∈ V ↦ 𝑟))‘𝑛)) = if((𝑁 + 1) = 0, ( I ↾ (dom 𝑟 ∪ ran 𝑟)), (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑟)), (𝑧 ∈ V ↦ 𝑟))‘(𝑁 + 1))))
2322eqeq1d 2612 . . . . . 6 (𝑛 = (𝑁 + 1) → (if(𝑛 = 0, ( I ↾ (dom 𝑟 ∪ ran 𝑟)), (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑟)), (𝑧 ∈ V ↦ 𝑟))‘𝑛)) = if((𝑁 + 1) = 0, ( I ↾ (dom 𝑅 ∪ ran 𝑅)), (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)), (𝑧 ∈ V ↦ 𝑅))‘(𝑁 + 1))) ↔ if((𝑁 + 1) = 0, ( I ↾ (dom 𝑟 ∪ ran 𝑟)), (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑟)), (𝑧 ∈ V ↦ 𝑟))‘(𝑁 + 1))) = if((𝑁 + 1) = 0, ( I ↾ (dom 𝑅 ∪ ran 𝑅)), (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)), (𝑧 ∈ V ↦ 𝑅))‘(𝑁 + 1)))))
2416, 19, 233imtr4d 282 . . . . 5 (𝑛 = (𝑁 + 1) → (((𝑅𝑉𝑁 ∈ ℕ) ∧ (𝑟 = 𝑅𝑛 = (𝑁 + 1))) → if(𝑛 = 0, ( I ↾ (dom 𝑟 ∪ ran 𝑟)), (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑟)), (𝑧 ∈ V ↦ 𝑟))‘𝑛)) = if((𝑁 + 1) = 0, ( I ↾ (dom 𝑅 ∪ ran 𝑅)), (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)), (𝑧 ∈ V ↦ 𝑅))‘(𝑁 + 1)))))
252, 24mpcom 37 . . . 4 (((𝑅𝑉𝑁 ∈ ℕ) ∧ (𝑟 = 𝑅𝑛 = (𝑁 + 1))) → if(𝑛 = 0, ( I ↾ (dom 𝑟 ∪ ran 𝑟)), (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑟)), (𝑧 ∈ V ↦ 𝑟))‘𝑛)) = if((𝑁 + 1) = 0, ( I ↾ (dom 𝑅 ∪ ran 𝑅)), (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)), (𝑧 ∈ V ↦ 𝑅))‘(𝑁 + 1))))
26 elex 3185 . . . . 5 (𝑅𝑉𝑅 ∈ V)
2726adantr 480 . . . 4 ((𝑅𝑉𝑁 ∈ ℕ) → 𝑅 ∈ V)
28 simpr 476 . . . . . 6 ((𝑅𝑉𝑁 ∈ ℕ) → 𝑁 ∈ ℕ)
2928peano2nnd 10914 . . . . 5 ((𝑅𝑉𝑁 ∈ ℕ) → (𝑁 + 1) ∈ ℕ)
3029nnnn0d 11228 . . . 4 ((𝑅𝑉𝑁 ∈ ℕ) → (𝑁 + 1) ∈ ℕ0)
31 dmexg 6989 . . . . . . . 8 (𝑅𝑉 → dom 𝑅 ∈ V)
32 rnexg 6990 . . . . . . . 8 (𝑅𝑉 → ran 𝑅 ∈ V)
33 unexg 6857 . . . . . . . 8 ((dom 𝑅 ∈ V ∧ ran 𝑅 ∈ V) → (dom 𝑅 ∪ ran 𝑅) ∈ V)
3431, 32, 33syl2anc 691 . . . . . . 7 (𝑅𝑉 → (dom 𝑅 ∪ ran 𝑅) ∈ V)
35 resiexg 6994 . . . . . . 7 ((dom 𝑅 ∪ ran 𝑅) ∈ V → ( I ↾ (dom 𝑅 ∪ ran 𝑅)) ∈ V)
3634, 35syl 17 . . . . . 6 (𝑅𝑉 → ( I ↾ (dom 𝑅 ∪ ran 𝑅)) ∈ V)
3736adantr 480 . . . . 5 ((𝑅𝑉𝑁 ∈ ℕ) → ( I ↾ (dom 𝑅 ∪ ran 𝑅)) ∈ V)
38 fvex 6113 . . . . . 6 (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)), (𝑧 ∈ V ↦ 𝑅))‘(𝑁 + 1)) ∈ V
3938a1i 11 . . . . 5 ((𝑅𝑉𝑁 ∈ ℕ) → (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)), (𝑧 ∈ V ↦ 𝑅))‘(𝑁 + 1)) ∈ V)
4037, 39ifcld 4081 . . . 4 ((𝑅𝑉𝑁 ∈ ℕ) → if((𝑁 + 1) = 0, ( I ↾ (dom 𝑅 ∪ ran 𝑅)), (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)), (𝑧 ∈ V ↦ 𝑅))‘(𝑁 + 1))) ∈ V)
411, 25, 27, 30, 40ovmpt2d 6686 . . 3 ((𝑅𝑉𝑁 ∈ ℕ) → (𝑅(𝑟 ∈ V, 𝑛 ∈ ℕ0 ↦ if(𝑛 = 0, ( I ↾ (dom 𝑟 ∪ ran 𝑟)), (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑟)), (𝑧 ∈ V ↦ 𝑟))‘𝑛)))(𝑁 + 1)) = if((𝑁 + 1) = 0, ( I ↾ (dom 𝑅 ∪ ran 𝑅)), (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)), (𝑧 ∈ V ↦ 𝑅))‘(𝑁 + 1))))
42 nnne0 10930 . . . . . 6 ((𝑁 + 1) ∈ ℕ → (𝑁 + 1) ≠ 0)
4342neneqd 2787 . . . . 5 ((𝑁 + 1) ∈ ℕ → ¬ (𝑁 + 1) = 0)
4429, 43syl 17 . . . 4 ((𝑅𝑉𝑁 ∈ ℕ) → ¬ (𝑁 + 1) = 0)
4544iffalsed 4047 . . 3 ((𝑅𝑉𝑁 ∈ ℕ) → if((𝑁 + 1) = 0, ( I ↾ (dom 𝑅 ∪ ran 𝑅)), (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)), (𝑧 ∈ V ↦ 𝑅))‘(𝑁 + 1))) = (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)), (𝑧 ∈ V ↦ 𝑅))‘(𝑁 + 1)))
46 elnnuz 11600 . . . . . . 7 (𝑁 ∈ ℕ ↔ 𝑁 ∈ (ℤ‘1))
4746biimpi 205 . . . . . 6 (𝑁 ∈ ℕ → 𝑁 ∈ (ℤ‘1))
4847adantl 481 . . . . 5 ((𝑅𝑉𝑁 ∈ ℕ) → 𝑁 ∈ (ℤ‘1))
49 seqp1 12678 . . . . 5 (𝑁 ∈ (ℤ‘1) → (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)), (𝑧 ∈ V ↦ 𝑅))‘(𝑁 + 1)) = ((seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)), (𝑧 ∈ V ↦ 𝑅))‘𝑁)(𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅))((𝑧 ∈ V ↦ 𝑅)‘(𝑁 + 1))))
5048, 49syl 17 . . . 4 ((𝑅𝑉𝑁 ∈ ℕ) → (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)), (𝑧 ∈ V ↦ 𝑅))‘(𝑁 + 1)) = ((seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)), (𝑧 ∈ V ↦ 𝑅))‘𝑁)(𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅))((𝑧 ∈ V ↦ 𝑅)‘(𝑁 + 1))))
51 ovex 6577 . . . . . 6 (𝑁 + 1) ∈ V
52 simpl 472 . . . . . 6 ((𝑅𝑉𝑁 ∈ ℕ) → 𝑅𝑉)
53 eqidd 2611 . . . . . . 7 (𝑧 = (𝑁 + 1) → 𝑅 = 𝑅)
54 eqid 2610 . . . . . . 7 (𝑧 ∈ V ↦ 𝑅) = (𝑧 ∈ V ↦ 𝑅)
5553, 54fvmptg 6189 . . . . . 6 (((𝑁 + 1) ∈ V ∧ 𝑅𝑉) → ((𝑧 ∈ V ↦ 𝑅)‘(𝑁 + 1)) = 𝑅)
5651, 52, 55sylancr 694 . . . . 5 ((𝑅𝑉𝑁 ∈ ℕ) → ((𝑧 ∈ V ↦ 𝑅)‘(𝑁 + 1)) = 𝑅)
5756oveq2d 6565 . . . 4 ((𝑅𝑉𝑁 ∈ ℕ) → ((seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)), (𝑧 ∈ V ↦ 𝑅))‘𝑁)(𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅))((𝑧 ∈ V ↦ 𝑅)‘(𝑁 + 1))) = ((seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)), (𝑧 ∈ V ↦ 𝑅))‘𝑁)(𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅))𝑅))
58 nfcv 2751 . . . . . . 7 𝑎(𝑥𝑅)
59 nfcv 2751 . . . . . . 7 𝑏(𝑥𝑅)
60 nfcv 2751 . . . . . . 7 𝑥(𝑎𝑅)
61 nfcv 2751 . . . . . . 7 𝑦(𝑎𝑅)
62 simpl 472 . . . . . . . 8 ((𝑥 = 𝑎𝑦 = 𝑏) → 𝑥 = 𝑎)
6362coeq1d 5205 . . . . . . 7 ((𝑥 = 𝑎𝑦 = 𝑏) → (𝑥𝑅) = (𝑎𝑅))
6458, 59, 60, 61, 63cbvmpt2 6632 . . . . . 6 (𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)) = (𝑎 ∈ V, 𝑏 ∈ V ↦ (𝑎𝑅))
65 oveq 6555 . . . . . 6 ((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)) = (𝑎 ∈ V, 𝑏 ∈ V ↦ (𝑎𝑅)) → ((seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)), (𝑧 ∈ V ↦ 𝑅))‘𝑁)(𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅))𝑅) = ((seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)), (𝑧 ∈ V ↦ 𝑅))‘𝑁)(𝑎 ∈ V, 𝑏 ∈ V ↦ (𝑎𝑅))𝑅))
6664, 65mp1i 13 . . . . 5 ((𝑅𝑉𝑁 ∈ ℕ) → ((seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)), (𝑧 ∈ V ↦ 𝑅))‘𝑁)(𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅))𝑅) = ((seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)), (𝑧 ∈ V ↦ 𝑅))‘𝑁)(𝑎 ∈ V, 𝑏 ∈ V ↦ (𝑎𝑅))𝑅))
67 eqidd 2611 . . . . . 6 ((𝑅𝑉𝑁 ∈ ℕ) → (𝑎 ∈ V, 𝑏 ∈ V ↦ (𝑎𝑅)) = (𝑎 ∈ V, 𝑏 ∈ V ↦ (𝑎𝑅)))
68 simprl 790 . . . . . . 7 (((𝑅𝑉𝑁 ∈ ℕ) ∧ (𝑎 = (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)), (𝑧 ∈ V ↦ 𝑅))‘𝑁) ∧ 𝑏 = 𝑅)) → 𝑎 = (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)), (𝑧 ∈ V ↦ 𝑅))‘𝑁))
6968coeq1d 5205 . . . . . 6 (((𝑅𝑉𝑁 ∈ ℕ) ∧ (𝑎 = (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)), (𝑧 ∈ V ↦ 𝑅))‘𝑁) ∧ 𝑏 = 𝑅)) → (𝑎𝑅) = ((seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)), (𝑧 ∈ V ↦ 𝑅))‘𝑁) ∘ 𝑅))
70 fvex 6113 . . . . . . 7 (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)), (𝑧 ∈ V ↦ 𝑅))‘𝑁) ∈ V
7170a1i 11 . . . . . 6 ((𝑅𝑉𝑁 ∈ ℕ) → (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)), (𝑧 ∈ V ↦ 𝑅))‘𝑁) ∈ V)
72 coexg 7010 . . . . . . 7 (((seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)), (𝑧 ∈ V ↦ 𝑅))‘𝑁) ∈ V ∧ 𝑅𝑉) → ((seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)), (𝑧 ∈ V ↦ 𝑅))‘𝑁) ∘ 𝑅) ∈ V)
7370, 52, 72sylancr 694 . . . . . 6 ((𝑅𝑉𝑁 ∈ ℕ) → ((seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)), (𝑧 ∈ V ↦ 𝑅))‘𝑁) ∘ 𝑅) ∈ V)
7467, 69, 71, 27, 73ovmpt2d 6686 . . . . 5 ((𝑅𝑉𝑁 ∈ ℕ) → ((seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)), (𝑧 ∈ V ↦ 𝑅))‘𝑁)(𝑎 ∈ V, 𝑏 ∈ V ↦ (𝑎𝑅))𝑅) = ((seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)), (𝑧 ∈ V ↦ 𝑅))‘𝑁) ∘ 𝑅))
75 simpr 476 . . . . . . . . . . 11 ((𝑟 = 𝑅𝑛 = 𝑁) → 𝑛 = 𝑁)
7675eqeq1d 2612 . . . . . . . . . 10 ((𝑟 = 𝑅𝑛 = 𝑁) → (𝑛 = 0 ↔ 𝑁 = 0))
776adantr 480 . . . . . . . . . 10 ((𝑟 = 𝑅𝑛 = 𝑁) → ( I ↾ (dom 𝑟 ∪ ran 𝑟)) = ( I ↾ (dom 𝑅 ∪ ran 𝑅)))
7812adantr 480 . . . . . . . . . . 11 ((𝑟 = 𝑅𝑛 = 𝑁) → seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑟)), (𝑧 ∈ V ↦ 𝑟)) = seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)), (𝑧 ∈ V ↦ 𝑅)))
7978, 75fveq12d 6109 . . . . . . . . . 10 ((𝑟 = 𝑅𝑛 = 𝑁) → (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑟)), (𝑧 ∈ V ↦ 𝑟))‘𝑛) = (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)), (𝑧 ∈ V ↦ 𝑅))‘𝑁))
8076, 77, 79ifbieq12d 4063 . . . . . . . . 9 ((𝑟 = 𝑅𝑛 = 𝑁) → if(𝑛 = 0, ( I ↾ (dom 𝑟 ∪ ran 𝑟)), (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑟)), (𝑧 ∈ V ↦ 𝑟))‘𝑛)) = if(𝑁 = 0, ( I ↾ (dom 𝑅 ∪ ran 𝑅)), (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)), (𝑧 ∈ V ↦ 𝑅))‘𝑁)))
8180adantl 481 . . . . . . . 8 (((𝑅𝑉𝑁 ∈ ℕ) ∧ (𝑟 = 𝑅𝑛 = 𝑁)) → if(𝑛 = 0, ( I ↾ (dom 𝑟 ∪ ran 𝑟)), (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑟)), (𝑧 ∈ V ↦ 𝑟))‘𝑛)) = if(𝑁 = 0, ( I ↾ (dom 𝑅 ∪ ran 𝑅)), (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)), (𝑧 ∈ V ↦ 𝑅))‘𝑁)))
8228nnnn0d 11228 . . . . . . . 8 ((𝑅𝑉𝑁 ∈ ℕ) → 𝑁 ∈ ℕ0)
8337, 71ifcld 4081 . . . . . . . 8 ((𝑅𝑉𝑁 ∈ ℕ) → if(𝑁 = 0, ( I ↾ (dom 𝑅 ∪ ran 𝑅)), (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)), (𝑧 ∈ V ↦ 𝑅))‘𝑁)) ∈ V)
841, 81, 27, 82, 83ovmpt2d 6686 . . . . . . 7 ((𝑅𝑉𝑁 ∈ ℕ) → (𝑅(𝑟 ∈ V, 𝑛 ∈ ℕ0 ↦ if(𝑛 = 0, ( I ↾ (dom 𝑟 ∪ ran 𝑟)), (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑟)), (𝑧 ∈ V ↦ 𝑟))‘𝑛)))𝑁) = if(𝑁 = 0, ( I ↾ (dom 𝑅 ∪ ran 𝑅)), (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)), (𝑧 ∈ V ↦ 𝑅))‘𝑁)))
85 nnne0 10930 . . . . . . . . . 10 (𝑁 ∈ ℕ → 𝑁 ≠ 0)
8685adantl 481 . . . . . . . . 9 ((𝑅𝑉𝑁 ∈ ℕ) → 𝑁 ≠ 0)
8786neneqd 2787 . . . . . . . 8 ((𝑅𝑉𝑁 ∈ ℕ) → ¬ 𝑁 = 0)
8887iffalsed 4047 . . . . . . 7 ((𝑅𝑉𝑁 ∈ ℕ) → if(𝑁 = 0, ( I ↾ (dom 𝑅 ∪ ran 𝑅)), (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)), (𝑧 ∈ V ↦ 𝑅))‘𝑁)) = (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)), (𝑧 ∈ V ↦ 𝑅))‘𝑁))
8984, 88eqtr2d 2645 . . . . . 6 ((𝑅𝑉𝑁 ∈ ℕ) → (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)), (𝑧 ∈ V ↦ 𝑅))‘𝑁) = (𝑅(𝑟 ∈ V, 𝑛 ∈ ℕ0 ↦ if(𝑛 = 0, ( I ↾ (dom 𝑟 ∪ ran 𝑟)), (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑟)), (𝑧 ∈ V ↦ 𝑟))‘𝑛)))𝑁))
9089coeq1d 5205 . . . . 5 ((𝑅𝑉𝑁 ∈ ℕ) → ((seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)), (𝑧 ∈ V ↦ 𝑅))‘𝑁) ∘ 𝑅) = ((𝑅(𝑟 ∈ V, 𝑛 ∈ ℕ0 ↦ if(𝑛 = 0, ( I ↾ (dom 𝑟 ∪ ran 𝑟)), (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑟)), (𝑧 ∈ V ↦ 𝑟))‘𝑛)))𝑁) ∘ 𝑅))
9166, 74, 903eqtrd 2648 . . . 4 ((𝑅𝑉𝑁 ∈ ℕ) → ((seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)), (𝑧 ∈ V ↦ 𝑅))‘𝑁)(𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅))𝑅) = ((𝑅(𝑟 ∈ V, 𝑛 ∈ ℕ0 ↦ if(𝑛 = 0, ( I ↾ (dom 𝑟 ∪ ran 𝑟)), (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑟)), (𝑧 ∈ V ↦ 𝑟))‘𝑛)))𝑁) ∘ 𝑅))
9250, 57, 913eqtrd 2648 . . 3 ((𝑅𝑉𝑁 ∈ ℕ) → (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)), (𝑧 ∈ V ↦ 𝑅))‘(𝑁 + 1)) = ((𝑅(𝑟 ∈ V, 𝑛 ∈ ℕ0 ↦ if(𝑛 = 0, ( I ↾ (dom 𝑟 ∪ ran 𝑟)), (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑟)), (𝑧 ∈ V ↦ 𝑟))‘𝑛)))𝑁) ∘ 𝑅))
9341, 45, 923eqtrd 2648 . 2 ((𝑅𝑉𝑁 ∈ ℕ) → (𝑅(𝑟 ∈ V, 𝑛 ∈ ℕ0 ↦ if(𝑛 = 0, ( I ↾ (dom 𝑟 ∪ ran 𝑟)), (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑟)), (𝑧 ∈ V ↦ 𝑟))‘𝑛)))(𝑁 + 1)) = ((𝑅(𝑟 ∈ V, 𝑛 ∈ ℕ0 ↦ if(𝑛 = 0, ( I ↾ (dom 𝑟 ∪ ran 𝑟)), (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑟)), (𝑧 ∈ V ↦ 𝑟))‘𝑛)))𝑁) ∘ 𝑅))
94 df-relexp 13609 . . 3 𝑟 = (𝑟 ∈ V, 𝑛 ∈ ℕ0 ↦ if(𝑛 = 0, ( I ↾ (dom 𝑟 ∪ ran 𝑟)), (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑟)), (𝑧 ∈ V ↦ 𝑟))‘𝑛)))
95 oveq 6555 . . . . 5 (↑𝑟 = (𝑟 ∈ V, 𝑛 ∈ ℕ0 ↦ if(𝑛 = 0, ( I ↾ (dom 𝑟 ∪ ran 𝑟)), (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑟)), (𝑧 ∈ V ↦ 𝑟))‘𝑛))) → (𝑅𝑟(𝑁 + 1)) = (𝑅(𝑟 ∈ V, 𝑛 ∈ ℕ0 ↦ if(𝑛 = 0, ( I ↾ (dom 𝑟 ∪ ran 𝑟)), (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑟)), (𝑧 ∈ V ↦ 𝑟))‘𝑛)))(𝑁 + 1)))
96 oveq 6555 . . . . . 6 (↑𝑟 = (𝑟 ∈ V, 𝑛 ∈ ℕ0 ↦ if(𝑛 = 0, ( I ↾ (dom 𝑟 ∪ ran 𝑟)), (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑟)), (𝑧 ∈ V ↦ 𝑟))‘𝑛))) → (𝑅𝑟𝑁) = (𝑅(𝑟 ∈ V, 𝑛 ∈ ℕ0 ↦ if(𝑛 = 0, ( I ↾ (dom 𝑟 ∪ ran 𝑟)), (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑟)), (𝑧 ∈ V ↦ 𝑟))‘𝑛)))𝑁))
9796coeq1d 5205 . . . . 5 (↑𝑟 = (𝑟 ∈ V, 𝑛 ∈ ℕ0 ↦ if(𝑛 = 0, ( I ↾ (dom 𝑟 ∪ ran 𝑟)), (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑟)), (𝑧 ∈ V ↦ 𝑟))‘𝑛))) → ((𝑅𝑟𝑁) ∘ 𝑅) = ((𝑅(𝑟 ∈ V, 𝑛 ∈ ℕ0 ↦ if(𝑛 = 0, ( I ↾ (dom 𝑟 ∪ ran 𝑟)), (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑟)), (𝑧 ∈ V ↦ 𝑟))‘𝑛)))𝑁) ∘ 𝑅))
9895, 97eqeq12d 2625 . . . 4 (↑𝑟 = (𝑟 ∈ V, 𝑛 ∈ ℕ0 ↦ if(𝑛 = 0, ( I ↾ (dom 𝑟 ∪ ran 𝑟)), (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑟)), (𝑧 ∈ V ↦ 𝑟))‘𝑛))) → ((𝑅𝑟(𝑁 + 1)) = ((𝑅𝑟𝑁) ∘ 𝑅) ↔ (𝑅(𝑟 ∈ V, 𝑛 ∈ ℕ0 ↦ if(𝑛 = 0, ( I ↾ (dom 𝑟 ∪ ran 𝑟)), (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑟)), (𝑧 ∈ V ↦ 𝑟))‘𝑛)))(𝑁 + 1)) = ((𝑅(𝑟 ∈ V, 𝑛 ∈ ℕ0 ↦ if(𝑛 = 0, ( I ↾ (dom 𝑟 ∪ ran 𝑟)), (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑟)), (𝑧 ∈ V ↦ 𝑟))‘𝑛)))𝑁) ∘ 𝑅)))
9998imbi2d 329 . . 3 (↑𝑟 = (𝑟 ∈ V, 𝑛 ∈ ℕ0 ↦ if(𝑛 = 0, ( I ↾ (dom 𝑟 ∪ ran 𝑟)), (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑟)), (𝑧 ∈ V ↦ 𝑟))‘𝑛))) → (((𝑅𝑉𝑁 ∈ ℕ) → (𝑅𝑟(𝑁 + 1)) = ((𝑅𝑟𝑁) ∘ 𝑅)) ↔ ((𝑅𝑉𝑁 ∈ ℕ) → (𝑅(𝑟 ∈ V, 𝑛 ∈ ℕ0 ↦ if(𝑛 = 0, ( I ↾ (dom 𝑟 ∪ ran 𝑟)), (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑟)), (𝑧 ∈ V ↦ 𝑟))‘𝑛)))(𝑁 + 1)) = ((𝑅(𝑟 ∈ V, 𝑛 ∈ ℕ0 ↦ if(𝑛 = 0, ( I ↾ (dom 𝑟 ∪ ran 𝑟)), (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑟)), (𝑧 ∈ V ↦ 𝑟))‘𝑛)))𝑁) ∘ 𝑅))))
10094, 99ax-mp 5 . 2 (((𝑅𝑉𝑁 ∈ ℕ) → (𝑅𝑟(𝑁 + 1)) = ((𝑅𝑟𝑁) ∘ 𝑅)) ↔ ((𝑅𝑉𝑁 ∈ ℕ) → (𝑅(𝑟 ∈ V, 𝑛 ∈ ℕ0 ↦ if(𝑛 = 0, ( I ↾ (dom 𝑟 ∪ ran 𝑟)), (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑟)), (𝑧 ∈ V ↦ 𝑟))‘𝑛)))(𝑁 + 1)) = ((𝑅(𝑟 ∈ V, 𝑛 ∈ ℕ0 ↦ if(𝑛 = 0, ( I ↾ (dom 𝑟 ∪ ran 𝑟)), (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑟)), (𝑧 ∈ V ↦ 𝑟))‘𝑛)))𝑁) ∘ 𝑅)))
10193, 100mpbir 220 1 ((𝑅𝑉𝑁 ∈ ℕ) → (𝑅𝑟(𝑁 + 1)) = ((𝑅𝑟𝑁) ∘ 𝑅))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 195  wa 383   = wceq 1475  wcel 1977  wne 2780  Vcvv 3173  cun 3538  ifcif 4036  cmpt 4643   I cid 4948  dom cdm 5038  ran crn 5039  cres 5040  ccom 5042  cfv 5804  (class class class)co 6549  cmpt2 6551  0cc0 9815  1c1 9816   + caddc 9818  cn 10897  0cn0 11169  cuz 11563  seqcseq 12663  𝑟crelexp 13608
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1713  ax-4 1728  ax-5 1827  ax-6 1875  ax-7 1922  ax-8 1979  ax-9 1986  ax-10 2006  ax-11 2021  ax-12 2034  ax-13 2234  ax-ext 2590  ax-sep 4709  ax-nul 4717  ax-pow 4769  ax-pr 4833  ax-un 6847  ax-cnex 9871  ax-resscn 9872  ax-1cn 9873  ax-icn 9874  ax-addcl 9875  ax-addrcl 9876  ax-mulcl 9877  ax-mulrcl 9878  ax-mulcom 9879  ax-addass 9880  ax-mulass 9881  ax-distr 9882  ax-i2m1 9883  ax-1ne0 9884  ax-1rid 9885  ax-rnegex 9886  ax-rrecex 9887  ax-cnre 9888  ax-pre-lttri 9889  ax-pre-lttrn 9890  ax-pre-ltadd 9891  ax-pre-mulgt0 9892
This theorem depends on definitions:  df-bi 196  df-or 384  df-an 385  df-3or 1032  df-3an 1033  df-tru 1478  df-ex 1696  df-nf 1701  df-sb 1868  df-eu 2462  df-mo 2463  df-clab 2597  df-cleq 2603  df-clel 2606  df-nfc 2740  df-ne 2782  df-nel 2783  df-ral 2901  df-rex 2902  df-reu 2903  df-rab 2905  df-v 3175  df-sbc 3403  df-csb 3500  df-dif 3543  df-un 3545  df-in 3547  df-ss 3554  df-pss 3556  df-nul 3875  df-if 4037  df-pw 4110  df-sn 4126  df-pr 4128  df-tp 4130  df-op 4132  df-uni 4373  df-iun 4457  df-br 4584  df-opab 4644  df-mpt 4645  df-tr 4681  df-eprel 4949  df-id 4953  df-po 4959  df-so 4960  df-fr 4997  df-we 4999  df-xp 5044  df-rel 5045  df-cnv 5046  df-co 5047  df-dm 5048  df-rn 5049  df-res 5050  df-ima 5051  df-pred 5597  df-ord 5643  df-on 5644  df-lim 5645  df-suc 5646  df-iota 5768  df-fun 5806  df-fn 5807  df-f 5808  df-f1 5809  df-fo 5810  df-f1o 5811  df-fv 5812  df-riota 6511  df-ov 6552  df-oprab 6553  df-mpt2 6554  df-om 6958  df-2nd 7060  df-wrecs 7294  df-recs 7355  df-rdg 7393  df-er 7629  df-en 7842  df-dom 7843  df-sdom 7844  df-pnf 9955  df-mnf 9956  df-xr 9957  df-ltxr 9958  df-le 9959  df-sub 10147  df-neg 10148  df-nn 10898  df-n0 11170  df-z 11255  df-uz 11564  df-seq 12664  df-relexp 13609
This theorem is referenced by:  relexpsucr  13617  relexpsucnnl  13620  relexpcnv  13623  relexprelg  13626  relexpnndm  13629  relexp2  36988  relexpxpnnidm  37014  relexpss1d  37016  relexpmulnn  37020  trclrelexplem  37022  relexp0a  37027  trclfvcom  37034  cotrcltrcl  37036  trclfvdecomr  37039  cotrclrcl  37053
  Copyright terms: Public domain W3C validator