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

Theorem acfun 7184
Description: A convenient form of choice. The goal here is to state choice as the existence of a choice function on a set of inhabited sets, while making full use of our notation around functions and function values. (Contributed by Jim Kingdon, 20-Nov-2023.)
Hypotheses
Ref Expression
acfun.ac (𝜑CHOICE)
acfun.a (𝜑𝐴𝑉)
acfun.m (𝜑 → ∀𝑥𝐴𝑤 𝑤𝑥)
Assertion
Ref Expression
acfun (𝜑 → ∃𝑓(𝑓 Fn 𝐴 ∧ ∀𝑥𝐴 (𝑓𝑥) ∈ 𝑥))
Distinct variable groups:   𝐴,𝑓,𝑥   𝜑,𝑓,𝑥   𝑥,𝑤
Allowed substitution hints:   𝜑(𝑤)   𝐴(𝑤)   𝑉(𝑥,𝑤,𝑓)

Proof of Theorem acfun
Dummy variables 𝑢 𝑣 𝑦 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 acfun.a . . . . 5 (𝜑𝐴𝑉)
21elexd 2743 . . . 4 (𝜑𝐴 ∈ V)
3 abid2 2291 . . . . . 6 {𝑣𝑣𝑢} = 𝑢
4 vex 2733 . . . . . 6 𝑢 ∈ V
53, 4eqeltri 2243 . . . . 5 {𝑣𝑣𝑢} ∈ V
65a1i 9 . . . 4 ((𝜑𝑢𝐴) → {𝑣𝑣𝑢} ∈ V)
72, 6opabex3d 6100 . . 3 (𝜑 → {⟨𝑢, 𝑣⟩ ∣ (𝑢𝐴𝑣𝑢)} ∈ V)
8 acfun.ac . . . 4 (𝜑CHOICE)
9 df-ac 7183 . . . 4 (CHOICE ↔ ∀𝑦𝑓(𝑓𝑦𝑓 Fn dom 𝑦))
108, 9sylib 121 . . 3 (𝜑 → ∀𝑦𝑓(𝑓𝑦𝑓 Fn dom 𝑦))
11 sseq2 3171 . . . . . 6 (𝑦 = {⟨𝑢, 𝑣⟩ ∣ (𝑢𝐴𝑣𝑢)} → (𝑓𝑦𝑓 ⊆ {⟨𝑢, 𝑣⟩ ∣ (𝑢𝐴𝑣𝑢)}))
12 dmeq 4811 . . . . . . 7 (𝑦 = {⟨𝑢, 𝑣⟩ ∣ (𝑢𝐴𝑣𝑢)} → dom 𝑦 = dom {⟨𝑢, 𝑣⟩ ∣ (𝑢𝐴𝑣𝑢)})
1312fneq2d 5289 . . . . . 6 (𝑦 = {⟨𝑢, 𝑣⟩ ∣ (𝑢𝐴𝑣𝑢)} → (𝑓 Fn dom 𝑦𝑓 Fn dom {⟨𝑢, 𝑣⟩ ∣ (𝑢𝐴𝑣𝑢)}))
1411, 13anbi12d 470 . . . . 5 (𝑦 = {⟨𝑢, 𝑣⟩ ∣ (𝑢𝐴𝑣𝑢)} → ((𝑓𝑦𝑓 Fn dom 𝑦) ↔ (𝑓 ⊆ {⟨𝑢, 𝑣⟩ ∣ (𝑢𝐴𝑣𝑢)} ∧ 𝑓 Fn dom {⟨𝑢, 𝑣⟩ ∣ (𝑢𝐴𝑣𝑢)})))
1514exbidv 1818 . . . 4 (𝑦 = {⟨𝑢, 𝑣⟩ ∣ (𝑢𝐴𝑣𝑢)} → (∃𝑓(𝑓𝑦𝑓 Fn dom 𝑦) ↔ ∃𝑓(𝑓 ⊆ {⟨𝑢, 𝑣⟩ ∣ (𝑢𝐴𝑣𝑢)} ∧ 𝑓 Fn dom {⟨𝑢, 𝑣⟩ ∣ (𝑢𝐴𝑣𝑢)})))
1615spcgv 2817 . . 3 ({⟨𝑢, 𝑣⟩ ∣ (𝑢𝐴𝑣𝑢)} ∈ V → (∀𝑦𝑓(𝑓𝑦𝑓 Fn dom 𝑦) → ∃𝑓(𝑓 ⊆ {⟨𝑢, 𝑣⟩ ∣ (𝑢𝐴𝑣𝑢)} ∧ 𝑓 Fn dom {⟨𝑢, 𝑣⟩ ∣ (𝑢𝐴𝑣𝑢)})))
177, 10, 16sylc 62 . 2 (𝜑 → ∃𝑓(𝑓 ⊆ {⟨𝑢, 𝑣⟩ ∣ (𝑢𝐴𝑣𝑢)} ∧ 𝑓 Fn dom {⟨𝑢, 𝑣⟩ ∣ (𝑢𝐴𝑣𝑢)}))
18 simprr 527 . . . . . 6 ((𝜑 ∧ (𝑓 ⊆ {⟨𝑢, 𝑣⟩ ∣ (𝑢𝐴𝑣𝑢)} ∧ 𝑓 Fn dom {⟨𝑢, 𝑣⟩ ∣ (𝑢𝐴𝑣𝑢)})) → 𝑓 Fn dom {⟨𝑢, 𝑣⟩ ∣ (𝑢𝐴𝑣𝑢)})
19 acfun.m . . . . . . . . . 10 (𝜑 → ∀𝑥𝐴𝑤 𝑤𝑥)
20 elequ2 2146 . . . . . . . . . . . . 13 (𝑥 = 𝑢 → (𝑤𝑥𝑤𝑢))
2120exbidv 1818 . . . . . . . . . . . 12 (𝑥 = 𝑢 → (∃𝑤 𝑤𝑥 ↔ ∃𝑤 𝑤𝑢))
2221cbvralv 2696 . . . . . . . . . . 11 (∀𝑥𝐴𝑤 𝑤𝑥 ↔ ∀𝑢𝐴𝑤 𝑤𝑢)
23 elequ1 2145 . . . . . . . . . . . . 13 (𝑤 = 𝑣 → (𝑤𝑢𝑣𝑢))
2423cbvexv 1911 . . . . . . . . . . . 12 (∃𝑤 𝑤𝑢 ↔ ∃𝑣 𝑣𝑢)
2524ralbii 2476 . . . . . . . . . . 11 (∀𝑢𝐴𝑤 𝑤𝑢 ↔ ∀𝑢𝐴𝑣 𝑣𝑢)
2622, 25bitri 183 . . . . . . . . . 10 (∀𝑥𝐴𝑤 𝑤𝑥 ↔ ∀𝑢𝐴𝑣 𝑣𝑢)
2719, 26sylib 121 . . . . . . . . 9 (𝜑 → ∀𝑢𝐴𝑣 𝑣𝑢)
28 dmopab3 4824 . . . . . . . . 9 (∀𝑢𝐴𝑣 𝑣𝑢 ↔ dom {⟨𝑢, 𝑣⟩ ∣ (𝑢𝐴𝑣𝑢)} = 𝐴)
2927, 28sylib 121 . . . . . . . 8 (𝜑 → dom {⟨𝑢, 𝑣⟩ ∣ (𝑢𝐴𝑣𝑢)} = 𝐴)
3029fneq2d 5289 . . . . . . 7 (𝜑 → (𝑓 Fn dom {⟨𝑢, 𝑣⟩ ∣ (𝑢𝐴𝑣𝑢)} ↔ 𝑓 Fn 𝐴))
3130adantr 274 . . . . . 6 ((𝜑 ∧ (𝑓 ⊆ {⟨𝑢, 𝑣⟩ ∣ (𝑢𝐴𝑣𝑢)} ∧ 𝑓 Fn dom {⟨𝑢, 𝑣⟩ ∣ (𝑢𝐴𝑣𝑢)})) → (𝑓 Fn dom {⟨𝑢, 𝑣⟩ ∣ (𝑢𝐴𝑣𝑢)} ↔ 𝑓 Fn 𝐴))
3218, 31mpbid 146 . . . . 5 ((𝜑 ∧ (𝑓 ⊆ {⟨𝑢, 𝑣⟩ ∣ (𝑢𝐴𝑣𝑢)} ∧ 𝑓 Fn dom {⟨𝑢, 𝑣⟩ ∣ (𝑢𝐴𝑣𝑢)})) → 𝑓 Fn 𝐴)
33 simplrl 530 . . . . . . . . 9 (((𝜑 ∧ (𝑓 ⊆ {⟨𝑢, 𝑣⟩ ∣ (𝑢𝐴𝑣𝑢)} ∧ 𝑓 Fn dom {⟨𝑢, 𝑣⟩ ∣ (𝑢𝐴𝑣𝑢)})) ∧ 𝑥𝐴) → 𝑓 ⊆ {⟨𝑢, 𝑣⟩ ∣ (𝑢𝐴𝑣𝑢)})
34 fnopfv 5626 . . . . . . . . . 10 ((𝑓 Fn 𝐴𝑥𝐴) → ⟨𝑥, (𝑓𝑥)⟩ ∈ 𝑓)
3532, 34sylan 281 . . . . . . . . 9 (((𝜑 ∧ (𝑓 ⊆ {⟨𝑢, 𝑣⟩ ∣ (𝑢𝐴𝑣𝑢)} ∧ 𝑓 Fn dom {⟨𝑢, 𝑣⟩ ∣ (𝑢𝐴𝑣𝑢)})) ∧ 𝑥𝐴) → ⟨𝑥, (𝑓𝑥)⟩ ∈ 𝑓)
3633, 35sseldd 3148 . . . . . . . 8 (((𝜑 ∧ (𝑓 ⊆ {⟨𝑢, 𝑣⟩ ∣ (𝑢𝐴𝑣𝑢)} ∧ 𝑓 Fn dom {⟨𝑢, 𝑣⟩ ∣ (𝑢𝐴𝑣𝑢)})) ∧ 𝑥𝐴) → ⟨𝑥, (𝑓𝑥)⟩ ∈ {⟨𝑢, 𝑣⟩ ∣ (𝑢𝐴𝑣𝑢)})
37 vex 2733 . . . . . . . . 9 𝑥 ∈ V
38 vex 2733 . . . . . . . . . 10 𝑓 ∈ V
3938, 37fvex 5516 . . . . . . . . 9 (𝑓𝑥) ∈ V
40 eleq1 2233 . . . . . . . . . 10 (𝑢 = 𝑥 → (𝑢𝐴𝑥𝐴))
41 elequ2 2146 . . . . . . . . . 10 (𝑢 = 𝑥 → (𝑣𝑢𝑣𝑥))
4240, 41anbi12d 470 . . . . . . . . 9 (𝑢 = 𝑥 → ((𝑢𝐴𝑣𝑢) ↔ (𝑥𝐴𝑣𝑥)))
43 eleq1 2233 . . . . . . . . . 10 (𝑣 = (𝑓𝑥) → (𝑣𝑥 ↔ (𝑓𝑥) ∈ 𝑥))
4443anbi2d 461 . . . . . . . . 9 (𝑣 = (𝑓𝑥) → ((𝑥𝐴𝑣𝑥) ↔ (𝑥𝐴 ∧ (𝑓𝑥) ∈ 𝑥)))
4537, 39, 42, 44opelopab 4256 . . . . . . . 8 (⟨𝑥, (𝑓𝑥)⟩ ∈ {⟨𝑢, 𝑣⟩ ∣ (𝑢𝐴𝑣𝑢)} ↔ (𝑥𝐴 ∧ (𝑓𝑥) ∈ 𝑥))
4636, 45sylib 121 . . . . . . 7 (((𝜑 ∧ (𝑓 ⊆ {⟨𝑢, 𝑣⟩ ∣ (𝑢𝐴𝑣𝑢)} ∧ 𝑓 Fn dom {⟨𝑢, 𝑣⟩ ∣ (𝑢𝐴𝑣𝑢)})) ∧ 𝑥𝐴) → (𝑥𝐴 ∧ (𝑓𝑥) ∈ 𝑥))
4746simprd 113 . . . . . 6 (((𝜑 ∧ (𝑓 ⊆ {⟨𝑢, 𝑣⟩ ∣ (𝑢𝐴𝑣𝑢)} ∧ 𝑓 Fn dom {⟨𝑢, 𝑣⟩ ∣ (𝑢𝐴𝑣𝑢)})) ∧ 𝑥𝐴) → (𝑓𝑥) ∈ 𝑥)
4847ralrimiva 2543 . . . . 5 ((𝜑 ∧ (𝑓 ⊆ {⟨𝑢, 𝑣⟩ ∣ (𝑢𝐴𝑣𝑢)} ∧ 𝑓 Fn dom {⟨𝑢, 𝑣⟩ ∣ (𝑢𝐴𝑣𝑢)})) → ∀𝑥𝐴 (𝑓𝑥) ∈ 𝑥)
4932, 48jca 304 . . . 4 ((𝜑 ∧ (𝑓 ⊆ {⟨𝑢, 𝑣⟩ ∣ (𝑢𝐴𝑣𝑢)} ∧ 𝑓 Fn dom {⟨𝑢, 𝑣⟩ ∣ (𝑢𝐴𝑣𝑢)})) → (𝑓 Fn 𝐴 ∧ ∀𝑥𝐴 (𝑓𝑥) ∈ 𝑥))
5049ex 114 . . 3 (𝜑 → ((𝑓 ⊆ {⟨𝑢, 𝑣⟩ ∣ (𝑢𝐴𝑣𝑢)} ∧ 𝑓 Fn dom {⟨𝑢, 𝑣⟩ ∣ (𝑢𝐴𝑣𝑢)}) → (𝑓 Fn 𝐴 ∧ ∀𝑥𝐴 (𝑓𝑥) ∈ 𝑥)))
5150eximdv 1873 . 2 (𝜑 → (∃𝑓(𝑓 ⊆ {⟨𝑢, 𝑣⟩ ∣ (𝑢𝐴𝑣𝑢)} ∧ 𝑓 Fn dom {⟨𝑢, 𝑣⟩ ∣ (𝑢𝐴𝑣𝑢)}) → ∃𝑓(𝑓 Fn 𝐴 ∧ ∀𝑥𝐴 (𝑓𝑥) ∈ 𝑥)))
5217, 51mpd 13 1 (𝜑 → ∃𝑓(𝑓 Fn 𝐴 ∧ ∀𝑥𝐴 (𝑓𝑥) ∈ 𝑥))
Colors of variables: wff set class
Syntax hints:  wi 4  wa 103  wb 104  wal 1346   = wceq 1348  wex 1485  wcel 2141  {cab 2156  wral 2448  Vcvv 2730  wss 3121  cop 3586  {copab 4049  dom cdm 4611   Fn wfn 5193  cfv 5198  CHOICEwac 7182
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-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-coll 4104  ax-sep 4107  ax-pow 4160  ax-pr 4194  ax-un 4418
This theorem depends on definitions:  df-bi 116  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-ral 2453  df-rex 2454  df-reu 2455  df-rab 2457  df-v 2732  df-sbc 2956  df-csb 3050  df-un 3125  df-in 3127  df-ss 3134  df-pw 3568  df-sn 3589  df-pr 3590  df-op 3592  df-uni 3797  df-iun 3875  df-br 3990  df-opab 4051  df-mpt 4052  df-id 4278  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-f1 5203  df-fo 5204  df-f1o 5205  df-fv 5206  df-ac 7183
This theorem is referenced by:  exmidaclem  7185
  Copyright terms: Public domain W3C validator