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

Theorem frrlem9 8312
Description: Lemma for well-founded recursion. Show that the well-founded recursive generator produces a function. Hypothesis three will be eliminated using different induction rules depending on if we use partial orders or the axiom of infinity. (Contributed by Scott Fenton, 27-Aug-2022.)
Hypotheses
Ref Expression
frrlem9.1 𝐵 = {𝑓 ∣ ∃𝑥(𝑓 Fn 𝑥 ∧ (𝑥 ⊆ 𝐴 ∧ ∀𝑦 ∈ 𝑥 Pred(𝑅, 𝐴, 𝑦) ⊆ 𝑥) ∧ ∀𝑦 ∈ 𝑥 (𝑓‘𝑦) = (𝑦𝐺(𝑓 ↾ Pred(𝑅, 𝐴, 𝑦))))}
frrlem9.2 𝐹 = frecs(𝑅, 𝐴, 𝐺)
frrlem9.3 ((𝜑 ∧ (𝑔 ∈ 𝐵 ∧ ℎ ∈ 𝐵)) → ((𝑥𝑔𝑢 ∧ 𝑥ℎ𝑣) → 𝑢 = 𝑣))
Assertion
Ref Expression
frrlem9 (𝜑 → Fun 𝐹)
Distinct variable groups:   𝐴,𝑓,𝑥,𝑦   𝑓,𝐺,𝑥,𝑦   𝑅,𝑓,𝑥,𝑦   𝐵,𝑔,ℎ   𝑥,𝐹,𝑢,𝑣   𝜑,𝑓   𝑓,𝐹   𝜑,𝑔,ℎ,𝑥,𝑢,𝑣
Allowed substitution hints:   𝜑(𝑦)   𝐴(𝑣, 𝑢, 𝑔, ℎ)   𝐵(𝑥, 𝑦, 𝑣, 𝑢, 𝑓)   𝑅(𝑣, 𝑢, 𝑔, ℎ)   𝐹(𝑦, 𝑔, ℎ)   𝐺(𝑣, 𝑢, 𝑔, ℎ)

Proof of Theorem frrlem9
StepHypRef Expression
1 eluni2 4871 . . . . . . . 8 (⟨𝑥, 𝑢⟩ ∈ ∪ 𝐵 ↔ ∃𝑔 ∈ 𝐵 ⟨𝑥, 𝑢⟩ ∈ 𝑔)
2 df-br 5104 . . . . . . . . 9 (𝑥𝐹𝑢 ↔ ⟨𝑥, 𝑢⟩ ∈ 𝐹)
3 frrlem9.1 . . . . . . . . . . 11 𝐵 = {𝑓 ∣ ∃𝑥(𝑓 Fn 𝑥 ∧ (𝑥 ⊆ 𝐴 ∧ ∀𝑦 ∈ 𝑥 Pred(𝑅, 𝐴, 𝑦) ⊆ 𝑥) ∧ ∀𝑦 ∈ 𝑥 (𝑓‘𝑦) = (𝑦𝐺(𝑓 ↾ Pred(𝑅, 𝐴, 𝑦))))}
4 frrlem9.2 . . . . . . . . . . 11 𝐹 = frecs(𝑅, 𝐴, 𝐺)
53, 4frrlem5 8308 . . . . . . . . . 10 𝐹 = ∪ 𝐵
65eleq2i 2853 . . . . . . . . 9 (⟨𝑥, 𝑢⟩ ∈ 𝐹 ↔ ⟨𝑥, 𝑢⟩ ∈ ∪ 𝐵)
72, 6bitri 278 . . . . . . . 8 (𝑥𝐹𝑢 ↔ ⟨𝑥, 𝑢⟩ ∈ ∪ 𝐵)
8 df-br 5104 . . . . . . . . 9 (𝑥𝑔𝑢 ↔ ⟨𝑥, 𝑢⟩ ∈ 𝑔)
98rexbii 3110 . . . . . . . 8 (∃𝑔 ∈ 𝐵 𝑥𝑔𝑢 ↔ ∃𝑔 ∈ 𝐵 ⟨𝑥, 𝑢⟩ ∈ 𝑔)
101, 7, 93bitr4i 306 . . . . . . 7 (𝑥𝐹𝑢 ↔ ∃𝑔 ∈ 𝐵 𝑥𝑔𝑢)
11 eluni2 4871 . . . . . . . 8 (⟨𝑥, 𝑣⟩ ∈ ∪ 𝐵 ↔ ∃ℎ ∈ 𝐵 ⟨𝑥, 𝑣⟩ ∈ ℎ)
12 df-br 5104 . . . . . . . . 9 (𝑥𝐹𝑣 ↔ ⟨𝑥, 𝑣⟩ ∈ 𝐹)
135eleq2i 2853 . . . . . . . . 9 (⟨𝑥, 𝑣⟩ ∈ 𝐹 ↔ ⟨𝑥, 𝑣⟩ ∈ ∪ 𝐵)
1412, 13bitri 278 . . . . . . . 8 (𝑥𝐹𝑣 ↔ ⟨𝑥, 𝑣⟩ ∈ ∪ 𝐵)
15 df-br 5104 . . . . . . . . 9 (𝑥ℎ𝑣 ↔ ⟨𝑥, 𝑣⟩ ∈ ℎ)
1615rexbii 3110 . . . . . . . 8 (∃ℎ ∈ 𝐵 𝑥ℎ𝑣 ↔ ∃ℎ ∈ 𝐵 ⟨𝑥, 𝑣⟩ ∈ ℎ)
1711, 14, 163bitr4i 306 . . . . . . 7 (𝑥𝐹𝑣 ↔ ∃ℎ ∈ 𝐵 𝑥ℎ𝑣)
1810, 17anbi12i 640 . . . . . 6 ((𝑥𝐹𝑢 ∧ 𝑥𝐹𝑣) ↔ (∃𝑔 ∈ 𝐵 𝑥𝑔𝑢 ∧ ∃ℎ ∈ 𝐵 𝑥ℎ𝑣))
19 reeanv 3235 . . . . . 6 (∃𝑔 ∈ 𝐵 ∃ℎ ∈ 𝐵 (𝑥𝑔𝑢 ∧ 𝑥ℎ𝑣) ↔ (∃𝑔 ∈ 𝐵 𝑥𝑔𝑢 ∧ ∃ℎ ∈ 𝐵 𝑥ℎ𝑣))
2018, 19bitr4i 281 . . . . 5 ((𝑥𝐹𝑢 ∧ 𝑥𝐹𝑣) ↔ ∃𝑔 ∈ 𝐵 ∃ℎ ∈ 𝐵 (𝑥𝑔𝑢 ∧ 𝑥ℎ𝑣))
21 frrlem9.3 . . . . . 6 ((𝜑 ∧ (𝑔 ∈ 𝐵 ∧ ℎ ∈ 𝐵)) → ((𝑥𝑔𝑢 ∧ 𝑥ℎ𝑣) → 𝑢 = 𝑣))
2221rexlimdvva 3220 . . . . 5 (𝜑 → (∃𝑔 ∈ 𝐵 ∃ℎ ∈ 𝐵 (𝑥𝑔𝑢 ∧ 𝑥ℎ𝑣) → 𝑢 = 𝑣))
2320, 22biimtrid 245 . . . 4 (𝜑 → ((𝑥𝐹𝑢 ∧ 𝑥𝐹𝑣) → 𝑢 = 𝑣))
2423alrimiv 1960 . . 3 (𝜑 → ∀𝑣((𝑥𝐹𝑢 ∧ 𝑥𝐹𝑣) → 𝑢 = 𝑣))
2524alrimivv 1961 . 2 (𝜑 → ∀𝑥∀𝑢∀𝑣((𝑥𝐹𝑢 ∧ 𝑥𝐹𝑣) → 𝑢 = 𝑣))
263, 4frrlem6 8309 . . 3 Rel 𝐹
27 dffun2 6548 . . 3 (Fun 𝐹 ↔ (Rel 𝐹 ∧ ∀𝑥∀𝑢∀𝑣((𝑥𝐹𝑢 ∧ 𝑥𝐹𝑣) → 𝑢 = 𝑣)))
2826, 27mpbiran 722 . 2 (Fun 𝐹 ↔ ∀𝑥∀𝑢∀𝑣((𝑥𝐹𝑢 ∧ 𝑥𝐹𝑣) → 𝑢 = 𝑣))
2925, 28sylibr 237 1 (𝜑 → Fun 𝐹)
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   → wi 4   ∧ wa 401   ∧ w3a 1103  ∀wal 1568   = wceq 1570  ∃wex 1812   ∈ wcel 2145  {cab 2739  ∀wral 3077  ∃wrex 3087   ⊆ wss 3899  ⟨cop 4590  ∪ cuni 4867   class class class wbr 5103   ↾ cres 5653  Rel wrel 5656  Predcpred 6303  Fun wfun 6532   Fn wfn 6533  ‘cfv 6538  (class class class)co 7420  frecscfrecs 8298
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1828  ax-4 1842  ax-5 1943  ax-6 2000  ax-7 2041  ax-8 2147  ax-9 2155  ax-11 2194  ax-12 2213  ax-ext 2733  ax-sep 5249  ax-pr 5391
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3an 1105  df-tru 1573  df-fal 1583  df-ex 1813  df-sb 2100  df-clab 2740  df-cleq 2753  df-clel 2836  df-ral 3078  df-rex 3088  df-rab 3414  df-v 3453  df-dif 3902  df-un 3904  df-in 3906  df-ss 3916  df-nul 4280  df-if 4483  df-sn 4585  df-pr 4587  df-op 4591  df-uni 4868  df-iun 4953  df-br 5104  df-opab 5168  df-id 5546  df-xp 5657  df-rel 5658  df-cnv 5659  df-co 5660  df-dm 5661  df-rn 5662  df-res 5663  df-ima 5664  df-pred 6304  df-iota 6494  df-fun 6540  df-fn 6541  df-fv 6546  df-ov 7423  df-frecs 8299
This theorem is used by:  frrlem10  8313  frrlem11  8314  frrlem12  8315  frrlem13  8316  fpr1  8321  fprfung  8327  frr1  9763
  Copyright terms: Public domain W3C validator