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

Theorem relexpsucnnr 14571
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 2735 . . . 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 773 . . . . 5 (((𝑅𝑉𝑁 ∈ ℕ) ∧ (𝑟 = 𝑅𝑛 = (𝑁 + 1))) → 𝑛 = (𝑁 + 1))
3 dmeq 5761 . . . . . . . . . . 11 (𝑟 = 𝑅 → dom 𝑟 = dom 𝑅)
4 rneq 5794 . . . . . . . . . . 11 (𝑟 = 𝑅 → ran 𝑟 = ran 𝑅)
53, 4uneq12d 4068 . . . . . . . . . 10 (𝑟 = 𝑅 → (dom 𝑟 ∪ ran 𝑟) = (dom 𝑅 ∪ ran 𝑅))
65reseq2d 5840 . . . . . . . . 9 (𝑟 = 𝑅 → ( I ↾ (dom 𝑟 ∪ ran 𝑟)) = ( I ↾ (dom 𝑅 ∪ ran 𝑅)))
7 eqidd 2735 . . . . . . . . . . 11 (𝑟 = 𝑅 → 1 = 1)
8 coeq2 5716 . . . . . . . . . . . 12 (𝑟 = 𝑅 → (𝑥𝑟) = (𝑥𝑅))
98mpoeq3dv 7279 . . . . . . . . . . 11 (𝑟 = 𝑅 → (𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑟)) = (𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)))
10 id 22 . . . . . . . . . . . 12 (𝑟 = 𝑅𝑟 = 𝑅)
1110mpteq2dv 5140 . . . . . . . . . . 11 (𝑟 = 𝑅 → (𝑧 ∈ V ↦ 𝑟) = (𝑧 ∈ V ↦ 𝑅))
127, 9, 11seqeq123d 13566 . . . . . . . . . 10 (𝑟 = 𝑅 → seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑟)), (𝑧 ∈ V ↦ 𝑟)) = seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)), (𝑧 ∈ V ↦ 𝑅)))
1312fveq1d 6708 . . . . . . . . 9 (𝑟 = 𝑅 → (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑟)), (𝑧 ∈ V ↦ 𝑟))‘(𝑁 + 1)) = (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)), (𝑧 ∈ V ↦ 𝑅))‘(𝑁 + 1)))
146, 13ifeq12d 4450 . . . . . . . 8 (𝑟 = 𝑅 → if((𝑁 + 1) = 0, ( I ↾ (dom 𝑟 ∪ ran 𝑟)), (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑟)), (𝑧 ∈ V ↦ 𝑟))‘(𝑁 + 1))) = if((𝑁 + 1) = 0, ( I ↾ (dom 𝑅 ∪ ran 𝑅)), (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)), (𝑧 ∈ V ↦ 𝑅))‘(𝑁 + 1))))
1514ad2antrl 728 . . . . . . 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 2738 . . . . . . . 8 (𝑛 = (𝑁 + 1) → (𝑛 = (𝑁 + 1) ↔ (𝑁 + 1) = (𝑁 + 1)))
1817anbi2d 632 . . . . . . 7 (𝑛 = (𝑁 + 1) → ((𝑟 = 𝑅𝑛 = (𝑁 + 1)) ↔ (𝑟 = 𝑅 ∧ (𝑁 + 1) = (𝑁 + 1))))
1918anbi2d 632 . . . . . 6 (𝑛 = (𝑁 + 1) → (((𝑅𝑉𝑁 ∈ ℕ) ∧ (𝑟 = 𝑅𝑛 = (𝑁 + 1))) ↔ ((𝑅𝑉𝑁 ∈ ℕ) ∧ (𝑟 = 𝑅 ∧ (𝑁 + 1) = (𝑁 + 1)))))
20 eqeq1 2738 . . . . . . . 8 (𝑛 = (𝑁 + 1) → (𝑛 = 0 ↔ (𝑁 + 1) = 0))
21 fveq2 6706 . . . . . . . 8 (𝑛 = (𝑁 + 1) → (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑟)), (𝑧 ∈ V ↦ 𝑟))‘𝑛) = (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑟)), (𝑧 ∈ V ↦ 𝑟))‘(𝑁 + 1)))
2220, 21ifbieq2d 4455 . . . . . . 7 (𝑛 = (𝑁 + 1) → if(𝑛 = 0, ( I ↾ (dom 𝑟 ∪ ran 𝑟)), (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑟)), (𝑧 ∈ V ↦ 𝑟))‘𝑛)) = if((𝑁 + 1) = 0, ( I ↾ (dom 𝑟 ∪ ran 𝑟)), (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑟)), (𝑧 ∈ V ↦ 𝑟))‘(𝑁 + 1))))
2322eqeq1d 2736 . . . . . 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 297 . . . . 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 3419 . . . . 5 (𝑅𝑉𝑅 ∈ V)
2726adantr 484 . . . 4 ((𝑅𝑉𝑁 ∈ ℕ) → 𝑅 ∈ V)
28 simpr 488 . . . . . 6 ((𝑅𝑉𝑁 ∈ ℕ) → 𝑁 ∈ ℕ)
2928peano2nnd 11830 . . . . 5 ((𝑅𝑉𝑁 ∈ ℕ) → (𝑁 + 1) ∈ ℕ)
3029nnnn0d 12133 . . . 4 ((𝑅𝑉𝑁 ∈ ℕ) → (𝑁 + 1) ∈ ℕ0)
31 dmexg 7670 . . . . . . . 8 (𝑅𝑉 → dom 𝑅 ∈ V)
32 rnexg 7671 . . . . . . . 8 (𝑅𝑉 → ran 𝑅 ∈ V)
33 unexg 7523 . . . . . . . 8 ((dom 𝑅 ∈ V ∧ ran 𝑅 ∈ V) → (dom 𝑅 ∪ ran 𝑅) ∈ V)
3431, 32, 33syl2anc 587 . . . . . . 7 (𝑅𝑉 → (dom 𝑅 ∪ ran 𝑅) ∈ V)
35 resiexg 7681 . . . . . . 7 ((dom 𝑅 ∪ ran 𝑅) ∈ V → ( I ↾ (dom 𝑅 ∪ ran 𝑅)) ∈ V)
3634, 35syl 17 . . . . . 6 (𝑅𝑉 → ( I ↾ (dom 𝑅 ∪ ran 𝑅)) ∈ V)
3736adantr 484 . . . . 5 ((𝑅𝑉𝑁 ∈ ℕ) → ( I ↾ (dom 𝑅 ∪ ran 𝑅)) ∈ V)
38 fvexd 6721 . . . . 5 ((𝑅𝑉𝑁 ∈ ℕ) → (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)), (𝑧 ∈ V ↦ 𝑅))‘(𝑁 + 1)) ∈ V)
3937, 38ifcld 4475 . . . 4 ((𝑅𝑉𝑁 ∈ ℕ) → if((𝑁 + 1) = 0, ( I ↾ (dom 𝑅 ∪ ran 𝑅)), (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)), (𝑧 ∈ V ↦ 𝑅))‘(𝑁 + 1))) ∈ V)
401, 25, 27, 30, 39ovmpod 7350 . . 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 11847 . . . . . 6 ((𝑁 + 1) ∈ ℕ → (𝑁 + 1) ≠ 0)
4241neneqd 2940 . . . . 5 ((𝑁 + 1) ∈ ℕ → ¬ (𝑁 + 1) = 0)
4329, 42syl 17 . . . 4 ((𝑅𝑉𝑁 ∈ ℕ) → ¬ (𝑁 + 1) = 0)
4443iffalsed 4440 . . 3 ((𝑅𝑉𝑁 ∈ ℕ) → if((𝑁 + 1) = 0, ( I ↾ (dom 𝑅 ∪ ran 𝑅)), (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)), (𝑧 ∈ V ↦ 𝑅))‘(𝑁 + 1))) = (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)), (𝑧 ∈ V ↦ 𝑅))‘(𝑁 + 1)))
45 elnnuz 12461 . . . . . . 7 (𝑁 ∈ ℕ ↔ 𝑁 ∈ (ℤ‘1))
4645biimpi 219 . . . . . 6 (𝑁 ∈ ℕ → 𝑁 ∈ (ℤ‘1))
4746adantl 485 . . . . 5 ((𝑅𝑉𝑁 ∈ ℕ) → 𝑁 ∈ (ℤ‘1))
48 seqp1 13572 . . . . 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 7235 . . . . . 6 (𝑁 + 1) ∈ V
51 simpl 486 . . . . . 6 ((𝑅𝑉𝑁 ∈ ℕ) → 𝑅𝑉)
52 eqidd 2735 . . . . . . 7 (𝑧 = (𝑁 + 1) → 𝑅 = 𝑅)
53 eqid 2734 . . . . . . 7 (𝑧 ∈ V ↦ 𝑅) = (𝑧 ∈ V ↦ 𝑅)
5452, 53fvmptg 6805 . . . . . 6 (((𝑁 + 1) ∈ V ∧ 𝑅𝑉) → ((𝑧 ∈ V ↦ 𝑅)‘(𝑁 + 1)) = 𝑅)
5550, 51, 54sylancr 590 . . . . 5 ((𝑅𝑉𝑁 ∈ ℕ) → ((𝑧 ∈ V ↦ 𝑅)‘(𝑁 + 1)) = 𝑅)
5655oveq2d 7218 . . . 4 ((𝑅𝑉𝑁 ∈ ℕ) → ((seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)), (𝑧 ∈ V ↦ 𝑅))‘𝑁)(𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅))((𝑧 ∈ V ↦ 𝑅)‘(𝑁 + 1))) = ((seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)), (𝑧 ∈ V ↦ 𝑅))‘𝑁)(𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅))𝑅))
57 nfcv 2900 . . . . . . 7 𝑎(𝑥𝑅)
58 nfcv 2900 . . . . . . 7 𝑏(𝑥𝑅)
59 nfcv 2900 . . . . . . 7 𝑥(𝑎𝑅)
60 nfcv 2900 . . . . . . 7 𝑦(𝑎𝑅)
61 simpl 486 . . . . . . . 8 ((𝑥 = 𝑎𝑦 = 𝑏) → 𝑥 = 𝑎)
6261coeq1d 5719 . . . . . . 7 ((𝑥 = 𝑎𝑦 = 𝑏) → (𝑥𝑅) = (𝑎𝑅))
6357, 58, 59, 60, 62cbvmpo 7294 . . . . . 6 (𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)) = (𝑎 ∈ V, 𝑏 ∈ V ↦ (𝑎𝑅))
64 oveq 7208 . . . . . 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 2735 . . . . . 6 ((𝑅𝑉𝑁 ∈ ℕ) → (𝑎 ∈ V, 𝑏 ∈ V ↦ (𝑎𝑅)) = (𝑎 ∈ V, 𝑏 ∈ V ↦ (𝑎𝑅)))
67 simprl 771 . . . . . . 7 (((𝑅𝑉𝑁 ∈ ℕ) ∧ (𝑎 = (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)), (𝑧 ∈ V ↦ 𝑅))‘𝑁) ∧ 𝑏 = 𝑅)) → 𝑎 = (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)), (𝑧 ∈ V ↦ 𝑅))‘𝑁))
6867coeq1d 5719 . . . . . 6 (((𝑅𝑉𝑁 ∈ ℕ) ∧ (𝑎 = (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)), (𝑧 ∈ V ↦ 𝑅))‘𝑁) ∧ 𝑏 = 𝑅)) → (𝑎𝑅) = ((seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)), (𝑧 ∈ V ↦ 𝑅))‘𝑁) ∘ 𝑅))
69 fvexd 6721 . . . . . 6 ((𝑅𝑉𝑁 ∈ ℕ) → (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)), (𝑧 ∈ V ↦ 𝑅))‘𝑁) ∈ V)
70 fvex 6719 . . . . . . 7 (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)), (𝑧 ∈ V ↦ 𝑅))‘𝑁) ∈ V
71 coexg 7696 . . . . . . 7 (((seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)), (𝑧 ∈ V ↦ 𝑅))‘𝑁) ∈ V ∧ 𝑅𝑉) → ((seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)), (𝑧 ∈ V ↦ 𝑅))‘𝑁) ∘ 𝑅) ∈ V)
7270, 51, 71sylancr 590 . . . . . 6 ((𝑅𝑉𝑁 ∈ ℕ) → ((seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)), (𝑧 ∈ V ↦ 𝑅))‘𝑁) ∘ 𝑅) ∈ V)
7366, 68, 69, 27, 72ovmpod 7350 . . . . 5 ((𝑅𝑉𝑁 ∈ ℕ) → ((seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)), (𝑧 ∈ V ↦ 𝑅))‘𝑁)(𝑎 ∈ V, 𝑏 ∈ V ↦ (𝑎𝑅))𝑅) = ((seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)), (𝑧 ∈ V ↦ 𝑅))‘𝑁) ∘ 𝑅))
74 simpr 488 . . . . . . . . . . 11 ((𝑟 = 𝑅𝑛 = 𝑁) → 𝑛 = 𝑁)
7574eqeq1d 2736 . . . . . . . . . 10 ((𝑟 = 𝑅𝑛 = 𝑁) → (𝑛 = 0 ↔ 𝑁 = 0))
766adantr 484 . . . . . . . . . 10 ((𝑟 = 𝑅𝑛 = 𝑁) → ( I ↾ (dom 𝑟 ∪ ran 𝑟)) = ( I ↾ (dom 𝑅 ∪ ran 𝑅)))
7712adantr 484 . . . . . . . . . . 11 ((𝑟 = 𝑅𝑛 = 𝑁) → seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑟)), (𝑧 ∈ V ↦ 𝑟)) = seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)), (𝑧 ∈ V ↦ 𝑅)))
7877, 74fveq12d 6713 . . . . . . . . . 10 ((𝑟 = 𝑅𝑛 = 𝑁) → (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑟)), (𝑧 ∈ V ↦ 𝑟))‘𝑛) = (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)), (𝑧 ∈ V ↦ 𝑅))‘𝑁))
7975, 76, 78ifbieq12d 4457 . . . . . . . . 9 ((𝑟 = 𝑅𝑛 = 𝑁) → if(𝑛 = 0, ( I ↾ (dom 𝑟 ∪ ran 𝑟)), (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑟)), (𝑧 ∈ V ↦ 𝑟))‘𝑛)) = if(𝑁 = 0, ( I ↾ (dom 𝑅 ∪ ran 𝑅)), (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)), (𝑧 ∈ V ↦ 𝑅))‘𝑁)))
8079adantl 485 . . . . . . . 8 (((𝑅𝑉𝑁 ∈ ℕ) ∧ (𝑟 = 𝑅𝑛 = 𝑁)) → if(𝑛 = 0, ( I ↾ (dom 𝑟 ∪ ran 𝑟)), (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑟)), (𝑧 ∈ V ↦ 𝑟))‘𝑛)) = if(𝑁 = 0, ( I ↾ (dom 𝑅 ∪ ran 𝑅)), (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)), (𝑧 ∈ V ↦ 𝑅))‘𝑁)))
8128nnnn0d 12133 . . . . . . . 8 ((𝑅𝑉𝑁 ∈ ℕ) → 𝑁 ∈ ℕ0)
8237, 69ifcld 4475 . . . . . . . 8 ((𝑅𝑉𝑁 ∈ ℕ) → if(𝑁 = 0, ( I ↾ (dom 𝑅 ∪ ran 𝑅)), (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)), (𝑧 ∈ V ↦ 𝑅))‘𝑁)) ∈ V)
831, 80, 27, 81, 82ovmpod 7350 . . . . . . 7 ((𝑅𝑉𝑁 ∈ ℕ) → (𝑅(𝑟 ∈ V, 𝑛 ∈ ℕ0 ↦ if(𝑛 = 0, ( I ↾ (dom 𝑟 ∪ ran 𝑟)), (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑟)), (𝑧 ∈ V ↦ 𝑟))‘𝑛)))𝑁) = if(𝑁 = 0, ( I ↾ (dom 𝑅 ∪ ran 𝑅)), (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)), (𝑧 ∈ V ↦ 𝑅))‘𝑁)))
84 nnne0 11847 . . . . . . . . . 10 (𝑁 ∈ ℕ → 𝑁 ≠ 0)
8584adantl 485 . . . . . . . . 9 ((𝑅𝑉𝑁 ∈ ℕ) → 𝑁 ≠ 0)
8685neneqd 2940 . . . . . . . 8 ((𝑅𝑉𝑁 ∈ ℕ) → ¬ 𝑁 = 0)
8786iffalsed 4440 . . . . . . 7 ((𝑅𝑉𝑁 ∈ ℕ) → if(𝑁 = 0, ( I ↾ (dom 𝑅 ∪ ran 𝑅)), (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)), (𝑧 ∈ V ↦ 𝑅))‘𝑁)) = (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)), (𝑧 ∈ V ↦ 𝑅))‘𝑁))
8883, 87eqtr2d 2775 . . . . . 6 ((𝑅𝑉𝑁 ∈ ℕ) → (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)), (𝑧 ∈ V ↦ 𝑅))‘𝑁) = (𝑅(𝑟 ∈ V, 𝑛 ∈ ℕ0 ↦ if(𝑛 = 0, ( I ↾ (dom 𝑟 ∪ ran 𝑟)), (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑟)), (𝑧 ∈ V ↦ 𝑟))‘𝑛)))𝑁))
8988coeq1d 5719 . . . . 5 ((𝑅𝑉𝑁 ∈ ℕ) → ((seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)), (𝑧 ∈ V ↦ 𝑅))‘𝑁) ∘ 𝑅) = ((𝑅(𝑟 ∈ V, 𝑛 ∈ ℕ0 ↦ if(𝑛 = 0, ( I ↾ (dom 𝑟 ∪ ran 𝑟)), (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑟)), (𝑧 ∈ V ↦ 𝑟))‘𝑛)))𝑁) ∘ 𝑅))
9065, 73, 893eqtrd 2778 . . . 4 ((𝑅𝑉𝑁 ∈ ℕ) → ((seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)), (𝑧 ∈ V ↦ 𝑅))‘𝑁)(𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅))𝑅) = ((𝑅(𝑟 ∈ V, 𝑛 ∈ ℕ0 ↦ if(𝑛 = 0, ( I ↾ (dom 𝑟 ∪ ran 𝑟)), (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑟)), (𝑧 ∈ V ↦ 𝑟))‘𝑛)))𝑁) ∘ 𝑅))
9149, 56, 903eqtrd 2778 . . 3 ((𝑅𝑉𝑁 ∈ ℕ) → (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)), (𝑧 ∈ V ↦ 𝑅))‘(𝑁 + 1)) = ((𝑅(𝑟 ∈ V, 𝑛 ∈ ℕ0 ↦ if(𝑛 = 0, ( I ↾ (dom 𝑟 ∪ ran 𝑟)), (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑟)), (𝑧 ∈ V ↦ 𝑟))‘𝑛)))𝑁) ∘ 𝑅))
9240, 44, 913eqtrd 2778 . 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 14566 . . 3 𝑟 = (𝑟 ∈ V, 𝑛 ∈ ℕ0 ↦ if(𝑛 = 0, ( I ↾ (dom 𝑟 ∪ ran 𝑟)), (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑟)), (𝑧 ∈ V ↦ 𝑟))‘𝑛)))
94 oveq 7208 . . . . 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 7208 . . . . . 6 (↑𝑟 = (𝑟 ∈ V, 𝑛 ∈ ℕ0 ↦ if(𝑛 = 0, ( I ↾ (dom 𝑟 ∪ ran 𝑟)), (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑟)), (𝑧 ∈ V ↦ 𝑟))‘𝑛))) → (𝑅𝑟𝑁) = (𝑅(𝑟 ∈ V, 𝑛 ∈ ℕ0 ↦ if(𝑛 = 0, ( I ↾ (dom 𝑟 ∪ ran 𝑟)), (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑟)), (𝑧 ∈ V ↦ 𝑟))‘𝑛)))𝑁))
9695coeq1d 5719 . . . . 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 2750 . . . 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 344 . . 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 234 1 ((𝑅𝑉𝑁 ∈ ℕ) → (𝑅𝑟(𝑁 + 1)) = ((𝑅𝑟𝑁) ∘ 𝑅))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 209  wa 399   = wceq 1543  wcel 2110  wne 2935  Vcvv 3401  cun 3855  ifcif 4429  cmpt 5124   I cid 5443  dom cdm 5540  ran crn 5541  cres 5542  ccom 5544  cfv 6369  (class class class)co 7202  cmpo 7204  0cc0 10712  1c1 10713   + caddc 10715  cn 11813  0cn0 12073  cuz 12421  seqcseq 13557  𝑟crelexp 14565
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1803  ax-4 1817  ax-5 1918  ax-6 1976  ax-7 2016  ax-8 2112  ax-9 2120  ax-10 2141  ax-11 2158  ax-12 2175  ax-ext 2706  ax-sep 5181  ax-nul 5188  ax-pow 5247  ax-pr 5311  ax-un 7512  ax-cnex 10768  ax-resscn 10769  ax-1cn 10770  ax-icn 10771  ax-addcl 10772  ax-addrcl 10773  ax-mulcl 10774  ax-mulrcl 10775  ax-mulcom 10776  ax-addass 10777  ax-mulass 10778  ax-distr 10779  ax-i2m1 10780  ax-1ne0 10781  ax-1rid 10782  ax-rnegex 10783  ax-rrecex 10784  ax-cnre 10785  ax-pre-lttri 10786  ax-pre-lttrn 10787  ax-pre-ltadd 10788  ax-pre-mulgt0 10789
This theorem depends on definitions:  df-bi 210  df-an 400  df-or 848  df-3or 1090  df-3an 1091  df-tru 1546  df-fal 1556  df-ex 1788  df-nf 1792  df-sb 2071  df-mo 2537  df-eu 2566  df-clab 2713  df-cleq 2726  df-clel 2812  df-nfc 2882  df-ne 2936  df-nel 3040  df-ral 3059  df-rex 3060  df-reu 3061  df-rab 3063  df-v 3403  df-sbc 3688  df-csb 3803  df-dif 3860  df-un 3862  df-in 3864  df-ss 3874  df-pss 3876  df-nul 4228  df-if 4430  df-pw 4505  df-sn 4532  df-pr 4534  df-tp 4536  df-op 4538  df-uni 4810  df-iun 4896  df-br 5044  df-opab 5106  df-mpt 5125  df-tr 5151  df-id 5444  df-eprel 5449  df-po 5457  df-so 5458  df-fr 5498  df-we 5500  df-xp 5546  df-rel 5547  df-cnv 5548  df-co 5549  df-dm 5550  df-rn 5551  df-res 5552  df-ima 5553  df-pred 6149  df-ord 6205  df-on 6206  df-lim 6207  df-suc 6208  df-iota 6327  df-fun 6371  df-fn 6372  df-f 6373  df-f1 6374  df-fo 6375  df-f1o 6376  df-fv 6377  df-riota 7159  df-ov 7205  df-oprab 7206  df-mpo 7207  df-om 7634  df-2nd 7751  df-wrecs 8036  df-recs 8097  df-rdg 8135  df-er 8380  df-en 8616  df-dom 8617  df-sdom 8618  df-pnf 10852  df-mnf 10853  df-xr 10854  df-ltxr 10855  df-le 10856  df-sub 11047  df-neg 11048  df-nn 11814  df-n0 12074  df-z 12160  df-uz 12422  df-seq 13558  df-relexp 14566
This theorem is referenced by:  relexpsucnnl  14576  relexpsucr  14578  relexpcnv  14581  relexprelg  14584  relexpnndm  14587  relexp2  40914  relexpxpnnidm  40940  relexpss1d  40942  relexpmulnn  40946  trclrelexplem  40948  relexp0a  40953  trclfvcom  40960  cotrcltrcl  40962  trclfvdecomr  40965  cotrclrcl  40979
  Copyright terms: Public domain W3C validator