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

Theorem fpr1 8284
Description: Law of well-founded recursion over a partial order, part one. Establish the functionality and domain of the recursive function generator. Note that by requiring a partial order we can avoid using the axiom of infinity. (Contributed by Scott Fenton, 11-Sep-2023.)
Hypothesis
Ref Expression
fprr.1 𝐹 = frecs(𝑅, 𝐴, 𝐺)
Assertion
Ref Expression
fpr1 ((𝑅 Fr 𝐴𝑅 Po 𝐴𝑅 Se 𝐴) → 𝐹 Fn 𝐴)

Proof of Theorem fpr1
Dummy variables 𝑥 𝑦 𝑧 𝑢 𝑣 𝑎 𝑏 𝑐 𝑓 𝑔 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 eqid 2732 . . . 4 {𝑓 ∣ ∃𝑥(𝑓 Fn 𝑥 ∧ (𝑥𝐴 ∧ ∀𝑦𝑥 Pred(𝑅, 𝐴, 𝑦) ⊆ 𝑥) ∧ ∀𝑦𝑥 (𝑓𝑦) = (𝑦𝐺(𝑓 ↾ Pred(𝑅, 𝐴, 𝑦))))} = {𝑓 ∣ ∃𝑥(𝑓 Fn 𝑥 ∧ (𝑥𝐴 ∧ ∀𝑦𝑥 Pred(𝑅, 𝐴, 𝑦) ⊆ 𝑥) ∧ ∀𝑦𝑥 (𝑓𝑦) = (𝑦𝐺(𝑓 ↾ Pred(𝑅, 𝐴, 𝑦))))}
21frrlem1 8267 . . 3 {𝑓 ∣ ∃𝑥(𝑓 Fn 𝑥 ∧ (𝑥𝐴 ∧ ∀𝑦𝑥 Pred(𝑅, 𝐴, 𝑦) ⊆ 𝑥) ∧ ∀𝑦𝑥 (𝑓𝑦) = (𝑦𝐺(𝑓 ↾ Pred(𝑅, 𝐴, 𝑦))))} = {𝑎 ∣ ∃𝑏(𝑎 Fn 𝑏 ∧ (𝑏𝐴 ∧ ∀𝑐𝑏 Pred(𝑅, 𝐴, 𝑐) ⊆ 𝑏) ∧ ∀𝑐𝑏 (𝑎𝑐) = (𝑐𝐺(𝑎 ↾ Pred(𝑅, 𝐴, 𝑐))))}
3 fprr.1 . . 3 𝐹 = frecs(𝑅, 𝐴, 𝐺)
42, 3fprlem1 8281 . . 3 (((𝑅 Fr 𝐴𝑅 Po 𝐴𝑅 Se 𝐴) ∧ (𝑔 ∈ {𝑓 ∣ ∃𝑥(𝑓 Fn 𝑥 ∧ (𝑥𝐴 ∧ ∀𝑦𝑥 Pred(𝑅, 𝐴, 𝑦) ⊆ 𝑥) ∧ ∀𝑦𝑥 (𝑓𝑦) = (𝑦𝐺(𝑓 ↾ Pred(𝑅, 𝐴, 𝑦))))} ∧ ∈ {𝑓 ∣ ∃𝑥(𝑓 Fn 𝑥 ∧ (𝑥𝐴 ∧ ∀𝑦𝑥 Pred(𝑅, 𝐴, 𝑦) ⊆ 𝑥) ∧ ∀𝑦𝑥 (𝑓𝑦) = (𝑦𝐺(𝑓 ↾ Pred(𝑅, 𝐴, 𝑦))))})) → ((𝑏𝑔𝑢𝑏𝑣) → 𝑢 = 𝑣))
52, 3, 4frrlem9 8275 . 2 ((𝑅 Fr 𝐴𝑅 Po 𝐴𝑅 Se 𝐴) → Fun 𝐹)
6 eqid 2732 . . 3 ((𝐹 ↾ Pred(𝑅, 𝐴, 𝑧)) ∪ {⟨𝑧, (𝑧𝐺(𝐹 ↾ Pred(𝑅, 𝐴, 𝑧)))⟩}) = ((𝐹 ↾ Pred(𝑅, 𝐴, 𝑧)) ∪ {⟨𝑧, (𝑧𝐺(𝐹 ↾ Pred(𝑅, 𝐴, 𝑧)))⟩})
7 simp1 1136 . . 3 ((𝑅 Fr 𝐴𝑅 Po 𝐴𝑅 Se 𝐴) → 𝑅 Fr 𝐴)
8 ssidd 4004 . . 3 (((𝑅 Fr 𝐴𝑅 Po 𝐴𝑅 Se 𝐴) ∧ 𝑧𝐴) → Pred(𝑅, 𝐴, 𝑧) ⊆ Pred(𝑅, 𝐴, 𝑧))
9 fprlem2 8282 . . 3 (((𝑅 Fr 𝐴𝑅 Po 𝐴𝑅 Se 𝐴) ∧ 𝑧𝐴) → ∀𝑦 ∈ Pred (𝑅, 𝐴, 𝑧)Pred(𝑅, 𝐴, 𝑦) ⊆ Pred(𝑅, 𝐴, 𝑧))
10 setlikespec 6323 . . . . 5 ((𝑧𝐴𝑅 Se 𝐴) → Pred(𝑅, 𝐴, 𝑧) ∈ V)
1110ancoms 459 . . . 4 ((𝑅 Se 𝐴𝑧𝐴) → Pred(𝑅, 𝐴, 𝑧) ∈ V)
12113ad2antl3 1187 . . 3 (((𝑅 Fr 𝐴𝑅 Po 𝐴𝑅 Se 𝐴) ∧ 𝑧𝐴) → Pred(𝑅, 𝐴, 𝑧) ∈ V)
13 predss 6305 . . . 4 Pred(𝑅, 𝐴, 𝑧) ⊆ 𝐴
1413a1i 11 . . 3 (((𝑅 Fr 𝐴𝑅 Po 𝐴𝑅 Se 𝐴) ∧ 𝑧𝐴) → Pred(𝑅, 𝐴, 𝑧) ⊆ 𝐴)
15 difssd 4131 . . . . 5 (((𝑅 Fr 𝐴𝑅 Po 𝐴𝑅 Se 𝐴) ∧ (𝐴 ∖ dom 𝐹) ≠ ∅) → (𝐴 ∖ dom 𝐹) ⊆ 𝐴)
16 simpr 485 . . . . 5 (((𝑅 Fr 𝐴𝑅 Po 𝐴𝑅 Se 𝐴) ∧ (𝐴 ∖ dom 𝐹) ≠ ∅) → (𝐴 ∖ dom 𝐹) ≠ ∅)
1715, 16jca 512 . . . 4 (((𝑅 Fr 𝐴𝑅 Po 𝐴𝑅 Se 𝐴) ∧ (𝐴 ∖ dom 𝐹) ≠ ∅) → ((𝐴 ∖ dom 𝐹) ⊆ 𝐴 ∧ (𝐴 ∖ dom 𝐹) ≠ ∅))
18 frpomin2 6339 . . . 4 (((𝑅 Fr 𝐴𝑅 Po 𝐴𝑅 Se 𝐴) ∧ ((𝐴 ∖ dom 𝐹) ⊆ 𝐴 ∧ (𝐴 ∖ dom 𝐹) ≠ ∅)) → ∃𝑧 ∈ (𝐴 ∖ dom 𝐹)Pred(𝑅, (𝐴 ∖ dom 𝐹), 𝑧) = ∅)
1917, 18syldan 591 . . 3 (((𝑅 Fr 𝐴𝑅 Po 𝐴𝑅 Se 𝐴) ∧ (𝐴 ∖ dom 𝐹) ≠ ∅) → ∃𝑧 ∈ (𝐴 ∖ dom 𝐹)Pred(𝑅, (𝐴 ∖ dom 𝐹), 𝑧) = ∅)
202, 3, 4, 6, 7, 8, 9, 12, 14, 19frrlem14 8280 . 2 ((𝑅 Fr 𝐴𝑅 Po 𝐴𝑅 Se 𝐴) → dom 𝐹 = 𝐴)
21 df-fn 6543 . 2 (𝐹 Fn 𝐴 ↔ (Fun 𝐹 ∧ dom 𝐹 = 𝐴))
225, 20, 21sylanbrc 583 1 ((𝑅 Fr 𝐴𝑅 Po 𝐴𝑅 Se 𝐴) → 𝐹 Fn 𝐴)
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 396  w3a 1087   = wceq 1541  wex 1781  wcel 2106  {cab 2709  wne 2940  wral 3061  wrex 3070  Vcvv 3474  cdif 3944  cun 3945  wss 3947  c0 4321  {csn 4627  cop 4633   Po wpo 5585   Fr wfr 5627   Se wse 5628  dom cdm 5675  cres 5677  Predcpred 6296  Fun wfun 6534   Fn wfn 6535  cfv 6540  (class class class)co 7405  frecscfrecs 8261
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1797  ax-4 1811  ax-5 1913  ax-6 1971  ax-7 2011  ax-8 2108  ax-9 2116  ax-10 2137  ax-11 2154  ax-12 2171  ax-ext 2703  ax-rep 5284  ax-sep 5298  ax-nul 5305  ax-pr 5426  ax-un 7721
This theorem depends on definitions:  df-bi 206  df-an 397  df-or 846  df-3an 1089  df-tru 1544  df-fal 1554  df-ex 1782  df-nf 1786  df-sb 2068  df-mo 2534  df-eu 2563  df-clab 2710  df-cleq 2724  df-clel 2810  df-nfc 2885  df-ne 2941  df-ral 3062  df-rex 3071  df-reu 3377  df-rab 3433  df-v 3476  df-sbc 3777  df-csb 3893  df-dif 3950  df-un 3952  df-in 3954  df-ss 3964  df-nul 4322  df-if 4528  df-pw 4603  df-sn 4628  df-pr 4630  df-op 4634  df-uni 4908  df-iun 4998  df-br 5148  df-opab 5210  df-mpt 5231  df-id 5573  df-po 5587  df-fr 5630  df-se 5631  df-xp 5681  df-rel 5682  df-cnv 5683  df-co 5684  df-dm 5685  df-rn 5686  df-res 5687  df-ima 5688  df-pred 6297  df-iota 6492  df-fun 6542  df-fn 6543  df-f 6544  df-f1 6545  df-fo 6546  df-f1o 6547  df-fv 6548  df-ov 7408  df-frecs 8262
This theorem is referenced by:  fpr2  8285  fpr3  8286  wfr1  8331  on2recsfn  8662  norecfn  27419  norec2fn  27429
  Copyright terms: Public domain W3C validator