Users' Mathboxes Mathbox for Mario Carneiro < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >   Mathboxes  >  erdsze2lem1 Structured version   Visualization version   GIF version

Theorem erdsze2lem1 32511
Description: Lemma for erdsze2 32513. (Contributed by Mario Carneiro, 22-Jan-2015.)
Hypotheses
Ref Expression
erdsze2.r (𝜑𝑅 ∈ ℕ)
erdsze2.s (𝜑𝑆 ∈ ℕ)
erdsze2.f (𝜑𝐹:𝐴1-1→ℝ)
erdsze2.a (𝜑𝐴 ⊆ ℝ)
erdsze2lem.n 𝑁 = ((𝑅 − 1) · (𝑆 − 1))
erdsze2lem.l (𝜑𝑁 < (♯‘𝐴))
Assertion
Ref Expression
erdsze2lem1 (𝜑 → ∃𝑓(𝑓:(1...(𝑁 + 1))–1-1𝐴𝑓 Isom < , < ((1...(𝑁 + 1)), ran 𝑓)))
Distinct variable groups:   𝐴,𝑓   𝑓,𝐹   𝑅,𝑓   𝑆,𝑓   𝑓,𝑁   𝜑,𝑓

Proof of Theorem erdsze2lem1
Dummy variable 𝑠 is distinct from all other variables.
StepHypRef Expression
1 erdsze2lem.n . . . . . . . . 9 𝑁 = ((𝑅 − 1) · (𝑆 − 1))
2 erdsze2.r . . . . . . . . . . 11 (𝜑𝑅 ∈ ℕ)
3 nnm1nn0 11935 . . . . . . . . . . 11 (𝑅 ∈ ℕ → (𝑅 − 1) ∈ ℕ0)
42, 3syl 17 . . . . . . . . . 10 (𝜑 → (𝑅 − 1) ∈ ℕ0)
5 erdsze2.s . . . . . . . . . . 11 (𝜑𝑆 ∈ ℕ)
6 nnm1nn0 11935 . . . . . . . . . . 11 (𝑆 ∈ ℕ → (𝑆 − 1) ∈ ℕ0)
75, 6syl 17 . . . . . . . . . 10 (𝜑 → (𝑆 − 1) ∈ ℕ0)
84, 7nn0mulcld 11957 . . . . . . . . 9 (𝜑 → ((𝑅 − 1) · (𝑆 − 1)) ∈ ℕ0)
91, 8eqeltrid 2920 . . . . . . . 8 (𝜑𝑁 ∈ ℕ0)
10 peano2nn0 11934 . . . . . . . 8 (𝑁 ∈ ℕ0 → (𝑁 + 1) ∈ ℕ0)
11 hashfz1 13711 . . . . . . . 8 ((𝑁 + 1) ∈ ℕ0 → (♯‘(1...(𝑁 + 1))) = (𝑁 + 1))
129, 10, 113syl 18 . . . . . . 7 (𝜑 → (♯‘(1...(𝑁 + 1))) = (𝑁 + 1))
1312adantr 484 . . . . . 6 ((𝜑𝐴 ∈ Fin) → (♯‘(1...(𝑁 + 1))) = (𝑁 + 1))
14 erdsze2lem.l . . . . . . . 8 (𝜑𝑁 < (♯‘𝐴))
1514adantr 484 . . . . . . 7 ((𝜑𝐴 ∈ Fin) → 𝑁 < (♯‘𝐴))
16 hashcl 13722 . . . . . . . 8 (𝐴 ∈ Fin → (♯‘𝐴) ∈ ℕ0)
17 nn0ltp1le 12037 . . . . . . . 8 ((𝑁 ∈ ℕ0 ∧ (♯‘𝐴) ∈ ℕ0) → (𝑁 < (♯‘𝐴) ↔ (𝑁 + 1) ≤ (♯‘𝐴)))
189, 16, 17syl2an 598 . . . . . . 7 ((𝜑𝐴 ∈ Fin) → (𝑁 < (♯‘𝐴) ↔ (𝑁 + 1) ≤ (♯‘𝐴)))
1915, 18mpbid 235 . . . . . 6 ((𝜑𝐴 ∈ Fin) → (𝑁 + 1) ≤ (♯‘𝐴))
2013, 19eqbrtrd 5074 . . . . 5 ((𝜑𝐴 ∈ Fin) → (♯‘(1...(𝑁 + 1))) ≤ (♯‘𝐴))
21 fzfid 13345 . . . . . 6 ((𝜑𝐴 ∈ Fin) → (1...(𝑁 + 1)) ∈ Fin)
22 simpr 488 . . . . . 6 ((𝜑𝐴 ∈ Fin) → 𝐴 ∈ Fin)
23 hashdom 13745 . . . . . 6 (((1...(𝑁 + 1)) ∈ Fin ∧ 𝐴 ∈ Fin) → ((♯‘(1...(𝑁 + 1))) ≤ (♯‘𝐴) ↔ (1...(𝑁 + 1)) ≼ 𝐴))
2421, 22, 23syl2anc 587 . . . . 5 ((𝜑𝐴 ∈ Fin) → ((♯‘(1...(𝑁 + 1))) ≤ (♯‘𝐴) ↔ (1...(𝑁 + 1)) ≼ 𝐴))
2520, 24mpbid 235 . . . 4 ((𝜑𝐴 ∈ Fin) → (1...(𝑁 + 1)) ≼ 𝐴)
26 simpr 488 . . . . . 6 ((𝜑 ∧ ¬ 𝐴 ∈ Fin) → ¬ 𝐴 ∈ Fin)
27 fzfid 13345 . . . . . 6 ((𝜑 ∧ ¬ 𝐴 ∈ Fin) → (1...(𝑁 + 1)) ∈ Fin)
28 isinffi 9418 . . . . . 6 ((¬ 𝐴 ∈ Fin ∧ (1...(𝑁 + 1)) ∈ Fin) → ∃𝑓 𝑓:(1...(𝑁 + 1))–1-1𝐴)
2926, 27, 28syl2anc 587 . . . . 5 ((𝜑 ∧ ¬ 𝐴 ∈ Fin) → ∃𝑓 𝑓:(1...(𝑁 + 1))–1-1𝐴)
30 erdsze2.a . . . . . . . 8 (𝜑𝐴 ⊆ ℝ)
31 reex 10626 . . . . . . . 8 ℝ ∈ V
32 ssexg 5213 . . . . . . . 8 ((𝐴 ⊆ ℝ ∧ ℝ ∈ V) → 𝐴 ∈ V)
3330, 31, 32sylancl 589 . . . . . . 7 (𝜑𝐴 ∈ V)
3433adantr 484 . . . . . 6 ((𝜑 ∧ ¬ 𝐴 ∈ Fin) → 𝐴 ∈ V)
35 brdomg 8515 . . . . . 6 (𝐴 ∈ V → ((1...(𝑁 + 1)) ≼ 𝐴 ↔ ∃𝑓 𝑓:(1...(𝑁 + 1))–1-1𝐴))
3634, 35syl 17 . . . . 5 ((𝜑 ∧ ¬ 𝐴 ∈ Fin) → ((1...(𝑁 + 1)) ≼ 𝐴 ↔ ∃𝑓 𝑓:(1...(𝑁 + 1))–1-1𝐴))
3729, 36mpbird 260 . . . 4 ((𝜑 ∧ ¬ 𝐴 ∈ Fin) → (1...(𝑁 + 1)) ≼ 𝐴)
3825, 37pm2.61dan 812 . . 3 (𝜑 → (1...(𝑁 + 1)) ≼ 𝐴)
39 domeng 8519 . . . 4 (𝐴 ∈ V → ((1...(𝑁 + 1)) ≼ 𝐴 ↔ ∃𝑠((1...(𝑁 + 1)) ≈ 𝑠𝑠𝐴)))
4033, 39syl 17 . . 3 (𝜑 → ((1...(𝑁 + 1)) ≼ 𝐴 ↔ ∃𝑠((1...(𝑁 + 1)) ≈ 𝑠𝑠𝐴)))
4138, 40mpbid 235 . 2 (𝜑 → ∃𝑠((1...(𝑁 + 1)) ≈ 𝑠𝑠𝐴))
42 simprr 772 . . . . . 6 ((𝜑 ∧ ((1...(𝑁 + 1)) ≈ 𝑠𝑠𝐴)) → 𝑠𝐴)
4330adantr 484 . . . . . 6 ((𝜑 ∧ ((1...(𝑁 + 1)) ≈ 𝑠𝑠𝐴)) → 𝐴 ⊆ ℝ)
4442, 43sstrd 3963 . . . . 5 ((𝜑 ∧ ((1...(𝑁 + 1)) ≈ 𝑠𝑠𝐴)) → 𝑠 ⊆ ℝ)
45 ltso 10719 . . . . 5 < Or ℝ
46 soss 5480 . . . . 5 (𝑠 ⊆ ℝ → ( < Or ℝ → < Or 𝑠))
4744, 45, 46mpisyl 21 . . . 4 ((𝜑 ∧ ((1...(𝑁 + 1)) ≈ 𝑠𝑠𝐴)) → < Or 𝑠)
48 fzfid 13345 . . . . 5 ((𝜑 ∧ ((1...(𝑁 + 1)) ≈ 𝑠𝑠𝐴)) → (1...(𝑁 + 1)) ∈ Fin)
49 simprl 770 . . . . . 6 ((𝜑 ∧ ((1...(𝑁 + 1)) ≈ 𝑠𝑠𝐴)) → (1...(𝑁 + 1)) ≈ 𝑠)
50 enfi 8731 . . . . . 6 ((1...(𝑁 + 1)) ≈ 𝑠 → ((1...(𝑁 + 1)) ∈ Fin ↔ 𝑠 ∈ Fin))
5149, 50syl 17 . . . . 5 ((𝜑 ∧ ((1...(𝑁 + 1)) ≈ 𝑠𝑠𝐴)) → ((1...(𝑁 + 1)) ∈ Fin ↔ 𝑠 ∈ Fin))
5248, 51mpbid 235 . . . 4 ((𝜑 ∧ ((1...(𝑁 + 1)) ≈ 𝑠𝑠𝐴)) → 𝑠 ∈ Fin)
53 fz1iso 13825 . . . 4 (( < Or 𝑠𝑠 ∈ Fin) → ∃𝑓 𝑓 Isom < , < ((1...(♯‘𝑠)), 𝑠))
5447, 52, 53syl2anc 587 . . 3 ((𝜑 ∧ ((1...(𝑁 + 1)) ≈ 𝑠𝑠𝐴)) → ∃𝑓 𝑓 Isom < , < ((1...(♯‘𝑠)), 𝑠))
55 isof1o 7069 . . . . . . . . . 10 (𝑓 Isom < , < ((1...(♯‘𝑠)), 𝑠) → 𝑓:(1...(♯‘𝑠))–1-1-onto𝑠)
5655adantl 485 . . . . . . . . 9 (((𝜑 ∧ ((1...(𝑁 + 1)) ≈ 𝑠𝑠𝐴)) ∧ 𝑓 Isom < , < ((1...(♯‘𝑠)), 𝑠)) → 𝑓:(1...(♯‘𝑠))–1-1-onto𝑠)
57 hashen 13712 . . . . . . . . . . . . . . 15 (((1...(𝑁 + 1)) ∈ Fin ∧ 𝑠 ∈ Fin) → ((♯‘(1...(𝑁 + 1))) = (♯‘𝑠) ↔ (1...(𝑁 + 1)) ≈ 𝑠))
5848, 52, 57syl2anc 587 . . . . . . . . . . . . . 14 ((𝜑 ∧ ((1...(𝑁 + 1)) ≈ 𝑠𝑠𝐴)) → ((♯‘(1...(𝑁 + 1))) = (♯‘𝑠) ↔ (1...(𝑁 + 1)) ≈ 𝑠))
5949, 58mpbird 260 . . . . . . . . . . . . 13 ((𝜑 ∧ ((1...(𝑁 + 1)) ≈ 𝑠𝑠𝐴)) → (♯‘(1...(𝑁 + 1))) = (♯‘𝑠))
6012adantr 484 . . . . . . . . . . . . 13 ((𝜑 ∧ ((1...(𝑁 + 1)) ≈ 𝑠𝑠𝐴)) → (♯‘(1...(𝑁 + 1))) = (𝑁 + 1))
6159, 60eqtr3d 2861 . . . . . . . . . . . 12 ((𝜑 ∧ ((1...(𝑁 + 1)) ≈ 𝑠𝑠𝐴)) → (♯‘𝑠) = (𝑁 + 1))
6261adantr 484 . . . . . . . . . . 11 (((𝜑 ∧ ((1...(𝑁 + 1)) ≈ 𝑠𝑠𝐴)) ∧ 𝑓 Isom < , < ((1...(♯‘𝑠)), 𝑠)) → (♯‘𝑠) = (𝑁 + 1))
6362oveq2d 7165 . . . . . . . . . 10 (((𝜑 ∧ ((1...(𝑁 + 1)) ≈ 𝑠𝑠𝐴)) ∧ 𝑓 Isom < , < ((1...(♯‘𝑠)), 𝑠)) → (1...(♯‘𝑠)) = (1...(𝑁 + 1)))
6463f1oeq2d 6602 . . . . . . . . 9 (((𝜑 ∧ ((1...(𝑁 + 1)) ≈ 𝑠𝑠𝐴)) ∧ 𝑓 Isom < , < ((1...(♯‘𝑠)), 𝑠)) → (𝑓:(1...(♯‘𝑠))–1-1-onto𝑠𝑓:(1...(𝑁 + 1))–1-1-onto𝑠))
6556, 64mpbid 235 . . . . . . . 8 (((𝜑 ∧ ((1...(𝑁 + 1)) ≈ 𝑠𝑠𝐴)) ∧ 𝑓 Isom < , < ((1...(♯‘𝑠)), 𝑠)) → 𝑓:(1...(𝑁 + 1))–1-1-onto𝑠)
66 f1of1 6605 . . . . . . . 8 (𝑓:(1...(𝑁 + 1))–1-1-onto𝑠𝑓:(1...(𝑁 + 1))–1-1𝑠)
6765, 66syl 17 . . . . . . 7 (((𝜑 ∧ ((1...(𝑁 + 1)) ≈ 𝑠𝑠𝐴)) ∧ 𝑓 Isom < , < ((1...(♯‘𝑠)), 𝑠)) → 𝑓:(1...(𝑁 + 1))–1-1𝑠)
68 simplrr 777 . . . . . . 7 (((𝜑 ∧ ((1...(𝑁 + 1)) ≈ 𝑠𝑠𝐴)) ∧ 𝑓 Isom < , < ((1...(♯‘𝑠)), 𝑠)) → 𝑠𝐴)
69 f1ss 6571 . . . . . . 7 ((𝑓:(1...(𝑁 + 1))–1-1𝑠𝑠𝐴) → 𝑓:(1...(𝑁 + 1))–1-1𝐴)
7067, 68, 69syl2anc 587 . . . . . 6 (((𝜑 ∧ ((1...(𝑁 + 1)) ≈ 𝑠𝑠𝐴)) ∧ 𝑓 Isom < , < ((1...(♯‘𝑠)), 𝑠)) → 𝑓:(1...(𝑁 + 1))–1-1𝐴)
71 simpr 488 . . . . . . . 8 (((𝜑 ∧ ((1...(𝑁 + 1)) ≈ 𝑠𝑠𝐴)) ∧ 𝑓 Isom < , < ((1...(♯‘𝑠)), 𝑠)) → 𝑓 Isom < , < ((1...(♯‘𝑠)), 𝑠))
72 f1ofo 6613 . . . . . . . . 9 (𝑓:(1...(♯‘𝑠))–1-1-onto𝑠𝑓:(1...(♯‘𝑠))–onto𝑠)
73 forn 6584 . . . . . . . . 9 (𝑓:(1...(♯‘𝑠))–onto𝑠 → ran 𝑓 = 𝑠)
74 isoeq5 7067 . . . . . . . . 9 (ran 𝑓 = 𝑠 → (𝑓 Isom < , < ((1...(♯‘𝑠)), ran 𝑓) ↔ 𝑓 Isom < , < ((1...(♯‘𝑠)), 𝑠)))
7556, 72, 73, 744syl 19 . . . . . . . 8 (((𝜑 ∧ ((1...(𝑁 + 1)) ≈ 𝑠𝑠𝐴)) ∧ 𝑓 Isom < , < ((1...(♯‘𝑠)), 𝑠)) → (𝑓 Isom < , < ((1...(♯‘𝑠)), ran 𝑓) ↔ 𝑓 Isom < , < ((1...(♯‘𝑠)), 𝑠)))
7671, 75mpbird 260 . . . . . . 7 (((𝜑 ∧ ((1...(𝑁 + 1)) ≈ 𝑠𝑠𝐴)) ∧ 𝑓 Isom < , < ((1...(♯‘𝑠)), 𝑠)) → 𝑓 Isom < , < ((1...(♯‘𝑠)), ran 𝑓))
77 isoeq4 7066 . . . . . . . 8 ((1...(♯‘𝑠)) = (1...(𝑁 + 1)) → (𝑓 Isom < , < ((1...(♯‘𝑠)), ran 𝑓) ↔ 𝑓 Isom < , < ((1...(𝑁 + 1)), ran 𝑓)))
7863, 77syl 17 . . . . . . 7 (((𝜑 ∧ ((1...(𝑁 + 1)) ≈ 𝑠𝑠𝐴)) ∧ 𝑓 Isom < , < ((1...(♯‘𝑠)), 𝑠)) → (𝑓 Isom < , < ((1...(♯‘𝑠)), ran 𝑓) ↔ 𝑓 Isom < , < ((1...(𝑁 + 1)), ran 𝑓)))
7976, 78mpbid 235 . . . . . 6 (((𝜑 ∧ ((1...(𝑁 + 1)) ≈ 𝑠𝑠𝐴)) ∧ 𝑓 Isom < , < ((1...(♯‘𝑠)), 𝑠)) → 𝑓 Isom < , < ((1...(𝑁 + 1)), ran 𝑓))
8070, 79jca 515 . . . . 5 (((𝜑 ∧ ((1...(𝑁 + 1)) ≈ 𝑠𝑠𝐴)) ∧ 𝑓 Isom < , < ((1...(♯‘𝑠)), 𝑠)) → (𝑓:(1...(𝑁 + 1))–1-1𝐴𝑓 Isom < , < ((1...(𝑁 + 1)), ran 𝑓)))
8180ex 416 . . . 4 ((𝜑 ∧ ((1...(𝑁 + 1)) ≈ 𝑠𝑠𝐴)) → (𝑓 Isom < , < ((1...(♯‘𝑠)), 𝑠) → (𝑓:(1...(𝑁 + 1))–1-1𝐴𝑓 Isom < , < ((1...(𝑁 + 1)), ran 𝑓))))
8281eximdv 1919 . . 3 ((𝜑 ∧ ((1...(𝑁 + 1)) ≈ 𝑠𝑠𝐴)) → (∃𝑓 𝑓 Isom < , < ((1...(♯‘𝑠)), 𝑠) → ∃𝑓(𝑓:(1...(𝑁 + 1))–1-1𝐴𝑓 Isom < , < ((1...(𝑁 + 1)), ran 𝑓))))
8354, 82mpd 15 . 2 ((𝜑 ∧ ((1...(𝑁 + 1)) ≈ 𝑠𝑠𝐴)) → ∃𝑓(𝑓:(1...(𝑁 + 1))–1-1𝐴𝑓 Isom < , < ((1...(𝑁 + 1)), ran 𝑓)))
8441, 83exlimddv 1937 1 (𝜑 → ∃𝑓(𝑓:(1...(𝑁 + 1))–1-1𝐴𝑓 Isom < , < ((1...(𝑁 + 1)), ran 𝑓)))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 209  wa 399   = wceq 1538  wex 1781  wcel 2115  Vcvv 3480  wss 3919   class class class wbr 5052   Or wor 5460  ran crn 5543  1-1wf1 6340  ontowfo 6341  1-1-ontowf1o 6342  cfv 6343   Isom wiso 6344  (class class class)co 7149  cen 8502  cdom 8503  Fincfn 8505  cr 10534  1c1 10536   + caddc 10538   · cmul 10540   < clt 10673  cle 10674  cmin 10868  cn 11634  0cn0 11894  ...cfz 12894  chash 13695
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 1912  ax-6 1971  ax-7 2016  ax-8 2117  ax-9 2125  ax-10 2146  ax-11 2162  ax-12 2179  ax-ext 2796  ax-rep 5176  ax-sep 5189  ax-nul 5196  ax-pow 5253  ax-pr 5317  ax-un 7455  ax-cnex 10591  ax-resscn 10592  ax-1cn 10593  ax-icn 10594  ax-addcl 10595  ax-addrcl 10596  ax-mulcl 10597  ax-mulrcl 10598  ax-mulcom 10599  ax-addass 10600  ax-mulass 10601  ax-distr 10602  ax-i2m1 10603  ax-1ne0 10604  ax-1rid 10605  ax-rnegex 10606  ax-rrecex 10607  ax-cnre 10608  ax-pre-lttri 10609  ax-pre-lttrn 10610  ax-pre-ltadd 10611  ax-pre-mulgt0 10612
This theorem depends on definitions:  df-bi 210  df-an 400  df-or 845  df-3or 1085  df-3an 1086  df-tru 1541  df-ex 1782  df-nf 1786  df-sb 2071  df-mo 2624  df-eu 2655  df-clab 2803  df-cleq 2817  df-clel 2896  df-nfc 2964  df-ne 3015  df-nel 3119  df-ral 3138  df-rex 3139  df-reu 3140  df-rmo 3141  df-rab 3142  df-v 3482  df-sbc 3759  df-csb 3867  df-dif 3922  df-un 3924  df-in 3926  df-ss 3936  df-pss 3938  df-nul 4277  df-if 4451  df-pw 4524  df-sn 4551  df-pr 4553  df-tp 4555  df-op 4557  df-uni 4825  df-int 4863  df-iun 4907  df-br 5053  df-opab 5115  df-mpt 5133  df-tr 5159  df-id 5447  df-eprel 5452  df-po 5461  df-so 5462  df-fr 5501  df-se 5502  df-we 5503  df-xp 5548  df-rel 5549  df-cnv 5550  df-co 5551  df-dm 5552  df-rn 5553  df-res 5554  df-ima 5555  df-pred 6135  df-ord 6181  df-on 6182  df-lim 6183  df-suc 6184  df-iota 6302  df-fun 6345  df-fn 6346  df-f 6347  df-f1 6348  df-fo 6349  df-f1o 6350  df-fv 6351  df-isom 6352  df-riota 7107  df-ov 7152  df-oprab 7153  df-mpo 7154  df-om 7575  df-1st 7684  df-2nd 7685  df-wrecs 7943  df-recs 8004  df-rdg 8042  df-1o 8098  df-oadd 8102  df-er 8285  df-en 8506  df-dom 8507  df-sdom 8508  df-fin 8509  df-oi 8971  df-card 9365  df-pnf 10675  df-mnf 10676  df-xr 10677  df-ltxr 10678  df-le 10679  df-sub 10870  df-neg 10871  df-nn 11635  df-n0 11895  df-xnn0 11965  df-z 11979  df-uz 12241  df-fz 12895  df-hash 13696
This theorem is referenced by:  erdsze2  32513
  Copyright terms: Public domain W3C validator