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

Theorem relexpaddg 13837
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 11332 . . 3 (𝑁 ∈ ℕ0 ↔ (𝑁 ∈ ℕ ∨ 𝑁 = 0))
2 elnn0 11332 . . . . . . 7 (𝑀 ∈ ℕ0 ↔ (𝑀 ∈ ℕ ∨ 𝑀 = 0))
3 relexpaddnn 13835 . . . . . . . . . . 11 ((𝑁 ∈ ℕ ∧ 𝑀 ∈ ℕ ∧ 𝑅𝑉) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀)))
43a1d 25 . . . . . . . . . 10 ((𝑁 ∈ ℕ ∧ 𝑀 ∈ ℕ ∧ 𝑅𝑉) → (((𝑁 + 𝑀) = 1 → Rel 𝑅) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀))))
543exp 1283 . . . . . . . . 9 (𝑁 ∈ ℕ → (𝑀 ∈ ℕ → (𝑅𝑉 → (((𝑁 + 𝑀) = 1 → Rel 𝑅) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀))))))
65com12 32 . . . . . . . 8 (𝑀 ∈ ℕ → (𝑁 ∈ ℕ → (𝑅𝑉 → (((𝑁 + 𝑀) = 1 → Rel 𝑅) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀))))))
7 elnn1uz2 11803 . . . . . . . . . 10 (𝑁 ∈ ℕ ↔ (𝑁 = 1 ∨ 𝑁 ∈ (ℤ‘2)))
8 coires1 5691 . . . . . . . . . . . . . 14 ((𝑅𝑟𝑁) ∘ ( I ↾ (dom 𝑅 ∪ ran 𝑅))) = ((𝑅𝑟𝑁) ↾ (dom 𝑅 ∪ ran 𝑅))
9 simpll 805 . . . . . . . . . . . . . . . . . . 19 (((𝑁 = 1 ∧ 𝑀 = 0) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → 𝑁 = 1)
10 simplr 807 . . . . . . . . . . . . . . . . . . 19 (((𝑁 = 1 ∧ 𝑀 = 0) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → 𝑀 = 0)
119, 10oveq12d 6708 . . . . . . . . . . . . . . . . . 18 (((𝑁 = 1 ∧ 𝑀 = 0) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → (𝑁 + 𝑀) = (1 + 0))
12 1p0e1 11171 . . . . . . . . . . . . . . . . . 18 (1 + 0) = 1
1311, 12syl6eq 2701 . . . . . . . . . . . . . . . . 17 (((𝑁 = 1 ∧ 𝑀 = 0) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → (𝑁 + 𝑀) = 1)
14 simprr 811 . . . . . . . . . . . . . . . . 17 (((𝑁 = 1 ∧ 𝑀 = 0) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → ((𝑁 + 𝑀) = 1 → Rel 𝑅))
1513, 14mpd 15 . . . . . . . . . . . . . . . 16 (((𝑁 = 1 ∧ 𝑀 = 0) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → Rel 𝑅)
169oveq2d 6706 . . . . . . . . . . . . . . . . . 18 (((𝑁 = 1 ∧ 𝑀 = 0) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → (𝑅𝑟𝑁) = (𝑅𝑟1))
17 simprl 809 . . . . . . . . . . . . . . . . . . 19 (((𝑁 = 1 ∧ 𝑀 = 0) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → 𝑅𝑉)
18 relexp1g 13810 . . . . . . . . . . . . . . . . . . 19 (𝑅𝑉 → (𝑅𝑟1) = 𝑅)
1917, 18syl 17 . . . . . . . . . . . . . . . . . 18 (((𝑁 = 1 ∧ 𝑀 = 0) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → (𝑅𝑟1) = 𝑅)
2016, 19eqtrd 2685 . . . . . . . . . . . . . . . . 17 (((𝑁 = 1 ∧ 𝑀 = 0) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → (𝑅𝑟𝑁) = 𝑅)
2120releqd 5237 . . . . . . . . . . . . . . . 16 (((𝑁 = 1 ∧ 𝑀 = 0) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → (Rel (𝑅𝑟𝑁) ↔ Rel 𝑅))
2215, 21mpbird 247 . . . . . . . . . . . . . . 15 (((𝑁 = 1 ∧ 𝑀 = 0) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → Rel (𝑅𝑟𝑁))
23 1nn 11069 . . . . . . . . . . . . . . . . . 18 1 ∈ ℕ
249, 23syl6eqel 2738 . . . . . . . . . . . . . . . . 17 (((𝑁 = 1 ∧ 𝑀 = 0) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → 𝑁 ∈ ℕ)
25 relexpnndm 13825 . . . . . . . . . . . . . . . . 17 ((𝑁 ∈ ℕ ∧ 𝑅𝑉) → dom (𝑅𝑟𝑁) ⊆ dom 𝑅)
2624, 17, 25syl2anc 694 . . . . . . . . . . . . . . . 16 (((𝑁 = 1 ∧ 𝑀 = 0) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → dom (𝑅𝑟𝑁) ⊆ dom 𝑅)
27 ssun1 3809 . . . . . . . . . . . . . . . 16 dom 𝑅 ⊆ (dom 𝑅 ∪ ran 𝑅)
2826, 27syl6ss 3648 . . . . . . . . . . . . . . 15 (((𝑁 = 1 ∧ 𝑀 = 0) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → dom (𝑅𝑟𝑁) ⊆ (dom 𝑅 ∪ ran 𝑅))
29 relssres 5472 . . . . . . . . . . . . . . 15 ((Rel (𝑅𝑟𝑁) ∧ dom (𝑅𝑟𝑁) ⊆ (dom 𝑅 ∪ ran 𝑅)) → ((𝑅𝑟𝑁) ↾ (dom 𝑅 ∪ ran 𝑅)) = (𝑅𝑟𝑁))
3022, 28, 29syl2anc 694 . . . . . . . . . . . . . 14 (((𝑁 = 1 ∧ 𝑀 = 0) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → ((𝑅𝑟𝑁) ↾ (dom 𝑅 ∪ ran 𝑅)) = (𝑅𝑟𝑁))
318, 30syl5eq 2697 . . . . . . . . . . . . 13 (((𝑁 = 1 ∧ 𝑀 = 0) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → ((𝑅𝑟𝑁) ∘ ( I ↾ (dom 𝑅 ∪ ran 𝑅))) = (𝑅𝑟𝑁))
3210oveq2d 6706 . . . . . . . . . . . . . . 15 (((𝑁 = 1 ∧ 𝑀 = 0) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → (𝑅𝑟𝑀) = (𝑅𝑟0))
33 relexp0g 13806 . . . . . . . . . . . . . . . 16 (𝑅𝑉 → (𝑅𝑟0) = ( I ↾ (dom 𝑅 ∪ ran 𝑅)))
3417, 33syl 17 . . . . . . . . . . . . . . 15 (((𝑁 = 1 ∧ 𝑀 = 0) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → (𝑅𝑟0) = ( I ↾ (dom 𝑅 ∪ ran 𝑅)))
3532, 34eqtrd 2685 . . . . . . . . . . . . . 14 (((𝑁 = 1 ∧ 𝑀 = 0) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → (𝑅𝑟𝑀) = ( I ↾ (dom 𝑅 ∪ ran 𝑅)))
3635coeq2d 5317 . . . . . . . . . . . . 13 (((𝑁 = 1 ∧ 𝑀 = 0) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = ((𝑅𝑟𝑁) ∘ ( I ↾ (dom 𝑅 ∪ ran 𝑅))))
3710oveq2d 6706 . . . . . . . . . . . . . . 15 (((𝑁 = 1 ∧ 𝑀 = 0) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → (𝑁 + 𝑀) = (𝑁 + 0))
38 ax-1cn 10032 . . . . . . . . . . . . . . . . 17 1 ∈ ℂ
399, 38syl6eqel 2738 . . . . . . . . . . . . . . . 16 (((𝑁 = 1 ∧ 𝑀 = 0) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → 𝑁 ∈ ℂ)
4039addid1d 10274 . . . . . . . . . . . . . . 15 (((𝑁 = 1 ∧ 𝑀 = 0) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → (𝑁 + 0) = 𝑁)
4137, 40eqtrd 2685 . . . . . . . . . . . . . 14 (((𝑁 = 1 ∧ 𝑀 = 0) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → (𝑁 + 𝑀) = 𝑁)
4241oveq2d 6706 . . . . . . . . . . . . 13 (((𝑁 = 1 ∧ 𝑀 = 0) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → (𝑅𝑟(𝑁 + 𝑀)) = (𝑅𝑟𝑁))
4331, 36, 423eqtr4d 2695 . . . . . . . . . . . 12 (((𝑁 = 1 ∧ 𝑀 = 0) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀)))
4443exp43 639 . . . . . . . . . . 11 (𝑁 = 1 → (𝑀 = 0 → (𝑅𝑉 → (((𝑁 + 𝑀) = 1 → Rel 𝑅) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀))))))
45 simp1 1081 . . . . . . . . . . . . . . . . 17 ((𝑁 ∈ (ℤ‘2) ∧ 𝑀 = 0 ∧ 𝑅𝑉) → 𝑁 ∈ (ℤ‘2))
46 simp3 1083 . . . . . . . . . . . . . . . . 17 ((𝑁 ∈ (ℤ‘2) ∧ 𝑀 = 0 ∧ 𝑅𝑉) → 𝑅𝑉)
47 relexpuzrel 13836 . . . . . . . . . . . . . . . . 17 ((𝑁 ∈ (ℤ‘2) ∧ 𝑅𝑉) → Rel (𝑅𝑟𝑁))
4845, 46, 47syl2anc 694 . . . . . . . . . . . . . . . 16 ((𝑁 ∈ (ℤ‘2) ∧ 𝑀 = 0 ∧ 𝑅𝑉) → Rel (𝑅𝑟𝑁))
49 eluz2nn 11764 . . . . . . . . . . . . . . . . . . 19 (𝑁 ∈ (ℤ‘2) → 𝑁 ∈ ℕ)
5045, 49syl 17 . . . . . . . . . . . . . . . . . 18 ((𝑁 ∈ (ℤ‘2) ∧ 𝑀 = 0 ∧ 𝑅𝑉) → 𝑁 ∈ ℕ)
5150, 46, 25syl2anc 694 . . . . . . . . . . . . . . . . 17 ((𝑁 ∈ (ℤ‘2) ∧ 𝑀 = 0 ∧ 𝑅𝑉) → dom (𝑅𝑟𝑁) ⊆ dom 𝑅)
5251, 27syl6ss 3648 . . . . . . . . . . . . . . . 16 ((𝑁 ∈ (ℤ‘2) ∧ 𝑀 = 0 ∧ 𝑅𝑉) → dom (𝑅𝑟𝑁) ⊆ (dom 𝑅 ∪ ran 𝑅))
5348, 52, 29syl2anc 694 . . . . . . . . . . . . . . 15 ((𝑁 ∈ (ℤ‘2) ∧ 𝑀 = 0 ∧ 𝑅𝑉) → ((𝑅𝑟𝑁) ↾ (dom 𝑅 ∪ ran 𝑅)) = (𝑅𝑟𝑁))
548, 53syl5eq 2697 . . . . . . . . . . . . . 14 ((𝑁 ∈ (ℤ‘2) ∧ 𝑀 = 0 ∧ 𝑅𝑉) → ((𝑅𝑟𝑁) ∘ ( I ↾ (dom 𝑅 ∪ ran 𝑅))) = (𝑅𝑟𝑁))
55 simp2 1082 . . . . . . . . . . . . . . . . 17 ((𝑁 ∈ (ℤ‘2) ∧ 𝑀 = 0 ∧ 𝑅𝑉) → 𝑀 = 0)
5655oveq2d 6706 . . . . . . . . . . . . . . . 16 ((𝑁 ∈ (ℤ‘2) ∧ 𝑀 = 0 ∧ 𝑅𝑉) → (𝑅𝑟𝑀) = (𝑅𝑟0))
5746, 33syl 17 . . . . . . . . . . . . . . . 16 ((𝑁 ∈ (ℤ‘2) ∧ 𝑀 = 0 ∧ 𝑅𝑉) → (𝑅𝑟0) = ( I ↾ (dom 𝑅 ∪ ran 𝑅)))
5856, 57eqtrd 2685 . . . . . . . . . . . . . . 15 ((𝑁 ∈ (ℤ‘2) ∧ 𝑀 = 0 ∧ 𝑅𝑉) → (𝑅𝑟𝑀) = ( I ↾ (dom 𝑅 ∪ ran 𝑅)))
5958coeq2d 5317 . . . . . . . . . . . . . 14 ((𝑁 ∈ (ℤ‘2) ∧ 𝑀 = 0 ∧ 𝑅𝑉) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = ((𝑅𝑟𝑁) ∘ ( I ↾ (dom 𝑅 ∪ ran 𝑅))))
6055oveq2d 6706 . . . . . . . . . . . . . . . 16 ((𝑁 ∈ (ℤ‘2) ∧ 𝑀 = 0 ∧ 𝑅𝑉) → (𝑁 + 𝑀) = (𝑁 + 0))
61 eluzelcn 11737 . . . . . . . . . . . . . . . . . 18 (𝑁 ∈ (ℤ‘2) → 𝑁 ∈ ℂ)
6245, 61syl 17 . . . . . . . . . . . . . . . . 17 ((𝑁 ∈ (ℤ‘2) ∧ 𝑀 = 0 ∧ 𝑅𝑉) → 𝑁 ∈ ℂ)
6362addid1d 10274 . . . . . . . . . . . . . . . 16 ((𝑁 ∈ (ℤ‘2) ∧ 𝑀 = 0 ∧ 𝑅𝑉) → (𝑁 + 0) = 𝑁)
6460, 63eqtrd 2685 . . . . . . . . . . . . . . 15 ((𝑁 ∈ (ℤ‘2) ∧ 𝑀 = 0 ∧ 𝑅𝑉) → (𝑁 + 𝑀) = 𝑁)
6564oveq2d 6706 . . . . . . . . . . . . . 14 ((𝑁 ∈ (ℤ‘2) ∧ 𝑀 = 0 ∧ 𝑅𝑉) → (𝑅𝑟(𝑁 + 𝑀)) = (𝑅𝑟𝑁))
6654, 59, 653eqtr4d 2695 . . . . . . . . . . . . 13 ((𝑁 ∈ (ℤ‘2) ∧ 𝑀 = 0 ∧ 𝑅𝑉) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀)))
6766a1d 25 . . . . . . . . . . . 12 ((𝑁 ∈ (ℤ‘2) ∧ 𝑀 = 0 ∧ 𝑅𝑉) → (((𝑁 + 𝑀) = 1 → Rel 𝑅) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀))))
68673exp 1283 . . . . . . . . . . 11 (𝑁 ∈ (ℤ‘2) → (𝑀 = 0 → (𝑅𝑉 → (((𝑁 + 𝑀) = 1 → Rel 𝑅) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀))))))
6944, 68jaoi 393 . . . . . . . . . 10 ((𝑁 = 1 ∨ 𝑁 ∈ (ℤ‘2)) → (𝑀 = 0 → (𝑅𝑉 → (((𝑁 + 𝑀) = 1 → Rel 𝑅) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀))))))
707, 69sylbi 207 . . . . . . . . 9 (𝑁 ∈ ℕ → (𝑀 = 0 → (𝑅𝑉 → (((𝑁 + 𝑀) = 1 → Rel 𝑅) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀))))))
7170com12 32 . . . . . . . 8 (𝑀 = 0 → (𝑁 ∈ ℕ → (𝑅𝑉 → (((𝑁 + 𝑀) = 1 → Rel 𝑅) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀))))))
726, 71jaoi 393 . . . . . . 7 ((𝑀 ∈ ℕ ∨ 𝑀 = 0) → (𝑁 ∈ ℕ → (𝑅𝑉 → (((𝑁 + 𝑀) = 1 → Rel 𝑅) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀))))))
732, 72sylbi 207 . . . . . 6 (𝑀 ∈ ℕ0 → (𝑁 ∈ ℕ → (𝑅𝑉 → (((𝑁 + 𝑀) = 1 → Rel 𝑅) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀))))))
7473com12 32 . . . . 5 (𝑁 ∈ ℕ → (𝑀 ∈ ℕ0 → (𝑅𝑉 → (((𝑁 + 𝑀) = 1 → Rel 𝑅) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀))))))
75743impd 1303 . . . 4 (𝑁 ∈ ℕ → ((𝑀 ∈ ℕ0𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅)) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀))))
76 elnn1uz2 11803 . . . . . . . . 9 (𝑀 ∈ ℕ ↔ (𝑀 = 1 ∨ 𝑀 ∈ (ℤ‘2)))
77 coires1 5691 . . . . . . . . . . . . . . 15 (𝑅 ∘ ( I ↾ (dom 𝑅 ∪ ran 𝑅))) = (𝑅 ↾ (dom 𝑅 ∪ ran 𝑅))
78 relcnv 5538 . . . . . . . . . . . . . . . . 17 Rel 𝑅
79 ssun1 3809 . . . . . . . . . . . . . . . . 17 dom 𝑅 ⊆ (dom 𝑅 ∪ ran 𝑅)
8078, 79pm3.2i 470 . . . . . . . . . . . . . . . 16 (Rel 𝑅 ∧ dom 𝑅 ⊆ (dom 𝑅 ∪ ran 𝑅))
81 relssres 5472 . . . . . . . . . . . . . . . 16 ((Rel 𝑅 ∧ dom 𝑅 ⊆ (dom 𝑅 ∪ ran 𝑅)) → (𝑅 ↾ (dom 𝑅 ∪ ran 𝑅)) = 𝑅)
8280, 81mp1i 13 . . . . . . . . . . . . . . 15 (((𝑁 = 0 ∧ 𝑀 = 1) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → (𝑅 ↾ (dom 𝑅 ∪ ran 𝑅)) = 𝑅)
8377, 82syl5eq 2697 . . . . . . . . . . . . . 14 (((𝑁 = 0 ∧ 𝑀 = 1) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → (𝑅 ∘ ( I ↾ (dom 𝑅 ∪ ran 𝑅))) = 𝑅)
84 cnvco 5340 . . . . . . . . . . . . . . 15 ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = ((𝑅𝑟𝑀) ∘ (𝑅𝑟𝑁))
85 simplr 807 . . . . . . . . . . . . . . . . . . 19 (((𝑁 = 0 ∧ 𝑀 = 1) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → 𝑀 = 1)
86 1nn0 11346 . . . . . . . . . . . . . . . . . . 19 1 ∈ ℕ0
8785, 86syl6eqel 2738 . . . . . . . . . . . . . . . . . 18 (((𝑁 = 0 ∧ 𝑀 = 1) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → 𝑀 ∈ ℕ0)
88 simprl 809 . . . . . . . . . . . . . . . . . 18 (((𝑁 = 0 ∧ 𝑀 = 1) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → 𝑅𝑉)
89 relexpcnv 13819 . . . . . . . . . . . . . . . . . 18 ((𝑀 ∈ ℕ0𝑅𝑉) → (𝑅𝑟𝑀) = (𝑅𝑟𝑀))
9087, 88, 89syl2anc 694 . . . . . . . . . . . . . . . . 17 (((𝑁 = 0 ∧ 𝑀 = 1) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → (𝑅𝑟𝑀) = (𝑅𝑟𝑀))
9185oveq2d 6706 . . . . . . . . . . . . . . . . 17 (((𝑁 = 0 ∧ 𝑀 = 1) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → (𝑅𝑟𝑀) = (𝑅𝑟1))
92 cnvexg 7154 . . . . . . . . . . . . . . . . . . 19 (𝑅𝑉𝑅 ∈ V)
9388, 92syl 17 . . . . . . . . . . . . . . . . . 18 (((𝑁 = 0 ∧ 𝑀 = 1) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → 𝑅 ∈ V)
94 relexp1g 13810 . . . . . . . . . . . . . . . . . 18 (𝑅 ∈ V → (𝑅𝑟1) = 𝑅)
9593, 94syl 17 . . . . . . . . . . . . . . . . 17 (((𝑁 = 0 ∧ 𝑀 = 1) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → (𝑅𝑟1) = 𝑅)
9690, 91, 953eqtrd 2689 . . . . . . . . . . . . . . . 16 (((𝑁 = 0 ∧ 𝑀 = 1) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → (𝑅𝑟𝑀) = 𝑅)
97 simpll 805 . . . . . . . . . . . . . . . . . . 19 (((𝑁 = 0 ∧ 𝑀 = 1) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → 𝑁 = 0)
98 0nn0 11345 . . . . . . . . . . . . . . . . . . 19 0 ∈ ℕ0
9997, 98syl6eqel 2738 . . . . . . . . . . . . . . . . . 18 (((𝑁 = 0 ∧ 𝑀 = 1) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → 𝑁 ∈ ℕ0)
100 relexpcnv 13819 . . . . . . . . . . . . . . . . . 18 ((𝑁 ∈ ℕ0𝑅𝑉) → (𝑅𝑟𝑁) = (𝑅𝑟𝑁))
10199, 88, 100syl2anc 694 . . . . . . . . . . . . . . . . 17 (((𝑁 = 0 ∧ 𝑀 = 1) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → (𝑅𝑟𝑁) = (𝑅𝑟𝑁))
10297oveq2d 6706 . . . . . . . . . . . . . . . . 17 (((𝑁 = 0 ∧ 𝑀 = 1) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → (𝑅𝑟𝑁) = (𝑅𝑟0))
103 relexp0g 13806 . . . . . . . . . . . . . . . . . 18 (𝑅 ∈ V → (𝑅𝑟0) = ( I ↾ (dom 𝑅 ∪ ran 𝑅)))
10493, 103syl 17 . . . . . . . . . . . . . . . . 17 (((𝑁 = 0 ∧ 𝑀 = 1) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → (𝑅𝑟0) = ( I ↾ (dom 𝑅 ∪ ran 𝑅)))
105101, 102, 1043eqtrd 2689 . . . . . . . . . . . . . . . 16 (((𝑁 = 0 ∧ 𝑀 = 1) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → (𝑅𝑟𝑁) = ( I ↾ (dom 𝑅 ∪ ran 𝑅)))
10696, 105coeq12d 5319 . . . . . . . . . . . . . . 15 (((𝑁 = 0 ∧ 𝑀 = 1) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → ((𝑅𝑟𝑀) ∘ (𝑅𝑟𝑁)) = (𝑅 ∘ ( I ↾ (dom 𝑅 ∪ ran 𝑅))))
10784, 106syl5eq 2697 . . . . . . . . . . . . . 14 (((𝑁 = 0 ∧ 𝑀 = 1) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅 ∘ ( I ↾ (dom 𝑅 ∪ ran 𝑅))))
10899, 87nn0addcld 11393 . . . . . . . . . . . . . . . 16 (((𝑁 = 0 ∧ 𝑀 = 1) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → (𝑁 + 𝑀) ∈ ℕ0)
109 relexpcnv 13819 . . . . . . . . . . . . . . . 16 (((𝑁 + 𝑀) ∈ ℕ0𝑅𝑉) → (𝑅𝑟(𝑁 + 𝑀)) = (𝑅𝑟(𝑁 + 𝑀)))
110108, 88, 109syl2anc 694 . . . . . . . . . . . . . . 15 (((𝑁 = 0 ∧ 𝑀 = 1) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → (𝑅𝑟(𝑁 + 𝑀)) = (𝑅𝑟(𝑁 + 𝑀)))
11197, 85oveq12d 6708 . . . . . . . . . . . . . . . . 17 (((𝑁 = 0 ∧ 𝑀 = 1) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → (𝑁 + 𝑀) = (0 + 1))
112 0p1e1 11170 . . . . . . . . . . . . . . . . 17 (0 + 1) = 1
113111, 112syl6eq 2701 . . . . . . . . . . . . . . . 16 (((𝑁 = 0 ∧ 𝑀 = 1) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → (𝑁 + 𝑀) = 1)
114113oveq2d 6706 . . . . . . . . . . . . . . 15 (((𝑁 = 0 ∧ 𝑀 = 1) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → (𝑅𝑟(𝑁 + 𝑀)) = (𝑅𝑟1))
115110, 114, 953eqtrd 2689 . . . . . . . . . . . . . 14 (((𝑁 = 0 ∧ 𝑀 = 1) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → (𝑅𝑟(𝑁 + 𝑀)) = 𝑅)
11683, 107, 1153eqtr4d 2695 . . . . . . . . . . . . 13 (((𝑁 = 0 ∧ 𝑀 = 1) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀)))
117 relco 5671 . . . . . . . . . . . . . 14 Rel ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀))
118 simprr 811 . . . . . . . . . . . . . . . 16 (((𝑁 = 0 ∧ 𝑀 = 1) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → ((𝑁 + 𝑀) = 1 → Rel 𝑅))
119113, 118mpd 15 . . . . . . . . . . . . . . 15 (((𝑁 = 0 ∧ 𝑀 = 1) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → Rel 𝑅)
120113oveq2d 6706 . . . . . . . . . . . . . . . . 17 (((𝑁 = 0 ∧ 𝑀 = 1) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → (𝑅𝑟(𝑁 + 𝑀)) = (𝑅𝑟1))
12188, 18syl 17 . . . . . . . . . . . . . . . . 17 (((𝑁 = 0 ∧ 𝑀 = 1) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → (𝑅𝑟1) = 𝑅)
122120, 121eqtrd 2685 . . . . . . . . . . . . . . . 16 (((𝑁 = 0 ∧ 𝑀 = 1) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → (𝑅𝑟(𝑁 + 𝑀)) = 𝑅)
123122releqd 5237 . . . . . . . . . . . . . . 15 (((𝑁 = 0 ∧ 𝑀 = 1) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → (Rel (𝑅𝑟(𝑁 + 𝑀)) ↔ Rel 𝑅))
124119, 123mpbird 247 . . . . . . . . . . . . . 14 (((𝑁 = 0 ∧ 𝑀 = 1) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → Rel (𝑅𝑟(𝑁 + 𝑀)))
125 cnveqb 5625 . . . . . . . . . . . . . 14 ((Rel ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) ∧ Rel (𝑅𝑟(𝑁 + 𝑀))) → (((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀)) ↔ ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀))))
126117, 124, 125sylancr 696 . . . . . . . . . . . . 13 (((𝑁 = 0 ∧ 𝑀 = 1) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → (((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀)) ↔ ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀))))
127116, 126mpbird 247 . . . . . . . . . . . 12 (((𝑁 = 0 ∧ 𝑀 = 1) ∧ (𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀)))
128127exp43 639 . . . . . . . . . . 11 (𝑁 = 0 → (𝑀 = 1 → (𝑅𝑉 → (((𝑁 + 𝑀) = 1 → Rel 𝑅) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀))))))
129128com12 32 . . . . . . . . . 10 (𝑀 = 1 → (𝑁 = 0 → (𝑅𝑉 → (((𝑁 + 𝑀) = 1 → Rel 𝑅) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀))))))
130 coires1 5691 . . . . . . . . . . . . . . . . 17 ((𝑅𝑟𝑀) ∘ ( I ↾ (dom 𝑅 ∪ ran 𝑅))) = ((𝑅𝑟𝑀) ↾ (dom 𝑅 ∪ ran 𝑅))
131 simp2 1082 . . . . . . . . . . . . . . . . . . 19 ((𝑁 = 0 ∧ 𝑀 ∈ (ℤ‘2) ∧ 𝑅𝑉) → 𝑀 ∈ (ℤ‘2))
132 simp3 1083 . . . . . . . . . . . . . . . . . . . 20 ((𝑁 = 0 ∧ 𝑀 ∈ (ℤ‘2) ∧ 𝑅𝑉) → 𝑅𝑉)
133132, 92syl 17 . . . . . . . . . . . . . . . . . . 19 ((𝑁 = 0 ∧ 𝑀 ∈ (ℤ‘2) ∧ 𝑅𝑉) → 𝑅 ∈ V)
134 relexpuzrel 13836 . . . . . . . . . . . . . . . . . . 19 ((𝑀 ∈ (ℤ‘2) ∧ 𝑅 ∈ V) → Rel (𝑅𝑟𝑀))
135131, 133, 134syl2anc 694 . . . . . . . . . . . . . . . . . 18 ((𝑁 = 0 ∧ 𝑀 ∈ (ℤ‘2) ∧ 𝑅𝑉) → Rel (𝑅𝑟𝑀))
136 eluz2nn 11764 . . . . . . . . . . . . . . . . . . . . 21 (𝑀 ∈ (ℤ‘2) → 𝑀 ∈ ℕ)
137131, 136syl 17 . . . . . . . . . . . . . . . . . . . 20 ((𝑁 = 0 ∧ 𝑀 ∈ (ℤ‘2) ∧ 𝑅𝑉) → 𝑀 ∈ ℕ)
138 relexpnndm 13825 . . . . . . . . . . . . . . . . . . . 20 ((𝑀 ∈ ℕ ∧ 𝑅 ∈ V) → dom (𝑅𝑟𝑀) ⊆ dom 𝑅)
139137, 133, 138syl2anc 694 . . . . . . . . . . . . . . . . . . 19 ((𝑁 = 0 ∧ 𝑀 ∈ (ℤ‘2) ∧ 𝑅𝑉) → dom (𝑅𝑟𝑀) ⊆ dom 𝑅)
140139, 79syl6ss 3648 . . . . . . . . . . . . . . . . . 18 ((𝑁 = 0 ∧ 𝑀 ∈ (ℤ‘2) ∧ 𝑅𝑉) → dom (𝑅𝑟𝑀) ⊆ (dom 𝑅 ∪ ran 𝑅))
141 relssres 5472 . . . . . . . . . . . . . . . . . 18 ((Rel (𝑅𝑟𝑀) ∧ dom (𝑅𝑟𝑀) ⊆ (dom 𝑅 ∪ ran 𝑅)) → ((𝑅𝑟𝑀) ↾ (dom 𝑅 ∪ ran 𝑅)) = (𝑅𝑟𝑀))
142135, 140, 141syl2anc 694 . . . . . . . . . . . . . . . . 17 ((𝑁 = 0 ∧ 𝑀 ∈ (ℤ‘2) ∧ 𝑅𝑉) → ((𝑅𝑟𝑀) ↾ (dom 𝑅 ∪ ran 𝑅)) = (𝑅𝑟𝑀))
143130, 142syl5eq 2697 . . . . . . . . . . . . . . . 16 ((𝑁 = 0 ∧ 𝑀 ∈ (ℤ‘2) ∧ 𝑅𝑉) → ((𝑅𝑟𝑀) ∘ ( I ↾ (dom 𝑅 ∪ ran 𝑅))) = (𝑅𝑟𝑀))
144 simp1 1081 . . . . . . . . . . . . . . . . . . 19 ((𝑁 = 0 ∧ 𝑀 ∈ (ℤ‘2) ∧ 𝑅𝑉) → 𝑁 = 0)
145144oveq2d 6706 . . . . . . . . . . . . . . . . . 18 ((𝑁 = 0 ∧ 𝑀 ∈ (ℤ‘2) ∧ 𝑅𝑉) → (𝑅𝑟𝑁) = (𝑅𝑟0))
146133, 103syl 17 . . . . . . . . . . . . . . . . . 18 ((𝑁 = 0 ∧ 𝑀 ∈ (ℤ‘2) ∧ 𝑅𝑉) → (𝑅𝑟0) = ( I ↾ (dom 𝑅 ∪ ran 𝑅)))
147145, 146eqtrd 2685 . . . . . . . . . . . . . . . . 17 ((𝑁 = 0 ∧ 𝑀 ∈ (ℤ‘2) ∧ 𝑅𝑉) → (𝑅𝑟𝑁) = ( I ↾ (dom 𝑅 ∪ ran 𝑅)))
148147coeq2d 5317 . . . . . . . . . . . . . . . 16 ((𝑁 = 0 ∧ 𝑀 ∈ (ℤ‘2) ∧ 𝑅𝑉) → ((𝑅𝑟𝑀) ∘ (𝑅𝑟𝑁)) = ((𝑅𝑟𝑀) ∘ ( I ↾ (dom 𝑅 ∪ ran 𝑅))))
149144oveq1d 6705 . . . . . . . . . . . . . . . . . 18 ((𝑁 = 0 ∧ 𝑀 ∈ (ℤ‘2) ∧ 𝑅𝑉) → (𝑁 + 𝑀) = (0 + 𝑀))
150 eluzelcn 11737 . . . . . . . . . . . . . . . . . . . 20 (𝑀 ∈ (ℤ‘2) → 𝑀 ∈ ℂ)
151131, 150syl 17 . . . . . . . . . . . . . . . . . . 19 ((𝑁 = 0 ∧ 𝑀 ∈ (ℤ‘2) ∧ 𝑅𝑉) → 𝑀 ∈ ℂ)
152151addid2d 10275 . . . . . . . . . . . . . . . . . 18 ((𝑁 = 0 ∧ 𝑀 ∈ (ℤ‘2) ∧ 𝑅𝑉) → (0 + 𝑀) = 𝑀)
153149, 152eqtrd 2685 . . . . . . . . . . . . . . . . 17 ((𝑁 = 0 ∧ 𝑀 ∈ (ℤ‘2) ∧ 𝑅𝑉) → (𝑁 + 𝑀) = 𝑀)
154153oveq2d 6706 . . . . . . . . . . . . . . . 16 ((𝑁 = 0 ∧ 𝑀 ∈ (ℤ‘2) ∧ 𝑅𝑉) → (𝑅𝑟(𝑁 + 𝑀)) = (𝑅𝑟𝑀))
155143, 148, 1543eqtr4d 2695 . . . . . . . . . . . . . . 15 ((𝑁 = 0 ∧ 𝑀 ∈ (ℤ‘2) ∧ 𝑅𝑉) → ((𝑅𝑟𝑀) ∘ (𝑅𝑟𝑁)) = (𝑅𝑟(𝑁 + 𝑀)))
156 nnnn0 11337 . . . . . . . . . . . . . . . . . . 19 (𝑀 ∈ ℕ → 𝑀 ∈ ℕ0)
157131, 136, 1563syl 18 . . . . . . . . . . . . . . . . . 18 ((𝑁 = 0 ∧ 𝑀 ∈ (ℤ‘2) ∧ 𝑅𝑉) → 𝑀 ∈ ℕ0)
158157, 132, 89syl2anc 694 . . . . . . . . . . . . . . . . 17 ((𝑁 = 0 ∧ 𝑀 ∈ (ℤ‘2) ∧ 𝑅𝑉) → (𝑅𝑟𝑀) = (𝑅𝑟𝑀))
159144, 98syl6eqel 2738 . . . . . . . . . . . . . . . . . 18 ((𝑁 = 0 ∧ 𝑀 ∈ (ℤ‘2) ∧ 𝑅𝑉) → 𝑁 ∈ ℕ0)
160159, 132, 100syl2anc 694 . . . . . . . . . . . . . . . . 17 ((𝑁 = 0 ∧ 𝑀 ∈ (ℤ‘2) ∧ 𝑅𝑉) → (𝑅𝑟𝑁) = (𝑅𝑟𝑁))
161158, 160coeq12d 5319 . . . . . . . . . . . . . . . 16 ((𝑁 = 0 ∧ 𝑀 ∈ (ℤ‘2) ∧ 𝑅𝑉) → ((𝑅𝑟𝑀) ∘ (𝑅𝑟𝑁)) = ((𝑅𝑟𝑀) ∘ (𝑅𝑟𝑁)))
16284, 161syl5eq 2697 . . . . . . . . . . . . . . 15 ((𝑁 = 0 ∧ 𝑀 ∈ (ℤ‘2) ∧ 𝑅𝑉) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = ((𝑅𝑟𝑀) ∘ (𝑅𝑟𝑁)))
163159, 157nn0addcld 11393 . . . . . . . . . . . . . . . 16 ((𝑁 = 0 ∧ 𝑀 ∈ (ℤ‘2) ∧ 𝑅𝑉) → (𝑁 + 𝑀) ∈ ℕ0)
164163, 132, 109syl2anc 694 . . . . . . . . . . . . . . 15 ((𝑁 = 0 ∧ 𝑀 ∈ (ℤ‘2) ∧ 𝑅𝑉) → (𝑅𝑟(𝑁 + 𝑀)) = (𝑅𝑟(𝑁 + 𝑀)))
165155, 162, 1643eqtr4d 2695 . . . . . . . . . . . . . 14 ((𝑁 = 0 ∧ 𝑀 ∈ (ℤ‘2) ∧ 𝑅𝑉) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀)))
166159nn0cnd 11391 . . . . . . . . . . . . . . . . . 18 ((𝑁 = 0 ∧ 𝑀 ∈ (ℤ‘2) ∧ 𝑅𝑉) → 𝑁 ∈ ℂ)
167151, 166addcomd 10276 . . . . . . . . . . . . . . . . 17 ((𝑁 = 0 ∧ 𝑀 ∈ (ℤ‘2) ∧ 𝑅𝑉) → (𝑀 + 𝑁) = (𝑁 + 𝑀))
168 uzaddcl 11782 . . . . . . . . . . . . . . . . . 18 ((𝑀 ∈ (ℤ‘2) ∧ 𝑁 ∈ ℕ0) → (𝑀 + 𝑁) ∈ (ℤ‘2))
169131, 159, 168syl2anc 694 . . . . . . . . . . . . . . . . 17 ((𝑁 = 0 ∧ 𝑀 ∈ (ℤ‘2) ∧ 𝑅𝑉) → (𝑀 + 𝑁) ∈ (ℤ‘2))
170167, 169eqeltrrd 2731 . . . . . . . . . . . . . . . 16 ((𝑁 = 0 ∧ 𝑀 ∈ (ℤ‘2) ∧ 𝑅𝑉) → (𝑁 + 𝑀) ∈ (ℤ‘2))
171 relexpuzrel 13836 . . . . . . . . . . . . . . . 16 (((𝑁 + 𝑀) ∈ (ℤ‘2) ∧ 𝑅𝑉) → Rel (𝑅𝑟(𝑁 + 𝑀)))
172170, 132, 171syl2anc 694 . . . . . . . . . . . . . . 15 ((𝑁 = 0 ∧ 𝑀 ∈ (ℤ‘2) ∧ 𝑅𝑉) → Rel (𝑅𝑟(𝑁 + 𝑀)))
173117, 172, 125sylancr 696 . . . . . . . . . . . . . 14 ((𝑁 = 0 ∧ 𝑀 ∈ (ℤ‘2) ∧ 𝑅𝑉) → (((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀)) ↔ ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀))))
174165, 173mpbird 247 . . . . . . . . . . . . 13 ((𝑁 = 0 ∧ 𝑀 ∈ (ℤ‘2) ∧ 𝑅𝑉) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀)))
175174a1d 25 . . . . . . . . . . . 12 ((𝑁 = 0 ∧ 𝑀 ∈ (ℤ‘2) ∧ 𝑅𝑉) → (((𝑁 + 𝑀) = 1 → Rel 𝑅) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀))))
1761753exp 1283 . . . . . . . . . . 11 (𝑁 = 0 → (𝑀 ∈ (ℤ‘2) → (𝑅𝑉 → (((𝑁 + 𝑀) = 1 → Rel 𝑅) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀))))))
177176com12 32 . . . . . . . . . 10 (𝑀 ∈ (ℤ‘2) → (𝑁 = 0 → (𝑅𝑉 → (((𝑁 + 𝑀) = 1 → Rel 𝑅) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀))))))
178129, 177jaoi 393 . . . . . . . . 9 ((𝑀 = 1 ∨ 𝑀 ∈ (ℤ‘2)) → (𝑁 = 0 → (𝑅𝑉 → (((𝑁 + 𝑀) = 1 → Rel 𝑅) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀))))))
17976, 178sylbi 207 . . . . . . . 8 (𝑀 ∈ ℕ → (𝑁 = 0 → (𝑅𝑉 → (((𝑁 + 𝑀) = 1 → Rel 𝑅) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀))))))
180 coires1 5691 . . . . . . . . . . . . 13 ((𝑅𝑟0) ∘ ( I ↾ (dom 𝑅 ∪ ran 𝑅))) = ((𝑅𝑟0) ↾ (dom 𝑅 ∪ ran 𝑅))
181 simp3 1083 . . . . . . . . . . . . . . 15 ((𝑁 = 0 ∧ 𝑀 = 0 ∧ 𝑅𝑉) → 𝑅𝑉)
182 relexp0rel 13821 . . . . . . . . . . . . . . 15 (𝑅𝑉 → Rel (𝑅𝑟0))
183181, 182syl 17 . . . . . . . . . . . . . 14 ((𝑁 = 0 ∧ 𝑀 = 0 ∧ 𝑅𝑉) → Rel (𝑅𝑟0))
184181, 33syl 17 . . . . . . . . . . . . . . . . 17 ((𝑁 = 0 ∧ 𝑀 = 0 ∧ 𝑅𝑉) → (𝑅𝑟0) = ( I ↾ (dom 𝑅 ∪ ran 𝑅)))
185184dmeqd 5358 . . . . . . . . . . . . . . . 16 ((𝑁 = 0 ∧ 𝑀 = 0 ∧ 𝑅𝑉) → dom (𝑅𝑟0) = dom ( I ↾ (dom 𝑅 ∪ ran 𝑅)))
186 dmresi 5492 . . . . . . . . . . . . . . . 16 dom ( I ↾ (dom 𝑅 ∪ ran 𝑅)) = (dom 𝑅 ∪ ran 𝑅)
187185, 186syl6eq 2701 . . . . . . . . . . . . . . 15 ((𝑁 = 0 ∧ 𝑀 = 0 ∧ 𝑅𝑉) → dom (𝑅𝑟0) = (dom 𝑅 ∪ ran 𝑅))
188 eqimss 3690 . . . . . . . . . . . . . . 15 (dom (𝑅𝑟0) = (dom 𝑅 ∪ ran 𝑅) → dom (𝑅𝑟0) ⊆ (dom 𝑅 ∪ ran 𝑅))
189187, 188syl 17 . . . . . . . . . . . . . 14 ((𝑁 = 0 ∧ 𝑀 = 0 ∧ 𝑅𝑉) → dom (𝑅𝑟0) ⊆ (dom 𝑅 ∪ ran 𝑅))
190 relssres 5472 . . . . . . . . . . . . . 14 ((Rel (𝑅𝑟0) ∧ dom (𝑅𝑟0) ⊆ (dom 𝑅 ∪ ran 𝑅)) → ((𝑅𝑟0) ↾ (dom 𝑅 ∪ ran 𝑅)) = (𝑅𝑟0))
191183, 189, 190syl2anc 694 . . . . . . . . . . . . 13 ((𝑁 = 0 ∧ 𝑀 = 0 ∧ 𝑅𝑉) → ((𝑅𝑟0) ↾ (dom 𝑅 ∪ ran 𝑅)) = (𝑅𝑟0))
192180, 191syl5eq 2697 . . . . . . . . . . . 12 ((𝑁 = 0 ∧ 𝑀 = 0 ∧ 𝑅𝑉) → ((𝑅𝑟0) ∘ ( I ↾ (dom 𝑅 ∪ ran 𝑅))) = (𝑅𝑟0))
193 simp1 1081 . . . . . . . . . . . . . 14 ((𝑁 = 0 ∧ 𝑀 = 0 ∧ 𝑅𝑉) → 𝑁 = 0)
194193oveq2d 6706 . . . . . . . . . . . . 13 ((𝑁 = 0 ∧ 𝑀 = 0 ∧ 𝑅𝑉) → (𝑅𝑟𝑁) = (𝑅𝑟0))
195 simp2 1082 . . . . . . . . . . . . . . 15 ((𝑁 = 0 ∧ 𝑀 = 0 ∧ 𝑅𝑉) → 𝑀 = 0)
196195oveq2d 6706 . . . . . . . . . . . . . 14 ((𝑁 = 0 ∧ 𝑀 = 0 ∧ 𝑅𝑉) → (𝑅𝑟𝑀) = (𝑅𝑟0))
197196, 184eqtrd 2685 . . . . . . . . . . . . 13 ((𝑁 = 0 ∧ 𝑀 = 0 ∧ 𝑅𝑉) → (𝑅𝑟𝑀) = ( I ↾ (dom 𝑅 ∪ ran 𝑅)))
198194, 197coeq12d 5319 . . . . . . . . . . . 12 ((𝑁 = 0 ∧ 𝑀 = 0 ∧ 𝑅𝑉) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = ((𝑅𝑟0) ∘ ( I ↾ (dom 𝑅 ∪ ran 𝑅))))
199193, 195oveq12d 6708 . . . . . . . . . . . . . 14 ((𝑁 = 0 ∧ 𝑀 = 0 ∧ 𝑅𝑉) → (𝑁 + 𝑀) = (0 + 0))
200 00id 10249 . . . . . . . . . . . . . 14 (0 + 0) = 0
201199, 200syl6eq 2701 . . . . . . . . . . . . 13 ((𝑁 = 0 ∧ 𝑀 = 0 ∧ 𝑅𝑉) → (𝑁 + 𝑀) = 0)
202201oveq2d 6706 . . . . . . . . . . . 12 ((𝑁 = 0 ∧ 𝑀 = 0 ∧ 𝑅𝑉) → (𝑅𝑟(𝑁 + 𝑀)) = (𝑅𝑟0))
203192, 198, 2023eqtr4d 2695 . . . . . . . . . . 11 ((𝑁 = 0 ∧ 𝑀 = 0 ∧ 𝑅𝑉) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀)))
204203a1d 25 . . . . . . . . . 10 ((𝑁 = 0 ∧ 𝑀 = 0 ∧ 𝑅𝑉) → (((𝑁 + 𝑀) = 1 → Rel 𝑅) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀))))
2052043exp 1283 . . . . . . . . 9 (𝑁 = 0 → (𝑀 = 0 → (𝑅𝑉 → (((𝑁 + 𝑀) = 1 → Rel 𝑅) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀))))))
206205com12 32 . . . . . . . 8 (𝑀 = 0 → (𝑁 = 0 → (𝑅𝑉 → (((𝑁 + 𝑀) = 1 → Rel 𝑅) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀))))))
207179, 206jaoi 393 . . . . . . 7 ((𝑀 ∈ ℕ ∨ 𝑀 = 0) → (𝑁 = 0 → (𝑅𝑉 → (((𝑁 + 𝑀) = 1 → Rel 𝑅) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀))))))
2082, 207sylbi 207 . . . . . 6 (𝑀 ∈ ℕ0 → (𝑁 = 0 → (𝑅𝑉 → (((𝑁 + 𝑀) = 1 → Rel 𝑅) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀))))))
209208com12 32 . . . . 5 (𝑁 = 0 → (𝑀 ∈ ℕ0 → (𝑅𝑉 → (((𝑁 + 𝑀) = 1 → Rel 𝑅) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀))))))
2102093impd 1303 . . . 4 (𝑁 = 0 → ((𝑀 ∈ ℕ0𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅)) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀))))
21175, 210jaoi 393 . . 3 ((𝑁 ∈ ℕ ∨ 𝑁 = 0) → ((𝑀 ∈ ℕ0𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅)) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀))))
2121, 211sylbi 207 . 2 (𝑁 ∈ ℕ0 → ((𝑀 ∈ ℕ0𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅)) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀))))
213212imp 444 1 ((𝑁 ∈ ℕ0 ∧ (𝑀 ∈ ℕ0𝑅𝑉 ∧ ((𝑁 + 𝑀) = 1 → Rel 𝑅))) → ((𝑅𝑟𝑁) ∘ (𝑅𝑟𝑀)) = (𝑅𝑟(𝑁 + 𝑀)))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 196  wo 382  wa 383  w3a 1054   = wceq 1523  wcel 2030  Vcvv 3231  cun 3605  wss 3607   I cid 5052  ccnv 5142  dom cdm 5143  ran crn 5144  cres 5145  ccom 5147  Rel wrel 5148  cfv 5926  (class class class)co 6690  cc 9972  0cc0 9974  1c1 9975   + caddc 9977  cn 11058  2c2 11108  0cn0 11330  cuz 11725  𝑟crelexp 13804
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1762  ax-4 1777  ax-5 1879  ax-6 1945  ax-7 1981  ax-8 2032  ax-9 2039  ax-10 2059  ax-11 2074  ax-12 2087  ax-13 2282  ax-ext 2631  ax-sep 4814  ax-nul 4822  ax-pow 4873  ax-pr 4936  ax-un 6991  ax-cnex 10030  ax-resscn 10031  ax-1cn 10032  ax-icn 10033  ax-addcl 10034  ax-addrcl 10035  ax-mulcl 10036  ax-mulrcl 10037  ax-mulcom 10038  ax-addass 10039  ax-mulass 10040  ax-distr 10041  ax-i2m1 10042  ax-1ne0 10043  ax-1rid 10044  ax-rnegex 10045  ax-rrecex 10046  ax-cnre 10047  ax-pre-lttri 10048  ax-pre-lttrn 10049  ax-pre-ltadd 10050  ax-pre-mulgt0 10051
This theorem depends on definitions:  df-bi 197  df-or 384  df-an 385  df-3or 1055  df-3an 1056  df-tru 1526  df-ex 1745  df-nf 1750  df-sb 1938  df-eu 2502  df-mo 2503  df-clab 2638  df-cleq 2644  df-clel 2647  df-nfc 2782  df-ne 2824  df-nel 2927  df-ral 2946  df-rex 2947  df-reu 2948  df-rab 2950  df-v 3233  df-sbc 3469  df-csb 3567  df-dif 3610  df-un 3612  df-in 3614  df-ss 3621  df-pss 3623  df-nul 3949  df-if 4120  df-pw 4193  df-sn 4211  df-pr 4213  df-tp 4215  df-op 4217  df-uni 4469  df-iun 4554  df-br 4686  df-opab 4746  df-mpt 4763  df-tr 4786  df-id 5053  df-eprel 5058  df-po 5064  df-so 5065  df-fr 5102  df-we 5104  df-xp 5149  df-rel 5150  df-cnv 5151  df-co 5152  df-dm 5153  df-rn 5154  df-res 5155  df-ima 5156  df-pred 5718  df-ord 5764  df-on 5765  df-lim 5766  df-suc 5767  df-iota 5889  df-fun 5928  df-fn 5929  df-f 5930  df-f1 5931  df-fo 5932  df-f1o 5933  df-fv 5934  df-riota 6651  df-ov 6693  df-oprab 6694  df-mpt2 6695  df-om 7108  df-2nd 7211  df-wrecs 7452  df-recs 7513  df-rdg 7551  df-er 7787  df-en 7998  df-dom 7999  df-sdom 8000  df-pnf 10114  df-mnf 10115  df-xr 10116  df-ltxr 10117  df-le 10118  df-sub 10306  df-neg 10307  df-nn 11059  df-2 11117  df-n0 11331  df-z 11416  df-uz 11726  df-seq 12842  df-relexp 13805
This theorem is referenced by:  relexpaddd  13838  relexpnul  38287
  Copyright terms: Public domain W3C validator