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

Theorem ressval 16545
Description: Value of structure restriction. (Contributed by Stefan O'Rear, 29-Nov-2014.)
Hypotheses
Ref Expression
ressbas.r 𝑅 = (𝑊s 𝐴)
ressbas.b 𝐵 = (Base‘𝑊)
Assertion
Ref Expression
ressval ((𝑊𝑋𝐴𝑌) → 𝑅 = if(𝐵𝐴, 𝑊, (𝑊 sSet ⟨(Base‘ndx), (𝐴𝐵)⟩)))

Proof of Theorem ressval
Dummy variables 𝑤 𝑎 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 ressbas.r . 2 𝑅 = (𝑊s 𝐴)
2 elex 3512 . . 3 (𝑊𝑋𝑊 ∈ V)
3 elex 3512 . . 3 (𝐴𝑌𝐴 ∈ V)
4 simpl 485 . . . . 5 ((𝑊 ∈ V ∧ 𝐴 ∈ V) → 𝑊 ∈ V)
5 ovex 7183 . . . . 5 (𝑊 sSet ⟨(Base‘ndx), (𝐴𝐵)⟩) ∈ V
6 ifcl 4510 . . . . 5 ((𝑊 ∈ V ∧ (𝑊 sSet ⟨(Base‘ndx), (𝐴𝐵)⟩) ∈ V) → if(𝐵𝐴, 𝑊, (𝑊 sSet ⟨(Base‘ndx), (𝐴𝐵)⟩)) ∈ V)
74, 5, 6sylancl 588 . . . 4 ((𝑊 ∈ V ∧ 𝐴 ∈ V) → if(𝐵𝐴, 𝑊, (𝑊 sSet ⟨(Base‘ndx), (𝐴𝐵)⟩)) ∈ V)
8 simpl 485 . . . . . . . . 9 ((𝑤 = 𝑊𝑎 = 𝐴) → 𝑤 = 𝑊)
98fveq2d 6668 . . . . . . . 8 ((𝑤 = 𝑊𝑎 = 𝐴) → (Base‘𝑤) = (Base‘𝑊))
10 ressbas.b . . . . . . . 8 𝐵 = (Base‘𝑊)
119, 10syl6eqr 2874 . . . . . . 7 ((𝑤 = 𝑊𝑎 = 𝐴) → (Base‘𝑤) = 𝐵)
12 simpr 487 . . . . . . 7 ((𝑤 = 𝑊𝑎 = 𝐴) → 𝑎 = 𝐴)
1311, 12sseq12d 3999 . . . . . 6 ((𝑤 = 𝑊𝑎 = 𝐴) → ((Base‘𝑤) ⊆ 𝑎𝐵𝐴))
1412, 11ineq12d 4189 . . . . . . . 8 ((𝑤 = 𝑊𝑎 = 𝐴) → (𝑎 ∩ (Base‘𝑤)) = (𝐴𝐵))
1514opeq2d 4803 . . . . . . 7 ((𝑤 = 𝑊𝑎 = 𝐴) → ⟨(Base‘ndx), (𝑎 ∩ (Base‘𝑤))⟩ = ⟨(Base‘ndx), (𝐴𝐵)⟩)
168, 15oveq12d 7168 . . . . . 6 ((𝑤 = 𝑊𝑎 = 𝐴) → (𝑤 sSet ⟨(Base‘ndx), (𝑎 ∩ (Base‘𝑤))⟩) = (𝑊 sSet ⟨(Base‘ndx), (𝐴𝐵)⟩))
1713, 8, 16ifbieq12d 4493 . . . . 5 ((𝑤 = 𝑊𝑎 = 𝐴) → if((Base‘𝑤) ⊆ 𝑎, 𝑤, (𝑤 sSet ⟨(Base‘ndx), (𝑎 ∩ (Base‘𝑤))⟩)) = if(𝐵𝐴, 𝑊, (𝑊 sSet ⟨(Base‘ndx), (𝐴𝐵)⟩)))
18 df-ress 16485 . . . . 5 s = (𝑤 ∈ V, 𝑎 ∈ V ↦ if((Base‘𝑤) ⊆ 𝑎, 𝑤, (𝑤 sSet ⟨(Base‘ndx), (𝑎 ∩ (Base‘𝑤))⟩)))
1917, 18ovmpoga 7298 . . . 4 ((𝑊 ∈ V ∧ 𝐴 ∈ V ∧ if(𝐵𝐴, 𝑊, (𝑊 sSet ⟨(Base‘ndx), (𝐴𝐵)⟩)) ∈ V) → (𝑊s 𝐴) = if(𝐵𝐴, 𝑊, (𝑊 sSet ⟨(Base‘ndx), (𝐴𝐵)⟩)))
207, 19mpd3an3 1458 . . 3 ((𝑊 ∈ V ∧ 𝐴 ∈ V) → (𝑊s 𝐴) = if(𝐵𝐴, 𝑊, (𝑊 sSet ⟨(Base‘ndx), (𝐴𝐵)⟩)))
212, 3, 20syl2an 597 . 2 ((𝑊𝑋𝐴𝑌) → (𝑊s 𝐴) = if(𝐵𝐴, 𝑊, (𝑊 sSet ⟨(Base‘ndx), (𝐴𝐵)⟩)))
221, 21syl5eq 2868 1 ((𝑊𝑋𝐴𝑌) → 𝑅 = if(𝐵𝐴, 𝑊, (𝑊 sSet ⟨(Base‘ndx), (𝐴𝐵)⟩)))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 398   = wceq 1533  wcel 2110  Vcvv 3494  cin 3934  wss 3935  ifcif 4466  cop 4566  cfv 6349  (class class class)co 7150  ndxcnx 16474   sSet csts 16475  Basecbs 16477  s cress 16478
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1792  ax-4 1806  ax-5 1907  ax-6 1966  ax-7 2011  ax-8 2112  ax-9 2120  ax-10 2141  ax-11 2157  ax-12 2173  ax-ext 2793  ax-sep 5195  ax-nul 5202  ax-pr 5321
This theorem depends on definitions:  df-bi 209  df-an 399  df-or 844  df-3an 1085  df-tru 1536  df-ex 1777  df-nf 1781  df-sb 2066  df-mo 2618  df-eu 2650  df-clab 2800  df-cleq 2814  df-clel 2893  df-nfc 2963  df-ral 3143  df-rex 3144  df-rab 3147  df-v 3496  df-sbc 3772  df-dif 3938  df-un 3940  df-in 3942  df-ss 3951  df-nul 4291  df-if 4467  df-sn 4561  df-pr 4563  df-op 4567  df-uni 4832  df-br 5059  df-opab 5121  df-id 5454  df-xp 5555  df-rel 5556  df-cnv 5557  df-co 5558  df-dm 5559  df-iota 6308  df-fun 6351  df-fv 6357  df-ov 7153  df-oprab 7154  df-mpo 7155  df-ress 16485
This theorem is referenced by:  ressid2  16546  ressval2  16547  wunress  16558
  Copyright terms: Public domain W3C validator