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

Theorem relexpaddg 14764
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 12235 . . 3 (𝑁 ∈ ℕ0 ↔ (𝑁 ∈ ℕ ∨ 𝑁 = 0))
2 elnn0 12235 . . . . . . 7 (𝑀 ∈ ℕ0 ↔ (𝑀 ∈ ℕ ∨ 𝑀 = 0))
3 relexpaddnn 14762 . . . . . . . . . . 11 ((𝑁 ∈ ℕ ∧ 𝑀 ∈ ℕ ∧ 𝑅𝑉) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀)))
43a1d 25 . . . . . . . . . 10 ((𝑁 ∈ ℕ ∧ 𝑀 ∈ ℕ ∧ 𝑅𝑉) → (((𝑁 + 𝑀) = 1 → Rel 𝑅) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀))))
543exp 1118 . . . . . . . . 9 (𝑁 ∈ ℕ → (𝑀 ∈ ℕ → (𝑅𝑉 → (((𝑁 + 𝑀) = 1 → Rel 𝑅) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀))))))
65com12 32 . . . . . . . 8 (𝑀 ∈ ℕ → (𝑁 ∈ ℕ → (𝑅𝑉 → (((𝑁 + 𝑀) = 1 → Rel 𝑅) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀))))))
7 elnn1uz2 12665 . . . . . . . . . 10 (𝑁 ∈ ℕ ↔ (𝑁 = 1 ∨ 𝑁 ∈ (ℤ‘2)))
8 coires1 6168 . . . . . . . . . . . . . 14 ((𝑅𝑟𝑁) ∘ ( I ↾ (dom 𝑅 ∪ ran 𝑅))) = ((𝑅𝑟𝑁) ↾ (dom 𝑅 ∪ ran 𝑅))
9 simpll 764 . . . . . . . . . . . . . . . . . . 19 (((𝑁 = 1 ∧ 𝑀 = 0) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → 𝑁 = 1)
10 simplr 766 . . . . . . . . . . . . . . . . . . 19 (((𝑁 = 1 ∧ 𝑀 = 0) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → 𝑀 = 0)
119, 10oveq12d 7293 . . . . . . . . . . . . . . . . . 18 (((𝑁 = 1 ∧ 𝑀 = 0) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → (𝑁 + 𝑀) = (1 + 0))
12 1p0e1 12097 . . . . . . . . . . . . . . . . . 18 (1 + 0) = 1
1311, 12eqtrdi 2794 . . . . . . . . . . . . . . . . 17 (((𝑁 = 1 ∧ 𝑀 = 0) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → (𝑁 + 𝑀) = 1)
14 simprr 770 . . . . . . . . . . . . . . . . 17 (((𝑁 = 1 ∧ 𝑀 = 0) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → ((𝑁 + 𝑀) = 1 → Rel 𝑅))
1513, 14mpd 15 . . . . . . . . . . . . . . . 16 (((𝑁 = 1 ∧ 𝑀 = 0) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → Rel 𝑅)
169oveq2d 7291 . . . . . . . . . . . . . . . . . 18 (((𝑁 = 1 ∧ 𝑀 = 0) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → (𝑅𝑟𝑁) = (𝑅𝑟1))
17 simprl 768 . . . . . . . . . . . . . . . . . . 19 (((𝑁 = 1 ∧ 𝑀 = 0) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → 𝑅𝑉)
18 relexp1g 14737 . . . . . . . . . . . . . . . . . . 19 (𝑅𝑉 → (𝑅𝑟1) = 𝑅)
1917, 18syl 17 . . . . . . . . . . . . . . . . . 18 (((𝑁 = 1 ∧ 𝑀 = 0) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → (𝑅𝑟1) = 𝑅)
2016, 19eqtrd 2778 . . . . . . . . . . . . . . . . 17 (((𝑁 = 1 ∧ 𝑀 = 0) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → (𝑅𝑟𝑁) = 𝑅)
2120releqd 5689 . . . . . . . . . . . . . . . 16 (((𝑁 = 1 ∧ 𝑀 = 0) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → (Rel (𝑅𝑟𝑁) ↔ Rel 𝑅))
2215, 21mpbird 256 . . . . . . . . . . . . . . 15 (((𝑁 = 1 ∧ 𝑀 = 0) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → Rel (𝑅𝑟𝑁))
23 1nn 11984 . . . . . . . . . . . . . . . . . 18 1 ∈ ℕ
249, 23eqeltrdi 2847 . . . . . . . . . . . . . . . . 17 (((𝑁 = 1 ∧ 𝑀 = 0) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → 𝑁 ∈ ℕ)
25 relexpnndm 14752 . . . . . . . . . . . . . . . . 17 ((𝑁 ∈ ℕ ∧ 𝑅𝑉) → dom (𝑅𝑟𝑁) ⊆ dom 𝑅)
2624, 17, 25syl2anc 584 . . . . . . . . . . . . . . . 16 (((𝑁 = 1 ∧ 𝑀 = 0) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → dom (𝑅𝑟𝑁) ⊆ dom 𝑅)
27 ssun1 4106 . . . . . . . . . . . . . . . 16 dom 𝑅 ⊆ (dom 𝑅 ∪ ran 𝑅)
2826, 27sstrdi 3933 . . . . . . . . . . . . . . 15 (((𝑁 = 1 ∧ 𝑀 = 0) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → dom (𝑅𝑟𝑁) ⊆ (dom 𝑅 ∪ ran 𝑅))
29 relssres 5932 . . . . . . . . . . . . . . 15 ((Rel (𝑅𝑟𝑁) ∧ dom (𝑅𝑟𝑁) ⊆ (dom 𝑅 ∪ ran 𝑅)) → ((𝑅𝑟𝑁) ↾ (dom 𝑅 ∪ ran 𝑅)) = (𝑅𝑟𝑁))
3022, 28, 29syl2anc 584 . . . . . . . . . . . . . 14 (((𝑁 = 1 ∧ 𝑀 = 0) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → ((𝑅𝑟𝑁) ↾ (dom 𝑅 ∪ ran 𝑅)) = (𝑅𝑟𝑁))
318, 30eqtrid 2790 . . . . . . . . . . . . 13 (((𝑁 = 1 ∧ 𝑀 = 0) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → ((𝑅𝑟𝑁) ∘ ( I ↾ (dom 𝑅 ∪ ran 𝑅))) = (𝑅𝑟𝑁))
3210oveq2d 7291 . . . . . . . . . . . . . . 15 (((𝑁 = 1 ∧ 𝑀 = 0) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → (𝑅𝑟𝑀) = (𝑅𝑟0))
33 relexp0g 14733 . . . . . . . . . . . . . . . 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 5771 . . . . . . . . . . . . 13 (((𝑁 = 1 ∧ 𝑀 = 0) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = ((𝑅𝑟𝑁) ∘ ( I ↾ (dom 𝑅 ∪ ran 𝑅))))
3710oveq2d 7291 . . . . . . . . . . . . . . 15 (((𝑁 = 1 ∧ 𝑀 = 0) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → (𝑁 + 𝑀) = (𝑁 + 0))
38 ax-1cn 10929 . . . . . . . . . . . . . . . . 17 1 ∈ ℂ
399, 38eqeltrdi 2847 . . . . . . . . . . . . . . . 16 (((𝑁 = 1 ∧ 𝑀 = 0) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → 𝑁 ∈ ℂ)
4039addid1d 11175 . . . . . . . . . . . . . . 15 (((𝑁 = 1 ∧ 𝑀 = 0) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → (𝑁 + 0) = 𝑁)
4137, 40eqtrd 2778 . . . . . . . . . . . . . 14 (((𝑁 = 1 ∧ 𝑀 = 0) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → (𝑁 + 𝑀) = 𝑁)
4241oveq2d 7291 . . . . . . . . . . . . 13 (((𝑁 = 1 ∧ 𝑀 = 0) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → (𝑅𝑟(𝑁 + 𝑀)) = (𝑅𝑟𝑁))
4331, 36, 423eqtr4d 2788 . . . . . . . . . . . 12 (((𝑁 = 1 ∧ 𝑀 = 0) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀)))
4443exp43 437 . . . . . . . . . . 11 (𝑁 = 1 → (𝑀 = 0 → (𝑅𝑉 → (((𝑁 + 𝑀) = 1 → Rel 𝑅) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀))))))
45 simp1 1135 . . . . . . . . . . . . . . . . 17 ((𝑁 ∈ (ℤ‘2) ∧ 𝑀 = 0 ∧ 𝑅𝑉) → 𝑁 ∈ (ℤ‘2))
46 simp3 1137 . . . . . . . . . . . . . . . . 17 ((𝑁 ∈ (ℤ‘2) ∧ 𝑀 = 0 ∧ 𝑅𝑉) → 𝑅𝑉)
47 relexpuzrel 14763 . . . . . . . . . . . . . . . . 17 ((𝑁 ∈ (ℤ‘2) ∧ 𝑅𝑉) → Rel (𝑅𝑟𝑁))
4845, 46, 47syl2anc 584 . . . . . . . . . . . . . . . 16 ((𝑁 ∈ (ℤ‘2) ∧ 𝑀 = 0 ∧ 𝑅𝑉) → Rel (𝑅𝑟𝑁))
49 eluz2nn 12624 . . . . . . . . . . . . . . . . . . 19 (𝑁 ∈ (ℤ‘2) → 𝑁 ∈ ℕ)
5045, 49syl 17 . . . . . . . . . . . . . . . . . 18 ((𝑁 ∈ (ℤ‘2) ∧ 𝑀 = 0 ∧ 𝑅𝑉) → 𝑁 ∈ ℕ)
5150, 46, 25syl2anc 584 . . . . . . . . . . . . . . . . 17 ((𝑁 ∈ (ℤ‘2) ∧ 𝑀 = 0 ∧ 𝑅𝑉) → dom (𝑅𝑟𝑁) ⊆ dom 𝑅)
5251, 27sstrdi 3933 . . . . . . . . . . . . . . . 16 ((𝑁 ∈ (ℤ‘2) ∧ 𝑀 = 0 ∧ 𝑅𝑉) → dom (𝑅𝑟𝑁) ⊆ (dom 𝑅 ∪ ran 𝑅))
5348, 52, 29syl2anc 584 . . . . . . . . . . . . . . 15 ((𝑁 ∈ (ℤ‘2) ∧ 𝑀 = 0 ∧ 𝑅𝑉) → ((𝑅𝑟𝑁) ↾ (dom 𝑅 ∪ ran 𝑅)) = (𝑅𝑟𝑁))
548, 53eqtrid 2790 . . . . . . . . . . . . . 14 ((𝑁 ∈ (ℤ‘2) ∧ 𝑀 = 0 ∧ 𝑅𝑉) → ((𝑅𝑟𝑁) ∘ ( I ↾ (dom 𝑅 ∪ ran 𝑅))) = (𝑅𝑟𝑁))
55 simp2 1136 . . . . . . . . . . . . . . . . 17 ((𝑁 ∈ (ℤ‘2) ∧ 𝑀 = 0 ∧ 𝑅𝑉) → 𝑀 = 0)
5655oveq2d 7291 . . . . . . . . . . . . . . . 16 ((𝑁 ∈ (ℤ‘2) ∧ 𝑀 = 0 ∧ 𝑅𝑉) → (𝑅𝑟𝑀) = (𝑅𝑟0))
5746, 33syl 17 . . . . . . . . . . . . . . . 16 ((𝑁 ∈ (ℤ‘2) ∧ 𝑀 = 0 ∧ 𝑅𝑉) → (𝑅𝑟0) = ( I ↾ (dom 𝑅 ∪ ran 𝑅)))
5856, 57eqtrd 2778 . . . . . . . . . . . . . . 15 ((𝑁 ∈ (ℤ‘2) ∧ 𝑀 = 0 ∧ 𝑅𝑉) → (𝑅𝑟𝑀) = ( I ↾ (dom 𝑅 ∪ ran 𝑅)))
5958coeq2d 5771 . . . . . . . . . . . . . 14 ((𝑁 ∈ (ℤ‘2) ∧ 𝑀 = 0 ∧ 𝑅𝑉) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = ((𝑅𝑟𝑁) ∘ ( I ↾ (dom 𝑅 ∪ ran 𝑅))))
6055oveq2d 7291 . . . . . . . . . . . . . . . 16 ((𝑁 ∈ (ℤ‘2) ∧ 𝑀 = 0 ∧ 𝑅𝑉) → (𝑁 + 𝑀) = (𝑁 + 0))
61 eluzelcn 12594 . . . . . . . . . . . . . . . . . 18 (𝑁 ∈ (ℤ‘2) → 𝑁 ∈ ℂ)
6245, 61syl 17 . . . . . . . . . . . . . . . . 17 ((𝑁 ∈ (ℤ‘2) ∧ 𝑀 = 0 ∧ 𝑅𝑉) → 𝑁 ∈ ℂ)
6362addid1d 11175 . . . . . . . . . . . . . . . 16 ((𝑁 ∈ (ℤ‘2) ∧ 𝑀 = 0 ∧ 𝑅𝑉) → (𝑁 + 0) = 𝑁)
6460, 63eqtrd 2778 . . . . . . . . . . . . . . 15 ((𝑁 ∈ (ℤ‘2) ∧ 𝑀 = 0 ∧ 𝑅𝑉) → (𝑁 + 𝑀) = 𝑁)
6564oveq2d 7291 . . . . . . . . . . . . . 14 ((𝑁 ∈ (ℤ‘2) ∧ 𝑀 = 0 ∧ 𝑅𝑉) → (𝑅𝑟(𝑁 + 𝑀)) = (𝑅𝑟𝑁))
6654, 59, 653eqtr4d 2788 . . . . . . . . . . . . 13 ((𝑁 ∈ (ℤ‘2) ∧ 𝑀 = 0 ∧ 𝑅𝑉) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀)))
6766a1d 25 . . . . . . . . . . . 12 ((𝑁 ∈ (ℤ‘2) ∧ 𝑀 = 0 ∧ 𝑅𝑉) → (((𝑁 + 𝑀) = 1 → Rel 𝑅) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀))))
68673exp 1118 . . . . . . . . . . 11 (𝑁 ∈ (ℤ‘2) → (𝑀 = 0 → (𝑅𝑉 → (((𝑁 + 𝑀) = 1 → Rel 𝑅) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀))))))
6944, 68jaoi 854 . . . . . . . . . 10 ((𝑁 = 1 ∨ 𝑁 ∈ (ℤ‘2)) → (𝑀 = 0 → (𝑅𝑉 → (((𝑁 + 𝑀) = 1 → Rel 𝑅) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀))))))
707, 69sylbi 216 . . . . . . . . 9 (𝑁 ∈ ℕ → (𝑀 = 0 → (𝑅𝑉 → (((𝑁 + 𝑀) = 1 → Rel 𝑅) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀))))))
7170com12 32 . . . . . . . 8 (𝑀 = 0 → (𝑁 ∈ ℕ → (𝑅𝑉 → (((𝑁 + 𝑀) = 1 → Rel 𝑅) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀))))))
726, 71jaoi 854 . . . . . . 7 ((𝑀 ∈ ℕ ∨ 𝑀 = 0) → (𝑁 ∈ ℕ → (𝑅𝑉 → (((𝑁 + 𝑀) = 1 → Rel 𝑅) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀))))))
732, 72sylbi 216 . . . . . 6 (𝑀 ∈ ℕ0 → (𝑁 ∈ ℕ → (𝑅𝑉 → (((𝑁 + 𝑀) = 1 → Rel 𝑅) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀))))))
7473com12 32 . . . . 5 (𝑁 ∈ ℕ → (𝑀 ∈ ℕ0 → (𝑅𝑉 → (((𝑁 + 𝑀) = 1 → Rel 𝑅) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀))))))
75743impd 1347 . . . 4 (𝑁 ∈ ℕ → ((𝑀 ∈ ℕ0𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅)) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀))))
76 elnn1uz2 12665 . . . . . . . . 9 (𝑀 ∈ ℕ ↔ (𝑀 = 1 ∨ 𝑀 ∈ (ℤ‘2)))
77 coires1 6168 . . . . . . . . . . . . . . 15 (𝑅 ∘ ( I ↾ (dom 𝑅 ∪ ran 𝑅))) = (𝑅 ↾ (dom 𝑅 ∪ ran 𝑅))
78 relcnv 6012 . . . . . . . . . . . . . . . . 17 Rel 𝑅
79 ssun1 4106 . . . . . . . . . . . . . . . . 17 dom 𝑅 ⊆ (dom 𝑅 ∪ ran 𝑅)
8078, 79pm3.2i 471 . . . . . . . . . . . . . . . 16 (Rel 𝑅 ∧ dom 𝑅 ⊆ (dom 𝑅 ∪ ran 𝑅))
81 relssres 5932 . . . . . . . . . . . . . . . 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 5794 . . . . . . . . . . . . . . 15 ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = ((𝑅𝑟𝑀) ∘ (𝑅𝑟𝑁))
85 simplr 766 . . . . . . . . . . . . . . . . . . 19 (((𝑁 = 0 ∧ 𝑀 = 1) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → 𝑀 = 1)
86 1nn0 12249 . . . . . . . . . . . . . . . . . . 19 1 ∈ ℕ0
8785, 86eqeltrdi 2847 . . . . . . . . . . . . . . . . . 18 (((𝑁 = 0 ∧ 𝑀 = 1) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → 𝑀 ∈ ℕ0)
88 simprl 768 . . . . . . . . . . . . . . . . . 18 (((𝑁 = 0 ∧ 𝑀 = 1) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → 𝑅𝑉)
89 relexpcnv 14746 . . . . . . . . . . . . . . . . . 18 ((𝑀 ∈ ℕ0𝑅𝑉) → (𝑅𝑟𝑀) = (𝑅𝑟𝑀))
9087, 88, 89syl2anc 584 . . . . . . . . . . . . . . . . 17 (((𝑁 = 0 ∧ 𝑀 = 1) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → (𝑅𝑟𝑀) = (𝑅𝑟𝑀))
9185oveq2d 7291 . . . . . . . . . . . . . . . . 17 (((𝑁 = 0 ∧ 𝑀 = 1) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → (𝑅𝑟𝑀) = (𝑅𝑟1))
92 cnvexg 7771 . . . . . . . . . . . . . . . . . . 19 (𝑅𝑉𝑅 ∈ V)
9388, 92syl 17 . . . . . . . . . . . . . . . . . 18 (((𝑁 = 0 ∧ 𝑀 = 1) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → 𝑅 ∈ V)
94 relexp1g 14737 . . . . . . . . . . . . . . . . . 18 (𝑅 ∈ V → (𝑅𝑟1) = 𝑅)
9593, 94syl 17 . . . . . . . . . . . . . . . . 17 (((𝑁 = 0 ∧ 𝑀 = 1) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → (𝑅𝑟1) = 𝑅)
9690, 91, 953eqtrd 2782 . . . . . . . . . . . . . . . 16 (((𝑁 = 0 ∧ 𝑀 = 1) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → (𝑅𝑟𝑀) = 𝑅)
97 simpll 764 . . . . . . . . . . . . . . . . . . 19 (((𝑁 = 0 ∧ 𝑀 = 1) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → 𝑁 = 0)
98 0nn0 12248 . . . . . . . . . . . . . . . . . . 19 0 ∈ ℕ0
9997, 98eqeltrdi 2847 . . . . . . . . . . . . . . . . . 18 (((𝑁 = 0 ∧ 𝑀 = 1) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → 𝑁 ∈ ℕ0)
100 relexpcnv 14746 . . . . . . . . . . . . . . . . . 18 ((𝑁 ∈ ℕ0𝑅𝑉) → (𝑅𝑟𝑁) = (𝑅𝑟𝑁))
10199, 88, 100syl2anc 584 . . . . . . . . . . . . . . . . 17 (((𝑁 = 0 ∧ 𝑀 = 1) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → (𝑅𝑟𝑁) = (𝑅𝑟𝑁))
10297oveq2d 7291 . . . . . . . . . . . . . . . . 17 (((𝑁 = 0 ∧ 𝑀 = 1) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → (𝑅𝑟𝑁) = (𝑅𝑟0))
103 relexp0g 14733 . . . . . . . . . . . . . . . . . 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 5773 . . . . . . . . . . . . . . 15 (((𝑁 = 0 ∧ 𝑀 = 1) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → ((𝑅𝑟𝑀) ∘ (𝑅𝑟𝑁)) = (𝑅 ∘ ( I ↾ (dom 𝑅 ∪ ran 𝑅))))
10784, 106eqtrid 2790 . . . . . . . . . . . . . 14 (((𝑁 = 0 ∧ 𝑀 = 1) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅 ∘ ( I ↾ (dom 𝑅 ∪ ran 𝑅))))
10899, 87nn0addcld 12297 . . . . . . . . . . . . . . . 16 (((𝑁 = 0 ∧ 𝑀 = 1) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → (𝑁 + 𝑀) ∈ ℕ0)
109 relexpcnv 14746 . . . . . . . . . . . . . . . 16 (((𝑁 + 𝑀) ∈ ℕ0𝑅𝑉) → (𝑅𝑟(𝑁 + 𝑀)) = (𝑅𝑟(𝑁 + 𝑀)))
110108, 88, 109syl2anc 584 . . . . . . . . . . . . . . 15 (((𝑁 = 0 ∧ 𝑀 = 1) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → (𝑅𝑟(𝑁 + 𝑀)) = (𝑅𝑟(𝑁 + 𝑀)))
11197, 85oveq12d 7293 . . . . . . . . . . . . . . . . 17 (((𝑁 = 0 ∧ 𝑀 = 1) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → (𝑁 + 𝑀) = (0 + 1))
112 0p1e1 12095 . . . . . . . . . . . . . . . . 17 (0 + 1) = 1
113111, 112eqtrdi 2794 . . . . . . . . . . . . . . . 16 (((𝑁 = 0 ∧ 𝑀 = 1) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → (𝑁 + 𝑀) = 1)
114113oveq2d 7291 . . . . . . . . . . . . . . 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 6148 . . . . . . . . . . . . . 14 Rel ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀))
118 simprr 770 . . . . . . . . . . . . . . . 16 (((𝑁 = 0 ∧ 𝑀 = 1) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → ((𝑁 + 𝑀) = 1 → Rel 𝑅))
119113, 118mpd 15 . . . . . . . . . . . . . . 15 (((𝑁 = 0 ∧ 𝑀 = 1) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → Rel 𝑅)
120113oveq2d 7291 . . . . . . . . . . . . . . . . 17 (((𝑁 = 0 ∧ 𝑀 = 1) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → (𝑅𝑟(𝑁 + 𝑀)) = (𝑅𝑟1))
12188, 18syl 17 . . . . . . . . . . . . . . . . 17 (((𝑁 = 0 ∧ 𝑀 = 1) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → (𝑅𝑟1) = 𝑅)
122120, 121eqtrd 2778 . . . . . . . . . . . . . . . 16 (((𝑁 = 0 ∧ 𝑀 = 1) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → (𝑅𝑟(𝑁 + 𝑀)) = 𝑅)
123122releqd 5689 . . . . . . . . . . . . . . 15 (((𝑁 = 0 ∧ 𝑀 = 1) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → (Rel (𝑅𝑟(𝑁 + 𝑀)) ↔ Rel 𝑅))
124119, 123mpbird 256 . . . . . . . . . . . . . 14 (((𝑁 = 0 ∧ 𝑀 = 1) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → Rel (𝑅𝑟(𝑁 + 𝑀)))
125 cnveqb 6099 . . . . . . . . . . . . . 14 ((Rel ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) ∧ Rel (𝑅𝑟(𝑁 + 𝑀))) → (((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀)) ↔ ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀))))
126117, 124, 125sylancr 587 . . . . . . . . . . . . 13 (((𝑁 = 0 ∧ 𝑀 = 1) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → (((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀)) ↔ ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀))))
127116, 126mpbird 256 . . . . . . . . . . . 12 (((𝑁 = 0 ∧ 𝑀 = 1) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀)))
128127exp43 437 . . . . . . . . . . 11 (𝑁 = 0 → (𝑀 = 1 → (𝑅𝑉 → (((𝑁 + 𝑀) = 1 → Rel 𝑅) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀))))))
129128com12 32 . . . . . . . . . 10 (𝑀 = 1 → (𝑁 = 0 → (𝑅𝑉 → (((𝑁 + 𝑀) = 1 → Rel 𝑅) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀))))))
130 coires1 6168 . . . . . . . . . . . . . . . . 17 ((𝑅𝑟𝑀) ∘ ( I ↾ (dom 𝑅 ∪ ran 𝑅))) = ((𝑅𝑟𝑀) ↾ (dom 𝑅 ∪ ran 𝑅))
131 simp2 1136 . . . . . . . . . . . . . . . . . . 19 ((𝑁 = 0 ∧ 𝑀 ∈ (ℤ‘2) ∧ 𝑅𝑉) → 𝑀 ∈ (ℤ‘2))
132 simp3 1137 . . . . . . . . . . . . . . . . . . . 20 ((𝑁 = 0 ∧ 𝑀 ∈ (ℤ‘2) ∧ 𝑅𝑉) → 𝑅𝑉)
133132, 92syl 17 . . . . . . . . . . . . . . . . . . 19 ((𝑁 = 0 ∧ 𝑀 ∈ (ℤ‘2) ∧ 𝑅𝑉) → 𝑅 ∈ V)
134 relexpuzrel 14763 . . . . . . . . . . . . . . . . . . 19 ((𝑀 ∈ (ℤ‘2) ∧ 𝑅 ∈ V) → Rel (𝑅𝑟𝑀))
135131, 133, 134syl2anc 584 . . . . . . . . . . . . . . . . . 18 ((𝑁 = 0 ∧ 𝑀 ∈ (ℤ‘2) ∧ 𝑅𝑉) → Rel (𝑅𝑟𝑀))
136 eluz2nn 12624 . . . . . . . . . . . . . . . . . . . . 21 (𝑀 ∈ (ℤ‘2) → 𝑀 ∈ ℕ)
137131, 136syl 17 . . . . . . . . . . . . . . . . . . . 20 ((𝑁 = 0 ∧ 𝑀 ∈ (ℤ‘2) ∧ 𝑅𝑉) → 𝑀 ∈ ℕ)
138 relexpnndm 14752 . . . . . . . . . . . . . . . . . . . 20 ((𝑀 ∈ ℕ ∧ 𝑅 ∈ V) → dom (𝑅𝑟𝑀) ⊆ dom 𝑅)
139137, 133, 138syl2anc 584 . . . . . . . . . . . . . . . . . . 19 ((𝑁 = 0 ∧ 𝑀 ∈ (ℤ‘2) ∧ 𝑅𝑉) → dom (𝑅𝑟𝑀) ⊆ dom 𝑅)
140139, 79sstrdi 3933 . . . . . . . . . . . . . . . . . 18 ((𝑁 = 0 ∧ 𝑀 ∈ (ℤ‘2) ∧ 𝑅𝑉) → dom (𝑅𝑟𝑀) ⊆ (dom 𝑅 ∪ ran 𝑅))
141 relssres 5932 . . . . . . . . . . . . . . . . . 18 ((Rel (𝑅𝑟𝑀) ∧ dom (𝑅𝑟𝑀) ⊆ (dom 𝑅 ∪ ran 𝑅)) → ((𝑅𝑟𝑀) ↾ (dom 𝑅 ∪ ran 𝑅)) = (𝑅𝑟𝑀))
142135, 140, 141syl2anc 584 . . . . . . . . . . . . . . . . 17 ((𝑁 = 0 ∧ 𝑀 ∈ (ℤ‘2) ∧ 𝑅𝑉) → ((𝑅𝑟𝑀) ↾ (dom 𝑅 ∪ ran 𝑅)) = (𝑅𝑟𝑀))
143130, 142eqtrid 2790 . . . . . . . . . . . . . . . 16 ((𝑁 = 0 ∧ 𝑀 ∈ (ℤ‘2) ∧ 𝑅𝑉) → ((𝑅𝑟𝑀) ∘ ( I ↾ (dom 𝑅 ∪ ran 𝑅))) = (𝑅𝑟𝑀))
144 simp1 1135 . . . . . . . . . . . . . . . . . . 19 ((𝑁 = 0 ∧ 𝑀 ∈ (ℤ‘2) ∧ 𝑅𝑉) → 𝑁 = 0)
145144oveq2d 7291 . . . . . . . . . . . . . . . . . 18 ((𝑁 = 0 ∧ 𝑀 ∈ (ℤ‘2) ∧ 𝑅𝑉) → (𝑅𝑟𝑁) = (𝑅𝑟0))
146133, 103syl 17 . . . . . . . . . . . . . . . . . 18 ((𝑁 = 0 ∧ 𝑀 ∈ (ℤ‘2) ∧ 𝑅𝑉) → (𝑅𝑟0) = ( I ↾ (dom 𝑅 ∪ ran 𝑅)))
147145, 146eqtrd 2778 . . . . . . . . . . . . . . . . 17 ((𝑁 = 0 ∧ 𝑀 ∈ (ℤ‘2) ∧ 𝑅𝑉) → (𝑅𝑟𝑁) = ( I ↾ (dom 𝑅 ∪ ran 𝑅)))
148147coeq2d 5771 . . . . . . . . . . . . . . . 16 ((𝑁 = 0 ∧ 𝑀 ∈ (ℤ‘2) ∧ 𝑅𝑉) → ((𝑅𝑟𝑀) ∘ (𝑅𝑟𝑁)) = ((𝑅𝑟𝑀) ∘ ( I ↾ (dom 𝑅 ∪ ran 𝑅))))
149144oveq1d 7290 . . . . . . . . . . . . . . . . . 18 ((𝑁 = 0 ∧ 𝑀 ∈ (ℤ‘2) ∧ 𝑅𝑉) → (𝑁 + 𝑀) = (0 + 𝑀))
150 eluzelcn 12594 . . . . . . . . . . . . . . . . . . . 20 (𝑀 ∈ (ℤ‘2) → 𝑀 ∈ ℂ)
151131, 150syl 17 . . . . . . . . . . . . . . . . . . 19 ((𝑁 = 0 ∧ 𝑀 ∈ (ℤ‘2) ∧ 𝑅𝑉) → 𝑀 ∈ ℂ)
152151addid2d 11176 . . . . . . . . . . . . . . . . . 18 ((𝑁 = 0 ∧ 𝑀 ∈ (ℤ‘2) ∧ 𝑅𝑉) → (0 + 𝑀) = 𝑀)
153149, 152eqtrd 2778 . . . . . . . . . . . . . . . . 17 ((𝑁 = 0 ∧ 𝑀 ∈ (ℤ‘2) ∧ 𝑅𝑉) → (𝑁 + 𝑀) = 𝑀)
154153oveq2d 7291 . . . . . . . . . . . . . . . 16 ((𝑁 = 0 ∧ 𝑀 ∈ (ℤ‘2) ∧ 𝑅𝑉) → (𝑅𝑟(𝑁 + 𝑀)) = (𝑅𝑟𝑀))
155143, 148, 1543eqtr4d 2788 . . . . . . . . . . . . . . 15 ((𝑁 = 0 ∧ 𝑀 ∈ (ℤ‘2) ∧ 𝑅𝑉) → ((𝑅𝑟𝑀) ∘ (𝑅𝑟𝑁)) = (𝑅𝑟(𝑁 + 𝑀)))
156 nnnn0 12240 . . . . . . . . . . . . . . . . . . 19 (𝑀 ∈ ℕ → 𝑀 ∈ ℕ0)
157131, 136, 1563syl 18 . . . . . . . . . . . . . . . . . 18 ((𝑁 = 0 ∧ 𝑀 ∈ (ℤ‘2) ∧ 𝑅𝑉) → 𝑀 ∈ ℕ0)
158157, 132, 89syl2anc 584 . . . . . . . . . . . . . . . . 17 ((𝑁 = 0 ∧ 𝑀 ∈ (ℤ‘2) ∧ 𝑅𝑉) → (𝑅𝑟𝑀) = (𝑅𝑟𝑀))
159144, 98eqeltrdi 2847 . . . . . . . . . . . . . . . . . 18 ((𝑁 = 0 ∧ 𝑀 ∈ (ℤ‘2) ∧ 𝑅𝑉) → 𝑁 ∈ ℕ0)
160159, 132, 100syl2anc 584 . . . . . . . . . . . . . . . . 17 ((𝑁 = 0 ∧ 𝑀 ∈ (ℤ‘2) ∧ 𝑅𝑉) → (𝑅𝑟𝑁) = (𝑅𝑟𝑁))
161158, 160coeq12d 5773 . . . . . . . . . . . . . . . 16 ((𝑁 = 0 ∧ 𝑀 ∈ (ℤ‘2) ∧ 𝑅𝑉) → ((𝑅𝑟𝑀) ∘ (𝑅𝑟𝑁)) = ((𝑅𝑟𝑀) ∘ (𝑅𝑟𝑁)))
16284, 161eqtrid 2790 . . . . . . . . . . . . . . 15 ((𝑁 = 0 ∧ 𝑀 ∈ (ℤ‘2) ∧ 𝑅𝑉) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = ((𝑅𝑟𝑀) ∘ (𝑅𝑟𝑁)))
163159, 157nn0addcld 12297 . . . . . . . . . . . . . . . 16 ((𝑁 = 0 ∧ 𝑀 ∈ (ℤ‘2) ∧ 𝑅𝑉) → (𝑁 + 𝑀) ∈ ℕ0)
164163, 132, 109syl2anc 584 . . . . . . . . . . . . . . 15 ((𝑁 = 0 ∧ 𝑀 ∈ (ℤ‘2) ∧ 𝑅𝑉) → (𝑅𝑟(𝑁 + 𝑀)) = (𝑅𝑟(𝑁 + 𝑀)))
165155, 162, 1643eqtr4d 2788 . . . . . . . . . . . . . 14 ((𝑁 = 0 ∧ 𝑀 ∈ (ℤ‘2) ∧ 𝑅𝑉) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀)))
166159nn0cnd 12295 . . . . . . . . . . . . . . . . . 18 ((𝑁 = 0 ∧ 𝑀 ∈ (ℤ‘2) ∧ 𝑅𝑉) → 𝑁 ∈ ℂ)
167151, 166addcomd 11177 . . . . . . . . . . . . . . . . 17 ((𝑁 = 0 ∧ 𝑀 ∈ (ℤ‘2) ∧ 𝑅𝑉) → (𝑀 + 𝑁) = (𝑁 + 𝑀))
168 uzaddcl 12644 . . . . . . . . . . . . . . . . . 18 ((𝑀 ∈ (ℤ‘2) ∧ 𝑁 ∈ ℕ0) → (𝑀 + 𝑁) ∈ (ℤ‘2))
169131, 159, 168syl2anc 584 . . . . . . . . . . . . . . . . 17 ((𝑁 = 0 ∧ 𝑀 ∈ (ℤ‘2) ∧ 𝑅𝑉) → (𝑀 + 𝑁) ∈ (ℤ‘2))
170167, 169eqeltrrd 2840 . . . . . . . . . . . . . . . 16 ((𝑁 = 0 ∧ 𝑀 ∈ (ℤ‘2) ∧ 𝑅𝑉) → (𝑁 + 𝑀) ∈ (ℤ‘2))
171 relexpuzrel 14763 . . . . . . . . . . . . . . . 16 (((𝑁 + 𝑀) ∈ (ℤ‘2) ∧ 𝑅𝑉) → Rel (𝑅𝑟(𝑁 + 𝑀)))
172170, 132, 171syl2anc 584 . . . . . . . . . . . . . . 15 ((𝑁 = 0 ∧ 𝑀 ∈ (ℤ‘2) ∧ 𝑅𝑉) → Rel (𝑅𝑟(𝑁 + 𝑀)))
173117, 172, 125sylancr 587 . . . . . . . . . . . . . 14 ((𝑁 = 0 ∧ 𝑀 ∈ (ℤ‘2) ∧ 𝑅𝑉) → (((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀)) ↔ ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀))))
174165, 173mpbird 256 . . . . . . . . . . . . 13 ((𝑁 = 0 ∧ 𝑀 ∈ (ℤ‘2) ∧ 𝑅𝑉) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀)))
175174a1d 25 . . . . . . . . . . . 12 ((𝑁 = 0 ∧ 𝑀 ∈ (ℤ‘2) ∧ 𝑅𝑉) → (((𝑁 + 𝑀) = 1 → Rel 𝑅) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀))))
1761753exp 1118 . . . . . . . . . . 11 (𝑁 = 0 → (𝑀 ∈ (ℤ‘2) → (𝑅𝑉 → (((𝑁 + 𝑀) = 1 → Rel 𝑅) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀))))))
177176com12 32 . . . . . . . . . 10 (𝑀 ∈ (ℤ‘2) → (𝑁 = 0 → (𝑅𝑉 → (((𝑁 + 𝑀) = 1 → Rel 𝑅) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀))))))
178129, 177jaoi 854 . . . . . . . . 9 ((𝑀 = 1 ∨ 𝑀 ∈ (ℤ‘2)) → (𝑁 = 0 → (𝑅𝑉 → (((𝑁 + 𝑀) = 1 → Rel 𝑅) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀))))))
17976, 178sylbi 216 . . . . . . . 8 (𝑀 ∈ ℕ → (𝑁 = 0 → (𝑅𝑉 → (((𝑁 + 𝑀) = 1 → Rel 𝑅) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀))))))
180 coires1 6168 . . . . . . . . . . . . 13 ((𝑅𝑟0) ∘ ( I ↾ (dom 𝑅 ∪ ran 𝑅))) = ((𝑅𝑟0) ↾ (dom 𝑅 ∪ ran 𝑅))
181 simp3 1137 . . . . . . . . . . . . . . 15 ((𝑁 = 0 ∧ 𝑀 = 0 ∧ 𝑅𝑉) → 𝑅𝑉)
182 relexp0rel 14748 . . . . . . . . . . . . . . 15 (𝑅𝑉 → Rel (𝑅𝑟0))
183181, 182syl 17 . . . . . . . . . . . . . 14 ((𝑁 = 0 ∧ 𝑀 = 0 ∧ 𝑅𝑉) → Rel (𝑅𝑟0))
184181, 33syl 17 . . . . . . . . . . . . . . . . 17 ((𝑁 = 0 ∧ 𝑀 = 0 ∧ 𝑅𝑉) → (𝑅𝑟0) = ( I ↾ (dom 𝑅 ∪ ran 𝑅)))
185184dmeqd 5814 . . . . . . . . . . . . . . . 16 ((𝑁 = 0 ∧ 𝑀 = 0 ∧ 𝑅𝑉) → dom (𝑅𝑟0) = dom ( I ↾ (dom 𝑅 ∪ ran 𝑅)))
186 dmresi 5961 . . . . . . . . . . . . . . . 16 dom ( I ↾ (dom 𝑅 ∪ ran 𝑅)) = (dom 𝑅 ∪ ran 𝑅)
187185, 186eqtrdi 2794 . . . . . . . . . . . . . . 15 ((𝑁 = 0 ∧ 𝑀 = 0 ∧ 𝑅𝑉) → dom (𝑅𝑟0) = (dom 𝑅 ∪ ran 𝑅))
188 eqimss 3977 . . . . . . . . . . . . . . 15 (dom (𝑅𝑟0) = (dom 𝑅 ∪ ran 𝑅) → dom (𝑅𝑟0) ⊆ (dom 𝑅 ∪ ran 𝑅))
189187, 188syl 17 . . . . . . . . . . . . . 14 ((𝑁 = 0 ∧ 𝑀 = 0 ∧ 𝑅𝑉) → dom (𝑅𝑟0) ⊆ (dom 𝑅 ∪ ran 𝑅))
190 relssres 5932 . . . . . . . . . . . . . 14 ((Rel (𝑅𝑟0) ∧ dom (𝑅𝑟0) ⊆ (dom 𝑅 ∪ ran 𝑅)) → ((𝑅𝑟0) ↾ (dom 𝑅 ∪ ran 𝑅)) = (𝑅𝑟0))
191183, 189, 190syl2anc 584 . . . . . . . . . . . . 13 ((𝑁 = 0 ∧ 𝑀 = 0 ∧ 𝑅𝑉) → ((𝑅𝑟0) ↾ (dom 𝑅 ∪ ran 𝑅)) = (𝑅𝑟0))
192180, 191eqtrid 2790 . . . . . . . . . . . 12 ((𝑁 = 0 ∧ 𝑀 = 0 ∧ 𝑅𝑉) → ((𝑅𝑟0) ∘ ( I ↾ (dom 𝑅 ∪ ran 𝑅))) = (𝑅𝑟0))
193 simp1 1135 . . . . . . . . . . . . . 14 ((𝑁 = 0 ∧ 𝑀 = 0 ∧ 𝑅𝑉) → 𝑁 = 0)
194193oveq2d 7291 . . . . . . . . . . . . 13 ((𝑁 = 0 ∧ 𝑀 = 0 ∧ 𝑅𝑉) → (𝑅𝑟𝑁) = (𝑅𝑟0))
195 simp2 1136 . . . . . . . . . . . . . . 15 ((𝑁 = 0 ∧ 𝑀 = 0 ∧ 𝑅𝑉) → 𝑀 = 0)
196195oveq2d 7291 . . . . . . . . . . . . . 14 ((𝑁 = 0 ∧ 𝑀 = 0 ∧ 𝑅𝑉) → (𝑅𝑟𝑀) = (𝑅𝑟0))
197196, 184eqtrd 2778 . . . . . . . . . . . . 13 ((𝑁 = 0 ∧ 𝑀 = 0 ∧ 𝑅𝑉) → (𝑅𝑟𝑀) = ( I ↾ (dom 𝑅 ∪ ran 𝑅)))
198194, 197coeq12d 5773 . . . . . . . . . . . 12 ((𝑁 = 0 ∧ 𝑀 = 0 ∧ 𝑅𝑉) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = ((𝑅𝑟0) ∘ ( I ↾ (dom 𝑅 ∪ ran 𝑅))))
199193, 195oveq12d 7293 . . . . . . . . . . . . . 14 ((𝑁 = 0 ∧ 𝑀 = 0 ∧ 𝑅𝑉) → (𝑁 + 𝑀) = (0 + 0))
200 00id 11150 . . . . . . . . . . . . . 14 (0 + 0) = 0
201199, 200eqtrdi 2794 . . . . . . . . . . . . 13 ((𝑁 = 0 ∧ 𝑀 = 0 ∧ 𝑅𝑉) → (𝑁 + 𝑀) = 0)
202201oveq2d 7291 . . . . . . . . . . . 12 ((𝑁 = 0 ∧ 𝑀 = 0 ∧ 𝑅𝑉) → (𝑅𝑟(𝑁 + 𝑀)) = (𝑅𝑟0))
203192, 198, 2023eqtr4d 2788 . . . . . . . . . . 11 ((𝑁 = 0 ∧ 𝑀 = 0 ∧ 𝑅𝑉) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀)))
204203a1d 25 . . . . . . . . . 10 ((𝑁 = 0 ∧ 𝑀 = 0 ∧ 𝑅𝑉) → (((𝑁 + 𝑀) = 1 → Rel 𝑅) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀))))
2052043exp 1118 . . . . . . . . 9 (𝑁 = 0 → (𝑀 = 0 → (𝑅𝑉 → (((𝑁 + 𝑀) = 1 → Rel 𝑅) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀))))))
206205com12 32 . . . . . . . 8 (𝑀 = 0 → (𝑁 = 0 → (𝑅𝑉 → (((𝑁 + 𝑀) = 1 → Rel 𝑅) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀))))))
207179, 206jaoi 854 . . . . . . 7 ((𝑀 ∈ ℕ ∨ 𝑀 = 0) → (𝑁 = 0 → (𝑅𝑉 → (((𝑁 + 𝑀) = 1 → Rel 𝑅) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀))))))
2082, 207sylbi 216 . . . . . 6 (𝑀 ∈ ℕ0 → (𝑁 = 0 → (𝑅𝑉 → (((𝑁 + 𝑀) = 1 → Rel 𝑅) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀))))))
209208com12 32 . . . . 5 (𝑁 = 0 → (𝑀 ∈ ℕ0 → (𝑅𝑉 → (((𝑁 + 𝑀) = 1 → Rel 𝑅) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀))))))
2102093impd 1347 . . . 4 (𝑁 = 0 → ((𝑀 ∈ ℕ0𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅)) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀))))
21175, 210jaoi 854 . . 3 ((𝑁 ∈ ℕ ∨ 𝑁 = 0) → ((𝑀 ∈ ℕ0𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅)) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀))))
2121, 211sylbi 216 . 2 (𝑁 ∈ ℕ0 → ((𝑀 ∈ ℕ0𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅)) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀))))
213212imp 407 1 ((𝑁 ∈ ℕ0 ∧ (𝑀 ∈ ℕ0𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀)))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 205  wa 396  wo 844  w3a 1086   = wceq 1539  wcel 2106  Vcvv 3432  cun 3885  wss 3887   I cid 5488  ccnv 5588  dom cdm 5589  ran crn 5590  cres 5591  ccom 5593  Rel wrel 5594  cfv 6433  (class class class)co 7275  cc 10869  0cc0 10871  1c1 10872   + caddc 10874  cn 11973  2c2 12028  0cn0 12233  cuz 12582  𝑟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-2 12036  df-n0 12234  df-z 12320  df-uz 12583  df-seq 13722  df-relexp 14731
This theorem is referenced by:  relexpaddd  14765  relexpnul  41286
  Copyright terms: Public domain W3C validator