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

Theorem relexpsucnnr 14386
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 2824 . . . 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 771 . . . . 5 (((𝑅𝑉𝑁 ∈ ℕ) ∧ (𝑟 = 𝑅𝑛 = (𝑁 + 1))) → 𝑛 = (𝑁 + 1))
3 dmeq 5774 . . . . . . . . . . 11 (𝑟 = 𝑅 → dom 𝑟 = dom 𝑅)
4 rneq 5808 . . . . . . . . . . 11 (𝑟 = 𝑅 → ran 𝑟 = ran 𝑅)
53, 4uneq12d 4142 . . . . . . . . . 10 (𝑟 = 𝑅 → (dom 𝑟 ∪ ran 𝑟) = (dom 𝑅 ∪ ran 𝑅))
65reseq2d 5855 . . . . . . . . 9 (𝑟 = 𝑅 → ( I ↾ (dom 𝑟 ∪ ran 𝑟)) = ( I ↾ (dom 𝑅 ∪ ran 𝑅)))
7 eqidd 2824 . . . . . . . . . . 11 (𝑟 = 𝑅 → 1 = 1)
8 coeq2 5731 . . . . . . . . . . . 12 (𝑟 = 𝑅 → (𝑥𝑟) = (𝑥𝑅))
98mpoeq3dv 7235 . . . . . . . . . . 11 (𝑟 = 𝑅 → (𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑟)) = (𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)))
10 id 22 . . . . . . . . . . . 12 (𝑟 = 𝑅𝑟 = 𝑅)
1110mpteq2dv 5164 . . . . . . . . . . 11 (𝑟 = 𝑅 → (𝑧 ∈ V ↦ 𝑟) = (𝑧 ∈ V ↦ 𝑅))
127, 9, 11seqeq123d 13381 . . . . . . . . . 10 (𝑟 = 𝑅 → seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑟)), (𝑧 ∈ V ↦ 𝑟)) = seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)), (𝑧 ∈ V ↦ 𝑅)))
1312fveq1d 6674 . . . . . . . . 9 (𝑟 = 𝑅 → (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑟)), (𝑧 ∈ V ↦ 𝑟))‘(𝑁 + 1)) = (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)), (𝑧 ∈ V ↦ 𝑅))‘(𝑁 + 1)))
146, 13ifeq12d 4489 . . . . . . . 8 (𝑟 = 𝑅 → if((𝑁 + 1) = 0, ( I ↾ (dom 𝑟 ∪ ran 𝑟)), (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑟)), (𝑧 ∈ V ↦ 𝑟))‘(𝑁 + 1))) = if((𝑁 + 1) = 0, ( I ↾ (dom 𝑅 ∪ ran 𝑅)), (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)), (𝑧 ∈ V ↦ 𝑅))‘(𝑁 + 1))))
1514ad2antrl 726 . . . . . . 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 2827 . . . . . . . 8 (𝑛 = (𝑁 + 1) → (𝑛 = (𝑁 + 1) ↔ (𝑁 + 1) = (𝑁 + 1)))
1817anbi2d 630 . . . . . . 7 (𝑛 = (𝑁 + 1) → ((𝑟 = 𝑅𝑛 = (𝑁 + 1)) ↔ (𝑟 = 𝑅 ∧ (𝑁 + 1) = (𝑁 + 1))))
1918anbi2d 630 . . . . . 6 (𝑛 = (𝑁 + 1) → (((𝑅𝑉𝑁 ∈ ℕ) ∧ (𝑟 = 𝑅𝑛 = (𝑁 + 1))) ↔ ((𝑅𝑉𝑁 ∈ ℕ) ∧ (𝑟 = 𝑅 ∧ (𝑁 + 1) = (𝑁 + 1)))))
20 eqeq1 2827 . . . . . . . 8 (𝑛 = (𝑁 + 1) → (𝑛 = 0 ↔ (𝑁 + 1) = 0))
21 fveq2 6672 . . . . . . . 8 (𝑛 = (𝑁 + 1) → (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑟)), (𝑧 ∈ V ↦ 𝑟))‘𝑛) = (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑟)), (𝑧 ∈ V ↦ 𝑟))‘(𝑁 + 1)))
2220, 21ifbieq2d 4494 . . . . . . 7 (𝑛 = (𝑁 + 1) → if(𝑛 = 0, ( I ↾ (dom 𝑟 ∪ ran 𝑟)), (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑟)), (𝑧 ∈ V ↦ 𝑟))‘𝑛)) = if((𝑁 + 1) = 0, ( I ↾ (dom 𝑟 ∪ ran 𝑟)), (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑟)), (𝑧 ∈ V ↦ 𝑟))‘(𝑁 + 1))))
2322eqeq1d 2825 . . . . . 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 296 . . . . 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 3514 . . . . 5 (𝑅𝑉𝑅 ∈ V)
2726adantr 483 . . . 4 ((𝑅𝑉𝑁 ∈ ℕ) → 𝑅 ∈ V)
28 simpr 487 . . . . . 6 ((𝑅𝑉𝑁 ∈ ℕ) → 𝑁 ∈ ℕ)
2928peano2nnd 11657 . . . . 5 ((𝑅𝑉𝑁 ∈ ℕ) → (𝑁 + 1) ∈ ℕ)
3029nnnn0d 11958 . . . 4 ((𝑅𝑉𝑁 ∈ ℕ) → (𝑁 + 1) ∈ ℕ0)
31 dmexg 7615 . . . . . . . 8 (𝑅𝑉 → dom 𝑅 ∈ V)
32 rnexg 7616 . . . . . . . 8 (𝑅𝑉 → ran 𝑅 ∈ V)
33 unexg 7474 . . . . . . . 8 ((dom 𝑅 ∈ V ∧ ran 𝑅 ∈ V) → (dom 𝑅 ∪ ran 𝑅) ∈ V)
3431, 32, 33syl2anc 586 . . . . . . 7 (𝑅𝑉 → (dom 𝑅 ∪ ran 𝑅) ∈ V)
35 resiexg 7621 . . . . . . 7 ((dom 𝑅 ∪ ran 𝑅) ∈ V → ( I ↾ (dom 𝑅 ∪ ran 𝑅)) ∈ V)
3634, 35syl 17 . . . . . 6 (𝑅𝑉 → ( I ↾ (dom 𝑅 ∪ ran 𝑅)) ∈ V)
3736adantr 483 . . . . 5 ((𝑅𝑉𝑁 ∈ ℕ) → ( I ↾ (dom 𝑅 ∪ ran 𝑅)) ∈ V)
38 fvexd 6687 . . . . 5 ((𝑅𝑉𝑁 ∈ ℕ) → (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)), (𝑧 ∈ V ↦ 𝑅))‘(𝑁 + 1)) ∈ V)
3937, 38ifcld 4514 . . . 4 ((𝑅𝑉𝑁 ∈ ℕ) → if((𝑁 + 1) = 0, ( I ↾ (dom 𝑅 ∪ ran 𝑅)), (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)), (𝑧 ∈ V ↦ 𝑅))‘(𝑁 + 1))) ∈ V)
401, 25, 27, 30, 39ovmpod 7304 . . 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 11674 . . . . . 6 ((𝑁 + 1) ∈ ℕ → (𝑁 + 1) ≠ 0)
4241neneqd 3023 . . . . 5 ((𝑁 + 1) ∈ ℕ → ¬ (𝑁 + 1) = 0)
4329, 42syl 17 . . . 4 ((𝑅𝑉𝑁 ∈ ℕ) → ¬ (𝑁 + 1) = 0)
4443iffalsed 4480 . . 3 ((𝑅𝑉𝑁 ∈ ℕ) → if((𝑁 + 1) = 0, ( I ↾ (dom 𝑅 ∪ ran 𝑅)), (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)), (𝑧 ∈ V ↦ 𝑅))‘(𝑁 + 1))) = (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)), (𝑧 ∈ V ↦ 𝑅))‘(𝑁 + 1)))
45 elnnuz 12285 . . . . . . 7 (𝑁 ∈ ℕ ↔ 𝑁 ∈ (ℤ‘1))
4645biimpi 218 . . . . . 6 (𝑁 ∈ ℕ → 𝑁 ∈ (ℤ‘1))
4746adantl 484 . . . . 5 ((𝑅𝑉𝑁 ∈ ℕ) → 𝑁 ∈ (ℤ‘1))
48 seqp1 13387 . . . . 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 7191 . . . . . 6 (𝑁 + 1) ∈ V
51 simpl 485 . . . . . 6 ((𝑅𝑉𝑁 ∈ ℕ) → 𝑅𝑉)
52 eqidd 2824 . . . . . . 7 (𝑧 = (𝑁 + 1) → 𝑅 = 𝑅)
53 eqid 2823 . . . . . . 7 (𝑧 ∈ V ↦ 𝑅) = (𝑧 ∈ V ↦ 𝑅)
5452, 53fvmptg 6768 . . . . . 6 (((𝑁 + 1) ∈ V ∧ 𝑅𝑉) → ((𝑧 ∈ V ↦ 𝑅)‘(𝑁 + 1)) = 𝑅)
5550, 51, 54sylancr 589 . . . . 5 ((𝑅𝑉𝑁 ∈ ℕ) → ((𝑧 ∈ V ↦ 𝑅)‘(𝑁 + 1)) = 𝑅)
5655oveq2d 7174 . . . 4 ((𝑅𝑉𝑁 ∈ ℕ) → ((seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)), (𝑧 ∈ V ↦ 𝑅))‘𝑁)(𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅))((𝑧 ∈ V ↦ 𝑅)‘(𝑁 + 1))) = ((seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)), (𝑧 ∈ V ↦ 𝑅))‘𝑁)(𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅))𝑅))
57 nfcv 2979 . . . . . . 7 𝑎(𝑥𝑅)
58 nfcv 2979 . . . . . . 7 𝑏(𝑥𝑅)
59 nfcv 2979 . . . . . . 7 𝑥(𝑎𝑅)
60 nfcv 2979 . . . . . . 7 𝑦(𝑎𝑅)
61 simpl 485 . . . . . . . 8 ((𝑥 = 𝑎𝑦 = 𝑏) → 𝑥 = 𝑎)
6261coeq1d 5734 . . . . . . 7 ((𝑥 = 𝑎𝑦 = 𝑏) → (𝑥𝑅) = (𝑎𝑅))
6357, 58, 59, 60, 62cbvmpo 7250 . . . . . 6 (𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)) = (𝑎 ∈ V, 𝑏 ∈ V ↦ (𝑎𝑅))
64 oveq 7164 . . . . . 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 2824 . . . . . 6 ((𝑅𝑉𝑁 ∈ ℕ) → (𝑎 ∈ V, 𝑏 ∈ V ↦ (𝑎𝑅)) = (𝑎 ∈ V, 𝑏 ∈ V ↦ (𝑎𝑅)))
67 simprl 769 . . . . . . 7 (((𝑅𝑉𝑁 ∈ ℕ) ∧ (𝑎 = (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)), (𝑧 ∈ V ↦ 𝑅))‘𝑁) ∧ 𝑏 = 𝑅)) → 𝑎 = (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)), (𝑧 ∈ V ↦ 𝑅))‘𝑁))
6867coeq1d 5734 . . . . . 6 (((𝑅𝑉𝑁 ∈ ℕ) ∧ (𝑎 = (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)), (𝑧 ∈ V ↦ 𝑅))‘𝑁) ∧ 𝑏 = 𝑅)) → (𝑎𝑅) = ((seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)), (𝑧 ∈ V ↦ 𝑅))‘𝑁) ∘ 𝑅))
69 fvexd 6687 . . . . . 6 ((𝑅𝑉𝑁 ∈ ℕ) → (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)), (𝑧 ∈ V ↦ 𝑅))‘𝑁) ∈ V)
70 fvex 6685 . . . . . . 7 (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)), (𝑧 ∈ V ↦ 𝑅))‘𝑁) ∈ V
71 coexg 7636 . . . . . . 7 (((seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)), (𝑧 ∈ V ↦ 𝑅))‘𝑁) ∈ V ∧ 𝑅𝑉) → ((seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)), (𝑧 ∈ V ↦ 𝑅))‘𝑁) ∘ 𝑅) ∈ V)
7270, 51, 71sylancr 589 . . . . . 6 ((𝑅𝑉𝑁 ∈ ℕ) → ((seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)), (𝑧 ∈ V ↦ 𝑅))‘𝑁) ∘ 𝑅) ∈ V)
7366, 68, 69, 27, 72ovmpod 7304 . . . . 5 ((𝑅𝑉𝑁 ∈ ℕ) → ((seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)), (𝑧 ∈ V ↦ 𝑅))‘𝑁)(𝑎 ∈ V, 𝑏 ∈ V ↦ (𝑎𝑅))𝑅) = ((seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)), (𝑧 ∈ V ↦ 𝑅))‘𝑁) ∘ 𝑅))
74 simpr 487 . . . . . . . . . . 11 ((𝑟 = 𝑅𝑛 = 𝑁) → 𝑛 = 𝑁)
7574eqeq1d 2825 . . . . . . . . . 10 ((𝑟 = 𝑅𝑛 = 𝑁) → (𝑛 = 0 ↔ 𝑁 = 0))
766adantr 483 . . . . . . . . . 10 ((𝑟 = 𝑅𝑛 = 𝑁) → ( I ↾ (dom 𝑟 ∪ ran 𝑟)) = ( I ↾ (dom 𝑅 ∪ ran 𝑅)))
7712adantr 483 . . . . . . . . . . 11 ((𝑟 = 𝑅𝑛 = 𝑁) → seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑟)), (𝑧 ∈ V ↦ 𝑟)) = seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)), (𝑧 ∈ V ↦ 𝑅)))
7877, 74fveq12d 6679 . . . . . . . . . 10 ((𝑟 = 𝑅𝑛 = 𝑁) → (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑟)), (𝑧 ∈ V ↦ 𝑟))‘𝑛) = (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)), (𝑧 ∈ V ↦ 𝑅))‘𝑁))
7975, 76, 78ifbieq12d 4496 . . . . . . . . 9 ((𝑟 = 𝑅𝑛 = 𝑁) → if(𝑛 = 0, ( I ↾ (dom 𝑟 ∪ ran 𝑟)), (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑟)), (𝑧 ∈ V ↦ 𝑟))‘𝑛)) = if(𝑁 = 0, ( I ↾ (dom 𝑅 ∪ ran 𝑅)), (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)), (𝑧 ∈ V ↦ 𝑅))‘𝑁)))
8079adantl 484 . . . . . . . 8 (((𝑅𝑉𝑁 ∈ ℕ) ∧ (𝑟 = 𝑅𝑛 = 𝑁)) → if(𝑛 = 0, ( I ↾ (dom 𝑟 ∪ ran 𝑟)), (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑟)), (𝑧 ∈ V ↦ 𝑟))‘𝑛)) = if(𝑁 = 0, ( I ↾ (dom 𝑅 ∪ ran 𝑅)), (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)), (𝑧 ∈ V ↦ 𝑅))‘𝑁)))
8128nnnn0d 11958 . . . . . . . 8 ((𝑅𝑉𝑁 ∈ ℕ) → 𝑁 ∈ ℕ0)
8237, 69ifcld 4514 . . . . . . . 8 ((𝑅𝑉𝑁 ∈ ℕ) → if(𝑁 = 0, ( I ↾ (dom 𝑅 ∪ ran 𝑅)), (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)), (𝑧 ∈ V ↦ 𝑅))‘𝑁)) ∈ V)
831, 80, 27, 81, 82ovmpod 7304 . . . . . . 7 ((𝑅𝑉𝑁 ∈ ℕ) → (𝑅(𝑟 ∈ V, 𝑛 ∈ ℕ0 ↦ if(𝑛 = 0, ( I ↾ (dom 𝑟 ∪ ran 𝑟)), (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑟)), (𝑧 ∈ V ↦ 𝑟))‘𝑛)))𝑁) = if(𝑁 = 0, ( I ↾ (dom 𝑅 ∪ ran 𝑅)), (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)), (𝑧 ∈ V ↦ 𝑅))‘𝑁)))
84 nnne0 11674 . . . . . . . . . 10 (𝑁 ∈ ℕ → 𝑁 ≠ 0)
8584adantl 484 . . . . . . . . 9 ((𝑅𝑉𝑁 ∈ ℕ) → 𝑁 ≠ 0)
8685neneqd 3023 . . . . . . . 8 ((𝑅𝑉𝑁 ∈ ℕ) → ¬ 𝑁 = 0)
8786iffalsed 4480 . . . . . . 7 ((𝑅𝑉𝑁 ∈ ℕ) → if(𝑁 = 0, ( I ↾ (dom 𝑅 ∪ ran 𝑅)), (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)), (𝑧 ∈ V ↦ 𝑅))‘𝑁)) = (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)), (𝑧 ∈ V ↦ 𝑅))‘𝑁))
8883, 87eqtr2d 2859 . . . . . 6 ((𝑅𝑉𝑁 ∈ ℕ) → (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)), (𝑧 ∈ V ↦ 𝑅))‘𝑁) = (𝑅(𝑟 ∈ V, 𝑛 ∈ ℕ0 ↦ if(𝑛 = 0, ( I ↾ (dom 𝑟 ∪ ran 𝑟)), (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑟)), (𝑧 ∈ V ↦ 𝑟))‘𝑛)))𝑁))
8988coeq1d 5734 . . . . 5 ((𝑅𝑉𝑁 ∈ ℕ) → ((seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)), (𝑧 ∈ V ↦ 𝑅))‘𝑁) ∘ 𝑅) = ((𝑅(𝑟 ∈ V, 𝑛 ∈ ℕ0 ↦ if(𝑛 = 0, ( I ↾ (dom 𝑟 ∪ ran 𝑟)), (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑟)), (𝑧 ∈ V ↦ 𝑟))‘𝑛)))𝑁) ∘ 𝑅))
9065, 73, 893eqtrd 2862 . . . 4 ((𝑅𝑉𝑁 ∈ ℕ) → ((seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)), (𝑧 ∈ V ↦ 𝑅))‘𝑁)(𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅))𝑅) = ((𝑅(𝑟 ∈ V, 𝑛 ∈ ℕ0 ↦ if(𝑛 = 0, ( I ↾ (dom 𝑟 ∪ ran 𝑟)), (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑟)), (𝑧 ∈ V ↦ 𝑟))‘𝑛)))𝑁) ∘ 𝑅))
9149, 56, 903eqtrd 2862 . . 3 ((𝑅𝑉𝑁 ∈ ℕ) → (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑅)), (𝑧 ∈ V ↦ 𝑅))‘(𝑁 + 1)) = ((𝑅(𝑟 ∈ V, 𝑛 ∈ ℕ0 ↦ if(𝑛 = 0, ( I ↾ (dom 𝑟 ∪ ran 𝑟)), (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑟)), (𝑧 ∈ V ↦ 𝑟))‘𝑛)))𝑁) ∘ 𝑅))
9240, 44, 913eqtrd 2862 . 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 14382 . . 3 𝑟 = (𝑟 ∈ V, 𝑛 ∈ ℕ0 ↦ if(𝑛 = 0, ( I ↾ (dom 𝑟 ∪ ran 𝑟)), (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑟)), (𝑧 ∈ V ↦ 𝑟))‘𝑛)))
94 oveq 7164 . . . . 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 7164 . . . . . 6 (↑𝑟 = (𝑟 ∈ V, 𝑛 ∈ ℕ0 ↦ if(𝑛 = 0, ( I ↾ (dom 𝑟 ∪ ran 𝑟)), (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑟)), (𝑧 ∈ V ↦ 𝑟))‘𝑛))) → (𝑅𝑟𝑁) = (𝑅(𝑟 ∈ V, 𝑛 ∈ ℕ0 ↦ if(𝑛 = 0, ( I ↾ (dom 𝑟 ∪ ran 𝑟)), (seq1((𝑥 ∈ V, 𝑦 ∈ V ↦ (𝑥𝑟)), (𝑧 ∈ V ↦ 𝑟))‘𝑛)))𝑁))
9695coeq1d 5734 . . . . 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 2839 . . . 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 343 . . 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 233 1 ((𝑅𝑉𝑁 ∈ ℕ) → (𝑅𝑟(𝑁 + 1)) = ((𝑅𝑟𝑁) ∘ 𝑅))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 208  wa 398   = wceq 1537  wcel 2114  wne 3018  Vcvv 3496  cun 3936  ifcif 4469  cmpt 5148   I cid 5461  dom cdm 5557  ran crn 5558  cres 5559  ccom 5561  cfv 6357  (class class class)co 7158  cmpo 7160  0cc0 10539  1c1 10540   + caddc 10542  cn 11640  0cn0 11900  cuz 12246  seqcseq 13372  𝑟crelexp 14381
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1796  ax-4 1810  ax-5 1911  ax-6 1970  ax-7 2015  ax-8 2116  ax-9 2124  ax-10 2145  ax-11 2161  ax-12 2177  ax-ext 2795  ax-sep 5205  ax-nul 5212  ax-pow 5268  ax-pr 5332  ax-un 7463  ax-cnex 10595  ax-resscn 10596  ax-1cn 10597  ax-icn 10598  ax-addcl 10599  ax-addrcl 10600  ax-mulcl 10601  ax-mulrcl 10602  ax-mulcom 10603  ax-addass 10604  ax-mulass 10605  ax-distr 10606  ax-i2m1 10607  ax-1ne0 10608  ax-1rid 10609  ax-rnegex 10610  ax-rrecex 10611  ax-cnre 10612  ax-pre-lttri 10613  ax-pre-lttrn 10614  ax-pre-ltadd 10615  ax-pre-mulgt0 10616
This theorem depends on definitions:  df-bi 209  df-an 399  df-or 844  df-3or 1084  df-3an 1085  df-tru 1540  df-ex 1781  df-nf 1785  df-sb 2070  df-mo 2622  df-eu 2654  df-clab 2802  df-cleq 2816  df-clel 2895  df-nfc 2965  df-ne 3019  df-nel 3126  df-ral 3145  df-rex 3146  df-reu 3147  df-rab 3149  df-v 3498  df-sbc 3775  df-csb 3886  df-dif 3941  df-un 3943  df-in 3945  df-ss 3954  df-pss 3956  df-nul 4294  df-if 4470  df-pw 4543  df-sn 4570  df-pr 4572  df-tp 4574  df-op 4576  df-uni 4841  df-iun 4923  df-br 5069  df-opab 5131  df-mpt 5149  df-tr 5175  df-id 5462  df-eprel 5467  df-po 5476  df-so 5477  df-fr 5516  df-we 5518  df-xp 5563  df-rel 5564  df-cnv 5565  df-co 5566  df-dm 5567  df-rn 5568  df-res 5569  df-ima 5570  df-pred 6150  df-ord 6196  df-on 6197  df-lim 6198  df-suc 6199  df-iota 6316  df-fun 6359  df-fn 6360  df-f 6361  df-f1 6362  df-fo 6363  df-f1o 6364  df-fv 6365  df-riota 7116  df-ov 7161  df-oprab 7162  df-mpo 7163  df-om 7583  df-2nd 7692  df-wrecs 7949  df-recs 8010  df-rdg 8048  df-er 8291  df-en 8512  df-dom 8513  df-sdom 8514  df-pnf 10679  df-mnf 10680  df-xr 10681  df-ltxr 10682  df-le 10683  df-sub 10874  df-neg 10875  df-nn 11641  df-n0 11901  df-z 11985  df-uz 12247  df-seq 13373  df-relexp 14382
This theorem is referenced by:  relexpsucr  14390  relexpsucnnl  14393  relexpcnv  14396  relexprelg  14399  relexpnndm  14402  relexp2  40029  relexpxpnnidm  40055  relexpss1d  40057  relexpmulnn  40061  trclrelexplem  40063  relexp0a  40068  trclfvcom  40075  cotrcltrcl  40077  trclfvdecomr  40080  cotrclrcl  40094
  Copyright terms: Public domain W3C validator