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

Theorem relexpaddg 14692
Description: Relation composition becomes addition under exponentiation except when the exponents total to one and the class isn't a relation. (Contributed by RP, 30-May-2020.)
Assertion
Ref Expression
relexpaddg ((𝑁 ∈ ℕ0 ∧ (𝑀 ∈ ℕ0𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀)))

Proof of Theorem relexpaddg
StepHypRef Expression
1 elnn0 12165 . . 3 (𝑁 ∈ ℕ0 ↔ (𝑁 ∈ ℕ ∨ 𝑁 = 0))
2 elnn0 12165 . . . . . . 7 (𝑀 ∈ ℕ0 ↔ (𝑀 ∈ ℕ ∨ 𝑀 = 0))
3 relexpaddnn 14690 . . . . . . . . . . 11 ((𝑁 ∈ ℕ ∧ 𝑀 ∈ ℕ ∧ 𝑅𝑉) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀)))
43a1d 25 . . . . . . . . . 10 ((𝑁 ∈ ℕ ∧ 𝑀 ∈ ℕ ∧ 𝑅𝑉) → (((𝑁 + 𝑀) = 1 → Rel 𝑅) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀))))
543exp 1117 . . . . . . . . 9 (𝑁 ∈ ℕ → (𝑀 ∈ ℕ → (𝑅𝑉 → (((𝑁 + 𝑀) = 1 → Rel 𝑅) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀))))))
65com12 32 . . . . . . . 8 (𝑀 ∈ ℕ → (𝑁 ∈ ℕ → (𝑅𝑉 → (((𝑁 + 𝑀) = 1 → Rel 𝑅) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀))))))
7 elnn1uz2 12594 . . . . . . . . . 10 (𝑁 ∈ ℕ ↔ (𝑁 = 1 ∨ 𝑁 ∈ (ℤ‘2)))
8 coires1 6157 . . . . . . . . . . . . . 14 ((𝑅𝑟𝑁) ∘ ( I ↾ (dom 𝑅 ∪ ran 𝑅))) = ((𝑅𝑟𝑁) ↾ (dom 𝑅 ∪ ran 𝑅))
9 simpll 763 . . . . . . . . . . . . . . . . . . 19 (((𝑁 = 1 ∧ 𝑀 = 0) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → 𝑁 = 1)
10 simplr 765 . . . . . . . . . . . . . . . . . . 19 (((𝑁 = 1 ∧ 𝑀 = 0) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → 𝑀 = 0)
119, 10oveq12d 7273 . . . . . . . . . . . . . . . . . 18 (((𝑁 = 1 ∧ 𝑀 = 0) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → (𝑁 + 𝑀) = (1 + 0))
12 1p0e1 12027 . . . . . . . . . . . . . . . . . 18 (1 + 0) = 1
1311, 12eqtrdi 2795 . . . . . . . . . . . . . . . . 17 (((𝑁 = 1 ∧ 𝑀 = 0) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → (𝑁 + 𝑀) = 1)
14 simprr 769 . . . . . . . . . . . . . . . . 17 (((𝑁 = 1 ∧ 𝑀 = 0) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → ((𝑁 + 𝑀) = 1 → Rel 𝑅))
1513, 14mpd 15 . . . . . . . . . . . . . . . 16 (((𝑁 = 1 ∧ 𝑀 = 0) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → Rel 𝑅)
169oveq2d 7271 . . . . . . . . . . . . . . . . . 18 (((𝑁 = 1 ∧ 𝑀 = 0) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → (𝑅𝑟𝑁) = (𝑅𝑟1))
17 simprl 767 . . . . . . . . . . . . . . . . . . 19 (((𝑁 = 1 ∧ 𝑀 = 0) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → 𝑅𝑉)
18 relexp1g 14665 . . . . . . . . . . . . . . . . . . 19 (𝑅𝑉 → (𝑅𝑟1) = 𝑅)
1917, 18syl 17 . . . . . . . . . . . . . . . . . 18 (((𝑁 = 1 ∧ 𝑀 = 0) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → (𝑅𝑟1) = 𝑅)
2016, 19eqtrd 2778 . . . . . . . . . . . . . . . . 17 (((𝑁 = 1 ∧ 𝑀 = 0) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → (𝑅𝑟𝑁) = 𝑅)
2120releqd 5679 . . . . . . . . . . . . . . . 16 (((𝑁 = 1 ∧ 𝑀 = 0) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → (Rel (𝑅𝑟𝑁) ↔ Rel 𝑅))
2215, 21mpbird 256 . . . . . . . . . . . . . . 15 (((𝑁 = 1 ∧ 𝑀 = 0) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → Rel (𝑅𝑟𝑁))
23 1nn 11914 . . . . . . . . . . . . . . . . . 18 1 ∈ ℕ
249, 23eqeltrdi 2847 . . . . . . . . . . . . . . . . 17 (((𝑁 = 1 ∧ 𝑀 = 0) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → 𝑁 ∈ ℕ)
25 relexpnndm 14680 . . . . . . . . . . . . . . . . 17 ((𝑁 ∈ ℕ ∧ 𝑅𝑉) → dom (𝑅𝑟𝑁) ⊆ dom 𝑅)
2624, 17, 25syl2anc 583 . . . . . . . . . . . . . . . 16 (((𝑁 = 1 ∧ 𝑀 = 0) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → dom (𝑅𝑟𝑁) ⊆ dom 𝑅)
27 ssun1 4102 . . . . . . . . . . . . . . . 16 dom 𝑅 ⊆ (dom 𝑅 ∪ ran 𝑅)
2826, 27sstrdi 3929 . . . . . . . . . . . . . . 15 (((𝑁 = 1 ∧ 𝑀 = 0) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → dom (𝑅𝑟𝑁) ⊆ (dom 𝑅 ∪ ran 𝑅))
29 relssres 5921 . . . . . . . . . . . . . . 15 ((Rel (𝑅𝑟𝑁) ∧ dom (𝑅𝑟𝑁) ⊆ (dom 𝑅 ∪ ran 𝑅)) → ((𝑅𝑟𝑁) ↾ (dom 𝑅 ∪ ran 𝑅)) = (𝑅𝑟𝑁))
3022, 28, 29syl2anc 583 . . . . . . . . . . . . . 14 (((𝑁 = 1 ∧ 𝑀 = 0) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → ((𝑅𝑟𝑁) ↾ (dom 𝑅 ∪ ran 𝑅)) = (𝑅𝑟𝑁))
318, 30eqtrid 2790 . . . . . . . . . . . . 13 (((𝑁 = 1 ∧ 𝑀 = 0) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → ((𝑅𝑟𝑁) ∘ ( I ↾ (dom 𝑅 ∪ ran 𝑅))) = (𝑅𝑟𝑁))
3210oveq2d 7271 . . . . . . . . . . . . . . 15 (((𝑁 = 1 ∧ 𝑀 = 0) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → (𝑅𝑟𝑀) = (𝑅𝑟0))
33 relexp0g 14661 . . . . . . . . . . . . . . . 16 (𝑅𝑉 → (𝑅𝑟0) = ( I ↾ (dom 𝑅 ∪ ran 𝑅)))
3417, 33syl 17 . . . . . . . . . . . . . . 15 (((𝑁 = 1 ∧ 𝑀 = 0) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → (𝑅𝑟0) = ( I ↾ (dom 𝑅 ∪ ran 𝑅)))
3532, 34eqtrd 2778 . . . . . . . . . . . . . 14 (((𝑁 = 1 ∧ 𝑀 = 0) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → (𝑅𝑟𝑀) = ( I ↾ (dom 𝑅 ∪ ran 𝑅)))
3635coeq2d 5760 . . . . . . . . . . . . 13 (((𝑁 = 1 ∧ 𝑀 = 0) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = ((𝑅𝑟𝑁) ∘ ( I ↾ (dom 𝑅 ∪ ran 𝑅))))
3710oveq2d 7271 . . . . . . . . . . . . . . 15 (((𝑁 = 1 ∧ 𝑀 = 0) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → (𝑁 + 𝑀) = (𝑁 + 0))
38 ax-1cn 10860 . . . . . . . . . . . . . . . . 17 1 ∈ ℂ
399, 38eqeltrdi 2847 . . . . . . . . . . . . . . . 16 (((𝑁 = 1 ∧ 𝑀 = 0) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → 𝑁 ∈ ℂ)
4039addid1d 11105 . . . . . . . . . . . . . . 15 (((𝑁 = 1 ∧ 𝑀 = 0) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → (𝑁 + 0) = 𝑁)
4137, 40eqtrd 2778 . . . . . . . . . . . . . 14 (((𝑁 = 1 ∧ 𝑀 = 0) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → (𝑁 + 𝑀) = 𝑁)
4241oveq2d 7271 . . . . . . . . . . . . 13 (((𝑁 = 1 ∧ 𝑀 = 0) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → (𝑅𝑟(𝑁 + 𝑀)) = (𝑅𝑟𝑁))
4331, 36, 423eqtr4d 2788 . . . . . . . . . . . 12 (((𝑁 = 1 ∧ 𝑀 = 0) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀)))
4443exp43 436 . . . . . . . . . . 11 (𝑁 = 1 → (𝑀 = 0 → (𝑅𝑉 → (((𝑁 + 𝑀) = 1 → Rel 𝑅) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀))))))
45 simp1 1134 . . . . . . . . . . . . . . . . 17 ((𝑁 ∈ (ℤ‘2) ∧ 𝑀 = 0 ∧ 𝑅𝑉) → 𝑁 ∈ (ℤ‘2))
46 simp3 1136 . . . . . . . . . . . . . . . . 17 ((𝑁 ∈ (ℤ‘2) ∧ 𝑀 = 0 ∧ 𝑅𝑉) → 𝑅𝑉)
47 relexpuzrel 14691 . . . . . . . . . . . . . . . . 17 ((𝑁 ∈ (ℤ‘2) ∧ 𝑅𝑉) → Rel (𝑅𝑟𝑁))
4845, 46, 47syl2anc 583 . . . . . . . . . . . . . . . 16 ((𝑁 ∈ (ℤ‘2) ∧ 𝑀 = 0 ∧ 𝑅𝑉) → Rel (𝑅𝑟𝑁))
49 eluz2nn 12553 . . . . . . . . . . . . . . . . . . 19 (𝑁 ∈ (ℤ‘2) → 𝑁 ∈ ℕ)
5045, 49syl 17 . . . . . . . . . . . . . . . . . 18 ((𝑁 ∈ (ℤ‘2) ∧ 𝑀 = 0 ∧ 𝑅𝑉) → 𝑁 ∈ ℕ)
5150, 46, 25syl2anc 583 . . . . . . . . . . . . . . . . 17 ((𝑁 ∈ (ℤ‘2) ∧ 𝑀 = 0 ∧ 𝑅𝑉) → dom (𝑅𝑟𝑁) ⊆ dom 𝑅)
5251, 27sstrdi 3929 . . . . . . . . . . . . . . . 16 ((𝑁 ∈ (ℤ‘2) ∧ 𝑀 = 0 ∧ 𝑅𝑉) → dom (𝑅𝑟𝑁) ⊆ (dom 𝑅 ∪ ran 𝑅))
5348, 52, 29syl2anc 583 . . . . . . . . . . . . . . 15 ((𝑁 ∈ (ℤ‘2) ∧ 𝑀 = 0 ∧ 𝑅𝑉) → ((𝑅𝑟𝑁) ↾ (dom 𝑅 ∪ ran 𝑅)) = (𝑅𝑟𝑁))
548, 53eqtrid 2790 . . . . . . . . . . . . . 14 ((𝑁 ∈ (ℤ‘2) ∧ 𝑀 = 0 ∧ 𝑅𝑉) → ((𝑅𝑟𝑁) ∘ ( I ↾ (dom 𝑅 ∪ ran 𝑅))) = (𝑅𝑟𝑁))
55 simp2 1135 . . . . . . . . . . . . . . . . 17 ((𝑁 ∈ (ℤ‘2) ∧ 𝑀 = 0 ∧ 𝑅𝑉) → 𝑀 = 0)
5655oveq2d 7271 . . . . . . . . . . . . . . . 16 ((𝑁 ∈ (ℤ‘2) ∧ 𝑀 = 0 ∧ 𝑅𝑉) → (𝑅𝑟𝑀) = (𝑅𝑟0))
5746, 33syl 17 . . . . . . . . . . . . . . . 16 ((𝑁 ∈ (ℤ‘2) ∧ 𝑀 = 0 ∧ 𝑅𝑉) → (𝑅𝑟0) = ( I ↾ (dom 𝑅 ∪ ran 𝑅)))
5856, 57eqtrd 2778 . . . . . . . . . . . . . . 15 ((𝑁 ∈ (ℤ‘2) ∧ 𝑀 = 0 ∧ 𝑅𝑉) → (𝑅𝑟𝑀) = ( I ↾ (dom 𝑅 ∪ ran 𝑅)))
5958coeq2d 5760 . . . . . . . . . . . . . 14 ((𝑁 ∈ (ℤ‘2) ∧ 𝑀 = 0 ∧ 𝑅𝑉) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = ((𝑅𝑟𝑁) ∘ ( I ↾ (dom 𝑅 ∪ ran 𝑅))))
6055oveq2d 7271 . . . . . . . . . . . . . . . 16 ((𝑁 ∈ (ℤ‘2) ∧ 𝑀 = 0 ∧ 𝑅𝑉) → (𝑁 + 𝑀) = (𝑁 + 0))
61 eluzelcn 12523 . . . . . . . . . . . . . . . . . 18 (𝑁 ∈ (ℤ‘2) → 𝑁 ∈ ℂ)
6245, 61syl 17 . . . . . . . . . . . . . . . . 17 ((𝑁 ∈ (ℤ‘2) ∧ 𝑀 = 0 ∧ 𝑅𝑉) → 𝑁 ∈ ℂ)
6362addid1d 11105 . . . . . . . . . . . . . . . 16 ((𝑁 ∈ (ℤ‘2) ∧ 𝑀 = 0 ∧ 𝑅𝑉) → (𝑁 + 0) = 𝑁)
6460, 63eqtrd 2778 . . . . . . . . . . . . . . 15 ((𝑁 ∈ (ℤ‘2) ∧ 𝑀 = 0 ∧ 𝑅𝑉) → (𝑁 + 𝑀) = 𝑁)
6564oveq2d 7271 . . . . . . . . . . . . . 14 ((𝑁 ∈ (ℤ‘2) ∧ 𝑀 = 0 ∧ 𝑅𝑉) → (𝑅𝑟(𝑁 + 𝑀)) = (𝑅𝑟𝑁))
6654, 59, 653eqtr4d 2788 . . . . . . . . . . . . 13 ((𝑁 ∈ (ℤ‘2) ∧ 𝑀 = 0 ∧ 𝑅𝑉) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀)))
6766a1d 25 . . . . . . . . . . . 12 ((𝑁 ∈ (ℤ‘2) ∧ 𝑀 = 0 ∧ 𝑅𝑉) → (((𝑁 + 𝑀) = 1 → Rel 𝑅) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀))))
68673exp 1117 . . . . . . . . . . 11 (𝑁 ∈ (ℤ‘2) → (𝑀 = 0 → (𝑅𝑉 → (((𝑁 + 𝑀) = 1 → Rel 𝑅) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀))))))
6944, 68jaoi 853 . . . . . . . . . 10 ((𝑁 = 1 ∨ 𝑁 ∈ (ℤ‘2)) → (𝑀 = 0 → (𝑅𝑉 → (((𝑁 + 𝑀) = 1 → Rel 𝑅) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀))))))
707, 69sylbi 216 . . . . . . . . 9 (𝑁 ∈ ℕ → (𝑀 = 0 → (𝑅𝑉 → (((𝑁 + 𝑀) = 1 → Rel 𝑅) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀))))))
7170com12 32 . . . . . . . 8 (𝑀 = 0 → (𝑁 ∈ ℕ → (𝑅𝑉 → (((𝑁 + 𝑀) = 1 → Rel 𝑅) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀))))))
726, 71jaoi 853 . . . . . . 7 ((𝑀 ∈ ℕ ∨ 𝑀 = 0) → (𝑁 ∈ ℕ → (𝑅𝑉 → (((𝑁 + 𝑀) = 1 → Rel 𝑅) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀))))))
732, 72sylbi 216 . . . . . 6 (𝑀 ∈ ℕ0 → (𝑁 ∈ ℕ → (𝑅𝑉 → (((𝑁 + 𝑀) = 1 → Rel 𝑅) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀))))))
7473com12 32 . . . . 5 (𝑁 ∈ ℕ → (𝑀 ∈ ℕ0 → (𝑅𝑉 → (((𝑁 + 𝑀) = 1 → Rel 𝑅) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀))))))
75743impd 1346 . . . 4 (𝑁 ∈ ℕ → ((𝑀 ∈ ℕ0𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅)) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀))))
76 elnn1uz2 12594 . . . . . . . . 9 (𝑀 ∈ ℕ ↔ (𝑀 = 1 ∨ 𝑀 ∈ (ℤ‘2)))
77 coires1 6157 . . . . . . . . . . . . . . 15 (𝑅 ∘ ( I ↾ (dom 𝑅 ∪ ran 𝑅))) = (𝑅 ↾ (dom 𝑅 ∪ ran 𝑅))
78 relcnv 6001 . . . . . . . . . . . . . . . . 17 Rel 𝑅
79 ssun1 4102 . . . . . . . . . . . . . . . . 17 dom 𝑅 ⊆ (dom 𝑅 ∪ ran 𝑅)
8078, 79pm3.2i 470 . . . . . . . . . . . . . . . 16 (Rel 𝑅 ∧ dom 𝑅 ⊆ (dom 𝑅 ∪ ran 𝑅))
81 relssres 5921 . . . . . . . . . . . . . . . 16 ((Rel 𝑅 ∧ dom 𝑅 ⊆ (dom 𝑅 ∪ ran 𝑅)) → (𝑅 ↾ (dom 𝑅 ∪ ran 𝑅)) = 𝑅)
8280, 81mp1i 13 . . . . . . . . . . . . . . 15 (((𝑁 = 0 ∧ 𝑀 = 1) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → (𝑅 ↾ (dom 𝑅 ∪ ran 𝑅)) = 𝑅)
8377, 82eqtrid 2790 . . . . . . . . . . . . . 14 (((𝑁 = 0 ∧ 𝑀 = 1) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → (𝑅 ∘ ( I ↾ (dom 𝑅 ∪ ran 𝑅))) = 𝑅)
84 cnvco 5783 . . . . . . . . . . . . . . 15 ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = ((𝑅𝑟𝑀) ∘ (𝑅𝑟𝑁))
85 simplr 765 . . . . . . . . . . . . . . . . . . 19 (((𝑁 = 0 ∧ 𝑀 = 1) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → 𝑀 = 1)
86 1nn0 12179 . . . . . . . . . . . . . . . . . . 19 1 ∈ ℕ0
8785, 86eqeltrdi 2847 . . . . . . . . . . . . . . . . . 18 (((𝑁 = 0 ∧ 𝑀 = 1) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → 𝑀 ∈ ℕ0)
88 simprl 767 . . . . . . . . . . . . . . . . . 18 (((𝑁 = 0 ∧ 𝑀 = 1) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → 𝑅𝑉)
89 relexpcnv 14674 . . . . . . . . . . . . . . . . . 18 ((𝑀 ∈ ℕ0𝑅𝑉) → (𝑅𝑟𝑀) = (𝑅𝑟𝑀))
9087, 88, 89syl2anc 583 . . . . . . . . . . . . . . . . 17 (((𝑁 = 0 ∧ 𝑀 = 1) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → (𝑅𝑟𝑀) = (𝑅𝑟𝑀))
9185oveq2d 7271 . . . . . . . . . . . . . . . . 17 (((𝑁 = 0 ∧ 𝑀 = 1) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → (𝑅𝑟𝑀) = (𝑅𝑟1))
92 cnvexg 7745 . . . . . . . . . . . . . . . . . . 19 (𝑅𝑉𝑅 ∈ V)
9388, 92syl 17 . . . . . . . . . . . . . . . . . 18 (((𝑁 = 0 ∧ 𝑀 = 1) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → 𝑅 ∈ V)
94 relexp1g 14665 . . . . . . . . . . . . . . . . . 18 (𝑅 ∈ V → (𝑅𝑟1) = 𝑅)
9593, 94syl 17 . . . . . . . . . . . . . . . . 17 (((𝑁 = 0 ∧ 𝑀 = 1) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → (𝑅𝑟1) = 𝑅)
9690, 91, 953eqtrd 2782 . . . . . . . . . . . . . . . 16 (((𝑁 = 0 ∧ 𝑀 = 1) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → (𝑅𝑟𝑀) = 𝑅)
97 simpll 763 . . . . . . . . . . . . . . . . . . 19 (((𝑁 = 0 ∧ 𝑀 = 1) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → 𝑁 = 0)
98 0nn0 12178 . . . . . . . . . . . . . . . . . . 19 0 ∈ ℕ0
9997, 98eqeltrdi 2847 . . . . . . . . . . . . . . . . . 18 (((𝑁 = 0 ∧ 𝑀 = 1) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → 𝑁 ∈ ℕ0)
100 relexpcnv 14674 . . . . . . . . . . . . . . . . . 18 ((𝑁 ∈ ℕ0𝑅𝑉) → (𝑅𝑟𝑁) = (𝑅𝑟𝑁))
10199, 88, 100syl2anc 583 . . . . . . . . . . . . . . . . 17 (((𝑁 = 0 ∧ 𝑀 = 1) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → (𝑅𝑟𝑁) = (𝑅𝑟𝑁))
10297oveq2d 7271 . . . . . . . . . . . . . . . . 17 (((𝑁 = 0 ∧ 𝑀 = 1) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → (𝑅𝑟𝑁) = (𝑅𝑟0))
103 relexp0g 14661 . . . . . . . . . . . . . . . . . 18 (𝑅 ∈ V → (𝑅𝑟0) = ( I ↾ (dom 𝑅 ∪ ran 𝑅)))
10493, 103syl 17 . . . . . . . . . . . . . . . . 17 (((𝑁 = 0 ∧ 𝑀 = 1) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → (𝑅𝑟0) = ( I ↾ (dom 𝑅 ∪ ran 𝑅)))
105101, 102, 1043eqtrd 2782 . . . . . . . . . . . . . . . 16 (((𝑁 = 0 ∧ 𝑀 = 1) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → (𝑅𝑟𝑁) = ( I ↾ (dom 𝑅 ∪ ran 𝑅)))
10696, 105coeq12d 5762 . . . . . . . . . . . . . . 15 (((𝑁 = 0 ∧ 𝑀 = 1) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → ((𝑅𝑟𝑀) ∘ (𝑅𝑟𝑁)) = (𝑅 ∘ ( I ↾ (dom 𝑅 ∪ ran 𝑅))))
10784, 106eqtrid 2790 . . . . . . . . . . . . . 14 (((𝑁 = 0 ∧ 𝑀 = 1) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅 ∘ ( I ↾ (dom 𝑅 ∪ ran 𝑅))))
10899, 87nn0addcld 12227 . . . . . . . . . . . . . . . 16 (((𝑁 = 0 ∧ 𝑀 = 1) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → (𝑁 + 𝑀) ∈ ℕ0)
109 relexpcnv 14674 . . . . . . . . . . . . . . . 16 (((𝑁 + 𝑀) ∈ ℕ0𝑅𝑉) → (𝑅𝑟(𝑁 + 𝑀)) = (𝑅𝑟(𝑁 + 𝑀)))
110108, 88, 109syl2anc 583 . . . . . . . . . . . . . . 15 (((𝑁 = 0 ∧ 𝑀 = 1) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → (𝑅𝑟(𝑁 + 𝑀)) = (𝑅𝑟(𝑁 + 𝑀)))
11197, 85oveq12d 7273 . . . . . . . . . . . . . . . . 17 (((𝑁 = 0 ∧ 𝑀 = 1) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → (𝑁 + 𝑀) = (0 + 1))
112 0p1e1 12025 . . . . . . . . . . . . . . . . 17 (0 + 1) = 1
113111, 112eqtrdi 2795 . . . . . . . . . . . . . . . 16 (((𝑁 = 0 ∧ 𝑀 = 1) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → (𝑁 + 𝑀) = 1)
114113oveq2d 7271 . . . . . . . . . . . . . . 15 (((𝑁 = 0 ∧ 𝑀 = 1) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → (𝑅𝑟(𝑁 + 𝑀)) = (𝑅𝑟1))
115110, 114, 953eqtrd 2782 . . . . . . . . . . . . . 14 (((𝑁 = 0 ∧ 𝑀 = 1) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → (𝑅𝑟(𝑁 + 𝑀)) = 𝑅)
11683, 107, 1153eqtr4d 2788 . . . . . . . . . . . . 13 (((𝑁 = 0 ∧ 𝑀 = 1) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀)))
117 relco 6137 . . . . . . . . . . . . . 14 Rel ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀))
118 simprr 769 . . . . . . . . . . . . . . . 16 (((𝑁 = 0 ∧ 𝑀 = 1) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → ((𝑁 + 𝑀) = 1 → Rel 𝑅))
119113, 118mpd 15 . . . . . . . . . . . . . . 15 (((𝑁 = 0 ∧ 𝑀 = 1) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → Rel 𝑅)
120113oveq2d 7271 . . . . . . . . . . . . . . . . 17 (((𝑁 = 0 ∧ 𝑀 = 1) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → (𝑅𝑟(𝑁 + 𝑀)) = (𝑅𝑟1))
12188, 18syl 17 . . . . . . . . . . . . . . . . 17 (((𝑁 = 0 ∧ 𝑀 = 1) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → (𝑅𝑟1) = 𝑅)
122120, 121eqtrd 2778 . . . . . . . . . . . . . . . 16 (((𝑁 = 0 ∧ 𝑀 = 1) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → (𝑅𝑟(𝑁 + 𝑀)) = 𝑅)
123122releqd 5679 . . . . . . . . . . . . . . 15 (((𝑁 = 0 ∧ 𝑀 = 1) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → (Rel (𝑅𝑟(𝑁 + 𝑀)) ↔ Rel 𝑅))
124119, 123mpbird 256 . . . . . . . . . . . . . 14 (((𝑁 = 0 ∧ 𝑀 = 1) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → Rel (𝑅𝑟(𝑁 + 𝑀)))
125 cnveqb 6088 . . . . . . . . . . . . . 14 ((Rel ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) ∧ Rel (𝑅𝑟(𝑁 + 𝑀))) → (((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀)) ↔ ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀))))
126117, 124, 125sylancr 586 . . . . . . . . . . . . 13 (((𝑁 = 0 ∧ 𝑀 = 1) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → (((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀)) ↔ ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀))))
127116, 126mpbird 256 . . . . . . . . . . . 12 (((𝑁 = 0 ∧ 𝑀 = 1) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀)))
128127exp43 436 . . . . . . . . . . 11 (𝑁 = 0 → (𝑀 = 1 → (𝑅𝑉 → (((𝑁 + 𝑀) = 1 → Rel 𝑅) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀))))))
129128com12 32 . . . . . . . . . 10 (𝑀 = 1 → (𝑁 = 0 → (𝑅𝑉 → (((𝑁 + 𝑀) = 1 → Rel 𝑅) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀))))))
130 coires1 6157 . . . . . . . . . . . . . . . . 17 ((𝑅𝑟𝑀) ∘ ( I ↾ (dom 𝑅 ∪ ran 𝑅))) = ((𝑅𝑟𝑀) ↾ (dom 𝑅 ∪ ran 𝑅))
131 simp2 1135 . . . . . . . . . . . . . . . . . . 19 ((𝑁 = 0 ∧ 𝑀 ∈ (ℤ‘2) ∧ 𝑅𝑉) → 𝑀 ∈ (ℤ‘2))
132 simp3 1136 . . . . . . . . . . . . . . . . . . . 20 ((𝑁 = 0 ∧ 𝑀 ∈ (ℤ‘2) ∧ 𝑅𝑉) → 𝑅𝑉)
133132, 92syl 17 . . . . . . . . . . . . . . . . . . 19 ((𝑁 = 0 ∧ 𝑀 ∈ (ℤ‘2) ∧ 𝑅𝑉) → 𝑅 ∈ V)
134 relexpuzrel 14691 . . . . . . . . . . . . . . . . . . 19 ((𝑀 ∈ (ℤ‘2) ∧ 𝑅 ∈ V) → Rel (𝑅𝑟𝑀))
135131, 133, 134syl2anc 583 . . . . . . . . . . . . . . . . . 18 ((𝑁 = 0 ∧ 𝑀 ∈ (ℤ‘2) ∧ 𝑅𝑉) → Rel (𝑅𝑟𝑀))
136 eluz2nn 12553 . . . . . . . . . . . . . . . . . . . . 21 (𝑀 ∈ (ℤ‘2) → 𝑀 ∈ ℕ)
137131, 136syl 17 . . . . . . . . . . . . . . . . . . . 20 ((𝑁 = 0 ∧ 𝑀 ∈ (ℤ‘2) ∧ 𝑅𝑉) → 𝑀 ∈ ℕ)
138 relexpnndm 14680 . . . . . . . . . . . . . . . . . . . 20 ((𝑀 ∈ ℕ ∧ 𝑅 ∈ V) → dom (𝑅𝑟𝑀) ⊆ dom 𝑅)
139137, 133, 138syl2anc 583 . . . . . . . . . . . . . . . . . . 19 ((𝑁 = 0 ∧ 𝑀 ∈ (ℤ‘2) ∧ 𝑅𝑉) → dom (𝑅𝑟𝑀) ⊆ dom 𝑅)
140139, 79sstrdi 3929 . . . . . . . . . . . . . . . . . 18 ((𝑁 = 0 ∧ 𝑀 ∈ (ℤ‘2) ∧ 𝑅𝑉) → dom (𝑅𝑟𝑀) ⊆ (dom 𝑅 ∪ ran 𝑅))
141 relssres 5921 . . . . . . . . . . . . . . . . . 18 ((Rel (𝑅𝑟𝑀) ∧ dom (𝑅𝑟𝑀) ⊆ (dom 𝑅 ∪ ran 𝑅)) → ((𝑅𝑟𝑀) ↾ (dom 𝑅 ∪ ran 𝑅)) = (𝑅𝑟𝑀))
142135, 140, 141syl2anc 583 . . . . . . . . . . . . . . . . 17 ((𝑁 = 0 ∧ 𝑀 ∈ (ℤ‘2) ∧ 𝑅𝑉) → ((𝑅𝑟𝑀) ↾ (dom 𝑅 ∪ ran 𝑅)) = (𝑅𝑟𝑀))
143130, 142eqtrid 2790 . . . . . . . . . . . . . . . 16 ((𝑁 = 0 ∧ 𝑀 ∈ (ℤ‘2) ∧ 𝑅𝑉) → ((𝑅𝑟𝑀) ∘ ( I ↾ (dom 𝑅 ∪ ran 𝑅))) = (𝑅𝑟𝑀))
144 simp1 1134 . . . . . . . . . . . . . . . . . . 19 ((𝑁 = 0 ∧ 𝑀 ∈ (ℤ‘2) ∧ 𝑅𝑉) → 𝑁 = 0)
145144oveq2d 7271 . . . . . . . . . . . . . . . . . 18 ((𝑁 = 0 ∧ 𝑀 ∈ (ℤ‘2) ∧ 𝑅𝑉) → (𝑅𝑟𝑁) = (𝑅𝑟0))
146133, 103syl 17 . . . . . . . . . . . . . . . . . 18 ((𝑁 = 0 ∧ 𝑀 ∈ (ℤ‘2) ∧ 𝑅𝑉) → (𝑅𝑟0) = ( I ↾ (dom 𝑅 ∪ ran 𝑅)))
147145, 146eqtrd 2778 . . . . . . . . . . . . . . . . 17 ((𝑁 = 0 ∧ 𝑀 ∈ (ℤ‘2) ∧ 𝑅𝑉) → (𝑅𝑟𝑁) = ( I ↾ (dom 𝑅 ∪ ran 𝑅)))
148147coeq2d 5760 . . . . . . . . . . . . . . . 16 ((𝑁 = 0 ∧ 𝑀 ∈ (ℤ‘2) ∧ 𝑅𝑉) → ((𝑅𝑟𝑀) ∘ (𝑅𝑟𝑁)) = ((𝑅𝑟𝑀) ∘ ( I ↾ (dom 𝑅 ∪ ran 𝑅))))
149144oveq1d 7270 . . . . . . . . . . . . . . . . . 18 ((𝑁 = 0 ∧ 𝑀 ∈ (ℤ‘2) ∧ 𝑅𝑉) → (𝑁 + 𝑀) = (0 + 𝑀))
150 eluzelcn 12523 . . . . . . . . . . . . . . . . . . . 20 (𝑀 ∈ (ℤ‘2) → 𝑀 ∈ ℂ)
151131, 150syl 17 . . . . . . . . . . . . . . . . . . 19 ((𝑁 = 0 ∧ 𝑀 ∈ (ℤ‘2) ∧ 𝑅𝑉) → 𝑀 ∈ ℂ)
152151addid2d 11106 . . . . . . . . . . . . . . . . . 18 ((𝑁 = 0 ∧ 𝑀 ∈ (ℤ‘2) ∧ 𝑅𝑉) → (0 + 𝑀) = 𝑀)
153149, 152eqtrd 2778 . . . . . . . . . . . . . . . . 17 ((𝑁 = 0 ∧ 𝑀 ∈ (ℤ‘2) ∧ 𝑅𝑉) → (𝑁 + 𝑀) = 𝑀)
154153oveq2d 7271 . . . . . . . . . . . . . . . 16 ((𝑁 = 0 ∧ 𝑀 ∈ (ℤ‘2) ∧ 𝑅𝑉) → (𝑅𝑟(𝑁 + 𝑀)) = (𝑅𝑟𝑀))
155143, 148, 1543eqtr4d 2788 . . . . . . . . . . . . . . 15 ((𝑁 = 0 ∧ 𝑀 ∈ (ℤ‘2) ∧ 𝑅𝑉) → ((𝑅𝑟𝑀) ∘ (𝑅𝑟𝑁)) = (𝑅𝑟(𝑁 + 𝑀)))
156 nnnn0 12170 . . . . . . . . . . . . . . . . . . 19 (𝑀 ∈ ℕ → 𝑀 ∈ ℕ0)
157131, 136, 1563syl 18 . . . . . . . . . . . . . . . . . 18 ((𝑁 = 0 ∧ 𝑀 ∈ (ℤ‘2) ∧ 𝑅𝑉) → 𝑀 ∈ ℕ0)
158157, 132, 89syl2anc 583 . . . . . . . . . . . . . . . . 17 ((𝑁 = 0 ∧ 𝑀 ∈ (ℤ‘2) ∧ 𝑅𝑉) → (𝑅𝑟𝑀) = (𝑅𝑟𝑀))
159144, 98eqeltrdi 2847 . . . . . . . . . . . . . . . . . 18 ((𝑁 = 0 ∧ 𝑀 ∈ (ℤ‘2) ∧ 𝑅𝑉) → 𝑁 ∈ ℕ0)
160159, 132, 100syl2anc 583 . . . . . . . . . . . . . . . . 17 ((𝑁 = 0 ∧ 𝑀 ∈ (ℤ‘2) ∧ 𝑅𝑉) → (𝑅𝑟𝑁) = (𝑅𝑟𝑁))
161158, 160coeq12d 5762 . . . . . . . . . . . . . . . 16 ((𝑁 = 0 ∧ 𝑀 ∈ (ℤ‘2) ∧ 𝑅𝑉) → ((𝑅𝑟𝑀) ∘ (𝑅𝑟𝑁)) = ((𝑅𝑟𝑀) ∘ (𝑅𝑟𝑁)))
16284, 161eqtrid 2790 . . . . . . . . . . . . . . 15 ((𝑁 = 0 ∧ 𝑀 ∈ (ℤ‘2) ∧ 𝑅𝑉) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = ((𝑅𝑟𝑀) ∘ (𝑅𝑟𝑁)))
163159, 157nn0addcld 12227 . . . . . . . . . . . . . . . 16 ((𝑁 = 0 ∧ 𝑀 ∈ (ℤ‘2) ∧ 𝑅𝑉) → (𝑁 + 𝑀) ∈ ℕ0)
164163, 132, 109syl2anc 583 . . . . . . . . . . . . . . 15 ((𝑁 = 0 ∧ 𝑀 ∈ (ℤ‘2) ∧ 𝑅𝑉) → (𝑅𝑟(𝑁 + 𝑀)) = (𝑅𝑟(𝑁 + 𝑀)))
165155, 162, 1643eqtr4d 2788 . . . . . . . . . . . . . 14 ((𝑁 = 0 ∧ 𝑀 ∈ (ℤ‘2) ∧ 𝑅𝑉) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀)))
166159nn0cnd 12225 . . . . . . . . . . . . . . . . . 18 ((𝑁 = 0 ∧ 𝑀 ∈ (ℤ‘2) ∧ 𝑅𝑉) → 𝑁 ∈ ℂ)
167151, 166addcomd 11107 . . . . . . . . . . . . . . . . 17 ((𝑁 = 0 ∧ 𝑀 ∈ (ℤ‘2) ∧ 𝑅𝑉) → (𝑀 + 𝑁) = (𝑁 + 𝑀))
168 uzaddcl 12573 . . . . . . . . . . . . . . . . . 18 ((𝑀 ∈ (ℤ‘2) ∧ 𝑁 ∈ ℕ0) → (𝑀 + 𝑁) ∈ (ℤ‘2))
169131, 159, 168syl2anc 583 . . . . . . . . . . . . . . . . 17 ((𝑁 = 0 ∧ 𝑀 ∈ (ℤ‘2) ∧ 𝑅𝑉) → (𝑀 + 𝑁) ∈ (ℤ‘2))
170167, 169eqeltrrd 2840 . . . . . . . . . . . . . . . 16 ((𝑁 = 0 ∧ 𝑀 ∈ (ℤ‘2) ∧ 𝑅𝑉) → (𝑁 + 𝑀) ∈ (ℤ‘2))
171 relexpuzrel 14691 . . . . . . . . . . . . . . . 16 (((𝑁 + 𝑀) ∈ (ℤ‘2) ∧ 𝑅𝑉) → Rel (𝑅𝑟(𝑁 + 𝑀)))
172170, 132, 171syl2anc 583 . . . . . . . . . . . . . . 15 ((𝑁 = 0 ∧ 𝑀 ∈ (ℤ‘2) ∧ 𝑅𝑉) → Rel (𝑅𝑟(𝑁 + 𝑀)))
173117, 172, 125sylancr 586 . . . . . . . . . . . . . 14 ((𝑁 = 0 ∧ 𝑀 ∈ (ℤ‘2) ∧ 𝑅𝑉) → (((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀)) ↔ ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀))))
174165, 173mpbird 256 . . . . . . . . . . . . 13 ((𝑁 = 0 ∧ 𝑀 ∈ (ℤ‘2) ∧ 𝑅𝑉) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀)))
175174a1d 25 . . . . . . . . . . . 12 ((𝑁 = 0 ∧ 𝑀 ∈ (ℤ‘2) ∧ 𝑅𝑉) → (((𝑁 + 𝑀) = 1 → Rel 𝑅) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀))))
1761753exp 1117 . . . . . . . . . . 11 (𝑁 = 0 → (𝑀 ∈ (ℤ‘2) → (𝑅𝑉 → (((𝑁 + 𝑀) = 1 → Rel 𝑅) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀))))))
177176com12 32 . . . . . . . . . 10 (𝑀 ∈ (ℤ‘2) → (𝑁 = 0 → (𝑅𝑉 → (((𝑁 + 𝑀) = 1 → Rel 𝑅) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀))))))
178129, 177jaoi 853 . . . . . . . . 9 ((𝑀 = 1 ∨ 𝑀 ∈ (ℤ‘2)) → (𝑁 = 0 → (𝑅𝑉 → (((𝑁 + 𝑀) = 1 → Rel 𝑅) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀))))))
17976, 178sylbi 216 . . . . . . . 8 (𝑀 ∈ ℕ → (𝑁 = 0 → (𝑅𝑉 → (((𝑁 + 𝑀) = 1 → Rel 𝑅) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀))))))
180 coires1 6157 . . . . . . . . . . . . 13 ((𝑅𝑟0) ∘ ( I ↾ (dom 𝑅 ∪ ran 𝑅))) = ((𝑅𝑟0) ↾ (dom 𝑅 ∪ ran 𝑅))
181 simp3 1136 . . . . . . . . . . . . . . 15 ((𝑁 = 0 ∧ 𝑀 = 0 ∧ 𝑅𝑉) → 𝑅𝑉)
182 relexp0rel 14676 . . . . . . . . . . . . . . 15 (𝑅𝑉 → Rel (𝑅𝑟0))
183181, 182syl 17 . . . . . . . . . . . . . 14 ((𝑁 = 0 ∧ 𝑀 = 0 ∧ 𝑅𝑉) → Rel (𝑅𝑟0))
184181, 33syl 17 . . . . . . . . . . . . . . . . 17 ((𝑁 = 0 ∧ 𝑀 = 0 ∧ 𝑅𝑉) → (𝑅𝑟0) = ( I ↾ (dom 𝑅 ∪ ran 𝑅)))
185184dmeqd 5803 . . . . . . . . . . . . . . . 16 ((𝑁 = 0 ∧ 𝑀 = 0 ∧ 𝑅𝑉) → dom (𝑅𝑟0) = dom ( I ↾ (dom 𝑅 ∪ ran 𝑅)))
186 dmresi 5950 . . . . . . . . . . . . . . . 16 dom ( I ↾ (dom 𝑅 ∪ ran 𝑅)) = (dom 𝑅 ∪ ran 𝑅)
187185, 186eqtrdi 2795 . . . . . . . . . . . . . . 15 ((𝑁 = 0 ∧ 𝑀 = 0 ∧ 𝑅𝑉) → dom (𝑅𝑟0) = (dom 𝑅 ∪ ran 𝑅))
188 eqimss 3973 . . . . . . . . . . . . . . 15 (dom (𝑅𝑟0) = (dom 𝑅 ∪ ran 𝑅) → dom (𝑅𝑟0) ⊆ (dom 𝑅 ∪ ran 𝑅))
189187, 188syl 17 . . . . . . . . . . . . . 14 ((𝑁 = 0 ∧ 𝑀 = 0 ∧ 𝑅𝑉) → dom (𝑅𝑟0) ⊆ (dom 𝑅 ∪ ran 𝑅))
190 relssres 5921 . . . . . . . . . . . . . 14 ((Rel (𝑅𝑟0) ∧ dom (𝑅𝑟0) ⊆ (dom 𝑅 ∪ ran 𝑅)) → ((𝑅𝑟0) ↾ (dom 𝑅 ∪ ran 𝑅)) = (𝑅𝑟0))
191183, 189, 190syl2anc 583 . . . . . . . . . . . . 13 ((𝑁 = 0 ∧ 𝑀 = 0 ∧ 𝑅𝑉) → ((𝑅𝑟0) ↾ (dom 𝑅 ∪ ran 𝑅)) = (𝑅𝑟0))
192180, 191eqtrid 2790 . . . . . . . . . . . 12 ((𝑁 = 0 ∧ 𝑀 = 0 ∧ 𝑅𝑉) → ((𝑅𝑟0) ∘ ( I ↾ (dom 𝑅 ∪ ran 𝑅))) = (𝑅𝑟0))
193 simp1 1134 . . . . . . . . . . . . . 14 ((𝑁 = 0 ∧ 𝑀 = 0 ∧ 𝑅𝑉) → 𝑁 = 0)
194193oveq2d 7271 . . . . . . . . . . . . 13 ((𝑁 = 0 ∧ 𝑀 = 0 ∧ 𝑅𝑉) → (𝑅𝑟𝑁) = (𝑅𝑟0))
195 simp2 1135 . . . . . . . . . . . . . . 15 ((𝑁 = 0 ∧ 𝑀 = 0 ∧ 𝑅𝑉) → 𝑀 = 0)
196195oveq2d 7271 . . . . . . . . . . . . . 14 ((𝑁 = 0 ∧ 𝑀 = 0 ∧ 𝑅𝑉) → (𝑅𝑟𝑀) = (𝑅𝑟0))
197196, 184eqtrd 2778 . . . . . . . . . . . . 13 ((𝑁 = 0 ∧ 𝑀 = 0 ∧ 𝑅𝑉) → (𝑅𝑟𝑀) = ( I ↾ (dom 𝑅 ∪ ran 𝑅)))
198194, 197coeq12d 5762 . . . . . . . . . . . 12 ((𝑁 = 0 ∧ 𝑀 = 0 ∧ 𝑅𝑉) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = ((𝑅𝑟0) ∘ ( I ↾ (dom 𝑅 ∪ ran 𝑅))))
199193, 195oveq12d 7273 . . . . . . . . . . . . . 14 ((𝑁 = 0 ∧ 𝑀 = 0 ∧ 𝑅𝑉) → (𝑁 + 𝑀) = (0 + 0))
200 00id 11080 . . . . . . . . . . . . . 14 (0 + 0) = 0
201199, 200eqtrdi 2795 . . . . . . . . . . . . 13 ((𝑁 = 0 ∧ 𝑀 = 0 ∧ 𝑅𝑉) → (𝑁 + 𝑀) = 0)
202201oveq2d 7271 . . . . . . . . . . . 12 ((𝑁 = 0 ∧ 𝑀 = 0 ∧ 𝑅𝑉) → (𝑅𝑟(𝑁 + 𝑀)) = (𝑅𝑟0))
203192, 198, 2023eqtr4d 2788 . . . . . . . . . . 11 ((𝑁 = 0 ∧ 𝑀 = 0 ∧ 𝑅𝑉) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀)))
204203a1d 25 . . . . . . . . . 10 ((𝑁 = 0 ∧ 𝑀 = 0 ∧ 𝑅𝑉) → (((𝑁 + 𝑀) = 1 → Rel 𝑅) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀))))
2052043exp 1117 . . . . . . . . 9 (𝑁 = 0 → (𝑀 = 0 → (𝑅𝑉 → (((𝑁 + 𝑀) = 1 → Rel 𝑅) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀))))))
206205com12 32 . . . . . . . 8 (𝑀 = 0 → (𝑁 = 0 → (𝑅𝑉 → (((𝑁 + 𝑀) = 1 → Rel 𝑅) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀))))))
207179, 206jaoi 853 . . . . . . 7 ((𝑀 ∈ ℕ ∨ 𝑀 = 0) → (𝑁 = 0 → (𝑅𝑉 → (((𝑁 + 𝑀) = 1 → Rel 𝑅) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀))))))
2082, 207sylbi 216 . . . . . 6 (𝑀 ∈ ℕ0 → (𝑁 = 0 → (𝑅𝑉 → (((𝑁 + 𝑀) = 1 → Rel 𝑅) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀))))))
209208com12 32 . . . . 5 (𝑁 = 0 → (𝑀 ∈ ℕ0 → (𝑅𝑉 → (((𝑁 + 𝑀) = 1 → Rel 𝑅) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀))))))
2102093impd 1346 . . . 4 (𝑁 = 0 → ((𝑀 ∈ ℕ0𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅)) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀))))
21175, 210jaoi 853 . . 3 ((𝑁 ∈ ℕ ∨ 𝑁 = 0) → ((𝑀 ∈ ℕ0𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅)) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀))))
2121, 211sylbi 216 . 2 (𝑁 ∈ ℕ0 → ((𝑀 ∈ ℕ0𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅)) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀))))
213212imp 406 1 ((𝑁 ∈ ℕ0 ∧ (𝑀 ∈ ℕ0𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀)))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 205  wa 395  wo 843  w3a 1085   = wceq 1539  wcel 2108  Vcvv 3422  cun 3881  wss 3883   I cid 5479  ccnv 5579  dom cdm 5580  ran crn 5581  cres 5582  ccom 5584  Rel wrel 5585  cfv 6418  (class class class)co 7255  cc 10800  0cc0 10802  1c1 10803   + caddc 10805  cn 11903  2c2 11958  0cn0 12163  cuz 12511  𝑟crelexp 14658
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1799  ax-4 1813  ax-5 1914  ax-6 1972  ax-7 2012  ax-8 2110  ax-9 2118  ax-10 2139  ax-11 2156  ax-12 2173  ax-ext 2709  ax-sep 5218  ax-nul 5225  ax-pow 5283  ax-pr 5347  ax-un 7566  ax-cnex 10858  ax-resscn 10859  ax-1cn 10860  ax-icn 10861  ax-addcl 10862  ax-addrcl 10863  ax-mulcl 10864  ax-mulrcl 10865  ax-mulcom 10866  ax-addass 10867  ax-mulass 10868  ax-distr 10869  ax-i2m1 10870  ax-1ne0 10871  ax-1rid 10872  ax-rnegex 10873  ax-rrecex 10874  ax-cnre 10875  ax-pre-lttri 10876  ax-pre-lttrn 10877  ax-pre-ltadd 10878  ax-pre-mulgt0 10879
This theorem depends on definitions:  df-bi 206  df-an 396  df-or 844  df-3or 1086  df-3an 1087  df-tru 1542  df-fal 1552  df-ex 1784  df-nf 1788  df-sb 2069  df-mo 2540  df-eu 2569  df-clab 2716  df-cleq 2730  df-clel 2817  df-nfc 2888  df-ne 2943  df-nel 3049  df-ral 3068  df-rex 3069  df-reu 3070  df-rab 3072  df-v 3424  df-sbc 3712  df-csb 3829  df-dif 3886  df-un 3888  df-in 3890  df-ss 3900  df-pss 3902  df-nul 4254  df-if 4457  df-pw 4532  df-sn 4559  df-pr 4561  df-tp 4563  df-op 4565  df-uni 4837  df-iun 4923  df-br 5071  df-opab 5133  df-mpt 5154  df-tr 5188  df-id 5480  df-eprel 5486  df-po 5494  df-so 5495  df-fr 5535  df-we 5537  df-xp 5586  df-rel 5587  df-cnv 5588  df-co 5589  df-dm 5590  df-rn 5591  df-res 5592  df-ima 5593  df-pred 6191  df-ord 6254  df-on 6255  df-lim 6256  df-suc 6257  df-iota 6376  df-fun 6420  df-fn 6421  df-f 6422  df-f1 6423  df-fo 6424  df-f1o 6425  df-fv 6426  df-riota 7212  df-ov 7258  df-oprab 7259  df-mpo 7260  df-om 7688  df-2nd 7805  df-frecs 8068  df-wrecs 8099  df-recs 8173  df-rdg 8212  df-er 8456  df-en 8692  df-dom 8693  df-sdom 8694  df-pnf 10942  df-mnf 10943  df-xr 10944  df-ltxr 10945  df-le 10946  df-sub 11137  df-neg 11138  df-nn 11904  df-2 11966  df-n0 12164  df-z 12250  df-uz 12512  df-seq 13650  df-relexp 14659
This theorem is referenced by:  relexpaddd  14693  relexpnul  41175
  Copyright terms: Public domain W3C validator