Metamath Proof Explorer


Theorem setrec2mpt

Description: Version of setrec2 where F is defined using maps-to notation. Deduction form is omitted in the second hypothesis for simplicity. In practice, nothing important is lost since we are only interested in one choice of A , S , and V at a time. However, we are interested in what happens when C varies, so deduction form is used in the third hypothesis. (Contributed by Emmett Weisz, 4-Jun-2024)

Ref Expression
Hypotheses setrec2mpt.1 𝐵 = setrecs ( ( 𝑎𝐴𝑆 ) )
setrec2mpt.2 ( 𝑎𝐴𝑆𝑉 )
setrec2mpt.3 ( 𝜑 → ∀ 𝑎 ( 𝑎𝐶𝑆𝐶 ) )
Assertion setrec2mpt ( 𝜑𝐵𝐶 )

Proof

Step Hyp Ref Expression
1 setrec2mpt.1 𝐵 = setrecs ( ( 𝑎𝐴𝑆 ) )
2 setrec2mpt.2 ( 𝑎𝐴𝑆𝑉 )
3 setrec2mpt.3 ( 𝜑 → ∀ 𝑎 ( 𝑎𝐶𝑆𝐶 ) )
4 nfmpt1 𝑎 ( 𝑎𝐴𝑆 )
5 eqid ( 𝑎𝐴𝑆 ) = ( 𝑎𝐴𝑆 )
6 5 fvmpt2 ( ( 𝑎𝐴𝑆𝑉 ) → ( ( 𝑎𝐴𝑆 ) ‘ 𝑎 ) = 𝑆 )
7 eqimss ( ( ( 𝑎𝐴𝑆 ) ‘ 𝑎 ) = 𝑆 → ( ( 𝑎𝐴𝑆 ) ‘ 𝑎 ) ⊆ 𝑆 )
8 6 7 syl ( ( 𝑎𝐴𝑆𝑉 ) → ( ( 𝑎𝐴𝑆 ) ‘ 𝑎 ) ⊆ 𝑆 )
9 2 8 mpdan ( 𝑎𝐴 → ( ( 𝑎𝐴𝑆 ) ‘ 𝑎 ) ⊆ 𝑆 )
10 5 fvmptndm ( ¬ 𝑎𝐴 → ( ( 𝑎𝐴𝑆 ) ‘ 𝑎 ) = ∅ )
11 0ss ∅ ⊆ 𝑆
12 10 11 eqsstrdi ( ¬ 𝑎𝐴 → ( ( 𝑎𝐴𝑆 ) ‘ 𝑎 ) ⊆ 𝑆 )
13 9 12 pm2.61i ( ( 𝑎𝐴𝑆 ) ‘ 𝑎 ) ⊆ 𝑆
14 sstr2 ( ( ( 𝑎𝐴𝑆 ) ‘ 𝑎 ) ⊆ 𝑆 → ( 𝑆𝐶 → ( ( 𝑎𝐴𝑆 ) ‘ 𝑎 ) ⊆ 𝐶 ) )
15 13 14 ax-mp ( 𝑆𝐶 → ( ( 𝑎𝐴𝑆 ) ‘ 𝑎 ) ⊆ 𝐶 )
16 15 imim2i ( ( 𝑎𝐶𝑆𝐶 ) → ( 𝑎𝐶 → ( ( 𝑎𝐴𝑆 ) ‘ 𝑎 ) ⊆ 𝐶 ) )
17 3 16 sylg ( 𝜑 → ∀ 𝑎 ( 𝑎𝐶 → ( ( 𝑎𝐴𝑆 ) ‘ 𝑎 ) ⊆ 𝐶 ) )
18 4 1 17 setrec2 ( 𝜑𝐵𝐶 )