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

Theorem frminex 5499
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 4271 . 2 ({𝑥𝐴𝜑} ≠ ∅ ↔ ∃𝑥𝐴 𝜑)
2 frminex.1 . . . . 5 𝐴 ∈ V
32rabex 5197 . . . 4 {𝑥𝐴𝜑} ∈ V
4 ssrab2 3967 . . . 4 {𝑥𝐴𝜑} ⊆ 𝐴
5 fri 5481 . . . . . 6 ((({𝑥𝐴𝜑} ∈ V ∧ 𝑅 Fr 𝐴) ∧ ({𝑥𝐴𝜑} ⊆ 𝐴 ∧ {𝑥𝐴𝜑} ≠ ∅)) → ∃𝑧 ∈ {𝑥𝐴𝜑}∀𝑦 ∈ {𝑥𝐴𝜑} ¬ 𝑦𝑅𝑧)
6 frminex.2 . . . . . . . . 9 (𝑥 = 𝑦 → (𝜑𝜓))
76ralrab 3591 . . . . . . . 8 (∀𝑦 ∈ {𝑥𝐴𝜑} ¬ 𝑦𝑅𝑧 ↔ ∀𝑦𝐴 (𝜓 → ¬ 𝑦𝑅𝑧))
87rexbii 3160 . . . . . . 7 (∃𝑧 ∈ {𝑥𝐴𝜑}∀𝑦 ∈ {𝑥𝐴𝜑} ¬ 𝑦𝑅𝑧 ↔ ∃𝑧 ∈ {𝑥𝐴𝜑}∀𝑦𝐴 (𝜓 → ¬ 𝑦𝑅𝑧))
9 breq2 5031 . . . . . . . . . . 11 (𝑧 = 𝑥 → (𝑦𝑅𝑧𝑦𝑅𝑥))
109notbid 321 . . . . . . . . . 10 (𝑧 = 𝑥 → (¬ 𝑦𝑅𝑧 ↔ ¬ 𝑦𝑅𝑥))
1110imbi2d 344 . . . . . . . . 9 (𝑧 = 𝑥 → ((𝜓 → ¬ 𝑦𝑅𝑧) ↔ (𝜓 → ¬ 𝑦𝑅𝑥)))
1211ralbidv 3109 . . . . . . . 8 (𝑧 = 𝑥 → (∀𝑦𝐴 (𝜓 → ¬ 𝑦𝑅𝑧) ↔ ∀𝑦𝐴 (𝜓 → ¬ 𝑦𝑅𝑥)))
1312rexrab2 3599 . . . . . . 7 (∃𝑧 ∈ {𝑥𝐴𝜑}∀𝑦𝐴 (𝜓 → ¬ 𝑦𝑅𝑧) ↔ ∃𝑥𝐴 (𝜑 ∧ ∀𝑦𝐴 (𝜓 → ¬ 𝑦𝑅𝑥)))
148, 13bitri 278 . . . . . 6 (∃𝑧 ∈ {𝑥𝐴𝜑}∀𝑦 ∈ {𝑥𝐴𝜑} ¬ 𝑦𝑅𝑧 ↔ ∃𝑥𝐴 (𝜑 ∧ ∀𝑦𝐴 (𝜓 → ¬ 𝑦𝑅𝑥)))
155, 14sylib 221 . . . . 5 ((({𝑥𝐴𝜑} ∈ V ∧ 𝑅 Fr 𝐴) ∧ ({𝑥𝐴𝜑} ⊆ 𝐴 ∧ {𝑥𝐴𝜑} ≠ ∅)) → ∃𝑥𝐴 (𝜑 ∧ ∀𝑦𝐴 (𝜓 → ¬ 𝑦𝑅𝑥)))
1615an4s 660 . . . 4 ((({𝑥𝐴𝜑} ∈ V ∧ {𝑥𝐴𝜑} ⊆ 𝐴) ∧ (𝑅 Fr 𝐴 ∧ {𝑥𝐴𝜑} ≠ ∅)) → ∃𝑥𝐴 (𝜑 ∧ ∀𝑦𝐴 (𝜓 → ¬ 𝑦𝑅𝑥)))
173, 4, 16mpanl12 702 . . 3 ((𝑅 Fr 𝐴 ∧ {𝑥𝐴𝜑} ≠ ∅) → ∃𝑥𝐴 (𝜑 ∧ ∀𝑦𝐴 (𝜓 → ¬ 𝑦𝑅𝑥)))
1817ex 416 . 2 (𝑅 Fr 𝐴 → ({𝑥𝐴𝜑} ≠ ∅ → ∃𝑥𝐴 (𝜑 ∧ ∀𝑦𝐴 (𝜓 → ¬ 𝑦𝑅𝑥))))
191, 18syl5bir 246 1 (𝑅 Fr 𝐴 → (∃𝑥𝐴 𝜑 → ∃𝑥𝐴 (𝜑 ∧ ∀𝑦𝐴 (𝜓 → ¬ 𝑦𝑅𝑥))))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 209  wa 399  wcel 2113  wne 2934  wral 3053  wrex 3054  {crab 3057  Vcvv 3397  wss 3841  c0 4209   class class class wbr 5027   Fr wfr 5475
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1802  ax-4 1816  ax-5 1916  ax-6 1974  ax-7 2019  ax-8 2115  ax-9 2123  ax-10 2144  ax-11 2161  ax-12 2178  ax-ext 2710  ax-sep 5164
This theorem depends on definitions:  df-bi 210  df-an 400  df-or 847  df-3an 1090  df-tru 1545  df-fal 1555  df-ex 1787  df-nf 1791  df-sb 2074  df-clab 2717  df-cleq 2730  df-clel 2811  df-nfc 2881  df-ne 2935  df-ral 3058  df-rex 3059  df-rab 3062  df-v 3399  df-dif 3844  df-un 3846  df-in 3848  df-ss 3858  df-nul 4210  df-sn 4514  df-pr 4516  df-op 4520  df-br 5028  df-fr 5478
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator