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 33065
Description: Lemma for erdsze2 33067. (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 12204 . . . . . . . . . . 11 (𝑅 ∈ ℕ → (𝑅 − 1) ∈ ℕ0)
42, 3syl 17 . . . . . . . . . 10 (𝜑 → (𝑅 − 1) ∈ ℕ0)
5 erdsze2.s . . . . . . . . . . 11 (𝜑𝑆 ∈ ℕ)
6 nnm1nn0 12204 . . . . . . . . . . 11 (𝑆 ∈ ℕ → (𝑆 − 1) ∈ ℕ0)
75, 6syl 17 . . . . . . . . . 10 (𝜑 → (𝑆 − 1) ∈ ℕ0)
84, 7nn0mulcld 12228 . . . . . . . . 9 (𝜑 → ((𝑅 − 1) · (𝑆 − 1)) ∈ ℕ0)
91, 8eqeltrid 2843 . . . . . . . 8 (𝜑𝑁 ∈ ℕ0)
10 peano2nn0 12203 . . . . . . . 8 (𝑁 ∈ ℕ0 → (𝑁 + 1) ∈ ℕ0)
11 hashfz1 13988 . . . . . . . 8 ((𝑁 + 1) ∈ ℕ0 → (♯‘(1...(𝑁 + 1))) = (𝑁 + 1))
129, 10, 113syl 18 . . . . . . 7 (𝜑 → (♯‘(1...(𝑁 + 1))) = (𝑁 + 1))
1312adantr 480 . . . . . 6 ((𝜑𝐴 ∈ Fin) → (♯‘(1...(𝑁 + 1))) = (𝑁 + 1))
14 erdsze2lem.l . . . . . . . 8 (𝜑𝑁 < (♯‘𝐴))
1514adantr 480 . . . . . . 7 ((𝜑𝐴 ∈ Fin) → 𝑁 < (♯‘𝐴))
16 hashcl 13999 . . . . . . . 8 (𝐴 ∈ Fin → (♯‘𝐴) ∈ ℕ0)
17 nn0ltp1le 12308 . . . . . . . 8 ((𝑁 ∈ ℕ0 ∧ (♯‘𝐴) ∈ ℕ0) → (𝑁 < (♯‘𝐴) ↔ (𝑁 + 1) ≤ (♯‘𝐴)))
189, 16, 17syl2an 595 . . . . . . 7 ((𝜑𝐴 ∈ Fin) → (𝑁 < (♯‘𝐴) ↔ (𝑁 + 1) ≤ (♯‘𝐴)))
1915, 18mpbid 231 . . . . . 6 ((𝜑𝐴 ∈ Fin) → (𝑁 + 1) ≤ (♯‘𝐴))
2013, 19eqbrtrd 5092 . . . . 5 ((𝜑𝐴 ∈ Fin) → (♯‘(1...(𝑁 + 1))) ≤ (♯‘𝐴))
21 fzfid 13621 . . . . . 6 ((𝜑𝐴 ∈ Fin) → (1...(𝑁 + 1)) ∈ Fin)
22 simpr 484 . . . . . 6 ((𝜑𝐴 ∈ Fin) → 𝐴 ∈ Fin)
23 hashdom 14022 . . . . . 6 (((1...(𝑁 + 1)) ∈ Fin ∧ 𝐴 ∈ Fin) → ((♯‘(1...(𝑁 + 1))) ≤ (♯‘𝐴) ↔ (1...(𝑁 + 1)) ≼ 𝐴))
2421, 22, 23syl2anc 583 . . . . 5 ((𝜑𝐴 ∈ Fin) → ((♯‘(1...(𝑁 + 1))) ≤ (♯‘𝐴) ↔ (1...(𝑁 + 1)) ≼ 𝐴))
2520, 24mpbid 231 . . . 4 ((𝜑𝐴 ∈ Fin) → (1...(𝑁 + 1)) ≼ 𝐴)
26 simpr 484 . . . . . 6 ((𝜑 ∧ ¬ 𝐴 ∈ Fin) → ¬ 𝐴 ∈ Fin)
27 fzfid 13621 . . . . . 6 ((𝜑 ∧ ¬ 𝐴 ∈ Fin) → (1...(𝑁 + 1)) ∈ Fin)
28 isinffi 9681 . . . . . 6 ((¬ 𝐴 ∈ Fin ∧ (1...(𝑁 + 1)) ∈ Fin) → ∃𝑓 𝑓:(1...(𝑁 + 1))–1-1𝐴)
2926, 27, 28syl2anc 583 . . . . 5 ((𝜑 ∧ ¬ 𝐴 ∈ Fin) → ∃𝑓 𝑓:(1...(𝑁 + 1))–1-1𝐴)
30 erdsze2.a . . . . . . . 8 (𝜑𝐴 ⊆ ℝ)
31 reex 10893 . . . . . . . 8 ℝ ∈ V
32 ssexg 5242 . . . . . . . 8 ((𝐴 ⊆ ℝ ∧ ℝ ∈ V) → 𝐴 ∈ V)
3330, 31, 32sylancl 585 . . . . . . 7 (𝜑𝐴 ∈ V)
3433adantr 480 . . . . . 6 ((𝜑 ∧ ¬ 𝐴 ∈ Fin) → 𝐴 ∈ V)
35 brdomg 8703 . . . . . 6 (𝐴 ∈ V → ((1...(𝑁 + 1)) ≼ 𝐴 ↔ ∃𝑓 𝑓:(1...(𝑁 + 1))–1-1𝐴))
3634, 35syl 17 . . . . 5 ((𝜑 ∧ ¬ 𝐴 ∈ Fin) → ((1...(𝑁 + 1)) ≼ 𝐴 ↔ ∃𝑓 𝑓:(1...(𝑁 + 1))–1-1𝐴))
3729, 36mpbird 256 . . . 4 ((𝜑 ∧ ¬ 𝐴 ∈ Fin) → (1...(𝑁 + 1)) ≼ 𝐴)
3825, 37pm2.61dan 809 . . 3 (𝜑 → (1...(𝑁 + 1)) ≼ 𝐴)
39 domeng 8707 . . . 4 (𝐴 ∈ V → ((1...(𝑁 + 1)) ≼ 𝐴 ↔ ∃𝑠((1...(𝑁 + 1)) ≈ 𝑠𝑠𝐴)))
4033, 39syl 17 . . 3 (𝜑 → ((1...(𝑁 + 1)) ≼ 𝐴 ↔ ∃𝑠((1...(𝑁 + 1)) ≈ 𝑠𝑠𝐴)))
4138, 40mpbid 231 . 2 (𝜑 → ∃𝑠((1...(𝑁 + 1)) ≈ 𝑠𝑠𝐴))
42 simprr 769 . . . . . 6 ((𝜑 ∧ ((1...(𝑁 + 1)) ≈ 𝑠𝑠𝐴)) → 𝑠𝐴)
4330adantr 480 . . . . . 6 ((𝜑 ∧ ((1...(𝑁 + 1)) ≈ 𝑠𝑠𝐴)) → 𝐴 ⊆ ℝ)
4442, 43sstrd 3927 . . . . 5 ((𝜑 ∧ ((1...(𝑁 + 1)) ≈ 𝑠𝑠𝐴)) → 𝑠 ⊆ ℝ)
45 ltso 10986 . . . . 5 < Or ℝ
46 soss 5514 . . . . 5 (𝑠 ⊆ ℝ → ( < Or ℝ → < Or 𝑠))
4744, 45, 46mpisyl 21 . . . 4 ((𝜑 ∧ ((1...(𝑁 + 1)) ≈ 𝑠𝑠𝐴)) → < Or 𝑠)
48 fzfid 13621 . . . . 5 ((𝜑 ∧ ((1...(𝑁 + 1)) ≈ 𝑠𝑠𝐴)) → (1...(𝑁 + 1)) ∈ Fin)
49 simprl 767 . . . . . 6 ((𝜑 ∧ ((1...(𝑁 + 1)) ≈ 𝑠𝑠𝐴)) → (1...(𝑁 + 1)) ≈ 𝑠)
50 enfi 8933 . . . . . 6 ((1...(𝑁 + 1)) ≈ 𝑠 → ((1...(𝑁 + 1)) ∈ Fin ↔ 𝑠 ∈ Fin))
5149, 50syl 17 . . . . 5 ((𝜑 ∧ ((1...(𝑁 + 1)) ≈ 𝑠𝑠𝐴)) → ((1...(𝑁 + 1)) ∈ Fin ↔ 𝑠 ∈ Fin))
5248, 51mpbid 231 . . . 4 ((𝜑 ∧ ((1...(𝑁 + 1)) ≈ 𝑠𝑠𝐴)) → 𝑠 ∈ Fin)
53 fz1iso 14104 . . . 4 (( < Or 𝑠𝑠 ∈ Fin) → ∃𝑓 𝑓 Isom < , < ((1...(♯‘𝑠)), 𝑠))
5447, 52, 53syl2anc 583 . . 3 ((𝜑 ∧ ((1...(𝑁 + 1)) ≈ 𝑠𝑠𝐴)) → ∃𝑓 𝑓 Isom < , < ((1...(♯‘𝑠)), 𝑠))
55 isof1o 7174 . . . . . . . . . 10 (𝑓 Isom < , < ((1...(♯‘𝑠)), 𝑠) → 𝑓:(1...(♯‘𝑠))–1-1-onto𝑠)
5655adantl 481 . . . . . . . . 9 (((𝜑 ∧ ((1...(𝑁 + 1)) ≈ 𝑠𝑠𝐴)) ∧ 𝑓 Isom < , < ((1...(♯‘𝑠)), 𝑠)) → 𝑓:(1...(♯‘𝑠))–1-1-onto𝑠)
57 hashen 13989 . . . . . . . . . . . . . . 15 (((1...(𝑁 + 1)) ∈ Fin ∧ 𝑠 ∈ Fin) → ((♯‘(1...(𝑁 + 1))) = (♯‘𝑠) ↔ (1...(𝑁 + 1)) ≈ 𝑠))
5848, 52, 57syl2anc 583 . . . . . . . . . . . . . 14 ((𝜑 ∧ ((1...(𝑁 + 1)) ≈ 𝑠𝑠𝐴)) → ((♯‘(1...(𝑁 + 1))) = (♯‘𝑠) ↔ (1...(𝑁 + 1)) ≈ 𝑠))
5949, 58mpbird 256 . . . . . . . . . . . . 13 ((𝜑 ∧ ((1...(𝑁 + 1)) ≈ 𝑠𝑠𝐴)) → (♯‘(1...(𝑁 + 1))) = (♯‘𝑠))
6012adantr 480 . . . . . . . . . . . . 13 ((𝜑 ∧ ((1...(𝑁 + 1)) ≈ 𝑠𝑠𝐴)) → (♯‘(1...(𝑁 + 1))) = (𝑁 + 1))
6159, 60eqtr3d 2780 . . . . . . . . . . . 12 ((𝜑 ∧ ((1...(𝑁 + 1)) ≈ 𝑠𝑠𝐴)) → (♯‘𝑠) = (𝑁 + 1))
6261adantr 480 . . . . . . . . . . 11 (((𝜑 ∧ ((1...(𝑁 + 1)) ≈ 𝑠𝑠𝐴)) ∧ 𝑓 Isom < , < ((1...(♯‘𝑠)), 𝑠)) → (♯‘𝑠) = (𝑁 + 1))
6362oveq2d 7271 . . . . . . . . . 10 (((𝜑 ∧ ((1...(𝑁 + 1)) ≈ 𝑠𝑠𝐴)) ∧ 𝑓 Isom < , < ((1...(♯‘𝑠)), 𝑠)) → (1...(♯‘𝑠)) = (1...(𝑁 + 1)))
6463f1oeq2d 6696 . . . . . . . . 9 (((𝜑 ∧ ((1...(𝑁 + 1)) ≈ 𝑠𝑠𝐴)) ∧ 𝑓 Isom < , < ((1...(♯‘𝑠)), 𝑠)) → (𝑓:(1...(♯‘𝑠))–1-1-onto𝑠𝑓:(1...(𝑁 + 1))–1-1-onto𝑠))
6556, 64mpbid 231 . . . . . . . 8 (((𝜑 ∧ ((1...(𝑁 + 1)) ≈ 𝑠𝑠𝐴)) ∧ 𝑓 Isom < , < ((1...(♯‘𝑠)), 𝑠)) → 𝑓:(1...(𝑁 + 1))–1-1-onto𝑠)
66 f1of1 6699 . . . . . . . 8 (𝑓:(1...(𝑁 + 1))–1-1-onto𝑠𝑓:(1...(𝑁 + 1))–1-1𝑠)
6765, 66syl 17 . . . . . . 7 (((𝜑 ∧ ((1...(𝑁 + 1)) ≈ 𝑠𝑠𝐴)) ∧ 𝑓 Isom < , < ((1...(♯‘𝑠)), 𝑠)) → 𝑓:(1...(𝑁 + 1))–1-1𝑠)
68 simplrr 774 . . . . . . 7 (((𝜑 ∧ ((1...(𝑁 + 1)) ≈ 𝑠𝑠𝐴)) ∧ 𝑓 Isom < , < ((1...(♯‘𝑠)), 𝑠)) → 𝑠𝐴)
69 f1ss 6660 . . . . . . 7 ((𝑓:(1...(𝑁 + 1))–1-1𝑠𝑠𝐴) → 𝑓:(1...(𝑁 + 1))–1-1𝐴)
7067, 68, 69syl2anc 583 . . . . . 6 (((𝜑 ∧ ((1...(𝑁 + 1)) ≈ 𝑠𝑠𝐴)) ∧ 𝑓 Isom < , < ((1...(♯‘𝑠)), 𝑠)) → 𝑓:(1...(𝑁 + 1))–1-1𝐴)
71 simpr 484 . . . . . . . 8 (((𝜑 ∧ ((1...(𝑁 + 1)) ≈ 𝑠𝑠𝐴)) ∧ 𝑓 Isom < , < ((1...(♯‘𝑠)), 𝑠)) → 𝑓 Isom < , < ((1...(♯‘𝑠)), 𝑠))
72 f1ofo 6707 . . . . . . . . 9 (𝑓:(1...(♯‘𝑠))–1-1-onto𝑠𝑓:(1...(♯‘𝑠))–onto𝑠)
73 forn 6675 . . . . . . . . 9 (𝑓:(1...(♯‘𝑠))–onto𝑠 → ran 𝑓 = 𝑠)
74 isoeq5 7172 . . . . . . . . 9 (ran 𝑓 = 𝑠 → (𝑓 Isom < , < ((1...(♯‘𝑠)), ran 𝑓) ↔ 𝑓 Isom < , < ((1...(♯‘𝑠)), 𝑠)))
7556, 72, 73, 744syl 19 . . . . . . . 8 (((𝜑 ∧ ((1...(𝑁 + 1)) ≈ 𝑠𝑠𝐴)) ∧ 𝑓 Isom < , < ((1...(♯‘𝑠)), 𝑠)) → (𝑓 Isom < , < ((1...(♯‘𝑠)), ran 𝑓) ↔ 𝑓 Isom < , < ((1...(♯‘𝑠)), 𝑠)))
7671, 75mpbird 256 . . . . . . 7 (((𝜑 ∧ ((1...(𝑁 + 1)) ≈ 𝑠𝑠𝐴)) ∧ 𝑓 Isom < , < ((1...(♯‘𝑠)), 𝑠)) → 𝑓 Isom < , < ((1...(♯‘𝑠)), ran 𝑓))
77 isoeq4 7171 . . . . . . . 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 231 . . . . . 6 (((𝜑 ∧ ((1...(𝑁 + 1)) ≈ 𝑠𝑠𝐴)) ∧ 𝑓 Isom < , < ((1...(♯‘𝑠)), 𝑠)) → 𝑓 Isom < , < ((1...(𝑁 + 1)), ran 𝑓))
8070, 79jca 511 . . . . 5 (((𝜑 ∧ ((1...(𝑁 + 1)) ≈ 𝑠𝑠𝐴)) ∧ 𝑓 Isom < , < ((1...(♯‘𝑠)), 𝑠)) → (𝑓:(1...(𝑁 + 1))–1-1𝐴𝑓 Isom < , < ((1...(𝑁 + 1)), ran 𝑓)))
8180ex 412 . . . 4 ((𝜑 ∧ ((1...(𝑁 + 1)) ≈ 𝑠𝑠𝐴)) → (𝑓 Isom < , < ((1...(♯‘𝑠)), 𝑠) → (𝑓:(1...(𝑁 + 1))–1-1𝐴𝑓 Isom < , < ((1...(𝑁 + 1)), ran 𝑓))))
8281eximdv 1921 . . 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 1939 1 (𝜑 → ∃𝑓(𝑓:(1...(𝑁 + 1))–1-1𝐴𝑓 Isom < , < ((1...(𝑁 + 1)), ran 𝑓)))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 205  wa 395   = wceq 1539  wex 1783  wcel 2108  Vcvv 3422  wss 3883   class class class wbr 5070   Or wor 5493  ran crn 5581  1-1wf1 6415  ontowfo 6416  1-1-ontowf1o 6417  cfv 6418   Isom wiso 6419  (class class class)co 7255  cen 8688  cdom 8689  Fincfn 8691  cr 10801  1c1 10803   + caddc 10805   · cmul 10807   < clt 10940  cle 10941  cmin 11135  cn 11903  0cn0 12163  ...cfz 13168  chash 13972
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1799  ax-4 1813  ax-5 1914  ax-6 1972  ax-7 2012  ax-8 2110  ax-9 2118  ax-10 2139  ax-11 2156  ax-12 2173  ax-ext 2709  ax-rep 5205  ax-sep 5218  ax-nul 5225  ax-pow 5283  ax-pr 5347  ax-un 7566  ax-cnex 10858  ax-resscn 10859  ax-1cn 10860  ax-icn 10861  ax-addcl 10862  ax-addrcl 10863  ax-mulcl 10864  ax-mulrcl 10865  ax-mulcom 10866  ax-addass 10867  ax-mulass 10868  ax-distr 10869  ax-i2m1 10870  ax-1ne0 10871  ax-1rid 10872  ax-rnegex 10873  ax-rrecex 10874  ax-cnre 10875  ax-pre-lttri 10876  ax-pre-lttrn 10877  ax-pre-ltadd 10878  ax-pre-mulgt0 10879
This theorem depends on definitions:  df-bi 206  df-an 396  df-or 844  df-3or 1086  df-3an 1087  df-tru 1542  df-fal 1552  df-ex 1784  df-nf 1788  df-sb 2069  df-mo 2540  df-eu 2569  df-clab 2716  df-cleq 2730  df-clel 2817  df-nfc 2888  df-ne 2943  df-nel 3049  df-ral 3068  df-rex 3069  df-reu 3070  df-rmo 3071  df-rab 3072  df-v 3424  df-sbc 3712  df-csb 3829  df-dif 3886  df-un 3888  df-in 3890  df-ss 3900  df-pss 3902  df-nul 4254  df-if 4457  df-pw 4532  df-sn 4559  df-pr 4561  df-tp 4563  df-op 4565  df-uni 4837  df-int 4877  df-iun 4923  df-br 5071  df-opab 5133  df-mpt 5154  df-tr 5188  df-id 5480  df-eprel 5486  df-po 5494  df-so 5495  df-fr 5535  df-se 5536  df-we 5537  df-xp 5586  df-rel 5587  df-cnv 5588  df-co 5589  df-dm 5590  df-rn 5591  df-res 5592  df-ima 5593  df-pred 6191  df-ord 6254  df-on 6255  df-lim 6256  df-suc 6257  df-iota 6376  df-fun 6420  df-fn 6421  df-f 6422  df-f1 6423  df-fo 6424  df-f1o 6425  df-fv 6426  df-isom 6427  df-riota 7212  df-ov 7258  df-oprab 7259  df-mpo 7260  df-om 7688  df-1st 7804  df-2nd 7805  df-frecs 8068  df-wrecs 8099  df-recs 8173  df-rdg 8212  df-1o 8267  df-oadd 8271  df-er 8456  df-en 8692  df-dom 8693  df-sdom 8694  df-fin 8695  df-oi 9199  df-card 9628  df-pnf 10942  df-mnf 10943  df-xr 10944  df-ltxr 10945  df-le 10946  df-sub 11137  df-neg 11138  df-nn 11904  df-n0 12164  df-xnn0 12236  df-z 12250  df-uz 12512  df-fz 13169  df-hash 13973
This theorem is referenced by:  erdsze2  33067
  Copyright terms: Public domain W3C validator