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

Theorem fpr1 8090
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 2738 . . . 4 {𝑓 ∣ ∃𝑥(𝑓 Fn 𝑥 ∧ (𝑥𝐴 ∧ ∀𝑦𝑥 Pred(𝑅, 𝐴, 𝑦) ⊆ 𝑥) ∧ ∀𝑦𝑥 (𝑓𝑦) = (𝑦𝐺(𝑓 ↾ Pred(𝑅, 𝐴, 𝑦))))} = {𝑓 ∣ ∃𝑥(𝑓 Fn 𝑥 ∧ (𝑥𝐴 ∧ ∀𝑦𝑥 Pred(𝑅, 𝐴, 𝑦) ⊆ 𝑥) ∧ ∀𝑦𝑥 (𝑓𝑦) = (𝑦𝐺(𝑓 ↾ Pred(𝑅, 𝐴, 𝑦))))}
21frrlem1 8073 . . 3 {𝑓 ∣ ∃𝑥(𝑓 Fn 𝑥 ∧ (𝑥𝐴 ∧ ∀𝑦𝑥 Pred(𝑅, 𝐴, 𝑦) ⊆ 𝑥) ∧ ∀𝑦𝑥 (𝑓𝑦) = (𝑦𝐺(𝑓 ↾ Pred(𝑅, 𝐴, 𝑦))))} = {𝑎 ∣ ∃𝑏(𝑎 Fn 𝑏 ∧ (𝑏𝐴 ∧ ∀𝑐𝑏 Pred(𝑅, 𝐴, 𝑐) ⊆ 𝑏) ∧ ∀𝑐𝑏 (𝑎𝑐) = (𝑐𝐺(𝑎 ↾ Pred(𝑅, 𝐴, 𝑐))))}
3 fprr.1 . . 3 𝐹 = frecs(𝑅, 𝐴, 𝐺)
42, 3fprlem1 8087 . . 3 (((𝑅 Fr 𝐴𝑅 Po 𝐴𝑅 Se 𝐴) ∧ (𝑔 ∈ {𝑓 ∣ ∃𝑥(𝑓 Fn 𝑥 ∧ (𝑥𝐴 ∧ ∀𝑦𝑥 Pred(𝑅, 𝐴, 𝑦) ⊆ 𝑥) ∧ ∀𝑦𝑥 (𝑓𝑦) = (𝑦𝐺(𝑓 ↾ Pred(𝑅, 𝐴, 𝑦))))} ∧ ∈ {𝑓 ∣ ∃𝑥(𝑓 Fn 𝑥 ∧ (𝑥𝐴 ∧ ∀𝑦𝑥 Pred(𝑅, 𝐴, 𝑦) ⊆ 𝑥) ∧ ∀𝑦𝑥 (𝑓𝑦) = (𝑦𝐺(𝑓 ↾ Pred(𝑅, 𝐴, 𝑦))))})) → ((𝑏𝑔𝑢𝑏𝑣) → 𝑢 = 𝑣))
52, 3, 4frrlem9 8081 . 2 ((𝑅 Fr 𝐴𝑅 Po 𝐴𝑅 Se 𝐴) → Fun 𝐹)
6 eqid 2738 . . 3 ((𝐹 ↾ Pred(𝑅, 𝐴, 𝑧)) ∪ {⟨𝑧, (𝑧𝐺(𝐹 ↾ Pred(𝑅, 𝐴, 𝑧)))⟩}) = ((𝐹 ↾ Pred(𝑅, 𝐴, 𝑧)) ∪ {⟨𝑧, (𝑧𝐺(𝐹 ↾ Pred(𝑅, 𝐴, 𝑧)))⟩})
7 simp1 1134 . . 3 ((𝑅 Fr 𝐴𝑅 Po 𝐴𝑅 Se 𝐴) → 𝑅 Fr 𝐴)
8 ssidd 3940 . . 3 (((𝑅 Fr 𝐴𝑅 Po 𝐴𝑅 Se 𝐴) ∧ 𝑧𝐴) → Pred(𝑅, 𝐴, 𝑧) ⊆ Pred(𝑅, 𝐴, 𝑧))
9 fprlem2 8088 . . 3 (((𝑅 Fr 𝐴𝑅 Po 𝐴𝑅 Se 𝐴) ∧ 𝑧𝐴) → ∀𝑦 ∈ Pred (𝑅, 𝐴, 𝑧)Pred(𝑅, 𝐴, 𝑦) ⊆ Pred(𝑅, 𝐴, 𝑧))
10 setlikespec 6217 . . . . 5 ((𝑧𝐴𝑅 Se 𝐴) → Pred(𝑅, 𝐴, 𝑧) ∈ V)
1110ancoms 458 . . . 4 ((𝑅 Se 𝐴𝑧𝐴) → Pred(𝑅, 𝐴, 𝑧) ∈ V)
12113ad2antl3 1185 . . 3 (((𝑅 Fr 𝐴𝑅 Po 𝐴𝑅 Se 𝐴) ∧ 𝑧𝐴) → Pred(𝑅, 𝐴, 𝑧) ∈ V)
13 predss 6199 . . . 4 Pred(𝑅, 𝐴, 𝑧) ⊆ 𝐴
1413a1i 11 . . 3 (((𝑅 Fr 𝐴𝑅 Po 𝐴𝑅 Se 𝐴) ∧ 𝑧𝐴) → Pred(𝑅, 𝐴, 𝑧) ⊆ 𝐴)
15 difssd 4063 . . . . 5 (((𝑅 Fr 𝐴𝑅 Po 𝐴𝑅 Se 𝐴) ∧ (𝐴 ∖ dom 𝐹) ≠ ∅) → (𝐴 ∖ dom 𝐹) ⊆ 𝐴)
16 simpr 484 . . . . 5 (((𝑅 Fr 𝐴𝑅 Po 𝐴𝑅 Se 𝐴) ∧ (𝐴 ∖ dom 𝐹) ≠ ∅) → (𝐴 ∖ dom 𝐹) ≠ ∅)
1715, 16jca 511 . . . 4 (((𝑅 Fr 𝐴𝑅 Po 𝐴𝑅 Se 𝐴) ∧ (𝐴 ∖ dom 𝐹) ≠ ∅) → ((𝐴 ∖ dom 𝐹) ⊆ 𝐴 ∧ (𝐴 ∖ dom 𝐹) ≠ ∅))
18 frpomin2 6229 . . . 4 (((𝑅 Fr 𝐴𝑅 Po 𝐴𝑅 Se 𝐴) ∧ ((𝐴 ∖ dom 𝐹) ⊆ 𝐴 ∧ (𝐴 ∖ dom 𝐹) ≠ ∅)) → ∃𝑧 ∈ (𝐴 ∖ dom 𝐹)Pred(𝑅, (𝐴 ∖ dom 𝐹), 𝑧) = ∅)
1917, 18syldan 590 . . 3 (((𝑅 Fr 𝐴𝑅 Po 𝐴𝑅 Se 𝐴) ∧ (𝐴 ∖ dom 𝐹) ≠ ∅) → ∃𝑧 ∈ (𝐴 ∖ dom 𝐹)Pred(𝑅, (𝐴 ∖ dom 𝐹), 𝑧) = ∅)
202, 3, 4, 6, 7, 8, 9, 12, 14, 19frrlem14 8086 . 2 ((𝑅 Fr 𝐴𝑅 Po 𝐴𝑅 Se 𝐴) → dom 𝐹 = 𝐴)
21 df-fn 6421 . 2 (𝐹 Fn 𝐴 ↔ (Fun 𝐹 ∧ dom 𝐹 = 𝐴))
225, 20, 21sylanbrc 582 1 ((𝑅 Fr 𝐴𝑅 Po 𝐴𝑅 Se 𝐴) → 𝐹 Fn 𝐴)
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 395  w3a 1085   = wceq 1539  wex 1783  wcel 2108  {cab 2715  wne 2942  wral 3063  wrex 3064  Vcvv 3422  cdif 3880  cun 3881  wss 3883  c0 4253  {csn 4558  cop 4564   Po wpo 5492   Fr wfr 5532   Se wse 5533  dom cdm 5580  cres 5582  Predcpred 6190  Fun wfun 6412   Fn wfn 6413  cfv 6418  (class class class)co 7255  frecscfrecs 8067
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1799  ax-4 1813  ax-5 1914  ax-6 1972  ax-7 2012  ax-8 2110  ax-9 2118  ax-10 2139  ax-11 2156  ax-12 2173  ax-ext 2709  ax-rep 5205  ax-sep 5218  ax-nul 5225  ax-pr 5347  ax-un 7566
This theorem depends on definitions:  df-bi 206  df-an 396  df-or 844  df-3an 1087  df-tru 1542  df-fal 1552  df-ex 1784  df-nf 1788  df-sb 2069  df-mo 2540  df-eu 2569  df-clab 2716  df-cleq 2730  df-clel 2817  df-nfc 2888  df-ne 2943  df-ral 3068  df-rex 3069  df-reu 3070  df-rab 3072  df-v 3424  df-sbc 3712  df-csb 3829  df-dif 3886  df-un 3888  df-in 3890  df-ss 3900  df-nul 4254  df-if 4457  df-pw 4532  df-sn 4559  df-pr 4561  df-op 4565  df-uni 4837  df-iun 4923  df-br 5071  df-opab 5133  df-mpt 5154  df-id 5480  df-po 5494  df-fr 5535  df-se 5536  df-xp 5586  df-rel 5587  df-cnv 5588  df-co 5589  df-dm 5590  df-rn 5591  df-res 5592  df-ima 5593  df-pred 6191  df-iota 6376  df-fun 6420  df-fn 6421  df-f 6422  df-f1 6423  df-fo 6424  df-f1o 6425  df-fv 6426  df-ov 7258  df-frecs 8068
This theorem is referenced by:  fpr2  8091  fpr3  8092  wfr1  8137  on2recsfn  33753  norecfn  34030  norec2fn  34040
  Copyright terms: Public domain W3C validator