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

Theorem ressval 17471
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 3477 . . 3 (𝑊 ∈ 𝑋 → 𝑊 ∈ V)
3 elex 3477 . . 3 (𝐴 ∈ 𝑌 → 𝐴 ∈ V)
4 simpl 488 . . . . 5 ((𝑊 ∈ V ∧ 𝐴 ∈ V) → 𝑊 ∈ V)
5 ovex 7495 . . . . 5 (𝑊 sSet ⟨(Base‘ndx), (𝐴 ∩ 𝐵)⟩) ∈ V
6 ifcl 4533 . . . . 5 ((𝑊 ∈ V ∧ (𝑊 sSet ⟨(Base‘ndx), (𝐴 ∩ 𝐵)⟩) ∈ V) → if(𝐵 ⊆ 𝐴, 𝑊, (𝑊 sSet ⟨(Base‘ndx), (𝐴 ∩ 𝐵)⟩)) ∈ V)
74, 5, 6sylancl 598 . . . 4 ((𝑊 ∈ V ∧ 𝐴 ∈ V) → if(𝐵 ⊆ 𝐴, 𝑊, (𝑊 sSet ⟨(Base‘ndx), (𝐴 ∩ 𝐵)⟩)) ∈ V)
8 simpl 488 . . . . . . . . 9 ((𝑤 = 𝑊 ∧ 𝑎 = 𝐴) → 𝑤 = 𝑊)
98fveq2d 6930 . . . . . . . 8 ((𝑤 = 𝑊 ∧ 𝑎 = 𝐴) → (Base‘𝑤) = (Base‘𝑊))
10 ressbas.b . . . . . . . 8 𝐵 = (Base‘𝑊)
119, 10eqtr4di 2822 . . . . . . 7 ((𝑤 = 𝑊 ∧ 𝑎 = 𝐴) → (Base‘𝑤) = 𝐵)
12 simpr 490 . . . . . . 7 ((𝑤 = 𝑊 ∧ 𝑎 = 𝐴) → 𝑎 = 𝐴)
1311, 12sseq12d 3948 . . . . . 6 ((𝑤 = 𝑊 ∧ 𝑎 = 𝐴) → ((Base‘𝑤) ⊆ 𝑎 ↔ 𝐵 ⊆ 𝐴))
1412, 11ineq12d 4123 . . . . . . . 8 ((𝑤 = 𝑊 ∧ 𝑎 = 𝐴) → (𝑎 ∩ (Base‘𝑤)) = (𝐴 ∩ 𝐵))
1514opeq2d 4855 . . . . . . 7 ((𝑤 = 𝑊 ∧ 𝑎 = 𝐴) → ⟨(Base‘ndx), (𝑎 ∩ (Base‘𝑤))⟩ = ⟨(Base‘ndx), (𝐴 ∩ 𝐵)⟩)
168, 15oveq12d 7480 . . . . . 6 ((𝑤 = 𝑊 ∧ 𝑎 = 𝐴) → (𝑤 sSet ⟨(Base‘ndx), (𝑎 ∩ (Base‘𝑤))⟩) = (𝑊 sSet ⟨(Base‘ndx), (𝐴 ∩ 𝐵)⟩))
1713, 8, 16ifbieq12d 4516 . . . . 5 ((𝑤 = 𝑊 ∧ 𝑎 = 𝐴) → if((Base‘𝑤) ⊆ 𝑎, 𝑤, (𝑤 sSet ⟨(Base‘ndx), (𝑎 ∩ (Base‘𝑤))⟩)) = if(𝐵 ⊆ 𝐴, 𝑊, (𝑊 sSet ⟨(Base‘ndx), (𝐴 ∩ 𝐵)⟩)))
18 df-ress 17469 . . . . 5 ↾s = (𝑤 ∈ V, 𝑎 ∈ V ↦ if((Base‘𝑤) ⊆ 𝑎, 𝑤, (𝑤 sSet ⟨(Base‘ndx), (𝑎 ∩ (Base‘𝑤))⟩)))
1917, 18ovmpoga 7617 . . . 4 ((𝑊 ∈ V ∧ 𝐴 ∈ V ∧ if(𝐵 ⊆ 𝐴, 𝑊, (𝑊 sSet ⟨(Base‘ndx), (𝐴 ∩ 𝐵)⟩)) ∈ V) → (𝑊 ↾s 𝐴) = if(𝐵 ⊆ 𝐴, 𝑊, (𝑊 sSet ⟨(Base‘ndx), (𝐴 ∩ 𝐵)⟩)))
207, 19mpd3an3 1494 . . 3 ((𝑊 ∈ V ∧ 𝐴 ∈ V) → (𝑊 ↾s 𝐴) = if(𝐵 ⊆ 𝐴, 𝑊, (𝑊 sSet ⟨(Base‘ndx), (𝐴 ∩ 𝐵)⟩)))
212, 3, 20syl2an 608 . 2 ((𝑊 ∈ 𝑋 ∧ 𝐴 ∈ 𝑌) → (𝑊 ↾s 𝐴) = if(𝐵 ⊆ 𝐴, 𝑊, (𝑊 sSet ⟨(Base‘ndx), (𝐴 ∩ 𝐵)⟩)))
221, 21eqtrid 2816 1 ((𝑊 ∈ 𝑋 ∧ 𝐴 ∈ 𝑌) → 𝑅 = if(𝐵 ⊆ 𝐴, 𝑊, (𝑊 sSet ⟨(Base‘ndx), (𝐴 ∩ 𝐵)⟩)))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   → wi 4   ∧ wa 401   = wceq 1572   ∈ wcel 2151  Vcvv 3456   ⊆ wss 3902   ∩ cin 4094  ifcif 4487  ⟨cop 4843  ‘cfv 6573  (class class class)co 7462   sSet csts 17401  ndxcnx 17431  Basecbs 17447   ↾s cress 17468
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1830  ax-4 1844  ax-5 1947  ax-6 2004  ax-7 2045  ax-8 2153  ax-9 2161  ax-10 2184  ax-11 2201  ax-12 2220  ax-ext 2741  ax-sep 5258  ax-nul 5269  ax-pr 5401
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3an 1106  df-tru 1575  df-fal 1585  df-ex 1815  df-nf 1819  df-sb 2105  df-mo 2571  df-eu 2601  df-clab 2748  df-cleq 2761  df-clel 2845  df-nfc 2919  df-ne 2966  df-ral 3087  df-rex 3097  df-rab 3419  df-v 3458  df-sbc 3745  df-ss 3903  df-dif 4052  df-in 4096  df-un 4156  df-nul 4284  df-if 4488  df-sn 4591  df-pr 4593  df-op 4844  df-uni 4876  df-br 5112  df-opab 5177  df-id 5556  df-xp 5667  df-rel 5668  df-cnv 5669  df-co 5670  df-dm 5671  df-iota 6527  df-fun 6575  df-fv 6581  df-ov 7465  df-oprab 7466  df-mpo 7467  df-ress 17469
This theorem is used by:  ressid2  17472  ressval2  17473  wunress  17487
  Copyright terms: Public domain W3C validator