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

Theorem acfun 7163
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 2739 . . . 4 (𝜑𝐴 ∈ V)
3 abid2 2287 . . . . . 6 {𝑣𝑣𝑢} = 𝑢
4 vex 2729 . . . . . 6 𝑢 ∈ V
53, 4eqeltri 2239 . . . . 5 {𝑣𝑣𝑢} ∈ V
65a1i 9 . . . 4 ((𝜑𝑢𝐴) → {𝑣𝑣𝑢} ∈ V)
72, 6opabex3d 6089 . . 3 (𝜑 → {⟨𝑢, 𝑣⟩ ∣ (𝑢𝐴𝑣𝑢)} ∈ V)
8 acfun.ac . . . 4 (𝜑CHOICE)
9 df-ac 7162 . . . 4 (CHOICE ↔ ∀𝑦𝑓(𝑓𝑦𝑓 Fn dom 𝑦))
108, 9sylib 121 . . 3 (𝜑 → ∀𝑦𝑓(𝑓𝑦𝑓 Fn dom 𝑦))
11 sseq2 3166 . . . . . 6 (𝑦 = {⟨𝑢, 𝑣⟩ ∣ (𝑢𝐴𝑣𝑢)} → (𝑓𝑦𝑓 ⊆ {⟨𝑢, 𝑣⟩ ∣ (𝑢𝐴𝑣𝑢)}))
12 dmeq 4804 . . . . . . 7 (𝑦 = {⟨𝑢, 𝑣⟩ ∣ (𝑢𝐴𝑣𝑢)} → dom 𝑦 = dom {⟨𝑢, 𝑣⟩ ∣ (𝑢𝐴𝑣𝑢)})
1312fneq2d 5279 . . . . . 6 (𝑦 = {⟨𝑢, 𝑣⟩ ∣ (𝑢𝐴𝑣𝑢)} → (𝑓 Fn dom 𝑦𝑓 Fn dom {⟨𝑢, 𝑣⟩ ∣ (𝑢𝐴𝑣𝑢)}))
1411, 13anbi12d 465 . . . . 5 (𝑦 = {⟨𝑢, 𝑣⟩ ∣ (𝑢𝐴𝑣𝑢)} → ((𝑓𝑦𝑓 Fn dom 𝑦) ↔ (𝑓 ⊆ {⟨𝑢, 𝑣⟩ ∣ (𝑢𝐴𝑣𝑢)} ∧ 𝑓 Fn dom {⟨𝑢, 𝑣⟩ ∣ (𝑢𝐴𝑣𝑢)})))
1514exbidv 1813 . . . 4 (𝑦 = {⟨𝑢, 𝑣⟩ ∣ (𝑢𝐴𝑣𝑢)} → (∃𝑓(𝑓𝑦𝑓 Fn dom 𝑦) ↔ ∃𝑓(𝑓 ⊆ {⟨𝑢, 𝑣⟩ ∣ (𝑢𝐴𝑣𝑢)} ∧ 𝑓 Fn dom {⟨𝑢, 𝑣⟩ ∣ (𝑢𝐴𝑣𝑢)})))
1615spcgv 2813 . . 3 ({⟨𝑢, 𝑣⟩ ∣ (𝑢𝐴𝑣𝑢)} ∈ V → (∀𝑦𝑓(𝑓𝑦𝑓 Fn dom 𝑦) → ∃𝑓(𝑓 ⊆ {⟨𝑢, 𝑣⟩ ∣ (𝑢𝐴𝑣𝑢)} ∧ 𝑓 Fn dom {⟨𝑢, 𝑣⟩ ∣ (𝑢𝐴𝑣𝑢)})))
177, 10, 16sylc 62 . 2 (𝜑 → ∃𝑓(𝑓 ⊆ {⟨𝑢, 𝑣⟩ ∣ (𝑢𝐴𝑣𝑢)} ∧ 𝑓 Fn dom {⟨𝑢, 𝑣⟩ ∣ (𝑢𝐴𝑣𝑢)}))
18 simprr 522 . . . . . 6 ((𝜑 ∧ (𝑓 ⊆ {⟨𝑢, 𝑣⟩ ∣ (𝑢𝐴𝑣𝑢)} ∧ 𝑓 Fn dom {⟨𝑢, 𝑣⟩ ∣ (𝑢𝐴𝑣𝑢)})) → 𝑓 Fn dom {⟨𝑢, 𝑣⟩ ∣ (𝑢𝐴𝑣𝑢)})
19 acfun.m . . . . . . . . . 10 (𝜑 → ∀𝑥𝐴𝑤 𝑤𝑥)
20 elequ2 2141 . . . . . . . . . . . . 13 (𝑥 = 𝑢 → (𝑤𝑥𝑤𝑢))
2120exbidv 1813 . . . . . . . . . . . 12 (𝑥 = 𝑢 → (∃𝑤 𝑤𝑥 ↔ ∃𝑤 𝑤𝑢))
2221cbvralv 2692 . . . . . . . . . . 11 (∀𝑥𝐴𝑤 𝑤𝑥 ↔ ∀𝑢𝐴𝑤 𝑤𝑢)
23 elequ1 2140 . . . . . . . . . . . . 13 (𝑤 = 𝑣 → (𝑤𝑢𝑣𝑢))
2423cbvexv 1906 . . . . . . . . . . . 12 (∃𝑤 𝑤𝑢 ↔ ∃𝑣 𝑣𝑢)
2524ralbii 2472 . . . . . . . . . . 11 (∀𝑢𝐴𝑤 𝑤𝑢 ↔ ∀𝑢𝐴𝑣 𝑣𝑢)
2622, 25bitri 183 . . . . . . . . . 10 (∀𝑥𝐴𝑤 𝑤𝑥 ↔ ∀𝑢𝐴𝑣 𝑣𝑢)
2719, 26sylib 121 . . . . . . . . 9 (𝜑 → ∀𝑢𝐴𝑣 𝑣𝑢)
28 dmopab3 4817 . . . . . . . . 9 (∀𝑢𝐴𝑣 𝑣𝑢 ↔ dom {⟨𝑢, 𝑣⟩ ∣ (𝑢𝐴𝑣𝑢)} = 𝐴)
2927, 28sylib 121 . . . . . . . 8 (𝜑 → dom {⟨𝑢, 𝑣⟩ ∣ (𝑢𝐴𝑣𝑢)} = 𝐴)
3029fneq2d 5279 . . . . . . 7 (𝜑 → (𝑓 Fn dom {⟨𝑢, 𝑣⟩ ∣ (𝑢𝐴𝑣𝑢)} ↔ 𝑓 Fn 𝐴))
3130adantr 274 . . . . . 6 ((𝜑 ∧ (𝑓 ⊆ {⟨𝑢, 𝑣⟩ ∣ (𝑢𝐴𝑣𝑢)} ∧ 𝑓 Fn dom {⟨𝑢, 𝑣⟩ ∣ (𝑢𝐴𝑣𝑢)})) → (𝑓 Fn dom {⟨𝑢, 𝑣⟩ ∣ (𝑢𝐴𝑣𝑢)} ↔ 𝑓 Fn 𝐴))
3218, 31mpbid 146 . . . . 5 ((𝜑 ∧ (𝑓 ⊆ {⟨𝑢, 𝑣⟩ ∣ (𝑢𝐴𝑣𝑢)} ∧ 𝑓 Fn dom {⟨𝑢, 𝑣⟩ ∣ (𝑢𝐴𝑣𝑢)})) → 𝑓 Fn 𝐴)
33 simplrl 525 . . . . . . . . 9 (((𝜑 ∧ (𝑓 ⊆ {⟨𝑢, 𝑣⟩ ∣ (𝑢𝐴𝑣𝑢)} ∧ 𝑓 Fn dom {⟨𝑢, 𝑣⟩ ∣ (𝑢𝐴𝑣𝑢)})) ∧ 𝑥𝐴) → 𝑓 ⊆ {⟨𝑢, 𝑣⟩ ∣ (𝑢𝐴𝑣𝑢)})
34 fnopfv 5615 . . . . . . . . . 10 ((𝑓 Fn 𝐴𝑥𝐴) → ⟨𝑥, (𝑓𝑥)⟩ ∈ 𝑓)
3532, 34sylan 281 . . . . . . . . 9 (((𝜑 ∧ (𝑓 ⊆ {⟨𝑢, 𝑣⟩ ∣ (𝑢𝐴𝑣𝑢)} ∧ 𝑓 Fn dom {⟨𝑢, 𝑣⟩ ∣ (𝑢𝐴𝑣𝑢)})) ∧ 𝑥𝐴) → ⟨𝑥, (𝑓𝑥)⟩ ∈ 𝑓)
3633, 35sseldd 3143 . . . . . . . 8 (((𝜑 ∧ (𝑓 ⊆ {⟨𝑢, 𝑣⟩ ∣ (𝑢𝐴𝑣𝑢)} ∧ 𝑓 Fn dom {⟨𝑢, 𝑣⟩ ∣ (𝑢𝐴𝑣𝑢)})) ∧ 𝑥𝐴) → ⟨𝑥, (𝑓𝑥)⟩ ∈ {⟨𝑢, 𝑣⟩ ∣ (𝑢𝐴𝑣𝑢)})
37 vex 2729 . . . . . . . . 9 𝑥 ∈ V
38 vex 2729 . . . . . . . . . 10 𝑓 ∈ V
3938, 37fvex 5506 . . . . . . . . 9 (𝑓𝑥) ∈ V
40 eleq1 2229 . . . . . . . . . 10 (𝑢 = 𝑥 → (𝑢𝐴𝑥𝐴))
41 elequ2 2141 . . . . . . . . . 10 (𝑢 = 𝑥 → (𝑣𝑢𝑣𝑥))
4240, 41anbi12d 465 . . . . . . . . 9 (𝑢 = 𝑥 → ((𝑢𝐴𝑣𝑢) ↔ (𝑥𝐴𝑣𝑥)))
43 eleq1 2229 . . . . . . . . . 10 (𝑣 = (𝑓𝑥) → (𝑣𝑥 ↔ (𝑓𝑥) ∈ 𝑥))
4443anbi2d 460 . . . . . . . . 9 (𝑣 = (𝑓𝑥) → ((𝑥𝐴𝑣𝑥) ↔ (𝑥𝐴 ∧ (𝑓𝑥) ∈ 𝑥)))
4537, 39, 42, 44opelopab 4249 . . . . . . . 8 (⟨𝑥, (𝑓𝑥)⟩ ∈ {⟨𝑢, 𝑣⟩ ∣ (𝑢𝐴𝑣𝑢)} ↔ (𝑥𝐴 ∧ (𝑓𝑥) ∈ 𝑥))
4636, 45sylib 121 . . . . . . 7 (((𝜑 ∧ (𝑓 ⊆ {⟨𝑢, 𝑣⟩ ∣ (𝑢𝐴𝑣𝑢)} ∧ 𝑓 Fn dom {⟨𝑢, 𝑣⟩ ∣ (𝑢𝐴𝑣𝑢)})) ∧ 𝑥𝐴) → (𝑥𝐴 ∧ (𝑓𝑥) ∈ 𝑥))
4746simprd 113 . . . . . 6 (((𝜑 ∧ (𝑓 ⊆ {⟨𝑢, 𝑣⟩ ∣ (𝑢𝐴𝑣𝑢)} ∧ 𝑓 Fn dom {⟨𝑢, 𝑣⟩ ∣ (𝑢𝐴𝑣𝑢)})) ∧ 𝑥𝐴) → (𝑓𝑥) ∈ 𝑥)
4847ralrimiva 2539 . . . . 5 ((𝜑 ∧ (𝑓 ⊆ {⟨𝑢, 𝑣⟩ ∣ (𝑢𝐴𝑣𝑢)} ∧ 𝑓 Fn dom {⟨𝑢, 𝑣⟩ ∣ (𝑢𝐴𝑣𝑢)})) → ∀𝑥𝐴 (𝑓𝑥) ∈ 𝑥)
4932, 48jca 304 . . . 4 ((𝜑 ∧ (𝑓 ⊆ {⟨𝑢, 𝑣⟩ ∣ (𝑢𝐴𝑣𝑢)} ∧ 𝑓 Fn dom {⟨𝑢, 𝑣⟩ ∣ (𝑢𝐴𝑣𝑢)})) → (𝑓 Fn 𝐴 ∧ ∀𝑥𝐴 (𝑓𝑥) ∈ 𝑥))
5049ex 114 . . 3 (𝜑 → ((𝑓 ⊆ {⟨𝑢, 𝑣⟩ ∣ (𝑢𝐴𝑣𝑢)} ∧ 𝑓 Fn dom {⟨𝑢, 𝑣⟩ ∣ (𝑢𝐴𝑣𝑢)}) → (𝑓 Fn 𝐴 ∧ ∀𝑥𝐴 (𝑓𝑥) ∈ 𝑥)))
5150eximdv 1868 . 2 (𝜑 → (∃𝑓(𝑓 ⊆ {⟨𝑢, 𝑣⟩ ∣ (𝑢𝐴𝑣𝑢)} ∧ 𝑓 Fn dom {⟨𝑢, 𝑣⟩ ∣ (𝑢𝐴𝑣𝑢)}) → ∃𝑓(𝑓 Fn 𝐴 ∧ ∀𝑥𝐴 (𝑓𝑥) ∈ 𝑥)))
5217, 51mpd 13 1 (𝜑 → ∃𝑓(𝑓 Fn 𝐴 ∧ ∀𝑥𝐴 (𝑓𝑥) ∈ 𝑥))
Colors of variables: wff set class
Syntax hints:  wi 4  wa 103  wb 104  wal 1341   = wceq 1343  wex 1480  wcel 2136  {cab 2151  wral 2444  Vcvv 2726  wss 3116  cop 3579  {copab 4042  dom cdm 4604   Fn wfn 5183  cfv 5188  CHOICEwac 7161
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 699  ax-5 1435  ax-7 1436  ax-gen 1437  ax-ie1 1481  ax-ie2 1482  ax-8 1492  ax-10 1493  ax-11 1494  ax-i12 1495  ax-bndl 1497  ax-4 1498  ax-17 1514  ax-i9 1518  ax-ial 1522  ax-i5r 1523  ax-13 2138  ax-14 2139  ax-ext 2147  ax-coll 4097  ax-sep 4100  ax-pow 4153  ax-pr 4187  ax-un 4411
This theorem depends on definitions:  df-bi 116  df-3an 970  df-tru 1346  df-nf 1449  df-sb 1751  df-eu 2017  df-mo 2018  df-clab 2152  df-cleq 2158  df-clel 2161  df-nfc 2297  df-ral 2449  df-rex 2450  df-reu 2451  df-rab 2453  df-v 2728  df-sbc 2952  df-csb 3046  df-un 3120  df-in 3122  df-ss 3129  df-pw 3561  df-sn 3582  df-pr 3583  df-op 3585  df-uni 3790  df-iun 3868  df-br 3983  df-opab 4044  df-mpt 4045  df-id 4271  df-xp 4610  df-rel 4611  df-cnv 4612  df-co 4613  df-dm 4614  df-rn 4615  df-res 4616  df-ima 4617  df-iota 5153  df-fun 5190  df-fn 5191  df-f 5192  df-f1 5193  df-fo 5194  df-f1o 5195  df-fv 5196  df-ac 7162
This theorem is referenced by:  exmidaclem  7164
  Copyright terms: Public domain W3C validator