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

Theorem frminex 5569
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 4319 . 2 ({𝑥𝐴𝜑} ≠ ∅ ↔ ∃𝑥𝐴 𝜑)
2 frminex.1 . . . . 5 𝐴 ∈ V
32rabex 5256 . . . 4 {𝑥𝐴𝜑} ∈ V
4 ssrab2 4013 . . . 4 {𝑥𝐴𝜑} ⊆ 𝐴
5 fri 5549 . . . . . 6 ((({𝑥𝐴𝜑} ∈ V ∧ 𝑅 Fr 𝐴) ∧ ({𝑥𝐴𝜑} ⊆ 𝐴 ∧ {𝑥𝐴𝜑} ≠ ∅)) → ∃𝑧 ∈ {𝑥𝐴𝜑}∀𝑦 ∈ {𝑥𝐴𝜑} ¬ 𝑦𝑅𝑧)
6 frminex.2 . . . . . . . . 9 (𝑥 = 𝑦 → (𝜑𝜓))
76ralrab 3630 . . . . . . . 8 (∀𝑦 ∈ {𝑥𝐴𝜑} ¬ 𝑦𝑅𝑧 ↔ ∀𝑦𝐴 (𝜓 → ¬ 𝑦𝑅𝑧))
87rexbii 3181 . . . . . . 7 (∃𝑧 ∈ {𝑥𝐴𝜑}∀𝑦 ∈ {𝑥𝐴𝜑} ¬ 𝑦𝑅𝑧 ↔ ∃𝑧 ∈ {𝑥𝐴𝜑}∀𝑦𝐴 (𝜓 → ¬ 𝑦𝑅𝑧))
9 breq2 5078 . . . . . . . . . . 11 (𝑧 = 𝑥 → (𝑦𝑅𝑧𝑦𝑅𝑥))
109notbid 318 . . . . . . . . . 10 (𝑧 = 𝑥 → (¬ 𝑦𝑅𝑧 ↔ ¬ 𝑦𝑅𝑥))
1110imbi2d 341 . . . . . . . . 9 (𝑧 = 𝑥 → ((𝜓 → ¬ 𝑦𝑅𝑧) ↔ (𝜓 → ¬ 𝑦𝑅𝑥)))
1211ralbidv 3112 . . . . . . . 8 (𝑧 = 𝑥 → (∀𝑦𝐴 (𝜓 → ¬ 𝑦𝑅𝑧) ↔ ∀𝑦𝐴 (𝜓 → ¬ 𝑦𝑅𝑥)))
1312rexrab2 3637 . . . . . . 7 (∃𝑧 ∈ {𝑥𝐴𝜑}∀𝑦𝐴 (𝜓 → ¬ 𝑦𝑅𝑧) ↔ ∃𝑥𝐴 (𝜑 ∧ ∀𝑦𝐴 (𝜓 → ¬ 𝑦𝑅𝑥)))
148, 13bitri 274 . . . . . 6 (∃𝑧 ∈ {𝑥𝐴𝜑}∀𝑦 ∈ {𝑥𝐴𝜑} ¬ 𝑦𝑅𝑧 ↔ ∃𝑥𝐴 (𝜑 ∧ ∀𝑦𝐴 (𝜓 → ¬ 𝑦𝑅𝑥)))
155, 14sylib 217 . . . . 5 ((({𝑥𝐴𝜑} ∈ V ∧ 𝑅 Fr 𝐴) ∧ ({𝑥𝐴𝜑} ⊆ 𝐴 ∧ {𝑥𝐴𝜑} ≠ ∅)) → ∃𝑥𝐴 (𝜑 ∧ ∀𝑦𝐴 (𝜓 → ¬ 𝑦𝑅𝑥)))
1615an4s 657 . . . 4 ((({𝑥𝐴𝜑} ∈ V ∧ {𝑥𝐴𝜑} ⊆ 𝐴) ∧ (𝑅 Fr 𝐴 ∧ {𝑥𝐴𝜑} ≠ ∅)) → ∃𝑥𝐴 (𝜑 ∧ ∀𝑦𝐴 (𝜓 → ¬ 𝑦𝑅𝑥)))
173, 4, 16mpanl12 699 . . 3 ((𝑅 Fr 𝐴 ∧ {𝑥𝐴𝜑} ≠ ∅) → ∃𝑥𝐴 (𝜑 ∧ ∀𝑦𝐴 (𝜓 → ¬ 𝑦𝑅𝑥)))
1817ex 413 . 2 (𝑅 Fr 𝐴 → ({𝑥𝐴𝜑} ≠ ∅ → ∃𝑥𝐴 (𝜑 ∧ ∀𝑦𝐴 (𝜓 → ¬ 𝑦𝑅𝑥))))
191, 18syl5bir 242 1 (𝑅 Fr 𝐴 → (∃𝑥𝐴 𝜑 → ∃𝑥𝐴 (𝜑 ∧ ∀𝑦𝐴 (𝜓 → ¬ 𝑦𝑅𝑥))))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 205  wa 396  wcel 2106  wne 2943  wral 3064  wrex 3065  {crab 3068  Vcvv 3432  wss 3887  c0 4256   class class class wbr 5074   Fr wfr 5541
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1798  ax-4 1812  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 2709  ax-sep 5223
This theorem depends on definitions:  df-bi 206  df-an 397  df-or 845  df-3an 1088  df-tru 1542  df-fal 1552  df-ex 1783  df-nf 1787  df-sb 2068  df-clab 2716  df-cleq 2730  df-clel 2816  df-ne 2944  df-ral 3069  df-rex 3070  df-rab 3073  df-v 3434  df-dif 3890  df-un 3892  df-in 3894  df-ss 3904  df-nul 4257  df-if 4460  df-pw 4535  df-sn 4562  df-pr 4564  df-op 4568  df-br 5075  df-fr 5544
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator