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

Theorem fzopth 13293
Description: A finite set of sequential integers has the ordered pair property (compare opth 5391) under certain conditions. (Contributed by NM, 31-Oct-2005.) (Revised by Mario Carneiro, 28-Apr-2015.)
Assertion
Ref Expression
fzopth (𝑁 ∈ (ℤ𝑀) → ((𝑀...𝑁) = (𝐽...𝐾) ↔ (𝑀 = 𝐽𝑁 = 𝐾)))

Proof of Theorem fzopth
StepHypRef Expression
1 eluzfz1 13263 . . . . . . . . 9 (𝑁 ∈ (ℤ𝑀) → 𝑀 ∈ (𝑀...𝑁))
21adantr 481 . . . . . . . 8 ((𝑁 ∈ (ℤ𝑀) ∧ (𝑀...𝑁) = (𝐽...𝐾)) → 𝑀 ∈ (𝑀...𝑁))
3 simpr 485 . . . . . . . 8 ((𝑁 ∈ (ℤ𝑀) ∧ (𝑀...𝑁) = (𝐽...𝐾)) → (𝑀...𝑁) = (𝐽...𝐾))
42, 3eleqtrd 2841 . . . . . . 7 ((𝑁 ∈ (ℤ𝑀) ∧ (𝑀...𝑁) = (𝐽...𝐾)) → 𝑀 ∈ (𝐽...𝐾))
5 elfzuz 13252 . . . . . . 7 (𝑀 ∈ (𝐽...𝐾) → 𝑀 ∈ (ℤ𝐽))
6 uzss 12605 . . . . . . 7 (𝑀 ∈ (ℤ𝐽) → (ℤ𝑀) ⊆ (ℤ𝐽))
74, 5, 63syl 18 . . . . . 6 ((𝑁 ∈ (ℤ𝑀) ∧ (𝑀...𝑁) = (𝐽...𝐾)) → (ℤ𝑀) ⊆ (ℤ𝐽))
8 elfzuz2 13261 . . . . . . . . 9 (𝑀 ∈ (𝐽...𝐾) → 𝐾 ∈ (ℤ𝐽))
9 eluzfz1 13263 . . . . . . . . 9 (𝐾 ∈ (ℤ𝐽) → 𝐽 ∈ (𝐽...𝐾))
104, 8, 93syl 18 . . . . . . . 8 ((𝑁 ∈ (ℤ𝑀) ∧ (𝑀...𝑁) = (𝐽...𝐾)) → 𝐽 ∈ (𝐽...𝐾))
1110, 3eleqtrrd 2842 . . . . . . 7 ((𝑁 ∈ (ℤ𝑀) ∧ (𝑀...𝑁) = (𝐽...𝐾)) → 𝐽 ∈ (𝑀...𝑁))
12 elfzuz 13252 . . . . . . 7 (𝐽 ∈ (𝑀...𝑁) → 𝐽 ∈ (ℤ𝑀))
13 uzss 12605 . . . . . . 7 (𝐽 ∈ (ℤ𝑀) → (ℤ𝐽) ⊆ (ℤ𝑀))
1411, 12, 133syl 18 . . . . . 6 ((𝑁 ∈ (ℤ𝑀) ∧ (𝑀...𝑁) = (𝐽...𝐾)) → (ℤ𝐽) ⊆ (ℤ𝑀))
157, 14eqssd 3938 . . . . 5 ((𝑁 ∈ (ℤ𝑀) ∧ (𝑀...𝑁) = (𝐽...𝐾)) → (ℤ𝑀) = (ℤ𝐽))
16 eluzel2 12587 . . . . . . 7 (𝑁 ∈ (ℤ𝑀) → 𝑀 ∈ ℤ)
1716adantr 481 . . . . . 6 ((𝑁 ∈ (ℤ𝑀) ∧ (𝑀...𝑁) = (𝐽...𝐾)) → 𝑀 ∈ ℤ)
18 uz11 12607 . . . . . 6 (𝑀 ∈ ℤ → ((ℤ𝑀) = (ℤ𝐽) ↔ 𝑀 = 𝐽))
1917, 18syl 17 . . . . 5 ((𝑁 ∈ (ℤ𝑀) ∧ (𝑀...𝑁) = (𝐽...𝐾)) → ((ℤ𝑀) = (ℤ𝐽) ↔ 𝑀 = 𝐽))
2015, 19mpbid 231 . . . 4 ((𝑁 ∈ (ℤ𝑀) ∧ (𝑀...𝑁) = (𝐽...𝐾)) → 𝑀 = 𝐽)
21 eluzfz2 13264 . . . . . . . . 9 (𝐾 ∈ (ℤ𝐽) → 𝐾 ∈ (𝐽...𝐾))
224, 8, 213syl 18 . . . . . . . 8 ((𝑁 ∈ (ℤ𝑀) ∧ (𝑀...𝑁) = (𝐽...𝐾)) → 𝐾 ∈ (𝐽...𝐾))
2322, 3eleqtrrd 2842 . . . . . . 7 ((𝑁 ∈ (ℤ𝑀) ∧ (𝑀...𝑁) = (𝐽...𝐾)) → 𝐾 ∈ (𝑀...𝑁))
24 elfzuz3 13253 . . . . . . 7 (𝐾 ∈ (𝑀...𝑁) → 𝑁 ∈ (ℤ𝐾))
25 uzss 12605 . . . . . . 7 (𝑁 ∈ (ℤ𝐾) → (ℤ𝑁) ⊆ (ℤ𝐾))
2623, 24, 253syl 18 . . . . . 6 ((𝑁 ∈ (ℤ𝑀) ∧ (𝑀...𝑁) = (𝐽...𝐾)) → (ℤ𝑁) ⊆ (ℤ𝐾))
27 eluzfz2 13264 . . . . . . . . 9 (𝑁 ∈ (ℤ𝑀) → 𝑁 ∈ (𝑀...𝑁))
2827adantr 481 . . . . . . . 8 ((𝑁 ∈ (ℤ𝑀) ∧ (𝑀...𝑁) = (𝐽...𝐾)) → 𝑁 ∈ (𝑀...𝑁))
2928, 3eleqtrd 2841 . . . . . . 7 ((𝑁 ∈ (ℤ𝑀) ∧ (𝑀...𝑁) = (𝐽...𝐾)) → 𝑁 ∈ (𝐽...𝐾))
30 elfzuz3 13253 . . . . . . 7 (𝑁 ∈ (𝐽...𝐾) → 𝐾 ∈ (ℤ𝑁))
31 uzss 12605 . . . . . . 7 (𝐾 ∈ (ℤ𝑁) → (ℤ𝐾) ⊆ (ℤ𝑁))
3229, 30, 313syl 18 . . . . . 6 ((𝑁 ∈ (ℤ𝑀) ∧ (𝑀...𝑁) = (𝐽...𝐾)) → (ℤ𝐾) ⊆ (ℤ𝑁))
3326, 32eqssd 3938 . . . . 5 ((𝑁 ∈ (ℤ𝑀) ∧ (𝑀...𝑁) = (𝐽...𝐾)) → (ℤ𝑁) = (ℤ𝐾))
34 eluzelz 12592 . . . . . . 7 (𝑁 ∈ (ℤ𝑀) → 𝑁 ∈ ℤ)
3534adantr 481 . . . . . 6 ((𝑁 ∈ (ℤ𝑀) ∧ (𝑀...𝑁) = (𝐽...𝐾)) → 𝑁 ∈ ℤ)
36 uz11 12607 . . . . . 6 (𝑁 ∈ ℤ → ((ℤ𝑁) = (ℤ𝐾) ↔ 𝑁 = 𝐾))
3735, 36syl 17 . . . . 5 ((𝑁 ∈ (ℤ𝑀) ∧ (𝑀...𝑁) = (𝐽...𝐾)) → ((ℤ𝑁) = (ℤ𝐾) ↔ 𝑁 = 𝐾))
3833, 37mpbid 231 . . . 4 ((𝑁 ∈ (ℤ𝑀) ∧ (𝑀...𝑁) = (𝐽...𝐾)) → 𝑁 = 𝐾)
3920, 38jca 512 . . 3 ((𝑁 ∈ (ℤ𝑀) ∧ (𝑀...𝑁) = (𝐽...𝐾)) → (𝑀 = 𝐽𝑁 = 𝐾))
4039ex 413 . 2 (𝑁 ∈ (ℤ𝑀) → ((𝑀...𝑁) = (𝐽...𝐾) → (𝑀 = 𝐽𝑁 = 𝐾)))
41 oveq12 7284 . 2 ((𝑀 = 𝐽𝑁 = 𝐾) → (𝑀...𝑁) = (𝐽...𝐾))
4240, 41impbid1 224 1 (𝑁 ∈ (ℤ𝑀) → ((𝑀...𝑁) = (𝐽...𝐾) ↔ (𝑀 = 𝐽𝑁 = 𝐾)))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 205  wa 396   = wceq 1539  wcel 2106  wss 3887  cfv 6433  (class class class)co 7275  cz 12319  cuz 12582  ...cfz 13239
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-pre-lttri 10945  ax-pre-lttrn 10946
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-nel 3050  df-ral 3069  df-rex 3070  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-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-id 5489  df-po 5503  df-so 5504  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-iota 6391  df-fun 6435  df-fn 6436  df-f 6437  df-f1 6438  df-fo 6439  df-f1o 6440  df-fv 6441  df-ov 7278  df-oprab 7279  df-mpo 7280  df-1st 7831  df-2nd 7832  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-neg 11208  df-z 12320  df-uz 12583  df-fz 13240
This theorem is referenced by:  fz0to4untppr  13359  2ffzeq  13377  gsumval2a  18369  eedimeq  27266  sdclem2  35900
  Copyright terms: Public domain W3C validator