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

Theorem relexpsucnnr 14736
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 2739 . . . 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 770 . . . . 5 (((𝑅𝑉𝑁 ∈ ℕ) ∧ (𝑟 = 𝑅𝑛 = (𝑁 + 1))) → 𝑛 = (𝑁 + 1))
3 dmeq 5812 . . . . . . . . . . 11 (𝑟 = 𝑅 → dom 𝑟 = dom 𝑅)
4 rneq 5845 . . . . . . . . . . 11 (𝑟 = 𝑅 → ran 𝑟 = ran 𝑅)
53, 4uneq12d 4098 . . . . . . . . . 10 (𝑟 = 𝑅 → (dom 𝑟 ∪ ran 𝑟) = (dom 𝑅 ∪ ran 𝑅))
65reseq2d 5891 . . . . . . . . 9 (𝑟 = 𝑅 → ( I ↾ (dom 𝑟 ∪ ran 𝑟)) = ( I ↾ (dom 𝑅 ∪ ran 𝑅)))
7 eqidd 2739 . . . . . . . . . . 11 (𝑟 = 𝑅 → 1 = 1)
8 coeq2 5767 . . . . . . . . . . . 12 (𝑟 = 𝑅 → (𝑥𝑟) = (𝑥𝑅))
98mpoeq3dv 7354 . . . . . . . . . . 11 (𝑟 = 𝑅 → (𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑟)) = (𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)))
10 id 22 . . . . . . . . . . . 12 (𝑟 = 𝑅𝑟 = 𝑅)
1110mpteq2dv 5176 . . . . . . . . . . 11 (𝑟 = 𝑅 → (𝑧 ∈ V ↦ 𝑟) = (𝑧 ∈ V ↦ 𝑅))
127, 9, 11seqeq123d 13730 . . . . . . . . . 10 (𝑟 = 𝑅 → seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑟)), (𝑧 ∈ V ↦ 𝑟)) = seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)), (𝑧 ∈ V ↦ 𝑅)))
1312fveq1d 6776 . . . . . . . . 9 (𝑟 = 𝑅 → (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑟)), (𝑧 ∈ V ↦ 𝑟))‘(𝑁 + 1)) = (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)), (𝑧 ∈ V ↦ 𝑅))‘(𝑁 + 1)))
146, 13ifeq12d 4480 . . . . . . . 8 (𝑟 = 𝑅 → if((𝑁 + 1) = 0, ( I ↾ (dom 𝑟 ∪ ran 𝑟)), (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑟)), (𝑧 ∈ V ↦ 𝑟))‘(𝑁 + 1))) = if((𝑁 + 1) = 0, ( I ↾ (dom 𝑅 ∪ ran 𝑅)), (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)), (𝑧 ∈ V ↦ 𝑅))‘(𝑁 + 1))))
1514ad2antrl 725 . . . . . . 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 2742 . . . . . . . 8 (𝑛 = (𝑁 + 1) → (𝑛 = (𝑁 + 1) ↔ (𝑁 + 1) = (𝑁 + 1)))
1817anbi2d 629 . . . . . . 7 (𝑛 = (𝑁 + 1) → ((𝑟 = 𝑅𝑛 = (𝑁 + 1)) ↔ (𝑟 = 𝑅 ∧ (𝑁 + 1) = (𝑁 + 1))))
1918anbi2d 629 . . . . . 6 (𝑛 = (𝑁 + 1) → (((𝑅𝑉𝑁 ∈ ℕ) ∧ (𝑟 = 𝑅𝑛 = (𝑁 + 1))) ↔ ((𝑅𝑉𝑁 ∈ ℕ) ∧ (𝑟 = 𝑅 ∧ (𝑁 + 1) = (𝑁 + 1)))))
20 eqeq1 2742 . . . . . . . 8 (𝑛 = (𝑁 + 1) → (𝑛 = 0 ↔ (𝑁 + 1) = 0))
21 fveq2 6774 . . . . . . . 8 (𝑛 = (𝑁 + 1) → (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑟)), (𝑧 ∈ V ↦ 𝑟))‘𝑛) = (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑟)), (𝑧 ∈ V ↦ 𝑟))‘(𝑁 + 1)))
2220, 21ifbieq2d 4485 . . . . . . 7 (𝑛 = (𝑁 + 1) → if(𝑛 = 0, ( I ↾ (dom 𝑟 ∪ ran 𝑟)), (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑟)), (𝑧 ∈ V ↦ 𝑟))‘𝑛)) = if((𝑁 + 1) = 0, ( I ↾ (dom 𝑟 ∪ ran 𝑟)), (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑟)), (𝑧 ∈ V ↦ 𝑟))‘(𝑁 + 1))))
2322eqeq1d 2740 . . . . . 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 294 . . . . 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 38 . . . 4 (((𝑅𝑉𝑁 ∈ ℕ) ∧ (𝑟 = 𝑅𝑛 = (𝑁 + 1))) → if(𝑛 = 0, ( I ↾ (dom 𝑟 ∪ ran 𝑟)), (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑟)), (𝑧 ∈ V ↦ 𝑟))‘𝑛)) = if((𝑁 + 1) = 0, ( I ↾ (dom 𝑅 ∪ ran 𝑅)), (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)), (𝑧 ∈ V ↦ 𝑅))‘(𝑁 + 1))))
26 elex 3450 . . . . 5 (𝑅𝑉𝑅 ∈ V)
2726adantr 481 . . . 4 ((𝑅𝑉𝑁 ∈ ℕ) → 𝑅 ∈ V)
28 simpr 485 . . . . . 6 ((𝑅𝑉𝑁 ∈ ℕ) → 𝑁 ∈ ℕ)
2928peano2nnd 11990 . . . . 5 ((𝑅𝑉𝑁 ∈ ℕ) → (𝑁 + 1) ∈ ℕ)
3029nnnn0d 12293 . . . 4 ((𝑅𝑉𝑁 ∈ ℕ) → (𝑁 + 1) ∈ ℕ0)
31 dmexg 7750 . . . . . . . 8 (𝑅𝑉 → dom 𝑅 ∈ V)
32 rnexg 7751 . . . . . . . 8 (𝑅𝑉 → ran 𝑅 ∈ V)
33 unexg 7599 . . . . . . . 8 ((dom 𝑅 ∈ V ∧ ran 𝑅 ∈ V) → (dom 𝑅 ∪ ran 𝑅) ∈ V)
3431, 32, 33syl2anc 584 . . . . . . 7 (𝑅𝑉 → (dom 𝑅 ∪ ran 𝑅) ∈ V)
35 resiexg 7761 . . . . . . 7 ((dom 𝑅 ∪ ran 𝑅) ∈ V → ( I ↾ (dom 𝑅 ∪ ran 𝑅)) ∈ V)
3634, 35syl 17 . . . . . 6 (𝑅𝑉 → ( I ↾ (dom 𝑅 ∪ ran 𝑅)) ∈ V)
3736adantr 481 . . . . 5 ((𝑅𝑉𝑁 ∈ ℕ) → ( I ↾ (dom 𝑅 ∪ ran 𝑅)) ∈ V)
38 fvexd 6789 . . . . 5 ((𝑅𝑉𝑁 ∈ ℕ) → (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)), (𝑧 ∈ V ↦ 𝑅))‘(𝑁 + 1)) ∈ V)
3937, 38ifcld 4505 . . . 4 ((𝑅𝑉𝑁 ∈ ℕ) → if((𝑁 + 1) = 0, ( I ↾ (dom 𝑅 ∪ ran 𝑅)), (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)), (𝑧 ∈ V ↦ 𝑅))‘(𝑁 + 1))) ∈ V)
401, 25, 27, 30, 39ovmpod 7425 . . 3 ((𝑅𝑉𝑁 ∈ ℕ) → (𝑅(𝑟 ∈ V, 𝑛 ∈ ℕ0 ↦ if(𝑛 = 0, ( I ↾ (dom 𝑟 ∪ ran 𝑟)), (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑟)), (𝑧 ∈ V ↦ 𝑟))‘𝑛)))(𝑁 + 1)) = if((𝑁 + 1) = 0, ( I ↾ (dom 𝑅 ∪ ran 𝑅)), (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)), (𝑧 ∈ V ↦ 𝑅))‘(𝑁 + 1))))
41 nnne0 12007 . . . . . 6 ((𝑁 + 1) ∈ ℕ → (𝑁 + 1) ≠ 0)
4241neneqd 2948 . . . . 5 ((𝑁 + 1) ∈ ℕ → ¬ (𝑁 + 1) = 0)
4329, 42syl 17 . . . 4 ((𝑅𝑉𝑁 ∈ ℕ) → ¬ (𝑁 + 1) = 0)
4443iffalsed 4470 . . 3 ((𝑅𝑉𝑁 ∈ ℕ) → if((𝑁 + 1) = 0, ( I ↾ (dom 𝑅 ∪ ran 𝑅)), (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)), (𝑧 ∈ V ↦ 𝑅))‘(𝑁 + 1))) = (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)), (𝑧 ∈ V ↦ 𝑅))‘(𝑁 + 1)))
45 elnnuz 12622 . . . . . . 7 (𝑁 ∈ ℕ ↔ 𝑁 ∈ (ℤ‘1))
4645biimpi 215 . . . . . 6 (𝑁 ∈ ℕ → 𝑁 ∈ (ℤ‘1))
4746adantl 482 . . . . 5 ((𝑅𝑉𝑁 ∈ ℕ) → 𝑁 ∈ (ℤ‘1))
48 seqp1 13736 . . . . 5 (𝑁 ∈ (ℤ‘1) → (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)), (𝑧 ∈ V ↦ 𝑅))‘(𝑁 + 1)) = ((seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)), (𝑧 ∈ V ↦ 𝑅))‘𝑁)(𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅))((𝑧 ∈ V ↦ 𝑅)‘(𝑁 + 1))))
4947, 48syl 17 . . . 4 ((𝑅𝑉𝑁 ∈ ℕ) → (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)), (𝑧 ∈ V ↦ 𝑅))‘(𝑁 + 1)) = ((seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)), (𝑧 ∈ V ↦ 𝑅))‘𝑁)(𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅))((𝑧 ∈ V ↦ 𝑅)‘(𝑁 + 1))))
50 ovex 7308 . . . . . 6 (𝑁 + 1) ∈ V
51 simpl 483 . . . . . 6 ((𝑅𝑉𝑁 ∈ ℕ) → 𝑅𝑉)
52 eqidd 2739 . . . . . . 7 (𝑧 = (𝑁 + 1) → 𝑅 = 𝑅)
53 eqid 2738 . . . . . . 7 (𝑧 ∈ V ↦ 𝑅) = (𝑧 ∈ V ↦ 𝑅)
5452, 53fvmptg 6873 . . . . . 6 (((𝑁 + 1) ∈ V ∧ 𝑅𝑉) → ((𝑧 ∈ V ↦ 𝑅)‘(𝑁 + 1)) = 𝑅)
5550, 51, 54sylancr 587 . . . . 5 ((𝑅𝑉𝑁 ∈ ℕ) → ((𝑧 ∈ V ↦ 𝑅)‘(𝑁 + 1)) = 𝑅)
5655oveq2d 7291 . . . 4 ((𝑅𝑉𝑁 ∈ ℕ) → ((seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)), (𝑧 ∈ V ↦ 𝑅))‘𝑁)(𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅))((𝑧 ∈ V ↦ 𝑅)‘(𝑁 + 1))) = ((seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)), (𝑧 ∈ V ↦ 𝑅))‘𝑁)(𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅))𝑅))
57 nfcv 2907 . . . . . . 7 𝑎(𝑥𝑅)
58 nfcv 2907 . . . . . . 7 𝑏(𝑥𝑅)
59 nfcv 2907 . . . . . . 7 𝑥(𝑎𝑅)
60 nfcv 2907 . . . . . . 7 𝑦(𝑎𝑅)
61 simpl 483 . . . . . . . 8 ((𝑥 = 𝑎𝑦 = 𝑏) → 𝑥 = 𝑎)
6261coeq1d 5770 . . . . . . 7 ((𝑥 = 𝑎𝑦 = 𝑏) → (𝑥𝑅) = (𝑎𝑅))
6357, 58, 59, 60, 62cbvmpo 7369 . . . . . 6 (𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)) = (𝑎 ∈ V, 𝑏 ∈ V ↦ (𝑎𝑅))
64 oveq 7281 . . . . . 6 ((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)) = (𝑎 ∈ V, 𝑏 ∈ V ↦ (𝑎𝑅)) → ((seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)), (𝑧 ∈ V ↦ 𝑅))‘𝑁)(𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅))𝑅) = ((seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)), (𝑧 ∈ V ↦ 𝑅))‘𝑁)(𝑎 ∈ V, 𝑏 ∈ V ↦ (𝑎𝑅))𝑅))
6563, 64mp1i 13 . . . . 5 ((𝑅𝑉𝑁 ∈ ℕ) → ((seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)), (𝑧 ∈ V ↦ 𝑅))‘𝑁)(𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅))𝑅) = ((seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)), (𝑧 ∈ V ↦ 𝑅))‘𝑁)(𝑎 ∈ V, 𝑏 ∈ V ↦ (𝑎𝑅))𝑅))
66 eqidd 2739 . . . . . 6 ((𝑅𝑉𝑁 ∈ ℕ) → (𝑎 ∈ V, 𝑏 ∈ V ↦ (𝑎𝑅)) = (𝑎 ∈ V, 𝑏 ∈ V ↦ (𝑎𝑅)))
67 simprl 768 . . . . . . 7 (((𝑅𝑉𝑁 ∈ ℕ) ∧ (𝑎 = (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)), (𝑧 ∈ V ↦ 𝑅))‘𝑁) ∧ 𝑏 = 𝑅)) → 𝑎 = (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)), (𝑧 ∈ V ↦ 𝑅))‘𝑁))
6867coeq1d 5770 . . . . . 6 (((𝑅𝑉𝑁 ∈ ℕ) ∧ (𝑎 = (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)), (𝑧 ∈ V ↦ 𝑅))‘𝑁) ∧ 𝑏 = 𝑅)) → (𝑎𝑅) = ((seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)), (𝑧 ∈ V ↦ 𝑅))‘𝑁) ∘ 𝑅))
69 fvexd 6789 . . . . . 6 ((𝑅𝑉𝑁 ∈ ℕ) → (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)), (𝑧 ∈ V ↦ 𝑅))‘𝑁) ∈ V)
70 fvex 6787 . . . . . . 7 (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)), (𝑧 ∈ V ↦ 𝑅))‘𝑁) ∈ V
71 coexg 7776 . . . . . . 7 (((seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)), (𝑧 ∈ V ↦ 𝑅))‘𝑁) ∈ V ∧ 𝑅𝑉) → ((seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)), (𝑧 ∈ V ↦ 𝑅))‘𝑁) ∘ 𝑅) ∈ V)
7270, 51, 71sylancr 587 . . . . . 6 ((𝑅𝑉𝑁 ∈ ℕ) → ((seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)), (𝑧 ∈ V ↦ 𝑅))‘𝑁) ∘ 𝑅) ∈ V)
7366, 68, 69, 27, 72ovmpod 7425 . . . . 5 ((𝑅𝑉𝑁 ∈ ℕ) → ((seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)), (𝑧 ∈ V ↦ 𝑅))‘𝑁)(𝑎 ∈ V, 𝑏 ∈ V ↦ (𝑎𝑅))𝑅) = ((seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)), (𝑧 ∈ V ↦ 𝑅))‘𝑁) ∘ 𝑅))
74 simpr 485 . . . . . . . . . . 11 ((𝑟 = 𝑅𝑛 = 𝑁) → 𝑛 = 𝑁)
7574eqeq1d 2740 . . . . . . . . . 10 ((𝑟 = 𝑅𝑛 = 𝑁) → (𝑛 = 0 ↔ 𝑁 = 0))
766adantr 481 . . . . . . . . . 10 ((𝑟 = 𝑅𝑛 = 𝑁) → ( I ↾ (dom 𝑟 ∪ ran 𝑟)) = ( I ↾ (dom 𝑅 ∪ ran 𝑅)))
7712adantr 481 . . . . . . . . . . 11 ((𝑟 = 𝑅𝑛 = 𝑁) → seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑟)), (𝑧 ∈ V ↦ 𝑟)) = seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)), (𝑧 ∈ V ↦ 𝑅)))
7877, 74fveq12d 6781 . . . . . . . . . 10 ((𝑟 = 𝑅𝑛 = 𝑁) → (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑟)), (𝑧 ∈ V ↦ 𝑟))‘𝑛) = (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)), (𝑧 ∈ V ↦ 𝑅))‘𝑁))
7975, 76, 78ifbieq12d 4487 . . . . . . . . 9 ((𝑟 = 𝑅𝑛 = 𝑁) → if(𝑛 = 0, ( I ↾ (dom 𝑟 ∪ ran 𝑟)), (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑟)), (𝑧 ∈ V ↦ 𝑟))‘𝑛)) = if(𝑁 = 0, ( I ↾ (dom 𝑅 ∪ ran 𝑅)), (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)), (𝑧 ∈ V ↦ 𝑅))‘𝑁)))
8079adantl 482 . . . . . . . 8 (((𝑅𝑉𝑁 ∈ ℕ) ∧ (𝑟 = 𝑅𝑛 = 𝑁)) → if(𝑛 = 0, ( I ↾ (dom 𝑟 ∪ ran 𝑟)), (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑟)), (𝑧 ∈ V ↦ 𝑟))‘𝑛)) = if(𝑁 = 0, ( I ↾ (dom 𝑅 ∪ ran 𝑅)), (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)), (𝑧 ∈ V ↦ 𝑅))‘𝑁)))
8128nnnn0d 12293 . . . . . . . 8 ((𝑅𝑉𝑁 ∈ ℕ) → 𝑁 ∈ ℕ0)
8237, 69ifcld 4505 . . . . . . . 8 ((𝑅𝑉𝑁 ∈ ℕ) → if(𝑁 = 0, ( I ↾ (dom 𝑅 ∪ ran 𝑅)), (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)), (𝑧 ∈ V ↦ 𝑅))‘𝑁)) ∈ V)
831, 80, 27, 81, 82ovmpod 7425 . . . . . . 7 ((𝑅𝑉𝑁 ∈ ℕ) → (𝑅(𝑟 ∈ V, 𝑛 ∈ ℕ0 ↦ if(𝑛 = 0, ( I ↾ (dom 𝑟 ∪ ran 𝑟)), (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑟)), (𝑧 ∈ V ↦ 𝑟))‘𝑛)))𝑁) = if(𝑁 = 0, ( I ↾ (dom 𝑅 ∪ ran 𝑅)), (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)), (𝑧 ∈ V ↦ 𝑅))‘𝑁)))
84 nnne0 12007 . . . . . . . . . 10 (𝑁 ∈ ℕ → 𝑁 ≠ 0)
8584adantl 482 . . . . . . . . 9 ((𝑅𝑉𝑁 ∈ ℕ) → 𝑁 ≠ 0)
8685neneqd 2948 . . . . . . . 8 ((𝑅𝑉𝑁 ∈ ℕ) → ¬ 𝑁 = 0)
8786iffalsed 4470 . . . . . . 7 ((𝑅𝑉𝑁 ∈ ℕ) → if(𝑁 = 0, ( I ↾ (dom 𝑅 ∪ ran 𝑅)), (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)), (𝑧 ∈ V ↦ 𝑅))‘𝑁)) = (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)), (𝑧 ∈ V ↦ 𝑅))‘𝑁))
8883, 87eqtr2d 2779 . . . . . 6 ((𝑅𝑉𝑁 ∈ ℕ) → (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)), (𝑧 ∈ V ↦ 𝑅))‘𝑁) = (𝑅(𝑟 ∈ V, 𝑛 ∈ ℕ0 ↦ if(𝑛 = 0, ( I ↾ (dom 𝑟 ∪ ran 𝑟)), (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑟)), (𝑧 ∈ V ↦ 𝑟))‘𝑛)))𝑁))
8988coeq1d 5770 . . . . 5 ((𝑅𝑉𝑁 ∈ ℕ) → ((seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)), (𝑧 ∈ V ↦ 𝑅))‘𝑁) ∘ 𝑅) = ((𝑅(𝑟 ∈ V, 𝑛 ∈ ℕ0 ↦ if(𝑛 = 0, ( I ↾ (dom 𝑟 ∪ ran 𝑟)), (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑟)), (𝑧 ∈ V ↦ 𝑟))‘𝑛)))𝑁) ∘ 𝑅))
9065, 73, 893eqtrd 2782 . . . 4 ((𝑅𝑉𝑁 ∈ ℕ) → ((seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)), (𝑧 ∈ V ↦ 𝑅))‘𝑁)(𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅))𝑅) = ((𝑅(𝑟 ∈ V, 𝑛 ∈ ℕ0 ↦ if(𝑛 = 0, ( I ↾ (dom 𝑟 ∪ ran 𝑟)), (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑟)), (𝑧 ∈ V ↦ 𝑟))‘𝑛)))𝑁) ∘ 𝑅))
9149, 56, 903eqtrd 2782 . . 3 ((𝑅𝑉𝑁 ∈ ℕ) → (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)), (𝑧 ∈ V ↦ 𝑅))‘(𝑁 + 1)) = ((𝑅(𝑟 ∈ V, 𝑛 ∈ ℕ0 ↦ if(𝑛 = 0, ( I ↾ (dom 𝑟 ∪ ran 𝑟)), (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑟)), (𝑧 ∈ V ↦ 𝑟))‘𝑛)))𝑁) ∘ 𝑅))
9240, 44, 913eqtrd 2782 . 2 ((𝑅𝑉𝑁 ∈ ℕ) → (𝑅(𝑟 ∈ V, 𝑛 ∈ ℕ0 ↦ if(𝑛 = 0, ( I ↾ (dom 𝑟 ∪ ran 𝑟)), (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑟)), (𝑧 ∈ V ↦ 𝑟))‘𝑛)))(𝑁 + 1)) = ((𝑅(𝑟 ∈ V, 𝑛 ∈ ℕ0 ↦ if(𝑛 = 0, ( I ↾ (dom 𝑟 ∪ ran 𝑟)), (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑟)), (𝑧 ∈ V ↦ 𝑟))‘𝑛)))𝑁) ∘ 𝑅))
93 df-relexp 14731 . . 3 𝑟 = (𝑟 ∈ V, 𝑛 ∈ ℕ0 ↦ if(𝑛 = 0, ( I ↾ (dom 𝑟 ∪ ran 𝑟)), (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑟)), (𝑧 ∈ V ↦ 𝑟))‘𝑛)))
94 oveq 7281 . . . . 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)))
95 oveq 7281 . . . . . 6 (↑𝑟 = (𝑟 ∈ V, 𝑛 ∈ ℕ0 ↦ if(𝑛 = 0, ( I ↾ (dom 𝑟 ∪ ran 𝑟)), (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑟)), (𝑧 ∈ V ↦ 𝑟))‘𝑛))) → (𝑅𝑟𝑁) = (𝑅(𝑟 ∈ V, 𝑛 ∈ ℕ0 ↦ if(𝑛 = 0, ( I ↾ (dom 𝑟 ∪ ran 𝑟)), (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑟)), (𝑧 ∈ V ↦ 𝑟))‘𝑛)))𝑁))
9695coeq1d 5770 . . . . 5 (↑𝑟 = (𝑟 ∈ V, 𝑛 ∈ ℕ0 ↦ if(𝑛 = 0, ( I ↾ (dom 𝑟 ∪ ran 𝑟)), (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑟)), (𝑧 ∈ V ↦ 𝑟))‘𝑛))) → ((𝑅𝑟𝑁) ∘ 𝑅) = ((𝑅(𝑟 ∈ V, 𝑛 ∈ ℕ0 ↦ if(𝑛 = 0, ( I ↾ (dom 𝑟 ∪ ran 𝑟)), (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑟)), (𝑧 ∈ V ↦ 𝑟))‘𝑛)))𝑁) ∘ 𝑅))
9794, 96eqeq12d 2754 . . . 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 ↦ 𝑟))‘𝑛)))𝑁) ∘ 𝑅)))
9897imbi2d 341 . . 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 ↦ 𝑟))‘𝑛)))𝑁) ∘ 𝑅))))
9993, 98ax-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 ↦ 𝑟))‘𝑛)))𝑁) ∘ 𝑅)))
10092, 99mpbir 230 1 ((𝑅𝑉𝑁 ∈ ℕ) → (𝑅𝑟(𝑁 + 1)) = ((𝑅𝑟𝑁) ∘ 𝑅))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 205  wa 396   = wceq 1539  wcel 2106  wne 2943  Vcvv 3432  cun 3885  ifcif 4459  cmpt 5157   I cid 5488  dom cdm 5589  ran crn 5590  cres 5591  ccom 5593  cfv 6433  (class class class)co 7275  cmpo 7277  0cc0 10871  1c1 10872   + caddc 10874  cn 11973  0cn0 12233  cuz 12582  seqcseq 13721  𝑟crelexp 14730
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1798  ax-4 1812  ax-5 1913  ax-6 1971  ax-7 2011  ax-8 2108  ax-9 2116  ax-10 2137  ax-11 2154  ax-12 2171  ax-ext 2709  ax-sep 5223  ax-nul 5230  ax-pow 5288  ax-pr 5352  ax-un 7588  ax-cnex 10927  ax-resscn 10928  ax-1cn 10929  ax-icn 10930  ax-addcl 10931  ax-addrcl 10932  ax-mulcl 10933  ax-mulrcl 10934  ax-mulcom 10935  ax-addass 10936  ax-mulass 10937  ax-distr 10938  ax-i2m1 10939  ax-1ne0 10940  ax-1rid 10941  ax-rnegex 10942  ax-rrecex 10943  ax-cnre 10944  ax-pre-lttri 10945  ax-pre-lttrn 10946  ax-pre-ltadd 10947  ax-pre-mulgt0 10948
This theorem depends on definitions:  df-bi 206  df-an 397  df-or 845  df-3or 1087  df-3an 1088  df-tru 1542  df-fal 1552  df-ex 1783  df-nf 1787  df-sb 2068  df-mo 2540  df-eu 2569  df-clab 2716  df-cleq 2730  df-clel 2816  df-nfc 2889  df-ne 2944  df-nel 3050  df-ral 3069  df-rex 3070  df-reu 3072  df-rab 3073  df-v 3434  df-sbc 3717  df-csb 3833  df-dif 3890  df-un 3892  df-in 3894  df-ss 3904  df-pss 3906  df-nul 4257  df-if 4460  df-pw 4535  df-sn 4562  df-pr 4564  df-op 4568  df-uni 4840  df-iun 4926  df-br 5075  df-opab 5137  df-mpt 5158  df-tr 5192  df-id 5489  df-eprel 5495  df-po 5503  df-so 5504  df-fr 5544  df-we 5546  df-xp 5595  df-rel 5596  df-cnv 5597  df-co 5598  df-dm 5599  df-rn 5600  df-res 5601  df-ima 5602  df-pred 6202  df-ord 6269  df-on 6270  df-lim 6271  df-suc 6272  df-iota 6391  df-fun 6435  df-fn 6436  df-f 6437  df-f1 6438  df-fo 6439  df-f1o 6440  df-fv 6441  df-riota 7232  df-ov 7278  df-oprab 7279  df-mpo 7280  df-om 7713  df-2nd 7832  df-frecs 8097  df-wrecs 8128  df-recs 8202  df-rdg 8241  df-er 8498  df-en 8734  df-dom 8735  df-sdom 8736  df-pnf 11011  df-mnf 11012  df-xr 11013  df-ltxr 11014  df-le 11015  df-sub 11207  df-neg 11208  df-nn 11974  df-n0 12234  df-z 12320  df-uz 12583  df-seq 13722  df-relexp 14731
This theorem is referenced by:  relexpsucnnl  14741  relexpsucr  14743  relexpcnv  14746  relexprelg  14749  relexpnndm  14752  relexp2  41285  relexpxpnnidm  41311  relexpss1d  41313  relexpmulnn  41317  trclrelexplem  41319  relexp0a  41324  trclfvcom  41331  cotrcltrcl  41333  trclfvdecomr  41336  cotrclrcl  41350
  Copyright terms: Public domain W3C validator