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

Theorem relexpaddg 14465
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 11941 . . 3 (𝑁 ∈ ℕ0 ↔ (𝑁 ∈ ℕ ∨ 𝑁 = 0))
2 elnn0 11941 . . . . . . 7 (𝑀 ∈ ℕ0 ↔ (𝑀 ∈ ℕ ∨ 𝑀 = 0))
3 relexpaddnn 14463 . . . . . . . . . . 11 ((𝑁 ∈ ℕ ∧ 𝑀 ∈ ℕ ∧ 𝑅𝑉) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀)))
43a1d 25 . . . . . . . . . 10 ((𝑁 ∈ ℕ ∧ 𝑀 ∈ ℕ ∧ 𝑅𝑉) → (((𝑁 + 𝑀) = 1 → Rel 𝑅) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀))))
543exp 1116 . . . . . . . . 9 (𝑁 ∈ ℕ → (𝑀 ∈ ℕ → (𝑅𝑉 → (((𝑁 + 𝑀) = 1 → Rel 𝑅) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀))))))
65com12 32 . . . . . . . 8 (𝑀 ∈ ℕ → (𝑁 ∈ ℕ → (𝑅𝑉 → (((𝑁 + 𝑀) = 1 → Rel 𝑅) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀))))))
7 elnn1uz2 12370 . . . . . . . . . 10 (𝑁 ∈ ℕ ↔ (𝑁 = 1 ∨ 𝑁 ∈ (ℤ‘2)))
8 coires1 6098 . . . . . . . . . . . . . 14 ((𝑅𝑟𝑁) ∘ ( I ↾ (dom 𝑅 ∪ ran 𝑅))) = ((𝑅𝑟𝑁) ↾ (dom 𝑅 ∪ ran 𝑅))
9 simpll 766 . . . . . . . . . . . . . . . . . . 19 (((𝑁 = 1 ∧ 𝑀 = 0) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → 𝑁 = 1)
10 simplr 768 . . . . . . . . . . . . . . . . . . 19 (((𝑁 = 1 ∧ 𝑀 = 0) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → 𝑀 = 0)
119, 10oveq12d 7173 . . . . . . . . . . . . . . . . . 18 (((𝑁 = 1 ∧ 𝑀 = 0) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → (𝑁 + 𝑀) = (1 + 0))
12 1p0e1 11803 . . . . . . . . . . . . . . . . . 18 (1 + 0) = 1
1311, 12eqtrdi 2809 . . . . . . . . . . . . . . . . 17 (((𝑁 = 1 ∧ 𝑀 = 0) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → (𝑁 + 𝑀) = 1)
14 simprr 772 . . . . . . . . . . . . . . . . 17 (((𝑁 = 1 ∧ 𝑀 = 0) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → ((𝑁 + 𝑀) = 1 → Rel 𝑅))
1513, 14mpd 15 . . . . . . . . . . . . . . . 16 (((𝑁 = 1 ∧ 𝑀 = 0) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → Rel 𝑅)
169oveq2d 7171 . . . . . . . . . . . . . . . . . 18 (((𝑁 = 1 ∧ 𝑀 = 0) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → (𝑅𝑟𝑁) = (𝑅𝑟1))
17 simprl 770 . . . . . . . . . . . . . . . . . . 19 (((𝑁 = 1 ∧ 𝑀 = 0) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → 𝑅𝑉)
18 relexp1g 14438 . . . . . . . . . . . . . . . . . . 19 (𝑅𝑉 → (𝑅𝑟1) = 𝑅)
1917, 18syl 17 . . . . . . . . . . . . . . . . . 18 (((𝑁 = 1 ∧ 𝑀 = 0) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → (𝑅𝑟1) = 𝑅)
2016, 19eqtrd 2793 . . . . . . . . . . . . . . . . 17 (((𝑁 = 1 ∧ 𝑀 = 0) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → (𝑅𝑟𝑁) = 𝑅)
2120releqd 5626 . . . . . . . . . . . . . . . 16 (((𝑁 = 1 ∧ 𝑀 = 0) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → (Rel (𝑅𝑟𝑁) ↔ Rel 𝑅))
2215, 21mpbird 260 . . . . . . . . . . . . . . 15 (((𝑁 = 1 ∧ 𝑀 = 0) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → Rel (𝑅𝑟𝑁))
23 1nn 11690 . . . . . . . . . . . . . . . . . 18 1 ∈ ℕ
249, 23eqeltrdi 2860 . . . . . . . . . . . . . . . . 17 (((𝑁 = 1 ∧ 𝑀 = 0) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → 𝑁 ∈ ℕ)
25 relexpnndm 14453 . . . . . . . . . . . . . . . . 17 ((𝑁 ∈ ℕ ∧ 𝑅𝑉) → dom (𝑅𝑟𝑁) ⊆ dom 𝑅)
2624, 17, 25syl2anc 587 . . . . . . . . . . . . . . . 16 (((𝑁 = 1 ∧ 𝑀 = 0) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → dom (𝑅𝑟𝑁) ⊆ dom 𝑅)
27 ssun1 4079 . . . . . . . . . . . . . . . 16 dom 𝑅 ⊆ (dom 𝑅 ∪ ran 𝑅)
2826, 27sstrdi 3906 . . . . . . . . . . . . . . 15 (((𝑁 = 1 ∧ 𝑀 = 0) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → dom (𝑅𝑟𝑁) ⊆ (dom 𝑅 ∪ ran 𝑅))
29 relssres 5868 . . . . . . . . . . . . . . 15 ((Rel (𝑅𝑟𝑁) ∧ dom (𝑅𝑟𝑁) ⊆ (dom 𝑅 ∪ ran 𝑅)) → ((𝑅𝑟𝑁) ↾ (dom 𝑅 ∪ ran 𝑅)) = (𝑅𝑟𝑁))
3022, 28, 29syl2anc 587 . . . . . . . . . . . . . 14 (((𝑁 = 1 ∧ 𝑀 = 0) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → ((𝑅𝑟𝑁) ↾ (dom 𝑅 ∪ ran 𝑅)) = (𝑅𝑟𝑁))
318, 30syl5eq 2805 . . . . . . . . . . . . 13 (((𝑁 = 1 ∧ 𝑀 = 0) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → ((𝑅𝑟𝑁) ∘ ( I ↾ (dom 𝑅 ∪ ran 𝑅))) = (𝑅𝑟𝑁))
3210oveq2d 7171 . . . . . . . . . . . . . . 15 (((𝑁 = 1 ∧ 𝑀 = 0) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → (𝑅𝑟𝑀) = (𝑅𝑟0))
33 relexp0g 14434 . . . . . . . . . . . . . . . 16 (𝑅𝑉 → (𝑅𝑟0) = ( I ↾ (dom 𝑅 ∪ ran 𝑅)))
3417, 33syl 17 . . . . . . . . . . . . . . 15 (((𝑁 = 1 ∧ 𝑀 = 0) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → (𝑅𝑟0) = ( I ↾ (dom 𝑅 ∪ ran 𝑅)))
3532, 34eqtrd 2793 . . . . . . . . . . . . . 14 (((𝑁 = 1 ∧ 𝑀 = 0) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → (𝑅𝑟𝑀) = ( I ↾ (dom 𝑅 ∪ ran 𝑅)))
3635coeq2d 5707 . . . . . . . . . . . . 13 (((𝑁 = 1 ∧ 𝑀 = 0) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = ((𝑅𝑟𝑁) ∘ ( I ↾ (dom 𝑅 ∪ ran 𝑅))))
3710oveq2d 7171 . . . . . . . . . . . . . . 15 (((𝑁 = 1 ∧ 𝑀 = 0) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → (𝑁 + 𝑀) = (𝑁 + 0))
38 ax-1cn 10638 . . . . . . . . . . . . . . . . 17 1 ∈ ℂ
399, 38eqeltrdi 2860 . . . . . . . . . . . . . . . 16 (((𝑁 = 1 ∧ 𝑀 = 0) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → 𝑁 ∈ ℂ)
4039addid1d 10883 . . . . . . . . . . . . . . 15 (((𝑁 = 1 ∧ 𝑀 = 0) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → (𝑁 + 0) = 𝑁)
4137, 40eqtrd 2793 . . . . . . . . . . . . . 14 (((𝑁 = 1 ∧ 𝑀 = 0) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → (𝑁 + 𝑀) = 𝑁)
4241oveq2d 7171 . . . . . . . . . . . . 13 (((𝑁 = 1 ∧ 𝑀 = 0) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → (𝑅𝑟(𝑁 + 𝑀)) = (𝑅𝑟𝑁))
4331, 36, 423eqtr4d 2803 . . . . . . . . . . . 12 (((𝑁 = 1 ∧ 𝑀 = 0) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀)))
4443exp43 440 . . . . . . . . . . 11 (𝑁 = 1 → (𝑀 = 0 → (𝑅𝑉 → (((𝑁 + 𝑀) = 1 → Rel 𝑅) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀))))))
45 simp1 1133 . . . . . . . . . . . . . . . . 17 ((𝑁 ∈ (ℤ‘2) ∧ 𝑀 = 0 ∧ 𝑅𝑉) → 𝑁 ∈ (ℤ‘2))
46 simp3 1135 . . . . . . . . . . . . . . . . 17 ((𝑁 ∈ (ℤ‘2) ∧ 𝑀 = 0 ∧ 𝑅𝑉) → 𝑅𝑉)
47 relexpuzrel 14464 . . . . . . . . . . . . . . . . 17 ((𝑁 ∈ (ℤ‘2) ∧ 𝑅𝑉) → Rel (𝑅𝑟𝑁))
4845, 46, 47syl2anc 587 . . . . . . . . . . . . . . . 16 ((𝑁 ∈ (ℤ‘2) ∧ 𝑀 = 0 ∧ 𝑅𝑉) → Rel (𝑅𝑟𝑁))
49 eluz2nn 12329 . . . . . . . . . . . . . . . . . . 19 (𝑁 ∈ (ℤ‘2) → 𝑁 ∈ ℕ)
5045, 49syl 17 . . . . . . . . . . . . . . . . . 18 ((𝑁 ∈ (ℤ‘2) ∧ 𝑀 = 0 ∧ 𝑅𝑉) → 𝑁 ∈ ℕ)
5150, 46, 25syl2anc 587 . . . . . . . . . . . . . . . . 17 ((𝑁 ∈ (ℤ‘2) ∧ 𝑀 = 0 ∧ 𝑅𝑉) → dom (𝑅𝑟𝑁) ⊆ dom 𝑅)
5251, 27sstrdi 3906 . . . . . . . . . . . . . . . 16 ((𝑁 ∈ (ℤ‘2) ∧ 𝑀 = 0 ∧ 𝑅𝑉) → dom (𝑅𝑟𝑁) ⊆ (dom 𝑅 ∪ ran 𝑅))
5348, 52, 29syl2anc 587 . . . . . . . . . . . . . . 15 ((𝑁 ∈ (ℤ‘2) ∧ 𝑀 = 0 ∧ 𝑅𝑉) → ((𝑅𝑟𝑁) ↾ (dom 𝑅 ∪ ran 𝑅)) = (𝑅𝑟𝑁))
548, 53syl5eq 2805 . . . . . . . . . . . . . 14 ((𝑁 ∈ (ℤ‘2) ∧ 𝑀 = 0 ∧ 𝑅𝑉) → ((𝑅𝑟𝑁) ∘ ( I ↾ (dom 𝑅 ∪ ran 𝑅))) = (𝑅𝑟𝑁))
55 simp2 1134 . . . . . . . . . . . . . . . . 17 ((𝑁 ∈ (ℤ‘2) ∧ 𝑀 = 0 ∧ 𝑅𝑉) → 𝑀 = 0)
5655oveq2d 7171 . . . . . . . . . . . . . . . 16 ((𝑁 ∈ (ℤ‘2) ∧ 𝑀 = 0 ∧ 𝑅𝑉) → (𝑅𝑟𝑀) = (𝑅𝑟0))
5746, 33syl 17 . . . . . . . . . . . . . . . 16 ((𝑁 ∈ (ℤ‘2) ∧ 𝑀 = 0 ∧ 𝑅𝑉) → (𝑅𝑟0) = ( I ↾ (dom 𝑅 ∪ ran 𝑅)))
5856, 57eqtrd 2793 . . . . . . . . . . . . . . 15 ((𝑁 ∈ (ℤ‘2) ∧ 𝑀 = 0 ∧ 𝑅𝑉) → (𝑅𝑟𝑀) = ( I ↾ (dom 𝑅 ∪ ran 𝑅)))
5958coeq2d 5707 . . . . . . . . . . . . . 14 ((𝑁 ∈ (ℤ‘2) ∧ 𝑀 = 0 ∧ 𝑅𝑉) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = ((𝑅𝑟𝑁) ∘ ( I ↾ (dom 𝑅 ∪ ran 𝑅))))
6055oveq2d 7171 . . . . . . . . . . . . . . . 16 ((𝑁 ∈ (ℤ‘2) ∧ 𝑀 = 0 ∧ 𝑅𝑉) → (𝑁 + 𝑀) = (𝑁 + 0))
61 eluzelcn 12299 . . . . . . . . . . . . . . . . . 18 (𝑁 ∈ (ℤ‘2) → 𝑁 ∈ ℂ)
6245, 61syl 17 . . . . . . . . . . . . . . . . 17 ((𝑁 ∈ (ℤ‘2) ∧ 𝑀 = 0 ∧ 𝑅𝑉) → 𝑁 ∈ ℂ)
6362addid1d 10883 . . . . . . . . . . . . . . . 16 ((𝑁 ∈ (ℤ‘2) ∧ 𝑀 = 0 ∧ 𝑅𝑉) → (𝑁 + 0) = 𝑁)
6460, 63eqtrd 2793 . . . . . . . . . . . . . . 15 ((𝑁 ∈ (ℤ‘2) ∧ 𝑀 = 0 ∧ 𝑅𝑉) → (𝑁 + 𝑀) = 𝑁)
6564oveq2d 7171 . . . . . . . . . . . . . 14 ((𝑁 ∈ (ℤ‘2) ∧ 𝑀 = 0 ∧ 𝑅𝑉) → (𝑅𝑟(𝑁 + 𝑀)) = (𝑅𝑟𝑁))
6654, 59, 653eqtr4d 2803 . . . . . . . . . . . . 13 ((𝑁 ∈ (ℤ‘2) ∧ 𝑀 = 0 ∧ 𝑅𝑉) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀)))
6766a1d 25 . . . . . . . . . . . 12 ((𝑁 ∈ (ℤ‘2) ∧ 𝑀 = 0 ∧ 𝑅𝑉) → (((𝑁 + 𝑀) = 1 → Rel 𝑅) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀))))
68673exp 1116 . . . . . . . . . . 11 (𝑁 ∈ (ℤ‘2) → (𝑀 = 0 → (𝑅𝑉 → (((𝑁 + 𝑀) = 1 → Rel 𝑅) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀))))))
6944, 68jaoi 854 . . . . . . . . . 10 ((𝑁 = 1 ∨ 𝑁 ∈ (ℤ‘2)) → (𝑀 = 0 → (𝑅𝑉 → (((𝑁 + 𝑀) = 1 → Rel 𝑅) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀))))))
707, 69sylbi 220 . . . . . . . . 9 (𝑁 ∈ ℕ → (𝑀 = 0 → (𝑅𝑉 → (((𝑁 + 𝑀) = 1 → Rel 𝑅) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀))))))
7170com12 32 . . . . . . . 8 (𝑀 = 0 → (𝑁 ∈ ℕ → (𝑅𝑉 → (((𝑁 + 𝑀) = 1 → Rel 𝑅) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀))))))
726, 71jaoi 854 . . . . . . 7 ((𝑀 ∈ ℕ ∨ 𝑀 = 0) → (𝑁 ∈ ℕ → (𝑅𝑉 → (((𝑁 + 𝑀) = 1 → Rel 𝑅) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀))))))
732, 72sylbi 220 . . . . . 6 (𝑀 ∈ ℕ0 → (𝑁 ∈ ℕ → (𝑅𝑉 → (((𝑁 + 𝑀) = 1 → Rel 𝑅) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀))))))
7473com12 32 . . . . 5 (𝑁 ∈ ℕ → (𝑀 ∈ ℕ0 → (𝑅𝑉 → (((𝑁 + 𝑀) = 1 → Rel 𝑅) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀))))))
75743impd 1345 . . . 4 (𝑁 ∈ ℕ → ((𝑀 ∈ ℕ0𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅)) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀))))
76 elnn1uz2 12370 . . . . . . . . 9 (𝑀 ∈ ℕ ↔ (𝑀 = 1 ∨ 𝑀 ∈ (ℤ‘2)))
77 coires1 6098 . . . . . . . . . . . . . . 15 (𝑅 ∘ ( I ↾ (dom 𝑅 ∪ ran 𝑅))) = (𝑅 ↾ (dom 𝑅 ∪ ran 𝑅))
78 relcnv 5943 . . . . . . . . . . . . . . . . 17 Rel 𝑅
79 ssun1 4079 . . . . . . . . . . . . . . . . 17 dom 𝑅 ⊆ (dom 𝑅 ∪ ran 𝑅)
8078, 79pm3.2i 474 . . . . . . . . . . . . . . . 16 (Rel 𝑅 ∧ dom 𝑅 ⊆ (dom 𝑅 ∪ ran 𝑅))
81 relssres 5868 . . . . . . . . . . . . . . . 16 ((Rel 𝑅 ∧ dom 𝑅 ⊆ (dom 𝑅 ∪ ran 𝑅)) → (𝑅 ↾ (dom 𝑅 ∪ ran 𝑅)) = 𝑅)
8280, 81mp1i 13 . . . . . . . . . . . . . . 15 (((𝑁 = 0 ∧ 𝑀 = 1) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → (𝑅 ↾ (dom 𝑅 ∪ ran 𝑅)) = 𝑅)
8377, 82syl5eq 2805 . . . . . . . . . . . . . 14 (((𝑁 = 0 ∧ 𝑀 = 1) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → (𝑅 ∘ ( I ↾ (dom 𝑅 ∪ ran 𝑅))) = 𝑅)
84 cnvco 5730 . . . . . . . . . . . . . . 15 ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = ((𝑅𝑟𝑀) ∘ (𝑅𝑟𝑁))
85 simplr 768 . . . . . . . . . . . . . . . . . . 19 (((𝑁 = 0 ∧ 𝑀 = 1) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → 𝑀 = 1)
86 1nn0 11955 . . . . . . . . . . . . . . . . . . 19 1 ∈ ℕ0
8785, 86eqeltrdi 2860 . . . . . . . . . . . . . . . . . 18 (((𝑁 = 0 ∧ 𝑀 = 1) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → 𝑀 ∈ ℕ0)
88 simprl 770 . . . . . . . . . . . . . . . . . 18 (((𝑁 = 0 ∧ 𝑀 = 1) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → 𝑅𝑉)
89 relexpcnv 14447 . . . . . . . . . . . . . . . . . 18 ((𝑀 ∈ ℕ0𝑅𝑉) → (𝑅𝑟𝑀) = (𝑅𝑟𝑀))
9087, 88, 89syl2anc 587 . . . . . . . . . . . . . . . . 17 (((𝑁 = 0 ∧ 𝑀 = 1) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → (𝑅𝑟𝑀) = (𝑅𝑟𝑀))
9185oveq2d 7171 . . . . . . . . . . . . . . . . 17 (((𝑁 = 0 ∧ 𝑀 = 1) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → (𝑅𝑟𝑀) = (𝑅𝑟1))
92 cnvexg 7639 . . . . . . . . . . . . . . . . . . 19 (𝑅𝑉𝑅 ∈ V)
9388, 92syl 17 . . . . . . . . . . . . . . . . . 18 (((𝑁 = 0 ∧ 𝑀 = 1) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → 𝑅 ∈ V)
94 relexp1g 14438 . . . . . . . . . . . . . . . . . 18 (𝑅 ∈ V → (𝑅𝑟1) = 𝑅)
9593, 94syl 17 . . . . . . . . . . . . . . . . 17 (((𝑁 = 0 ∧ 𝑀 = 1) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → (𝑅𝑟1) = 𝑅)
9690, 91, 953eqtrd 2797 . . . . . . . . . . . . . . . 16 (((𝑁 = 0 ∧ 𝑀 = 1) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → (𝑅𝑟𝑀) = 𝑅)
97 simpll 766 . . . . . . . . . . . . . . . . . . 19 (((𝑁 = 0 ∧ 𝑀 = 1) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → 𝑁 = 0)
98 0nn0 11954 . . . . . . . . . . . . . . . . . . 19 0 ∈ ℕ0
9997, 98eqeltrdi 2860 . . . . . . . . . . . . . . . . . 18 (((𝑁 = 0 ∧ 𝑀 = 1) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → 𝑁 ∈ ℕ0)
100 relexpcnv 14447 . . . . . . . . . . . . . . . . . 18 ((𝑁 ∈ ℕ0𝑅𝑉) → (𝑅𝑟𝑁) = (𝑅𝑟𝑁))
10199, 88, 100syl2anc 587 . . . . . . . . . . . . . . . . 17 (((𝑁 = 0 ∧ 𝑀 = 1) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → (𝑅𝑟𝑁) = (𝑅𝑟𝑁))
10297oveq2d 7171 . . . . . . . . . . . . . . . . 17 (((𝑁 = 0 ∧ 𝑀 = 1) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → (𝑅𝑟𝑁) = (𝑅𝑟0))
103 relexp0g 14434 . . . . . . . . . . . . . . . . . 18 (𝑅 ∈ V → (𝑅𝑟0) = ( I ↾ (dom 𝑅 ∪ ran 𝑅)))
10493, 103syl 17 . . . . . . . . . . . . . . . . 17 (((𝑁 = 0 ∧ 𝑀 = 1) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → (𝑅𝑟0) = ( I ↾ (dom 𝑅 ∪ ran 𝑅)))
105101, 102, 1043eqtrd 2797 . . . . . . . . . . . . . . . 16 (((𝑁 = 0 ∧ 𝑀 = 1) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → (𝑅𝑟𝑁) = ( I ↾ (dom 𝑅 ∪ ran 𝑅)))
10696, 105coeq12d 5709 . . . . . . . . . . . . . . 15 (((𝑁 = 0 ∧ 𝑀 = 1) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → ((𝑅𝑟𝑀) ∘ (𝑅𝑟𝑁)) = (𝑅 ∘ ( I ↾ (dom 𝑅 ∪ ran 𝑅))))
10784, 106syl5eq 2805 . . . . . . . . . . . . . 14 (((𝑁 = 0 ∧ 𝑀 = 1) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅 ∘ ( I ↾ (dom 𝑅 ∪ ran 𝑅))))
10899, 87nn0addcld 12003 . . . . . . . . . . . . . . . 16 (((𝑁 = 0 ∧ 𝑀 = 1) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → (𝑁 + 𝑀) ∈ ℕ0)
109 relexpcnv 14447 . . . . . . . . . . . . . . . 16 (((𝑁 + 𝑀) ∈ ℕ0𝑅𝑉) → (𝑅𝑟(𝑁 + 𝑀)) = (𝑅𝑟(𝑁 + 𝑀)))
110108, 88, 109syl2anc 587 . . . . . . . . . . . . . . 15 (((𝑁 = 0 ∧ 𝑀 = 1) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → (𝑅𝑟(𝑁 + 𝑀)) = (𝑅𝑟(𝑁 + 𝑀)))
11197, 85oveq12d 7173 . . . . . . . . . . . . . . . . 17 (((𝑁 = 0 ∧ 𝑀 = 1) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → (𝑁 + 𝑀) = (0 + 1))
112 0p1e1 11801 . . . . . . . . . . . . . . . . 17 (0 + 1) = 1
113111, 112eqtrdi 2809 . . . . . . . . . . . . . . . 16 (((𝑁 = 0 ∧ 𝑀 = 1) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → (𝑁 + 𝑀) = 1)
114113oveq2d 7171 . . . . . . . . . . . . . . 15 (((𝑁 = 0 ∧ 𝑀 = 1) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → (𝑅𝑟(𝑁 + 𝑀)) = (𝑅𝑟1))
115110, 114, 953eqtrd 2797 . . . . . . . . . . . . . 14 (((𝑁 = 0 ∧ 𝑀 = 1) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → (𝑅𝑟(𝑁 + 𝑀)) = 𝑅)
11683, 107, 1153eqtr4d 2803 . . . . . . . . . . . . 13 (((𝑁 = 0 ∧ 𝑀 = 1) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀)))
117 relco 6078 . . . . . . . . . . . . . 14 Rel ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀))
118 simprr 772 . . . . . . . . . . . . . . . 16 (((𝑁 = 0 ∧ 𝑀 = 1) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → ((𝑁 + 𝑀) = 1 → Rel 𝑅))
119113, 118mpd 15 . . . . . . . . . . . . . . 15 (((𝑁 = 0 ∧ 𝑀 = 1) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → Rel 𝑅)
120113oveq2d 7171 . . . . . . . . . . . . . . . . 17 (((𝑁 = 0 ∧ 𝑀 = 1) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → (𝑅𝑟(𝑁 + 𝑀)) = (𝑅𝑟1))
12188, 18syl 17 . . . . . . . . . . . . . . . . 17 (((𝑁 = 0 ∧ 𝑀 = 1) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → (𝑅𝑟1) = 𝑅)
122120, 121eqtrd 2793 . . . . . . . . . . . . . . . 16 (((𝑁 = 0 ∧ 𝑀 = 1) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → (𝑅𝑟(𝑁 + 𝑀)) = 𝑅)
123122releqd 5626 . . . . . . . . . . . . . . 15 (((𝑁 = 0 ∧ 𝑀 = 1) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → (Rel (𝑅𝑟(𝑁 + 𝑀)) ↔ Rel 𝑅))
124119, 123mpbird 260 . . . . . . . . . . . . . 14 (((𝑁 = 0 ∧ 𝑀 = 1) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → Rel (𝑅𝑟(𝑁 + 𝑀)))
125 cnveqb 6029 . . . . . . . . . . . . . 14 ((Rel ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) ∧ Rel (𝑅𝑟(𝑁 + 𝑀))) → (((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀)) ↔ ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀))))
126117, 124, 125sylancr 590 . . . . . . . . . . . . 13 (((𝑁 = 0 ∧ 𝑀 = 1) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → (((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀)) ↔ ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀))))
127116, 126mpbird 260 . . . . . . . . . . . 12 (((𝑁 = 0 ∧ 𝑀 = 1) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀)))
128127exp43 440 . . . . . . . . . . 11 (𝑁 = 0 → (𝑀 = 1 → (𝑅𝑉 → (((𝑁 + 𝑀) = 1 → Rel 𝑅) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀))))))
129128com12 32 . . . . . . . . . 10 (𝑀 = 1 → (𝑁 = 0 → (𝑅𝑉 → (((𝑁 + 𝑀) = 1 → Rel 𝑅) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀))))))
130 coires1 6098 . . . . . . . . . . . . . . . . 17 ((𝑅𝑟𝑀) ∘ ( I ↾ (dom 𝑅 ∪ ran 𝑅))) = ((𝑅𝑟𝑀) ↾ (dom 𝑅 ∪ ran 𝑅))
131 simp2 1134 . . . . . . . . . . . . . . . . . . 19 ((𝑁 = 0 ∧ 𝑀 ∈ (ℤ‘2) ∧ 𝑅𝑉) → 𝑀 ∈ (ℤ‘2))
132 simp3 1135 . . . . . . . . . . . . . . . . . . . 20 ((𝑁 = 0 ∧ 𝑀 ∈ (ℤ‘2) ∧ 𝑅𝑉) → 𝑅𝑉)
133132, 92syl 17 . . . . . . . . . . . . . . . . . . 19 ((𝑁 = 0 ∧ 𝑀 ∈ (ℤ‘2) ∧ 𝑅𝑉) → 𝑅 ∈ V)
134 relexpuzrel 14464 . . . . . . . . . . . . . . . . . . 19 ((𝑀 ∈ (ℤ‘2) ∧ 𝑅 ∈ V) → Rel (𝑅𝑟𝑀))
135131, 133, 134syl2anc 587 . . . . . . . . . . . . . . . . . 18 ((𝑁 = 0 ∧ 𝑀 ∈ (ℤ‘2) ∧ 𝑅𝑉) → Rel (𝑅𝑟𝑀))
136 eluz2nn 12329 . . . . . . . . . . . . . . . . . . . . 21 (𝑀 ∈ (ℤ‘2) → 𝑀 ∈ ℕ)
137131, 136syl 17 . . . . . . . . . . . . . . . . . . . 20 ((𝑁 = 0 ∧ 𝑀 ∈ (ℤ‘2) ∧ 𝑅𝑉) → 𝑀 ∈ ℕ)
138 relexpnndm 14453 . . . . . . . . . . . . . . . . . . . 20 ((𝑀 ∈ ℕ ∧ 𝑅 ∈ V) → dom (𝑅𝑟𝑀) ⊆ dom 𝑅)
139137, 133, 138syl2anc 587 . . . . . . . . . . . . . . . . . . 19 ((𝑁 = 0 ∧ 𝑀 ∈ (ℤ‘2) ∧ 𝑅𝑉) → dom (𝑅𝑟𝑀) ⊆ dom 𝑅)
140139, 79sstrdi 3906 . . . . . . . . . . . . . . . . . 18 ((𝑁 = 0 ∧ 𝑀 ∈ (ℤ‘2) ∧ 𝑅𝑉) → dom (𝑅𝑟𝑀) ⊆ (dom 𝑅 ∪ ran 𝑅))
141 relssres 5868 . . . . . . . . . . . . . . . . . 18 ((Rel (𝑅𝑟𝑀) ∧ dom (𝑅𝑟𝑀) ⊆ (dom 𝑅 ∪ ran 𝑅)) → ((𝑅𝑟𝑀) ↾ (dom 𝑅 ∪ ran 𝑅)) = (𝑅𝑟𝑀))
142135, 140, 141syl2anc 587 . . . . . . . . . . . . . . . . 17 ((𝑁 = 0 ∧ 𝑀 ∈ (ℤ‘2) ∧ 𝑅𝑉) → ((𝑅𝑟𝑀) ↾ (dom 𝑅 ∪ ran 𝑅)) = (𝑅𝑟𝑀))
143130, 142syl5eq 2805 . . . . . . . . . . . . . . . 16 ((𝑁 = 0 ∧ 𝑀 ∈ (ℤ‘2) ∧ 𝑅𝑉) → ((𝑅𝑟𝑀) ∘ ( I ↾ (dom 𝑅 ∪ ran 𝑅))) = (𝑅𝑟𝑀))
144 simp1 1133 . . . . . . . . . . . . . . . . . . 19 ((𝑁 = 0 ∧ 𝑀 ∈ (ℤ‘2) ∧ 𝑅𝑉) → 𝑁 = 0)
145144oveq2d 7171 . . . . . . . . . . . . . . . . . 18 ((𝑁 = 0 ∧ 𝑀 ∈ (ℤ‘2) ∧ 𝑅𝑉) → (𝑅𝑟𝑁) = (𝑅𝑟0))
146133, 103syl 17 . . . . . . . . . . . . . . . . . 18 ((𝑁 = 0 ∧ 𝑀 ∈ (ℤ‘2) ∧ 𝑅𝑉) → (𝑅𝑟0) = ( I ↾ (dom 𝑅 ∪ ran 𝑅)))
147145, 146eqtrd 2793 . . . . . . . . . . . . . . . . 17 ((𝑁 = 0 ∧ 𝑀 ∈ (ℤ‘2) ∧ 𝑅𝑉) → (𝑅𝑟𝑁) = ( I ↾ (dom 𝑅 ∪ ran 𝑅)))
148147coeq2d 5707 . . . . . . . . . . . . . . . 16 ((𝑁 = 0 ∧ 𝑀 ∈ (ℤ‘2) ∧ 𝑅𝑉) → ((𝑅𝑟𝑀) ∘ (𝑅𝑟𝑁)) = ((𝑅𝑟𝑀) ∘ ( I ↾ (dom 𝑅 ∪ ran 𝑅))))
149144oveq1d 7170 . . . . . . . . . . . . . . . . . 18 ((𝑁 = 0 ∧ 𝑀 ∈ (ℤ‘2) ∧ 𝑅𝑉) → (𝑁 + 𝑀) = (0 + 𝑀))
150 eluzelcn 12299 . . . . . . . . . . . . . . . . . . . 20 (𝑀 ∈ (ℤ‘2) → 𝑀 ∈ ℂ)
151131, 150syl 17 . . . . . . . . . . . . . . . . . . 19 ((𝑁 = 0 ∧ 𝑀 ∈ (ℤ‘2) ∧ 𝑅𝑉) → 𝑀 ∈ ℂ)
152151addid2d 10884 . . . . . . . . . . . . . . . . . 18 ((𝑁 = 0 ∧ 𝑀 ∈ (ℤ‘2) ∧ 𝑅𝑉) → (0 + 𝑀) = 𝑀)
153149, 152eqtrd 2793 . . . . . . . . . . . . . . . . 17 ((𝑁 = 0 ∧ 𝑀 ∈ (ℤ‘2) ∧ 𝑅𝑉) → (𝑁 + 𝑀) = 𝑀)
154153oveq2d 7171 . . . . . . . . . . . . . . . 16 ((𝑁 = 0 ∧ 𝑀 ∈ (ℤ‘2) ∧ 𝑅𝑉) → (𝑅𝑟(𝑁 + 𝑀)) = (𝑅𝑟𝑀))
155143, 148, 1543eqtr4d 2803 . . . . . . . . . . . . . . 15 ((𝑁 = 0 ∧ 𝑀 ∈ (ℤ‘2) ∧ 𝑅𝑉) → ((𝑅𝑟𝑀) ∘ (𝑅𝑟𝑁)) = (𝑅𝑟(𝑁 + 𝑀)))
156 nnnn0 11946 . . . . . . . . . . . . . . . . . . 19 (𝑀 ∈ ℕ → 𝑀 ∈ ℕ0)
157131, 136, 1563syl 18 . . . . . . . . . . . . . . . . . 18 ((𝑁 = 0 ∧ 𝑀 ∈ (ℤ‘2) ∧ 𝑅𝑉) → 𝑀 ∈ ℕ0)
158157, 132, 89syl2anc 587 . . . . . . . . . . . . . . . . 17 ((𝑁 = 0 ∧ 𝑀 ∈ (ℤ‘2) ∧ 𝑅𝑉) → (𝑅𝑟𝑀) = (𝑅𝑟𝑀))
159144, 98eqeltrdi 2860 . . . . . . . . . . . . . . . . . 18 ((𝑁 = 0 ∧ 𝑀 ∈ (ℤ‘2) ∧ 𝑅𝑉) → 𝑁 ∈ ℕ0)
160159, 132, 100syl2anc 587 . . . . . . . . . . . . . . . . 17 ((𝑁 = 0 ∧ 𝑀 ∈ (ℤ‘2) ∧ 𝑅𝑉) → (𝑅𝑟𝑁) = (𝑅𝑟𝑁))
161158, 160coeq12d 5709 . . . . . . . . . . . . . . . 16 ((𝑁 = 0 ∧ 𝑀 ∈ (ℤ‘2) ∧ 𝑅𝑉) → ((𝑅𝑟𝑀) ∘ (𝑅𝑟𝑁)) = ((𝑅𝑟𝑀) ∘ (𝑅𝑟𝑁)))
16284, 161syl5eq 2805 . . . . . . . . . . . . . . 15 ((𝑁 = 0 ∧ 𝑀 ∈ (ℤ‘2) ∧ 𝑅𝑉) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = ((𝑅𝑟𝑀) ∘ (𝑅𝑟𝑁)))
163159, 157nn0addcld 12003 . . . . . . . . . . . . . . . 16 ((𝑁 = 0 ∧ 𝑀 ∈ (ℤ‘2) ∧ 𝑅𝑉) → (𝑁 + 𝑀) ∈ ℕ0)
164163, 132, 109syl2anc 587 . . . . . . . . . . . . . . 15 ((𝑁 = 0 ∧ 𝑀 ∈ (ℤ‘2) ∧ 𝑅𝑉) → (𝑅𝑟(𝑁 + 𝑀)) = (𝑅𝑟(𝑁 + 𝑀)))
165155, 162, 1643eqtr4d 2803 . . . . . . . . . . . . . 14 ((𝑁 = 0 ∧ 𝑀 ∈ (ℤ‘2) ∧ 𝑅𝑉) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀)))
166159nn0cnd 12001 . . . . . . . . . . . . . . . . . 18 ((𝑁 = 0 ∧ 𝑀 ∈ (ℤ‘2) ∧ 𝑅𝑉) → 𝑁 ∈ ℂ)
167151, 166addcomd 10885 . . . . . . . . . . . . . . . . 17 ((𝑁 = 0 ∧ 𝑀 ∈ (ℤ‘2) ∧ 𝑅𝑉) → (𝑀 + 𝑁) = (𝑁 + 𝑀))
168 uzaddcl 12349 . . . . . . . . . . . . . . . . . 18 ((𝑀 ∈ (ℤ‘2) ∧ 𝑁 ∈ ℕ0) → (𝑀 + 𝑁) ∈ (ℤ‘2))
169131, 159, 168syl2anc 587 . . . . . . . . . . . . . . . . 17 ((𝑁 = 0 ∧ 𝑀 ∈ (ℤ‘2) ∧ 𝑅𝑉) → (𝑀 + 𝑁) ∈ (ℤ‘2))
170167, 169eqeltrrd 2853 . . . . . . . . . . . . . . . 16 ((𝑁 = 0 ∧ 𝑀 ∈ (ℤ‘2) ∧ 𝑅𝑉) → (𝑁 + 𝑀) ∈ (ℤ‘2))
171 relexpuzrel 14464 . . . . . . . . . . . . . . . 16 (((𝑁 + 𝑀) ∈ (ℤ‘2) ∧ 𝑅𝑉) → Rel (𝑅𝑟(𝑁 + 𝑀)))
172170, 132, 171syl2anc 587 . . . . . . . . . . . . . . 15 ((𝑁 = 0 ∧ 𝑀 ∈ (ℤ‘2) ∧ 𝑅𝑉) → Rel (𝑅𝑟(𝑁 + 𝑀)))
173117, 172, 125sylancr 590 . . . . . . . . . . . . . 14 ((𝑁 = 0 ∧ 𝑀 ∈ (ℤ‘2) ∧ 𝑅𝑉) → (((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀)) ↔ ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀))))
174165, 173mpbird 260 . . . . . . . . . . . . 13 ((𝑁 = 0 ∧ 𝑀 ∈ (ℤ‘2) ∧ 𝑅𝑉) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀)))
175174a1d 25 . . . . . . . . . . . 12 ((𝑁 = 0 ∧ 𝑀 ∈ (ℤ‘2) ∧ 𝑅𝑉) → (((𝑁 + 𝑀) = 1 → Rel 𝑅) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀))))
1761753exp 1116 . . . . . . . . . . 11 (𝑁 = 0 → (𝑀 ∈ (ℤ‘2) → (𝑅𝑉 → (((𝑁 + 𝑀) = 1 → Rel 𝑅) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀))))))
177176com12 32 . . . . . . . . . 10 (𝑀 ∈ (ℤ‘2) → (𝑁 = 0 → (𝑅𝑉 → (((𝑁 + 𝑀) = 1 → Rel 𝑅) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀))))))
178129, 177jaoi 854 . . . . . . . . 9 ((𝑀 = 1 ∨ 𝑀 ∈ (ℤ‘2)) → (𝑁 = 0 → (𝑅𝑉 → (((𝑁 + 𝑀) = 1 → Rel 𝑅) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀))))))
17976, 178sylbi 220 . . . . . . . 8 (𝑀 ∈ ℕ → (𝑁 = 0 → (𝑅𝑉 → (((𝑁 + 𝑀) = 1 → Rel 𝑅) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀))))))
180 coires1 6098 . . . . . . . . . . . . 13 ((𝑅𝑟0) ∘ ( I ↾ (dom 𝑅 ∪ ran 𝑅))) = ((𝑅𝑟0) ↾ (dom 𝑅 ∪ ran 𝑅))
181 simp3 1135 . . . . . . . . . . . . . . 15 ((𝑁 = 0 ∧ 𝑀 = 0 ∧ 𝑅𝑉) → 𝑅𝑉)
182 relexp0rel 14449 . . . . . . . . . . . . . . 15 (𝑅𝑉 → Rel (𝑅𝑟0))
183181, 182syl 17 . . . . . . . . . . . . . 14 ((𝑁 = 0 ∧ 𝑀 = 0 ∧ 𝑅𝑉) → Rel (𝑅𝑟0))
184181, 33syl 17 . . . . . . . . . . . . . . . . 17 ((𝑁 = 0 ∧ 𝑀 = 0 ∧ 𝑅𝑉) → (𝑅𝑟0) = ( I ↾ (dom 𝑅 ∪ ran 𝑅)))
185184dmeqd 5750 . . . . . . . . . . . . . . . 16 ((𝑁 = 0 ∧ 𝑀 = 0 ∧ 𝑅𝑉) → dom (𝑅𝑟0) = dom ( I ↾ (dom 𝑅 ∪ ran 𝑅)))
186 dmresi 5897 . . . . . . . . . . . . . . . 16 dom ( I ↾ (dom 𝑅 ∪ ran 𝑅)) = (dom 𝑅 ∪ ran 𝑅)
187185, 186eqtrdi 2809 . . . . . . . . . . . . . . 15 ((𝑁 = 0 ∧ 𝑀 = 0 ∧ 𝑅𝑉) → dom (𝑅𝑟0) = (dom 𝑅 ∪ ran 𝑅))
188 eqimss 3950 . . . . . . . . . . . . . . 15 (dom (𝑅𝑟0) = (dom 𝑅 ∪ ran 𝑅) → dom (𝑅𝑟0) ⊆ (dom 𝑅 ∪ ran 𝑅))
189187, 188syl 17 . . . . . . . . . . . . . 14 ((𝑁 = 0 ∧ 𝑀 = 0 ∧ 𝑅𝑉) → dom (𝑅𝑟0) ⊆ (dom 𝑅 ∪ ran 𝑅))
190 relssres 5868 . . . . . . . . . . . . . 14 ((Rel (𝑅𝑟0) ∧ dom (𝑅𝑟0) ⊆ (dom 𝑅 ∪ ran 𝑅)) → ((𝑅𝑟0) ↾ (dom 𝑅 ∪ ran 𝑅)) = (𝑅𝑟0))
191183, 189, 190syl2anc 587 . . . . . . . . . . . . 13 ((𝑁 = 0 ∧ 𝑀 = 0 ∧ 𝑅𝑉) → ((𝑅𝑟0) ↾ (dom 𝑅 ∪ ran 𝑅)) = (𝑅𝑟0))
192180, 191syl5eq 2805 . . . . . . . . . . . 12 ((𝑁 = 0 ∧ 𝑀 = 0 ∧ 𝑅𝑉) → ((𝑅𝑟0) ∘ ( I ↾ (dom 𝑅 ∪ ran 𝑅))) = (𝑅𝑟0))
193 simp1 1133 . . . . . . . . . . . . . 14 ((𝑁 = 0 ∧ 𝑀 = 0 ∧ 𝑅𝑉) → 𝑁 = 0)
194193oveq2d 7171 . . . . . . . . . . . . 13 ((𝑁 = 0 ∧ 𝑀 = 0 ∧ 𝑅𝑉) → (𝑅𝑟𝑁) = (𝑅𝑟0))
195 simp2 1134 . . . . . . . . . . . . . . 15 ((𝑁 = 0 ∧ 𝑀 = 0 ∧ 𝑅𝑉) → 𝑀 = 0)
196195oveq2d 7171 . . . . . . . . . . . . . 14 ((𝑁 = 0 ∧ 𝑀 = 0 ∧ 𝑅𝑉) → (𝑅𝑟𝑀) = (𝑅𝑟0))
197196, 184eqtrd 2793 . . . . . . . . . . . . 13 ((𝑁 = 0 ∧ 𝑀 = 0 ∧ 𝑅𝑉) → (𝑅𝑟𝑀) = ( I ↾ (dom 𝑅 ∪ ran 𝑅)))
198194, 197coeq12d 5709 . . . . . . . . . . . 12 ((𝑁 = 0 ∧ 𝑀 = 0 ∧ 𝑅𝑉) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = ((𝑅𝑟0) ∘ ( I ↾ (dom 𝑅 ∪ ran 𝑅))))
199193, 195oveq12d 7173 . . . . . . . . . . . . . 14 ((𝑁 = 0 ∧ 𝑀 = 0 ∧ 𝑅𝑉) → (𝑁 + 𝑀) = (0 + 0))
200 00id 10858 . . . . . . . . . . . . . 14 (0 + 0) = 0
201199, 200eqtrdi 2809 . . . . . . . . . . . . 13 ((𝑁 = 0 ∧ 𝑀 = 0 ∧ 𝑅𝑉) → (𝑁 + 𝑀) = 0)
202201oveq2d 7171 . . . . . . . . . . . 12 ((𝑁 = 0 ∧ 𝑀 = 0 ∧ 𝑅𝑉) → (𝑅𝑟(𝑁 + 𝑀)) = (𝑅𝑟0))
203192, 198, 2023eqtr4d 2803 . . . . . . . . . . 11 ((𝑁 = 0 ∧ 𝑀 = 0 ∧ 𝑅𝑉) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀)))
204203a1d 25 . . . . . . . . . 10 ((𝑁 = 0 ∧ 𝑀 = 0 ∧ 𝑅𝑉) → (((𝑁 + 𝑀) = 1 → Rel 𝑅) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀))))
2052043exp 1116 . . . . . . . . 9 (𝑁 = 0 → (𝑀 = 0 → (𝑅𝑉 → (((𝑁 + 𝑀) = 1 → Rel 𝑅) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀))))))
206205com12 32 . . . . . . . 8 (𝑀 = 0 → (𝑁 = 0 → (𝑅𝑉 → (((𝑁 + 𝑀) = 1 → Rel 𝑅) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀))))))
207179, 206jaoi 854 . . . . . . 7 ((𝑀 ∈ ℕ ∨ 𝑀 = 0) → (𝑁 = 0 → (𝑅𝑉 → (((𝑁 + 𝑀) = 1 → Rel 𝑅) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀))))))
2082, 207sylbi 220 . . . . . 6 (𝑀 ∈ ℕ0 → (𝑁 = 0 → (𝑅𝑉 → (((𝑁 + 𝑀) = 1 → Rel 𝑅) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀))))))
209208com12 32 . . . . 5 (𝑁 = 0 → (𝑀 ∈ ℕ0 → (𝑅𝑉 → (((𝑁 + 𝑀) = 1 → Rel 𝑅) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀))))))
2102093impd 1345 . . . 4 (𝑁 = 0 → ((𝑀 ∈ ℕ0𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅)) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀))))
21175, 210jaoi 854 . . 3 ((𝑁 ∈ ℕ ∨ 𝑁 = 0) → ((𝑀 ∈ ℕ0𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅)) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀))))
2121, 211sylbi 220 . 2 (𝑁 ∈ ℕ0 → ((𝑀 ∈ ℕ0𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅)) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀))))
213212imp 410 1 ((𝑁 ∈ ℕ0 ∧ (𝑀 ∈ ℕ0𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀)))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 209  wa 399  wo 844  w3a 1084   = wceq 1538  wcel 2111  Vcvv 3409  cun 3858  wss 3860   I cid 5432  ccnv 5526  dom cdm 5527  ran crn 5528  cres 5529  ccom 5531  Rel wrel 5532  cfv 6339  (class class class)co 7155  cc 10578  0cc0 10580  1c1 10581   + caddc 10583  cn 11679  2c2 11734  0cn0 11939  cuz 12287  𝑟crelexp 14431
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1797  ax-4 1811  ax-5 1911  ax-6 1970  ax-7 2015  ax-8 2113  ax-9 2121  ax-10 2142  ax-11 2158  ax-12 2175  ax-ext 2729  ax-sep 5172  ax-nul 5179  ax-pow 5237  ax-pr 5301  ax-un 7464  ax-cnex 10636  ax-resscn 10637  ax-1cn 10638  ax-icn 10639  ax-addcl 10640  ax-addrcl 10641  ax-mulcl 10642  ax-mulrcl 10643  ax-mulcom 10644  ax-addass 10645  ax-mulass 10646  ax-distr 10647  ax-i2m1 10648  ax-1ne0 10649  ax-1rid 10650  ax-rnegex 10651  ax-rrecex 10652  ax-cnre 10653  ax-pre-lttri 10654  ax-pre-lttrn 10655  ax-pre-ltadd 10656  ax-pre-mulgt0 10657
This theorem depends on definitions:  df-bi 210  df-an 400  df-or 845  df-3or 1085  df-3an 1086  df-tru 1541  df-fal 1551  df-ex 1782  df-nf 1786  df-sb 2070  df-mo 2557  df-eu 2588  df-clab 2736  df-cleq 2750  df-clel 2830  df-nfc 2901  df-ne 2952  df-nel 3056  df-ral 3075  df-rex 3076  df-reu 3077  df-rab 3079  df-v 3411  df-sbc 3699  df-csb 3808  df-dif 3863  df-un 3865  df-in 3867  df-ss 3877  df-pss 3879  df-nul 4228  df-if 4424  df-pw 4499  df-sn 4526  df-pr 4528  df-tp 4530  df-op 4532  df-uni 4802  df-iun 4888  df-br 5036  df-opab 5098  df-mpt 5116  df-tr 5142  df-id 5433  df-eprel 5438  df-po 5446  df-so 5447  df-fr 5486  df-we 5488  df-xp 5533  df-rel 5534  df-cnv 5535  df-co 5536  df-dm 5537  df-rn 5538  df-res 5539  df-ima 5540  df-pred 6130  df-ord 6176  df-on 6177  df-lim 6178  df-suc 6179  df-iota 6298  df-fun 6341  df-fn 6342  df-f 6343  df-f1 6344  df-fo 6345  df-f1o 6346  df-fv 6347  df-riota 7113  df-ov 7158  df-oprab 7159  df-mpo 7160  df-om 7585  df-2nd 7699  df-wrecs 7962  df-recs 8023  df-rdg 8061  df-er 8304  df-en 8533  df-dom 8534  df-sdom 8535  df-pnf 10720  df-mnf 10721  df-xr 10722  df-ltxr 10723  df-le 10724  df-sub 10915  df-neg 10916  df-nn 11680  df-2 11742  df-n0 11940  df-z 12026  df-uz 12288  df-seq 13424  df-relexp 14432
This theorem is referenced by:  relexpaddd  14466  relexpnul  40780
  Copyright terms: Public domain W3C validator