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

Theorem relexprelg 13712
 Description: The exponentiation of a class is a relation except when the exponent is one and the class is not a relation. (Contributed by RP, 23-May-2020.)
Assertion
Ref Expression
relexprelg ((𝑁 ∈ ℕ0𝑅𝑉 ∧ (𝑁 = 1 → Rel 𝑅)) → Rel (𝑅𝑟𝑁))

Proof of Theorem relexprelg
Dummy variables 𝑛 𝑚 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 elnn0 11238 . . 3 (𝑁 ∈ ℕ0 ↔ (𝑁 ∈ ℕ ∨ 𝑁 = 0))
2 eqeq1 2625 . . . . . . . 8 (𝑛 = 1 → (𝑛 = 1 ↔ 1 = 1))
32imbi1d 331 . . . . . . 7 (𝑛 = 1 → ((𝑛 = 1 → Rel 𝑅) ↔ (1 = 1 → Rel 𝑅)))
43anbi2d 739 . . . . . 6 (𝑛 = 1 → ((𝑅𝑉 ∧ (𝑛 = 1 → Rel 𝑅)) ↔ (𝑅𝑉 ∧ (1 = 1 → Rel 𝑅))))
5 oveq2 6612 . . . . . . 7 (𝑛 = 1 → (𝑅𝑟𝑛) = (𝑅𝑟1))
65releqd 5164 . . . . . 6 (𝑛 = 1 → (Rel (𝑅𝑟𝑛) ↔ Rel (𝑅𝑟1)))
74, 6imbi12d 334 . . . . 5 (𝑛 = 1 → (((𝑅𝑉 ∧ (𝑛 = 1 → Rel 𝑅)) → Rel (𝑅𝑟𝑛)) ↔ ((𝑅𝑉 ∧ (1 = 1 → Rel 𝑅)) → Rel (𝑅𝑟1))))
8 eqeq1 2625 . . . . . . . 8 (𝑛 = 𝑚 → (𝑛 = 1 ↔ 𝑚 = 1))
98imbi1d 331 . . . . . . 7 (𝑛 = 𝑚 → ((𝑛 = 1 → Rel 𝑅) ↔ (𝑚 = 1 → Rel 𝑅)))
109anbi2d 739 . . . . . 6 (𝑛 = 𝑚 → ((𝑅𝑉 ∧ (𝑛 = 1 → Rel 𝑅)) ↔ (𝑅𝑉 ∧ (𝑚 = 1 → Rel 𝑅))))
11 oveq2 6612 . . . . . . 7 (𝑛 = 𝑚 → (𝑅𝑟𝑛) = (𝑅𝑟𝑚))
1211releqd 5164 . . . . . 6 (𝑛 = 𝑚 → (Rel (𝑅𝑟𝑛) ↔ Rel (𝑅𝑟𝑚)))
1310, 12imbi12d 334 . . . . 5 (𝑛 = 𝑚 → (((𝑅𝑉 ∧ (𝑛 = 1 → Rel 𝑅)) → Rel (𝑅𝑟𝑛)) ↔ ((𝑅𝑉 ∧ (𝑚 = 1 → Rel 𝑅)) → Rel (𝑅𝑟𝑚))))
14 eqeq1 2625 . . . . . . . 8 (𝑛 = (𝑚 + 1) → (𝑛 = 1 ↔ (𝑚 + 1) = 1))
1514imbi1d 331 . . . . . . 7 (𝑛 = (𝑚 + 1) → ((𝑛 = 1 → Rel 𝑅) ↔ ((𝑚 + 1) = 1 → Rel 𝑅)))
1615anbi2d 739 . . . . . 6 (𝑛 = (𝑚 + 1) → ((𝑅𝑉 ∧ (𝑛 = 1 → Rel 𝑅)) ↔ (𝑅𝑉 ∧ ((𝑚 + 1) = 1 → Rel 𝑅))))
17 oveq2 6612 . . . . . . 7 (𝑛 = (𝑚 + 1) → (𝑅𝑟𝑛) = (𝑅𝑟(𝑚 + 1)))
1817releqd 5164 . . . . . 6 (𝑛 = (𝑚 + 1) → (Rel (𝑅𝑟𝑛) ↔ Rel (𝑅𝑟(𝑚 + 1))))
1916, 18imbi12d 334 . . . . 5 (𝑛 = (𝑚 + 1) → (((𝑅𝑉 ∧ (𝑛 = 1 → Rel 𝑅)) → Rel (𝑅𝑟𝑛)) ↔ ((𝑅𝑉 ∧ ((𝑚 + 1) = 1 → Rel 𝑅)) → Rel (𝑅𝑟(𝑚 + 1)))))
20 eqeq1 2625 . . . . . . . 8 (𝑛 = 𝑁 → (𝑛 = 1 ↔ 𝑁 = 1))
2120imbi1d 331 . . . . . . 7 (𝑛 = 𝑁 → ((𝑛 = 1 → Rel 𝑅) ↔ (𝑁 = 1 → Rel 𝑅)))
2221anbi2d 739 . . . . . 6 (𝑛 = 𝑁 → ((𝑅𝑉 ∧ (𝑛 = 1 → Rel 𝑅)) ↔ (𝑅𝑉 ∧ (𝑁 = 1 → Rel 𝑅))))
23 oveq2 6612 . . . . . . 7 (𝑛 = 𝑁 → (𝑅𝑟𝑛) = (𝑅𝑟𝑁))
2423releqd 5164 . . . . . 6 (𝑛 = 𝑁 → (Rel (𝑅𝑟𝑛) ↔ Rel (𝑅𝑟𝑁)))
2522, 24imbi12d 334 . . . . 5 (𝑛 = 𝑁 → (((𝑅𝑉 ∧ (𝑛 = 1 → Rel 𝑅)) → Rel (𝑅𝑟𝑛)) ↔ ((𝑅𝑉 ∧ (𝑁 = 1 → Rel 𝑅)) → Rel (𝑅𝑟𝑁))))
26 eqid 2621 . . . . . . . 8 1 = 1
27 pm2.27 42 . . . . . . . 8 (1 = 1 → ((1 = 1 → Rel 𝑅) → Rel 𝑅))
2826, 27ax-mp 5 . . . . . . 7 ((1 = 1 → Rel 𝑅) → Rel 𝑅)
2928adantl 482 . . . . . 6 ((𝑅𝑉 ∧ (1 = 1 → Rel 𝑅)) → Rel 𝑅)
30 relexp1g 13700 . . . . . . . 8 (𝑅𝑉 → (𝑅𝑟1) = 𝑅)
3130adantr 481 . . . . . . 7 ((𝑅𝑉 ∧ (1 = 1 → Rel 𝑅)) → (𝑅𝑟1) = 𝑅)
3231releqd 5164 . . . . . 6 ((𝑅𝑉 ∧ (1 = 1 → Rel 𝑅)) → (Rel (𝑅𝑟1) ↔ Rel 𝑅))
3329, 32mpbird 247 . . . . 5 ((𝑅𝑉 ∧ (1 = 1 → Rel 𝑅)) → Rel (𝑅𝑟1))
34 relco 5592 . . . . . . . . 9 Rel ((𝑅𝑟𝑚) ∘ 𝑅)
35 relexpsucnnr 13699 . . . . . . . . . . 11 ((𝑅𝑉𝑚 ∈ ℕ) → (𝑅𝑟(𝑚 + 1)) = ((𝑅𝑟𝑚) ∘ 𝑅))
3635ancoms 469 . . . . . . . . . 10 ((𝑚 ∈ ℕ ∧ 𝑅𝑉) → (𝑅𝑟(𝑚 + 1)) = ((𝑅𝑟𝑚) ∘ 𝑅))
3736releqd 5164 . . . . . . . . 9 ((𝑚 ∈ ℕ ∧ 𝑅𝑉) → (Rel (𝑅𝑟(𝑚 + 1)) ↔ Rel ((𝑅𝑟𝑚) ∘ 𝑅)))
3834, 37mpbiri 248 . . . . . . . 8 ((𝑚 ∈ ℕ ∧ 𝑅𝑉) → Rel (𝑅𝑟(𝑚 + 1)))
3938a1d 25 . . . . . . 7 ((𝑚 ∈ ℕ ∧ 𝑅𝑉) → (((𝑚 + 1) = 1 → Rel 𝑅) → Rel (𝑅𝑟(𝑚 + 1))))
4039expimpd 628 . . . . . 6 (𝑚 ∈ ℕ → ((𝑅𝑉 ∧ ((𝑚 + 1) = 1 → Rel 𝑅)) → Rel (𝑅𝑟(𝑚 + 1))))
4140a1d 25 . . . . 5 (𝑚 ∈ ℕ → (((𝑅𝑉 ∧ (𝑚 = 1 → Rel 𝑅)) → Rel (𝑅𝑟𝑚)) → ((𝑅𝑉 ∧ ((𝑚 + 1) = 1 → Rel 𝑅)) → Rel (𝑅𝑟(𝑚 + 1)))))
427, 13, 19, 25, 33, 41nnind 10982 . . . 4 (𝑁 ∈ ℕ → ((𝑅𝑉 ∧ (𝑁 = 1 → Rel 𝑅)) → Rel (𝑅𝑟𝑁)))
43 relexp0rel 13711 . . . . . . . 8 (𝑅𝑉 → Rel (𝑅𝑟0))
4443adantl 482 . . . . . . 7 ((𝑁 = 0 ∧ 𝑅𝑉) → Rel (𝑅𝑟0))
45 simpl 473 . . . . . . . . 9 ((𝑁 = 0 ∧ 𝑅𝑉) → 𝑁 = 0)
4645oveq2d 6620 . . . . . . . 8 ((𝑁 = 0 ∧ 𝑅𝑉) → (𝑅𝑟𝑁) = (𝑅𝑟0))
4746releqd 5164 . . . . . . 7 ((𝑁 = 0 ∧ 𝑅𝑉) → (Rel (𝑅𝑟𝑁) ↔ Rel (𝑅𝑟0)))
4844, 47mpbird 247 . . . . . 6 ((𝑁 = 0 ∧ 𝑅𝑉) → Rel (𝑅𝑟𝑁))
4948a1d 25 . . . . 5 ((𝑁 = 0 ∧ 𝑅𝑉) → ((𝑁 = 1 → Rel 𝑅) → Rel (𝑅𝑟𝑁)))
5049expimpd 628 . . . 4 (𝑁 = 0 → ((𝑅𝑉 ∧ (𝑁 = 1 → Rel 𝑅)) → Rel (𝑅𝑟𝑁)))
5142, 50jaoi 394 . . 3 ((𝑁 ∈ ℕ ∨ 𝑁 = 0) → ((𝑅𝑉 ∧ (𝑁 = 1 → Rel 𝑅)) → Rel (𝑅𝑟𝑁)))
521, 51sylbi 207 . 2 (𝑁 ∈ ℕ0 → ((𝑅𝑉 ∧ (𝑁 = 1 → Rel 𝑅)) → Rel (𝑅𝑟𝑁)))
53523impib 1259 1 ((𝑁 ∈ ℕ0𝑅𝑉 ∧ (𝑁 = 1 → Rel 𝑅)) → Rel (𝑅𝑟𝑁))
 Colors of variables: wff setvar class Syntax hints:   → wi 4   ∨ wo 383   ∧ wa 384   ∧ w3a 1036   = wceq 1480   ∈ wcel 1987   ∘ ccom 5078  Rel wrel 5079  (class class class)co 6604  0cc0 9880  1c1 9881   + caddc 9883  ℕcn 10964  ℕ0cn0 11236  ↑𝑟crelexp 13694 This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1719  ax-4 1734  ax-5 1836  ax-6 1885  ax-7 1932  ax-8 1989  ax-9 1996  ax-10 2016  ax-11 2031  ax-12 2044  ax-13 2245  ax-ext 2601  ax-sep 4741  ax-nul 4749  ax-pow 4803  ax-pr 4867  ax-un 6902  ax-cnex 9936  ax-resscn 9937  ax-1cn 9938  ax-icn 9939  ax-addcl 9940  ax-addrcl 9941  ax-mulcl 9942  ax-mulrcl 9943  ax-mulcom 9944  ax-addass 9945  ax-mulass 9946  ax-distr 9947  ax-i2m1 9948  ax-1ne0 9949  ax-1rid 9950  ax-rnegex 9951  ax-rrecex 9952  ax-cnre 9953  ax-pre-lttri 9954  ax-pre-lttrn 9955  ax-pre-ltadd 9956  ax-pre-mulgt0 9957 This theorem depends on definitions:  df-bi 197  df-or 385  df-an 386  df-3or 1037  df-3an 1038  df-tru 1483  df-ex 1702  df-nf 1707  df-sb 1878  df-eu 2473  df-mo 2474  df-clab 2608  df-cleq 2614  df-clel 2617  df-nfc 2750  df-ne 2791  df-nel 2894  df-ral 2912  df-rex 2913  df-reu 2914  df-rab 2916  df-v 3188  df-sbc 3418  df-csb 3515  df-dif 3558  df-un 3560  df-in 3562  df-ss 3569  df-pss 3571  df-nul 3892  df-if 4059  df-pw 4132  df-sn 4149  df-pr 4151  df-tp 4153  df-op 4155  df-uni 4403  df-iun 4487  df-br 4614  df-opab 4674  df-mpt 4675  df-tr 4713  df-eprel 4985  df-id 4989  df-po 4995  df-so 4996  df-fr 5033  df-we 5035  df-xp 5080  df-rel 5081  df-cnv 5082  df-co 5083  df-dm 5084  df-rn 5085  df-res 5086  df-ima 5087  df-pred 5639  df-ord 5685  df-on 5686  df-lim 5687  df-suc 5688  df-iota 5810  df-fun 5849  df-fn 5850  df-f 5851  df-f1 5852  df-fo 5853  df-f1o 5854  df-fv 5855  df-riota 6565  df-ov 6607  df-oprab 6608  df-mpt2 6609  df-om 7013  df-2nd 7114  df-wrecs 7352  df-recs 7413  df-rdg 7451  df-er 7687  df-en 7900  df-dom 7901  df-sdom 7902  df-pnf 10020  df-mnf 10021  df-xr 10022  df-ltxr 10023  df-le 10024  df-sub 10212  df-neg 10213  df-nn 10965  df-n0 11237  df-z 11322  df-uz 11632  df-seq 12742  df-relexp 13695 This theorem is referenced by:  relexprel  13713  relexpfld  13723  relexpuzrel  13726
 Copyright terms: Public domain W3C validator