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

Theorem frminex 5629
Description: If an element of a well-founded set satisfies a property 𝜑, then there is a minimal element that satisfies 𝜑. (Contributed by Jeff Madsen, 18-Jun-2010.) (Proof shortened by Mario Carneiro, 18-Nov-2016.)
Hypotheses
Ref Expression
frminex.1 𝐴 ∈ V
frminex.2 (𝑥 = 𝑦 → (𝜑 ↔ 𝜓))
Assertion
Ref Expression
frminex (𝑅 Fr 𝐴 → (∃𝑥 ∈ 𝐴 𝜑 → ∃𝑥 ∈ 𝐴 (𝜑 ∧ ∀𝑦 ∈ 𝐴 (𝜓 → ¬ 𝑦𝑅𝑥))))
Distinct variable groups:   𝑥,𝐴,𝑦   𝑥,𝑅,𝑦   𝜑,𝑦   𝜓,𝑥
Allowed substitution hints:   𝜑(𝑥)   𝜓(𝑦)

Proof of Theorem frminex
Dummy variable 𝑧 is distinct from all other variables.
StepHypRef Expression
1 rabn0 4338 . 2 ({𝑥 ∈ 𝐴 ∣ 𝜑} ≠ ∅ ↔ ∃𝑥 ∈ 𝐴 𝜑)
2 frminex.1 . . . . 5 𝐴 ∈ V
32rabex 5299 . . . 4 {𝑥 ∈ 𝐴 ∣ 𝜑} ∈ V
4 ssrab2 4005 . . . 4 {𝑥 ∈ 𝐴 ∣ 𝜑} ⊆ 𝐴
5 fri 5608 . . . . . 6 ((({𝑥 ∈ 𝐴 ∣ 𝜑} ∈ V ∧ 𝑅 Fr 𝐴) ∧ ({𝑥 ∈ 𝐴 ∣ 𝜑} ⊆ 𝐴 ∧ {𝑥 ∈ 𝐴 ∣ 𝜑} ≠ ∅)) → ∃𝑧 ∈ {𝑥 ∈ 𝐴 ∣ 𝜑}∀𝑦 ∈ {𝑥 ∈ 𝐴 ∣ 𝜑} ¬ 𝑦𝑅𝑧)
6 frminex.2 . . . . . . . . 9 (𝑥 = 𝑦 → (𝜑 ↔ 𝜓))
76ralrab 3651 . . . . . . . 8 (∀𝑦 ∈ {𝑥 ∈ 𝐴 ∣ 𝜑} ¬ 𝑦𝑅𝑧 ↔ ∀𝑦 ∈ 𝐴 (𝜓 → ¬ 𝑦𝑅𝑧))
87rexbii 3109 . . . . . . 7 (∃𝑧 ∈ {𝑥 ∈ 𝐴 ∣ 𝜑}∀𝑦 ∈ {𝑥 ∈ 𝐴 ∣ 𝜑} ¬ 𝑦𝑅𝑧 ↔ ∃𝑧 ∈ {𝑥 ∈ 𝐴 ∣ 𝜑}∀𝑦 ∈ 𝐴 (𝜓 → ¬ 𝑦𝑅𝑧))
9 breq2 5106 . . . . . . . . . . 11 (𝑧 = 𝑥 → (𝑦𝑅𝑧 ↔ 𝑦𝑅𝑥))
109notbid 321 . . . . . . . . . 10 (𝑧 = 𝑥 → (¬ 𝑦𝑅𝑧 ↔ ¬ 𝑦𝑅𝑥))
1110imbi2d 343 . . . . . . . . 9 (𝑧 = 𝑥 → ((𝜓 → ¬ 𝑦𝑅𝑧) ↔ (𝜓 → ¬ 𝑦𝑅𝑥)))
1211ralbidv 3185 . . . . . . . 8 (𝑧 = 𝑥 → (∀𝑦 ∈ 𝐴 (𝜓 → ¬ 𝑦𝑅𝑧) ↔ ∀𝑦 ∈ 𝐴 (𝜓 → ¬ 𝑦𝑅𝑥)))
1312rexrab2 3657 . . . . . . 7 (∃𝑧 ∈ {𝑥 ∈ 𝐴 ∣ 𝜑}∀𝑦 ∈ 𝐴 (𝜓 → ¬ 𝑦𝑅𝑧) ↔ ∃𝑥 ∈ 𝐴 (𝜑 ∧ ∀𝑦 ∈ 𝐴 (𝜓 → ¬ 𝑦𝑅𝑥)))
148, 13bitri 278 . . . . . 6 (∃𝑧 ∈ {𝑥 ∈ 𝐴 ∣ 𝜑}∀𝑦 ∈ {𝑥 ∈ 𝐴 ∣ 𝜑} ¬ 𝑦𝑅𝑧 ↔ ∃𝑥 ∈ 𝐴 (𝜑 ∧ ∀𝑦 ∈ 𝐴 (𝜓 → ¬ 𝑦𝑅𝑥)))
155, 14sylib 221 . . . . 5 ((({𝑥 ∈ 𝐴 ∣ 𝜑} ∈ V ∧ 𝑅 Fr 𝐴) ∧ ({𝑥 ∈ 𝐴 ∣ 𝜑} ⊆ 𝐴 ∧ {𝑥 ∈ 𝐴 ∣ 𝜑} ≠ ∅)) → ∃𝑥 ∈ 𝐴 (𝜑 ∧ ∀𝑦 ∈ 𝐴 (𝜓 → ¬ 𝑦𝑅𝑥)))
1615an4s 673 . . . 4 ((({𝑥 ∈ 𝐴 ∣ 𝜑} ∈ V ∧ {𝑥 ∈ 𝐴 ∣ 𝜑} ⊆ 𝐴) ∧ (𝑅 Fr 𝐴 ∧ {𝑥 ∈ 𝐴 ∣ 𝜑} ≠ ∅)) → ∃𝑥 ∈ 𝐴 (𝜑 ∧ ∀𝑦 ∈ 𝐴 (𝜓 → ¬ 𝑦𝑅𝑥)))
173, 4, 16mpanl12 715 . . 3 ((𝑅 Fr 𝐴 ∧ {𝑥 ∈ 𝐴 ∣ 𝜑} ≠ ∅) → ∃𝑥 ∈ 𝐴 (𝜑 ∧ ∀𝑦 ∈ 𝐴 (𝜓 → ¬ 𝑦𝑅𝑥)))
1817ex 418 . 2 (𝑅 Fr 𝐴 → ({𝑥 ∈ 𝐴 ∣ 𝜑} ≠ ∅ → ∃𝑥 ∈ 𝐴 (𝜑 ∧ ∀𝑦 ∈ 𝐴 (𝜓 → ¬ 𝑦𝑅𝑥))))
191, 18biimtrrid 246 1 (𝑅 Fr 𝐴 → (∃𝑥 ∈ 𝐴 𝜑 → ∃𝑥 ∈ 𝐴 (𝜑 ∧ ∀𝑦 ∈ 𝐴 (𝜓 → ¬ 𝑦𝑅𝑥))))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:  ¬ wn 3   → wi 4   ↔ wb 209   ∧ wa 401   ∈ wcel 2144   ≠ wne 2955  ∀wral 3076  ∃wrex 3086  {crab 3412  Vcvv 3450   ⊆ wss 3895  ∅c0 4278   class class class wbr 5102   Fr wfr 5600
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1827  ax-4 1841  ax-5 1942  ax-6 1999  ax-7 2040  ax-8 2146  ax-9 2154  ax-10 2177  ax-11 2193  ax-12 2212  ax-ext 2732  ax-sep 5248
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3an 1105  df-tru 1572  df-fal 1582  df-ex 1812  df-nf 1816  df-sb 2099  df-clab 2739  df-cleq 2752  df-clel 2835  df-ne 2956  df-ral 3077  df-rex 3087  df-rab 3413  df-v 3452  df-ss 3896  df-dif 4047  df-in 4091  df-un 4151  df-nul 4279  df-if 4482  df-pw 4558  df-sn 4584  df-pr 4586  df-op 4590  df-br 5103  df-fr 5603
This theorem is used by: (None)
  Copyright terms: Public domain W3C validator