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

Theorem mreexmrid 16126
 Description: In a Moore system whose closure operator has the exchange property, if a set is independent and an element is not in its closure, then adding the element to the set gives another independent set. Lemma 4.1.5 in [FaureFrolicher] p. 84. (Contributed by David Moews, 1-May-2017.)
Hypotheses
Ref Expression
mreexmrid.1 (𝜑𝐴 ∈ (Moore‘𝑋))
mreexmrid.2 𝑁 = (mrCls‘𝐴)
mreexmrid.3 𝐼 = (mrInd‘𝐴)
mreexmrid.4 (𝜑 → ∀𝑠 ∈ 𝒫 𝑋𝑦𝑋𝑧 ∈ ((𝑁‘(𝑠 ∪ {𝑦})) ∖ (𝑁𝑠))𝑦 ∈ (𝑁‘(𝑠 ∪ {𝑧})))
mreexmrid.5 (𝜑𝑆𝐼)
mreexmrid.6 (𝜑𝑌𝑋)
mreexmrid.7 (𝜑 → ¬ 𝑌 ∈ (𝑁𝑆))
Assertion
Ref Expression
mreexmrid (𝜑 → (𝑆 ∪ {𝑌}) ∈ 𝐼)
Distinct variable groups:   𝑋,𝑠,𝑦   𝑆,𝑠,𝑧,𝑦   𝜑,𝑠,𝑦,𝑧   𝑌,𝑠,𝑦,𝑧   𝑁,𝑠,𝑦,𝑧
Allowed substitution hints:   𝐴(𝑦,𝑧,𝑠)   𝐼(𝑦,𝑧,𝑠)   𝑋(𝑧)

Proof of Theorem mreexmrid
Dummy variable 𝑥 is distinct from all other variables.
StepHypRef Expression
1 mreexmrid.2 . 2 𝑁 = (mrCls‘𝐴)
2 mreexmrid.3 . 2 𝐼 = (mrInd‘𝐴)
3 mreexmrid.1 . 2 (𝜑𝐴 ∈ (Moore‘𝑋))
4 mreexmrid.5 . . . 4 (𝜑𝑆𝐼)
52, 3, 4mrissd 16119 . . 3 (𝜑𝑆𝑋)
6 mreexmrid.6 . . . 4 (𝜑𝑌𝑋)
76snssd 4281 . . 3 (𝜑 → {𝑌} ⊆ 𝑋)
85, 7unssd 3751 . 2 (𝜑 → (𝑆 ∪ {𝑌}) ⊆ 𝑋)
933ad2ant1 1075 . . . . . . . . . 10 ((𝜑𝑥𝑆𝑥 ∈ (𝑁‘((𝑆 ∪ {𝑌}) ∖ {𝑥}))) → 𝐴 ∈ (Moore‘𝑋))
109elfvexd 6132 . . . . . . . . 9 ((𝜑𝑥𝑆𝑥 ∈ (𝑁‘((𝑆 ∪ {𝑌}) ∖ {𝑥}))) → 𝑋 ∈ V)
11 mreexmrid.4 . . . . . . . . . 10 (𝜑 → ∀𝑠 ∈ 𝒫 𝑋𝑦𝑋𝑧 ∈ ((𝑁‘(𝑠 ∪ {𝑦})) ∖ (𝑁𝑠))𝑦 ∈ (𝑁‘(𝑠 ∪ {𝑧})))
12113ad2ant1 1075 . . . . . . . . 9 ((𝜑𝑥𝑆𝑥 ∈ (𝑁‘((𝑆 ∪ {𝑌}) ∖ {𝑥}))) → ∀𝑠 ∈ 𝒫 𝑋𝑦𝑋𝑧 ∈ ((𝑁‘(𝑠 ∪ {𝑦})) ∖ (𝑁𝑠))𝑦 ∈ (𝑁‘(𝑠 ∪ {𝑧})))
1343ad2ant1 1075 . . . . . . . . . . 11 ((𝜑𝑥𝑆𝑥 ∈ (𝑁‘((𝑆 ∪ {𝑌}) ∖ {𝑥}))) → 𝑆𝐼)
142, 9, 13mrissd 16119 . . . . . . . . . 10 ((𝜑𝑥𝑆𝑥 ∈ (𝑁‘((𝑆 ∪ {𝑌}) ∖ {𝑥}))) → 𝑆𝑋)
1514ssdifssd 3710 . . . . . . . . 9 ((𝜑𝑥𝑆𝑥 ∈ (𝑁‘((𝑆 ∪ {𝑌}) ∖ {𝑥}))) → (𝑆 ∖ {𝑥}) ⊆ 𝑋)
1663ad2ant1 1075 . . . . . . . . 9 ((𝜑𝑥𝑆𝑥 ∈ (𝑁‘((𝑆 ∪ {𝑌}) ∖ {𝑥}))) → 𝑌𝑋)
17 simp3 1056 . . . . . . . . . 10 ((𝜑𝑥𝑆𝑥 ∈ (𝑁‘((𝑆 ∪ {𝑌}) ∖ {𝑥}))) → 𝑥 ∈ (𝑁‘((𝑆 ∪ {𝑌}) ∖ {𝑥})))
18 difundir 3839 . . . . . . . . . . . 12 ((𝑆 ∪ {𝑌}) ∖ {𝑥}) = ((𝑆 ∖ {𝑥}) ∪ ({𝑌} ∖ {𝑥}))
19 simp2 1055 . . . . . . . . . . . . . . . 16 ((𝜑𝑥𝑆𝑥 ∈ (𝑁‘((𝑆 ∪ {𝑌}) ∖ {𝑥}))) → 𝑥𝑆)
203, 1, 5mrcssidd 16108 . . . . . . . . . . . . . . . . . 18 (𝜑𝑆 ⊆ (𝑁𝑆))
21 mreexmrid.7 . . . . . . . . . . . . . . . . . 18 (𝜑 → ¬ 𝑌 ∈ (𝑁𝑆))
2220, 21ssneldd 3571 . . . . . . . . . . . . . . . . 17 (𝜑 → ¬ 𝑌𝑆)
23223ad2ant1 1075 . . . . . . . . . . . . . . . 16 ((𝜑𝑥𝑆𝑥 ∈ (𝑁‘((𝑆 ∪ {𝑌}) ∖ {𝑥}))) → ¬ 𝑌𝑆)
24 nelneq 2712 . . . . . . . . . . . . . . . 16 ((𝑥𝑆 ∧ ¬ 𝑌𝑆) → ¬ 𝑥 = 𝑌)
2519, 23, 24syl2anc 691 . . . . . . . . . . . . . . 15 ((𝜑𝑥𝑆𝑥 ∈ (𝑁‘((𝑆 ∪ {𝑌}) ∖ {𝑥}))) → ¬ 𝑥 = 𝑌)
26 elsni 4142 . . . . . . . . . . . . . . 15 (𝑥 ∈ {𝑌} → 𝑥 = 𝑌)
2725, 26nsyl 134 . . . . . . . . . . . . . 14 ((𝜑𝑥𝑆𝑥 ∈ (𝑁‘((𝑆 ∪ {𝑌}) ∖ {𝑥}))) → ¬ 𝑥 ∈ {𝑌})
28 difsnb 4278 . . . . . . . . . . . . . 14 𝑥 ∈ {𝑌} ↔ ({𝑌} ∖ {𝑥}) = {𝑌})
2927, 28sylib 207 . . . . . . . . . . . . 13 ((𝜑𝑥𝑆𝑥 ∈ (𝑁‘((𝑆 ∪ {𝑌}) ∖ {𝑥}))) → ({𝑌} ∖ {𝑥}) = {𝑌})
3029uneq2d 3729 . . . . . . . . . . . 12 ((𝜑𝑥𝑆𝑥 ∈ (𝑁‘((𝑆 ∪ {𝑌}) ∖ {𝑥}))) → ((𝑆 ∖ {𝑥}) ∪ ({𝑌} ∖ {𝑥})) = ((𝑆 ∖ {𝑥}) ∪ {𝑌}))
3118, 30syl5eq 2656 . . . . . . . . . . 11 ((𝜑𝑥𝑆𝑥 ∈ (𝑁‘((𝑆 ∪ {𝑌}) ∖ {𝑥}))) → ((𝑆 ∪ {𝑌}) ∖ {𝑥}) = ((𝑆 ∖ {𝑥}) ∪ {𝑌}))
3231fveq2d 6107 . . . . . . . . . 10 ((𝜑𝑥𝑆𝑥 ∈ (𝑁‘((𝑆 ∪ {𝑌}) ∖ {𝑥}))) → (𝑁‘((𝑆 ∪ {𝑌}) ∖ {𝑥})) = (𝑁‘((𝑆 ∖ {𝑥}) ∪ {𝑌})))
3317, 32eleqtrd 2690 . . . . . . . . 9 ((𝜑𝑥𝑆𝑥 ∈ (𝑁‘((𝑆 ∪ {𝑌}) ∖ {𝑥}))) → 𝑥 ∈ (𝑁‘((𝑆 ∖ {𝑥}) ∪ {𝑌})))
341, 2, 9, 13, 19ismri2dad 16120 . . . . . . . . 9 ((𝜑𝑥𝑆𝑥 ∈ (𝑁‘((𝑆 ∪ {𝑌}) ∖ {𝑥}))) → ¬ 𝑥 ∈ (𝑁‘(𝑆 ∖ {𝑥})))
3510, 12, 15, 16, 33, 34mreexd 16125 . . . . . . . 8 ((𝜑𝑥𝑆𝑥 ∈ (𝑁‘((𝑆 ∪ {𝑌}) ∖ {𝑥}))) → 𝑌 ∈ (𝑁‘((𝑆 ∖ {𝑥}) ∪ {𝑥})))
36213ad2ant1 1075 . . . . . . . . 9 ((𝜑𝑥𝑆𝑥 ∈ (𝑁‘((𝑆 ∪ {𝑌}) ∖ {𝑥}))) → ¬ 𝑌 ∈ (𝑁𝑆))
37 undif1 3995 . . . . . . . . . . 11 ((𝑆 ∖ {𝑥}) ∪ {𝑥}) = (𝑆 ∪ {𝑥})
3819snssd 4281 . . . . . . . . . . . 12 ((𝜑𝑥𝑆𝑥 ∈ (𝑁‘((𝑆 ∪ {𝑌}) ∖ {𝑥}))) → {𝑥} ⊆ 𝑆)
39 ssequn2 3748 . . . . . . . . . . . 12 ({𝑥} ⊆ 𝑆 ↔ (𝑆 ∪ {𝑥}) = 𝑆)
4038, 39sylib 207 . . . . . . . . . . 11 ((𝜑𝑥𝑆𝑥 ∈ (𝑁‘((𝑆 ∪ {𝑌}) ∖ {𝑥}))) → (𝑆 ∪ {𝑥}) = 𝑆)
4137, 40syl5eq 2656 . . . . . . . . . 10 ((𝜑𝑥𝑆𝑥 ∈ (𝑁‘((𝑆 ∪ {𝑌}) ∖ {𝑥}))) → ((𝑆 ∖ {𝑥}) ∪ {𝑥}) = 𝑆)
4241fveq2d 6107 . . . . . . . . 9 ((𝜑𝑥𝑆𝑥 ∈ (𝑁‘((𝑆 ∪ {𝑌}) ∖ {𝑥}))) → (𝑁‘((𝑆 ∖ {𝑥}) ∪ {𝑥})) = (𝑁𝑆))
4336, 42neleqtrrd 2710 . . . . . . . 8 ((𝜑𝑥𝑆𝑥 ∈ (𝑁‘((𝑆 ∪ {𝑌}) ∖ {𝑥}))) → ¬ 𝑌 ∈ (𝑁‘((𝑆 ∖ {𝑥}) ∪ {𝑥})))
4435, 43pm2.65i 184 . . . . . . 7 ¬ (𝜑𝑥𝑆𝑥 ∈ (𝑁‘((𝑆 ∪ {𝑌}) ∖ {𝑥})))
45 df-3an 1033 . . . . . . 7 ((𝜑𝑥𝑆𝑥 ∈ (𝑁‘((𝑆 ∪ {𝑌}) ∖ {𝑥}))) ↔ ((𝜑𝑥𝑆) ∧ 𝑥 ∈ (𝑁‘((𝑆 ∪ {𝑌}) ∖ {𝑥}))))
4644, 45mtbi 311 . . . . . 6 ¬ ((𝜑𝑥𝑆) ∧ 𝑥 ∈ (𝑁‘((𝑆 ∪ {𝑌}) ∖ {𝑥})))
4746imnani 438 . . . . 5 ((𝜑𝑥𝑆) → ¬ 𝑥 ∈ (𝑁‘((𝑆 ∪ {𝑌}) ∖ {𝑥})))
4847adantlr 747 . . . 4 (((𝜑𝑥 ∈ (𝑆 ∪ {𝑌})) ∧ 𝑥𝑆) → ¬ 𝑥 ∈ (𝑁‘((𝑆 ∪ {𝑌}) ∖ {𝑥})))
4926adantl 481 . . . . . 6 (((𝜑𝑥 ∈ (𝑆 ∪ {𝑌})) ∧ 𝑥 ∈ {𝑌}) → 𝑥 = 𝑌)
5021ad2antrr 758 . . . . . 6 (((𝜑𝑥 ∈ (𝑆 ∪ {𝑌})) ∧ 𝑥 ∈ {𝑌}) → ¬ 𝑌 ∈ (𝑁𝑆))
5149, 50eqneltrd 2707 . . . . 5 (((𝜑𝑥 ∈ (𝑆 ∪ {𝑌})) ∧ 𝑥 ∈ {𝑌}) → ¬ 𝑥 ∈ (𝑁𝑆))
5249sneqd 4137 . . . . . . . . 9 (((𝜑𝑥 ∈ (𝑆 ∪ {𝑌})) ∧ 𝑥 ∈ {𝑌}) → {𝑥} = {𝑌})
5352difeq2d 3690 . . . . . . . 8 (((𝜑𝑥 ∈ (𝑆 ∪ {𝑌})) ∧ 𝑥 ∈ {𝑌}) → ((𝑆 ∪ {𝑌}) ∖ {𝑥}) = ((𝑆 ∪ {𝑌}) ∖ {𝑌}))
54 difun2 4000 . . . . . . . 8 ((𝑆 ∪ {𝑌}) ∖ {𝑌}) = (𝑆 ∖ {𝑌})
5553, 54syl6eq 2660 . . . . . . 7 (((𝜑𝑥 ∈ (𝑆 ∪ {𝑌})) ∧ 𝑥 ∈ {𝑌}) → ((𝑆 ∪ {𝑌}) ∖ {𝑥}) = (𝑆 ∖ {𝑌}))
56 difsnb 4278 . . . . . . . . 9 𝑌𝑆 ↔ (𝑆 ∖ {𝑌}) = 𝑆)
5722, 56sylib 207 . . . . . . . 8 (𝜑 → (𝑆 ∖ {𝑌}) = 𝑆)
5857ad2antrr 758 . . . . . . 7 (((𝜑𝑥 ∈ (𝑆 ∪ {𝑌})) ∧ 𝑥 ∈ {𝑌}) → (𝑆 ∖ {𝑌}) = 𝑆)
5955, 58eqtrd 2644 . . . . . 6 (((𝜑𝑥 ∈ (𝑆 ∪ {𝑌})) ∧ 𝑥 ∈ {𝑌}) → ((𝑆 ∪ {𝑌}) ∖ {𝑥}) = 𝑆)
6059fveq2d 6107 . . . . 5 (((𝜑𝑥 ∈ (𝑆 ∪ {𝑌})) ∧ 𝑥 ∈ {𝑌}) → (𝑁‘((𝑆 ∪ {𝑌}) ∖ {𝑥})) = (𝑁𝑆))
6151, 60neleqtrrd 2710 . . . 4 (((𝜑𝑥 ∈ (𝑆 ∪ {𝑌})) ∧ 𝑥 ∈ {𝑌}) → ¬ 𝑥 ∈ (𝑁‘((𝑆 ∪ {𝑌}) ∖ {𝑥})))
62 simpr 476 . . . . 5 ((𝜑𝑥 ∈ (𝑆 ∪ {𝑌})) → 𝑥 ∈ (𝑆 ∪ {𝑌}))
63 elun 3715 . . . . 5 (𝑥 ∈ (𝑆 ∪ {𝑌}) ↔ (𝑥𝑆𝑥 ∈ {𝑌}))
6462, 63sylib 207 . . . 4 ((𝜑𝑥 ∈ (𝑆 ∪ {𝑌})) → (𝑥𝑆𝑥 ∈ {𝑌}))
6548, 61, 64mpjaodan 823 . . 3 ((𝜑𝑥 ∈ (𝑆 ∪ {𝑌})) → ¬ 𝑥 ∈ (𝑁‘((𝑆 ∪ {𝑌}) ∖ {𝑥})))
6665ralrimiva 2949 . 2 (𝜑 → ∀𝑥 ∈ (𝑆 ∪ {𝑌}) ¬ 𝑥 ∈ (𝑁‘((𝑆 ∪ {𝑌}) ∖ {𝑥})))
671, 2, 3, 8, 66ismri2dd 16117 1 (𝜑 → (𝑆 ∪ {𝑌}) ∈ 𝐼)
 Colors of variables: wff setvar class Syntax hints:  ¬ wn 3   → wi 4   ∨ wo 382   ∧ wa 383   ∧ w3a 1031   = wceq 1475   ∈ wcel 1977  ∀wral 2896  Vcvv 3173   ∖ cdif 3537   ∪ cun 3538   ⊆ wss 3540  𝒫 cpw 4108  {csn 4125  ‘cfv 5804  Moorecmre 16065  mrClscmrc 16066  mrIndcmri 16067 This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1713  ax-4 1728  ax-5 1827  ax-6 1875  ax-7 1922  ax-8 1979  ax-9 1986  ax-10 2006  ax-11 2021  ax-12 2034  ax-13 2234  ax-ext 2590  ax-sep 4709  ax-nul 4717  ax-pow 4769  ax-pr 4833  ax-un 6847 This theorem depends on definitions:  df-bi 196  df-or 384  df-an 385  df-3an 1033  df-tru 1478  df-ex 1696  df-nf 1701  df-sb 1868  df-eu 2462  df-mo 2463  df-clab 2597  df-cleq 2603  df-clel 2606  df-nfc 2740  df-ne 2782  df-ral 2901  df-rex 2902  df-rab 2905  df-v 3175  df-sbc 3403  df-csb 3500  df-dif 3543  df-un 3545  df-in 3547  df-ss 3554  df-nul 3875  df-if 4037  df-pw 4110  df-sn 4126  df-pr 4128  df-op 4132  df-uni 4373  df-int 4411  df-br 4584  df-opab 4644  df-mpt 4645  df-id 4953  df-xp 5044  df-rel 5045  df-cnv 5046  df-co 5047  df-dm 5048  df-rn 5049  df-res 5050  df-ima 5051  df-iota 5768  df-fun 5806  df-fn 5807  df-f 5808  df-fv 5812  df-mre 16069  df-mrc 16070  df-mri 16071 This theorem is referenced by:  mreexexlem2d  16128
 Copyright terms: Public domain W3C validator