ILE Home Intuitionistic Logic Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  ILE Home  >  Th. List  >  enumctlemm GIF version

Theorem enumctlemm 7091
Description: Lemma for enumct 7092. The case where 𝑁 is greater than zero. (Contributed by Jim Kingdon, 13-Mar-2023.)
Hypotheses
Ref Expression
enumctlemm.f (𝜑𝐹:𝑁onto𝐴)
enumctlemm.n (𝜑𝑁 ∈ ω)
enumctlemm.n0 (𝜑 → ∅ ∈ 𝑁)
enumctlemm.g 𝐺 = (𝑘 ∈ ω ↦ if(𝑘𝑁, (𝐹𝑘), (𝐹‘∅)))
Assertion
Ref Expression
enumctlemm (𝜑𝐺:ω–onto𝐴)
Distinct variable groups:   𝐴,𝑘   𝑘,𝐹   𝑘,𝑁   𝜑,𝑘
Allowed substitution hint:   𝐺(𝑘)

Proof of Theorem enumctlemm
Dummy variables 𝑥 𝑦 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 enumctlemm.f . . . . . . 7 (𝜑𝐹:𝑁onto𝐴)
2 fof 5420 . . . . . . 7 (𝐹:𝑁onto𝐴𝐹:𝑁𝐴)
31, 2syl 14 . . . . . 6 (𝜑𝐹:𝑁𝐴)
43ffvelrnda 5631 . . . . 5 ((𝜑𝑘𝑁) → (𝐹𝑘) ∈ 𝐴)
54adantlr 474 . . . 4 (((𝜑𝑘 ∈ ω) ∧ 𝑘𝑁) → (𝐹𝑘) ∈ 𝐴)
6 enumctlemm.n0 . . . . . 6 (𝜑 → ∅ ∈ 𝑁)
73, 6ffvelrnd 5632 . . . . 5 (𝜑 → (𝐹‘∅) ∈ 𝐴)
87ad2antrr 485 . . . 4 (((𝜑𝑘 ∈ ω) ∧ ¬ 𝑘𝑁) → (𝐹‘∅) ∈ 𝐴)
9 simpr 109 . . . . 5 ((𝜑𝑘 ∈ ω) → 𝑘 ∈ ω)
10 enumctlemm.n . . . . . 6 (𝜑𝑁 ∈ ω)
1110adantr 274 . . . . 5 ((𝜑𝑘 ∈ ω) → 𝑁 ∈ ω)
12 nndcel 6479 . . . . 5 ((𝑘 ∈ ω ∧ 𝑁 ∈ ω) → DECID 𝑘𝑁)
139, 11, 12syl2anc 409 . . . 4 ((𝜑𝑘 ∈ ω) → DECID 𝑘𝑁)
145, 8, 13ifcldadc 3555 . . 3 ((𝜑𝑘 ∈ ω) → if(𝑘𝑁, (𝐹𝑘), (𝐹‘∅)) ∈ 𝐴)
15 enumctlemm.g . . 3 𝐺 = (𝑘 ∈ ω ↦ if(𝑘𝑁, (𝐹𝑘), (𝐹‘∅)))
1614, 15fmptd 5650 . 2 (𝜑𝐺:ω⟶𝐴)
17 foelrn 5732 . . . . . 6 ((𝐹:𝑁onto𝐴𝑦𝐴) → ∃𝑥𝑁 𝑦 = (𝐹𝑥))
181, 17sylan 281 . . . . 5 ((𝜑𝑦𝐴) → ∃𝑥𝑁 𝑦 = (𝐹𝑥))
19 eleq1w 2231 . . . . . . . . . . 11 (𝑘 = 𝑥 → (𝑘𝑁𝑥𝑁))
20 fveq2 5496 . . . . . . . . . . 11 (𝑘 = 𝑥 → (𝐹𝑘) = (𝐹𝑥))
2119, 20ifbieq1d 3548 . . . . . . . . . 10 (𝑘 = 𝑥 → if(𝑘𝑁, (𝐹𝑘), (𝐹‘∅)) = if(𝑥𝑁, (𝐹𝑥), (𝐹‘∅)))
22 simpr 109 . . . . . . . . . . 11 ((𝜑𝑥𝑁) → 𝑥𝑁)
2310adantr 274 . . . . . . . . . . 11 ((𝜑𝑥𝑁) → 𝑁 ∈ ω)
24 elnn 4590 . . . . . . . . . . 11 ((𝑥𝑁𝑁 ∈ ω) → 𝑥 ∈ ω)
2522, 23, 24syl2anc 409 . . . . . . . . . 10 ((𝜑𝑥𝑁) → 𝑥 ∈ ω)
2622iftrued 3533 . . . . . . . . . . 11 ((𝜑𝑥𝑁) → if(𝑥𝑁, (𝐹𝑥), (𝐹‘∅)) = (𝐹𝑥))
273ffvelrnda 5631 . . . . . . . . . . 11 ((𝜑𝑥𝑁) → (𝐹𝑥) ∈ 𝐴)
2826, 27eqeltrd 2247 . . . . . . . . . 10 ((𝜑𝑥𝑁) → if(𝑥𝑁, (𝐹𝑥), (𝐹‘∅)) ∈ 𝐴)
2915, 21, 25, 28fvmptd3 5589 . . . . . . . . 9 ((𝜑𝑥𝑁) → (𝐺𝑥) = if(𝑥𝑁, (𝐹𝑥), (𝐹‘∅)))
3029, 26eqtrd 2203 . . . . . . . 8 ((𝜑𝑥𝑁) → (𝐺𝑥) = (𝐹𝑥))
3130eqeq2d 2182 . . . . . . 7 ((𝜑𝑥𝑁) → (𝑦 = (𝐺𝑥) ↔ 𝑦 = (𝐹𝑥)))
3231rexbidva 2467 . . . . . 6 (𝜑 → (∃𝑥𝑁 𝑦 = (𝐺𝑥) ↔ ∃𝑥𝑁 𝑦 = (𝐹𝑥)))
3332adantr 274 . . . . 5 ((𝜑𝑦𝐴) → (∃𝑥𝑁 𝑦 = (𝐺𝑥) ↔ ∃𝑥𝑁 𝑦 = (𝐹𝑥)))
3418, 33mpbird 166 . . . 4 ((𝜑𝑦𝐴) → ∃𝑥𝑁 𝑦 = (𝐺𝑥))
35 omelon 4593 . . . . . . 7 ω ∈ On
3635onelssi 4414 . . . . . 6 (𝑁 ∈ ω → 𝑁 ⊆ ω)
37 ssrexv 3212 . . . . . 6 (𝑁 ⊆ ω → (∃𝑥𝑁 𝑦 = (𝐺𝑥) → ∃𝑥 ∈ ω 𝑦 = (𝐺𝑥)))
3810, 36, 373syl 17 . . . . 5 (𝜑 → (∃𝑥𝑁 𝑦 = (𝐺𝑥) → ∃𝑥 ∈ ω 𝑦 = (𝐺𝑥)))
3938adantr 274 . . . 4 ((𝜑𝑦𝐴) → (∃𝑥𝑁 𝑦 = (𝐺𝑥) → ∃𝑥 ∈ ω 𝑦 = (𝐺𝑥)))
4034, 39mpd 13 . . 3 ((𝜑𝑦𝐴) → ∃𝑥 ∈ ω 𝑦 = (𝐺𝑥))
4140ralrimiva 2543 . 2 (𝜑 → ∀𝑦𝐴𝑥 ∈ ω 𝑦 = (𝐺𝑥))
42 dffo3 5643 . 2 (𝐺:ω–onto𝐴 ↔ (𝐺:ω⟶𝐴 ∧ ∀𝑦𝐴𝑥 ∈ ω 𝑦 = (𝐺𝑥)))
4316, 41, 42sylanbrc 415 1 (𝜑𝐺:ω–onto𝐴)
Colors of variables: wff set class
Syntax hints:  ¬ wn 3  wi 4  wa 103  wb 104  DECID wdc 829   = wceq 1348  wcel 2141  wral 2448  wrex 2449  wss 3121  c0 3414  ifcif 3526  cmpt 4050  ωcom 4574  wf 5194  ontowfo 5196  cfv 5198
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-ia1 105  ax-ia2 106  ax-ia3 107  ax-in1 609  ax-in2 610  ax-io 704  ax-5 1440  ax-7 1441  ax-gen 1442  ax-ie1 1486  ax-ie2 1487  ax-8 1497  ax-10 1498  ax-11 1499  ax-i12 1500  ax-bndl 1502  ax-4 1503  ax-17 1519  ax-i9 1523  ax-ial 1527  ax-i5r 1528  ax-13 2143  ax-14 2144  ax-ext 2152  ax-sep 4107  ax-nul 4115  ax-pow 4160  ax-pr 4194  ax-un 4418  ax-setind 4521  ax-iinf 4572
This theorem depends on definitions:  df-bi 116  df-dc 830  df-3or 974  df-3an 975  df-tru 1351  df-nf 1454  df-sb 1756  df-eu 2022  df-mo 2023  df-clab 2157  df-cleq 2163  df-clel 2166  df-nfc 2301  df-ne 2341  df-ral 2453  df-rex 2454  df-rab 2457  df-v 2732  df-sbc 2956  df-csb 3050  df-dif 3123  df-un 3125  df-in 3127  df-ss 3134  df-nul 3415  df-if 3527  df-pw 3568  df-sn 3589  df-pr 3590  df-op 3592  df-uni 3797  df-int 3832  df-br 3990  df-opab 4051  df-mpt 4052  df-tr 4088  df-id 4278  df-iord 4351  df-on 4353  df-suc 4356  df-iom 4575  df-xp 4617  df-rel 4618  df-cnv 4619  df-co 4620  df-dm 4621  df-rn 4622  df-res 4623  df-ima 4624  df-iota 5160  df-fun 5200  df-fn 5201  df-f 5202  df-fo 5204  df-fv 5206
This theorem is referenced by:  enumct  7092
  Copyright terms: Public domain W3C validator