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

Theorem opabfi 6992
Description: Finiteness of an ordered pair abstraction which is a decidable subset of finite sets. (Contributed by Jim Kingdon, 16-Sep-2025.)
Hypotheses
Ref Expression
opabfi.s 𝑆 = {⟨𝑥, 𝑦⟩ ∣ ((𝑥𝐴𝑦𝐵) ∧ 𝜓)}
opabfi.a (𝜑𝐴 ∈ Fin)
opabfi.b (𝜑𝐵 ∈ Fin)
opabfi.dc (𝜑 → ∀𝑥𝐴𝑦𝐵 DECID 𝜓)
Assertion
Ref Expression
opabfi (𝜑𝑆 ∈ Fin)
Distinct variable groups:   𝑥,𝐴,𝑦   𝑥,𝐵,𝑦
Allowed substitution hints:   𝜑(𝑥,𝑦)   𝜓(𝑥,𝑦)   𝑆(𝑥,𝑦)

Proof of Theorem opabfi
Dummy variable 𝑧 is distinct from all other variables.
StepHypRef Expression
1 opabfi.a . . 3 (𝜑𝐴 ∈ Fin)
2 opabfi.b . . 3 (𝜑𝐵 ∈ Fin)
3 xpfi 6986 . . 3 ((𝐴 ∈ Fin ∧ 𝐵 ∈ Fin) → (𝐴 × 𝐵) ∈ Fin)
41, 2, 3syl2anc 411 . 2 (𝜑 → (𝐴 × 𝐵) ∈ Fin)
5 opabfi.s . . . 4 𝑆 = {⟨𝑥, 𝑦⟩ ∣ ((𝑥𝐴𝑦𝐵) ∧ 𝜓)}
6 opabssxp 4733 . . . 4 {⟨𝑥, 𝑦⟩ ∣ ((𝑥𝐴𝑦𝐵) ∧ 𝜓)} ⊆ (𝐴 × 𝐵)
75, 6eqsstri 3211 . . 3 𝑆 ⊆ (𝐴 × 𝐵)
87a1i 9 . 2 (𝜑𝑆 ⊆ (𝐴 × 𝐵))
9 xp2nd 6219 . . . . . 6 (𝑧 ∈ (𝐴 × 𝐵) → (2nd𝑧) ∈ 𝐵)
109adantl 277 . . . . 5 ((𝜑𝑧 ∈ (𝐴 × 𝐵)) → (2nd𝑧) ∈ 𝐵)
11 xp1st 6218 . . . . . . 7 (𝑧 ∈ (𝐴 × 𝐵) → (1st𝑧) ∈ 𝐴)
1211adantl 277 . . . . . 6 ((𝜑𝑧 ∈ (𝐴 × 𝐵)) → (1st𝑧) ∈ 𝐴)
13 opabfi.dc . . . . . . 7 (𝜑 → ∀𝑥𝐴𝑦𝐵 DECID 𝜓)
1413adantr 276 . . . . . 6 ((𝜑𝑧 ∈ (𝐴 × 𝐵)) → ∀𝑥𝐴𝑦𝐵 DECID 𝜓)
15 nfcv 2336 . . . . . . . 8 𝑥𝐵
16 nfsbc1v 3004 . . . . . . . . 9 𝑥[(1st𝑧) / 𝑥]𝜓
1716nfdc 1670 . . . . . . . 8 𝑥DECID [(1st𝑧) / 𝑥]𝜓
1815, 17nfralw 2531 . . . . . . 7 𝑥𝑦𝐵 DECID [(1st𝑧) / 𝑥]𝜓
19 sbceq1a 2995 . . . . . . . . 9 (𝑥 = (1st𝑧) → (𝜓[(1st𝑧) / 𝑥]𝜓))
2019dcbid 839 . . . . . . . 8 (𝑥 = (1st𝑧) → (DECID 𝜓DECID [(1st𝑧) / 𝑥]𝜓))
2120ralbidv 2494 . . . . . . 7 (𝑥 = (1st𝑧) → (∀𝑦𝐵 DECID 𝜓 ↔ ∀𝑦𝐵 DECID [(1st𝑧) / 𝑥]𝜓))
2218, 21rspc 2858 . . . . . 6 ((1st𝑧) ∈ 𝐴 → (∀𝑥𝐴𝑦𝐵 DECID 𝜓 → ∀𝑦𝐵 DECID [(1st𝑧) / 𝑥]𝜓))
2312, 14, 22sylc 62 . . . . 5 ((𝜑𝑧 ∈ (𝐴 × 𝐵)) → ∀𝑦𝐵 DECID [(1st𝑧) / 𝑥]𝜓)
24 nfsbc1v 3004 . . . . . . 7 𝑦[(2nd𝑧) / 𝑦][(1st𝑧) / 𝑥]𝜓
2524nfdc 1670 . . . . . 6 𝑦DECID [(2nd𝑧) / 𝑦][(1st𝑧) / 𝑥]𝜓
26 sbceq1a 2995 . . . . . . 7 (𝑦 = (2nd𝑧) → ([(1st𝑧) / 𝑥]𝜓[(2nd𝑧) / 𝑦][(1st𝑧) / 𝑥]𝜓))
2726dcbid 839 . . . . . 6 (𝑦 = (2nd𝑧) → (DECID [(1st𝑧) / 𝑥]𝜓DECID [(2nd𝑧) / 𝑦][(1st𝑧) / 𝑥]𝜓))
2825, 27rspc 2858 . . . . 5 ((2nd𝑧) ∈ 𝐵 → (∀𝑦𝐵 DECID [(1st𝑧) / 𝑥]𝜓DECID [(2nd𝑧) / 𝑦][(1st𝑧) / 𝑥]𝜓))
2910, 23, 28sylc 62 . . . 4 ((𝜑𝑧 ∈ (𝐴 × 𝐵)) → DECID [(2nd𝑧) / 𝑦][(1st𝑧) / 𝑥]𝜓)
30 nfv 1539 . . . . . . . . . 10 𝑥((1st𝑧) ∈ 𝐴𝑦𝐵)
3130, 16nfan 1576 . . . . . . . . 9 𝑥(((1st𝑧) ∈ 𝐴𝑦𝐵) ∧ [(1st𝑧) / 𝑥]𝜓)
32 nfv 1539 . . . . . . . . . 10 𝑦((1st𝑧) ∈ 𝐴 ∧ (2nd𝑧) ∈ 𝐵)
3332, 24nfan 1576 . . . . . . . . 9 𝑦(((1st𝑧) ∈ 𝐴 ∧ (2nd𝑧) ∈ 𝐵) ∧ [(2nd𝑧) / 𝑦][(1st𝑧) / 𝑥]𝜓)
34 eleq1 2256 . . . . . . . . . . 11 (𝑥 = (1st𝑧) → (𝑥𝐴 ↔ (1st𝑧) ∈ 𝐴))
3534anbi1d 465 . . . . . . . . . 10 (𝑥 = (1st𝑧) → ((𝑥𝐴𝑦𝐵) ↔ ((1st𝑧) ∈ 𝐴𝑦𝐵)))
3635, 19anbi12d 473 . . . . . . . . 9 (𝑥 = (1st𝑧) → (((𝑥𝐴𝑦𝐵) ∧ 𝜓) ↔ (((1st𝑧) ∈ 𝐴𝑦𝐵) ∧ [(1st𝑧) / 𝑥]𝜓)))
37 eleq1 2256 . . . . . . . . . . 11 (𝑦 = (2nd𝑧) → (𝑦𝐵 ↔ (2nd𝑧) ∈ 𝐵))
3837anbi2d 464 . . . . . . . . . 10 (𝑦 = (2nd𝑧) → (((1st𝑧) ∈ 𝐴𝑦𝐵) ↔ ((1st𝑧) ∈ 𝐴 ∧ (2nd𝑧) ∈ 𝐵)))
3938, 26anbi12d 473 . . . . . . . . 9 (𝑦 = (2nd𝑧) → ((((1st𝑧) ∈ 𝐴𝑦𝐵) ∧ [(1st𝑧) / 𝑥]𝜓) ↔ (((1st𝑧) ∈ 𝐴 ∧ (2nd𝑧) ∈ 𝐵) ∧ [(2nd𝑧) / 𝑦][(1st𝑧) / 𝑥]𝜓)))
4031, 33, 36, 39opelopabgf 4300 . . . . . . . 8 (((1st𝑧) ∈ 𝐴 ∧ (2nd𝑧) ∈ 𝐵) → (⟨(1st𝑧), (2nd𝑧)⟩ ∈ {⟨𝑥, 𝑦⟩ ∣ ((𝑥𝐴𝑦𝐵) ∧ 𝜓)} ↔ (((1st𝑧) ∈ 𝐴 ∧ (2nd𝑧) ∈ 𝐵) ∧ [(2nd𝑧) / 𝑦][(1st𝑧) / 𝑥]𝜓)))
4111, 9, 40syl2anc 411 . . . . . . 7 (𝑧 ∈ (𝐴 × 𝐵) → (⟨(1st𝑧), (2nd𝑧)⟩ ∈ {⟨𝑥, 𝑦⟩ ∣ ((𝑥𝐴𝑦𝐵) ∧ 𝜓)} ↔ (((1st𝑧) ∈ 𝐴 ∧ (2nd𝑧) ∈ 𝐵) ∧ [(2nd𝑧) / 𝑦][(1st𝑧) / 𝑥]𝜓)))
42 1st2nd2 6228 . . . . . . . 8 (𝑧 ∈ (𝐴 × 𝐵) → 𝑧 = ⟨(1st𝑧), (2nd𝑧)⟩)
435a1i 9 . . . . . . . 8 (𝑧 ∈ (𝐴 × 𝐵) → 𝑆 = {⟨𝑥, 𝑦⟩ ∣ ((𝑥𝐴𝑦𝐵) ∧ 𝜓)})
4442, 43eleq12d 2264 . . . . . . 7 (𝑧 ∈ (𝐴 × 𝐵) → (𝑧𝑆 ↔ ⟨(1st𝑧), (2nd𝑧)⟩ ∈ {⟨𝑥, 𝑦⟩ ∣ ((𝑥𝐴𝑦𝐵) ∧ 𝜓)}))
45 ibar 301 . . . . . . . 8 (((1st𝑧) ∈ 𝐴 ∧ (2nd𝑧) ∈ 𝐵) → ([(2nd𝑧) / 𝑦][(1st𝑧) / 𝑥]𝜓 ↔ (((1st𝑧) ∈ 𝐴 ∧ (2nd𝑧) ∈ 𝐵) ∧ [(2nd𝑧) / 𝑦][(1st𝑧) / 𝑥]𝜓)))
4611, 9, 45syl2anc 411 . . . . . . 7 (𝑧 ∈ (𝐴 × 𝐵) → ([(2nd𝑧) / 𝑦][(1st𝑧) / 𝑥]𝜓 ↔ (((1st𝑧) ∈ 𝐴 ∧ (2nd𝑧) ∈ 𝐵) ∧ [(2nd𝑧) / 𝑦][(1st𝑧) / 𝑥]𝜓)))
4741, 44, 463bitr4d 220 . . . . . 6 (𝑧 ∈ (𝐴 × 𝐵) → (𝑧𝑆[(2nd𝑧) / 𝑦][(1st𝑧) / 𝑥]𝜓))
4847dcbid 839 . . . . 5 (𝑧 ∈ (𝐴 × 𝐵) → (DECID 𝑧𝑆DECID [(2nd𝑧) / 𝑦][(1st𝑧) / 𝑥]𝜓))
4948adantl 277 . . . 4 ((𝜑𝑧 ∈ (𝐴 × 𝐵)) → (DECID 𝑧𝑆DECID [(2nd𝑧) / 𝑦][(1st𝑧) / 𝑥]𝜓))
5029, 49mpbird 167 . . 3 ((𝜑𝑧 ∈ (𝐴 × 𝐵)) → DECID 𝑧𝑆)
5150ralrimiva 2567 . 2 (𝜑 → ∀𝑧 ∈ (𝐴 × 𝐵)DECID 𝑧𝑆)
52 ssfidc 6991 . 2 (((𝐴 × 𝐵) ∈ Fin ∧ 𝑆 ⊆ (𝐴 × 𝐵) ∧ ∀𝑧 ∈ (𝐴 × 𝐵)DECID 𝑧𝑆) → 𝑆 ∈ Fin)
534, 8, 51, 52syl3anc 1249 1 (𝜑𝑆 ∈ Fin)
Colors of variables: wff set class
Syntax hints:  wi 4  wa 104  wb 105  DECID wdc 835   = wceq 1364  wcel 2164  wral 2472  [wsbc 2985  wss 3153  cop 3621  {copab 4089   × cxp 4657  cfv 5254  1st c1st 6191  2nd c2nd 6192  Fincfn 6794
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-ia1 106  ax-ia2 107  ax-ia3 108  ax-in1 615  ax-in2 616  ax-io 710  ax-5 1458  ax-7 1459  ax-gen 1460  ax-ie1 1504  ax-ie2 1505  ax-8 1515  ax-10 1516  ax-11 1517  ax-i12 1518  ax-bndl 1520  ax-4 1521  ax-17 1537  ax-i9 1541  ax-ial 1545  ax-i5r 1546  ax-13 2166  ax-14 2167  ax-ext 2175  ax-coll 4144  ax-sep 4147  ax-nul 4155  ax-pow 4203  ax-pr 4238  ax-un 4464  ax-setind 4569  ax-iinf 4620
This theorem depends on definitions:  df-bi 117  df-dc 836  df-3or 981  df-3an 982  df-tru 1367  df-fal 1370  df-nf 1472  df-sb 1774  df-eu 2045  df-mo 2046  df-clab 2180  df-cleq 2186  df-clel 2189  df-nfc 2325  df-ne 2365  df-ral 2477  df-rex 2478  df-reu 2479  df-rab 2481  df-v 2762  df-sbc 2986  df-csb 3081  df-dif 3155  df-un 3157  df-in 3159  df-ss 3166  df-nul 3447  df-if 3558  df-pw 3603  df-sn 3624  df-pr 3625  df-op 3627  df-uni 3836  df-int 3871  df-iun 3914  df-br 4030  df-opab 4091  df-mpt 4092  df-tr 4128  df-id 4324  df-iord 4397  df-on 4399  df-suc 4402  df-iom 4623  df-xp 4665  df-rel 4666  df-cnv 4667  df-co 4668  df-dm 4669  df-rn 4670  df-res 4671  df-ima 4672  df-iota 5215  df-fun 5256  df-fn 5257  df-f 5258  df-f1 5259  df-fo 5260  df-f1o 5261  df-fv 5262  df-1st 6193  df-2nd 6194  df-1o 6469  df-er 6587  df-en 6795  df-fin 6797
This theorem is referenced by:  lgsquadlem1  15191
  Copyright terms: Public domain W3C validator