Metamath Proof Explorer < Previous   Next > Nearby theorems Mirrors  >  Home  >  MPE Home  >  Th. List  >  nqerf Structured version   Visualization version   GIF version

Theorem nqerf 9697
 Description: Corollary of nqereu 9696: the function [Q] is actually a function. (Contributed by Mario Carneiro, 6-May-2013.) (New usage is discouraged.)
Assertion
Ref Expression
nqerf [Q]:(N × N)⟶Q

Proof of Theorem nqerf
Dummy variables 𝑥 𝑦 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 df-erq 9680 . . . . . . 7 [Q] = ( ~Q ∩ ((N × N) × Q))
2 inss2 3817 . . . . . . 7 ( ~Q ∩ ((N × N) × Q)) ⊆ ((N × N) × Q)
31, 2eqsstri 3619 . . . . . 6 [Q] ⊆ ((N × N) × Q)
4 xpss 5192 . . . . . 6 ((N × N) × Q) ⊆ (V × V)
53, 4sstri 3597 . . . . 5 [Q] ⊆ (V × V)
6 df-rel 5086 . . . . 5 (Rel [Q] ↔ [Q] ⊆ (V × V))
75, 6mpbir 221 . . . 4 Rel [Q]
8 nqereu 9696 . . . . . . . 8 (𝑥 ∈ (N × N) → ∃!𝑦Q 𝑦 ~Q 𝑥)
9 df-reu 2919 . . . . . . . . 9 (∃!𝑦Q 𝑦 ~Q 𝑥 ↔ ∃!𝑦(𝑦Q𝑦 ~Q 𝑥))
10 eumo 2503 . . . . . . . . 9 (∃!𝑦(𝑦Q𝑦 ~Q 𝑥) → ∃*𝑦(𝑦Q𝑦 ~Q 𝑥))
119, 10sylbi 207 . . . . . . . 8 (∃!𝑦Q 𝑦 ~Q 𝑥 → ∃*𝑦(𝑦Q𝑦 ~Q 𝑥))
128, 11syl 17 . . . . . . 7 (𝑥 ∈ (N × N) → ∃*𝑦(𝑦Q𝑦 ~Q 𝑥))
13 moanimv 2535 . . . . . . 7 (∃*𝑦(𝑥 ∈ (N × N) ∧ (𝑦Q𝑦 ~Q 𝑥)) ↔ (𝑥 ∈ (N × N) → ∃*𝑦(𝑦Q𝑦 ~Q 𝑥)))
1412, 13mpbir 221 . . . . . 6 ∃*𝑦(𝑥 ∈ (N × N) ∧ (𝑦Q𝑦 ~Q 𝑥))
153brel 5133 . . . . . . . . 9 (𝑥[Q]𝑦 → (𝑥 ∈ (N × N) ∧ 𝑦Q))
1615simpld 475 . . . . . . . 8 (𝑥[Q]𝑦𝑥 ∈ (N × N))
1715simprd 479 . . . . . . . 8 (𝑥[Q]𝑦𝑦Q)
18 enqer 9688 . . . . . . . . . 10 ~Q Er (N × N)
1918a1i 11 . . . . . . . . 9 (𝑥[Q]𝑦 → ~Q Er (N × N))
20 inss1 3816 . . . . . . . . . . 11 ( ~Q ∩ ((N × N) × Q)) ⊆ ~Q
211, 20eqsstri 3619 . . . . . . . . . 10 [Q] ⊆ ~Q
2221ssbri 4662 . . . . . . . . 9 (𝑥[Q]𝑦𝑥 ~Q 𝑦)
2319, 22ersym 7700 . . . . . . . 8 (𝑥[Q]𝑦𝑦 ~Q 𝑥)
2416, 17, 23jca32 557 . . . . . . 7 (𝑥[Q]𝑦 → (𝑥 ∈ (N × N) ∧ (𝑦Q𝑦 ~Q 𝑥)))
2524moimi 2524 . . . . . 6 (∃*𝑦(𝑥 ∈ (N × N) ∧ (𝑦Q𝑦 ~Q 𝑥)) → ∃*𝑦 𝑥[Q]𝑦)
2614, 25ax-mp 5 . . . . 5 ∃*𝑦 𝑥[Q]𝑦
2726ax-gen 1719 . . . 4 𝑥∃*𝑦 𝑥[Q]𝑦
28 dffun6 5865 . . . 4 (Fun [Q] ↔ (Rel [Q] ∧ ∀𝑥∃*𝑦 𝑥[Q]𝑦))
297, 27, 28mpbir2an 954 . . 3 Fun [Q]
30 dmss 5288 . . . . . 6 ([Q] ⊆ ((N × N) × Q) → dom [Q] ⊆ dom ((N × N) × Q))
313, 30ax-mp 5 . . . . 5 dom [Q] ⊆ dom ((N × N) × Q)
32 1nq 9695 . . . . . 6 1QQ
33 ne0i 3902 . . . . . 6 (1QQQ ≠ ∅)
34 dmxp 5308 . . . . . 6 (Q ≠ ∅ → dom ((N × N) × Q) = (N × N))
3532, 33, 34mp2b 10 . . . . 5 dom ((N × N) × Q) = (N × N)
3631, 35sseqtri 3621 . . . 4 dom [Q] ⊆ (N × N)
37 reurex 3154 . . . . . . . 8 (∃!𝑦Q 𝑦 ~Q 𝑥 → ∃𝑦Q 𝑦 ~Q 𝑥)
38 simpll 789 . . . . . . . . . . 11 (((𝑥 ∈ (N × N) ∧ 𝑦Q) ∧ 𝑦 ~Q 𝑥) → 𝑥 ∈ (N × N))
39 simplr 791 . . . . . . . . . . 11 (((𝑥 ∈ (N × N) ∧ 𝑦Q) ∧ 𝑦 ~Q 𝑥) → 𝑦Q)
4018a1i 11 . . . . . . . . . . . 12 (((𝑥 ∈ (N × N) ∧ 𝑦Q) ∧ 𝑦 ~Q 𝑥) → ~Q Er (N × N))
41 simpr 477 . . . . . . . . . . . 12 (((𝑥 ∈ (N × N) ∧ 𝑦Q) ∧ 𝑦 ~Q 𝑥) → 𝑦 ~Q 𝑥)
4240, 41ersym 7700 . . . . . . . . . . 11 (((𝑥 ∈ (N × N) ∧ 𝑦Q) ∧ 𝑦 ~Q 𝑥) → 𝑥 ~Q 𝑦)
431breqi 4624 . . . . . . . . . . . 12 (𝑥[Q]𝑦𝑥( ~Q ∩ ((N × N) × Q))𝑦)
44 brinxp2 5146 . . . . . . . . . . . 12 (𝑥( ~Q ∩ ((N × N) × Q))𝑦 ↔ (𝑥 ∈ (N × N) ∧ 𝑦Q𝑥 ~Q 𝑦))
4543, 44bitri 264 . . . . . . . . . . 11 (𝑥[Q]𝑦 ↔ (𝑥 ∈ (N × N) ∧ 𝑦Q𝑥 ~Q 𝑦))
4638, 39, 42, 45syl3anbrc 1244 . . . . . . . . . 10 (((𝑥 ∈ (N × N) ∧ 𝑦Q) ∧ 𝑦 ~Q 𝑥) → 𝑥[Q]𝑦)
4746ex 450 . . . . . . . . 9 ((𝑥 ∈ (N × N) ∧ 𝑦Q) → (𝑦 ~Q 𝑥𝑥[Q]𝑦))
4847reximdva 3016 . . . . . . . 8 (𝑥 ∈ (N × N) → (∃𝑦Q 𝑦 ~Q 𝑥 → ∃𝑦Q 𝑥[Q]𝑦))
49 rexex 3001 . . . . . . . 8 (∃𝑦Q 𝑥[Q]𝑦 → ∃𝑦 𝑥[Q]𝑦)
5037, 48, 49syl56 36 . . . . . . 7 (𝑥 ∈ (N × N) → (∃!𝑦Q 𝑦 ~Q 𝑥 → ∃𝑦 𝑥[Q]𝑦))
518, 50mpd 15 . . . . . 6 (𝑥 ∈ (N × N) → ∃𝑦 𝑥[Q]𝑦)
52 vex 3194 . . . . . . 7 𝑥 ∈ V
5352eldm 5286 . . . . . 6 (𝑥 ∈ dom [Q] ↔ ∃𝑦 𝑥[Q]𝑦)
5451, 53sylibr 224 . . . . 5 (𝑥 ∈ (N × N) → 𝑥 ∈ dom [Q])
5554ssriv 3592 . . . 4 (N × N) ⊆ dom [Q]
5636, 55eqssi 3604 . . 3 dom [Q] = (N × N)
57 df-fn 5853 . . 3 ([Q] Fn (N × N) ↔ (Fun [Q] ∧ dom [Q] = (N × N)))
5829, 56, 57mpbir2an 954 . 2 [Q] Fn (N × N)
59 rnss 5318 . . . 4 ([Q] ⊆ ((N × N) × Q) → ran [Q] ⊆ ran ((N × N) × Q))
603, 59ax-mp 5 . . 3 ran [Q] ⊆ ran ((N × N) × Q)
61 rnxpss 5529 . . 3 ran ((N × N) × Q) ⊆ Q
6260, 61sstri 3597 . 2 ran [Q] ⊆ Q
63 df-f 5854 . 2 ([Q]:(N × N)⟶Q ↔ ([Q] Fn (N × N) ∧ ran [Q] ⊆ Q))
6458, 62, 63mpbir2an 954 1 [Q]:(N × N)⟶Q
 Colors of variables: wff setvar class Syntax hints:   → wi 4   ∧ wa 384   ∧ w3a 1036  ∀wal 1478   = wceq 1480  ∃wex 1701   ∈ wcel 1992  ∃!weu 2474  ∃*wmo 2475   ≠ wne 2796  ∃wrex 2913  ∃!wreu 2914  Vcvv 3191   ∩ cin 3559   ⊆ wss 3560  ∅c0 3896   class class class wbr 4618   × cxp 5077  dom cdm 5079  ran crn 5080  Rel wrel 5084  Fun wfun 5844   Fn wfn 5845  ⟶wf 5846   Er wer 7685  Ncnpi 9611   ~Q ceq 9618  Qcnq 9619  1Qc1q 9620  [Q]cerq 9621 This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1719  ax-4 1734  ax-5 1841  ax-6 1890  ax-7 1937  ax-8 1994  ax-9 2001  ax-10 2021  ax-11 2036  ax-12 2049  ax-13 2250  ax-ext 2606  ax-sep 4746  ax-nul 4754  ax-pow 4808  ax-pr 4872  ax-un 6903 This theorem depends on definitions:  df-bi 197  df-or 385  df-an 386  df-3or 1037  df-3an 1038  df-tru 1483  df-ex 1702  df-nf 1707  df-sb 1883  df-eu 2478  df-mo 2479  df-clab 2613  df-cleq 2619  df-clel 2622  df-nfc 2756  df-ne 2797  df-ral 2917  df-rex 2918  df-reu 2919  df-rmo 2920  df-rab 2921  df-v 3193  df-sbc 3423  df-csb 3520  df-dif 3563  df-un 3565  df-in 3567  df-ss 3574  df-pss 3576  df-nul 3897  df-if 4064  df-pw 4137  df-sn 4154  df-pr 4156  df-tp 4158  df-op 4160  df-uni 4408  df-iun 4492  df-br 4619  df-opab 4679  df-mpt 4680  df-tr 4718  df-eprel 4990  df-id 4994  df-po 5000  df-so 5001  df-fr 5038  df-we 5040  df-xp 5085  df-rel 5086  df-cnv 5087  df-co 5088  df-dm 5089  df-rn 5090  df-res 5091  df-ima 5092  df-pred 5642  df-ord 5688  df-on 5689  df-lim 5690  df-suc 5691  df-iota 5813  df-fun 5852  df-fn 5853  df-f 5854  df-f1 5855  df-fo 5856  df-f1o 5857  df-fv 5858  df-ov 6608  df-oprab 6609  df-mpt2 6610  df-om 7014  df-1st 7116  df-2nd 7117  df-wrecs 7353  df-recs 7414  df-rdg 7452  df-1o 7506  df-oadd 7510  df-omul 7511  df-er 7688  df-ni 9639  df-mi 9641  df-lti 9642  df-enq 9678  df-nq 9679  df-erq 9680  df-1nq 9683 This theorem is referenced by:  nqercl  9698  nqerrel  9699  nqerid  9700  addnqf  9715  mulnqf  9716  adderpq  9723  mulerpq  9724  lterpq  9737
 Copyright terms: Public domain W3C validator