Metamath Proof Explorer


Theorem rankung

Description: The rank of the union of two sets. Closed form of rankun . (Contributed by Scott Fenton, 15-Jul-2015)

Ref Expression
Assertion rankung ( ( 𝐴𝑉𝐵𝑊 ) → ( rank ‘ ( 𝐴𝐵 ) ) = ( ( rank ‘ 𝐴 ) ∪ ( rank ‘ 𝐵 ) ) )

Proof

Step Hyp Ref Expression
1 uneq1 ( 𝑥 = 𝐴 → ( 𝑥𝑦 ) = ( 𝐴𝑦 ) )
2 1 fveq2d ( 𝑥 = 𝐴 → ( rank ‘ ( 𝑥𝑦 ) ) = ( rank ‘ ( 𝐴𝑦 ) ) )
3 fveq2 ( 𝑥 = 𝐴 → ( rank ‘ 𝑥 ) = ( rank ‘ 𝐴 ) )
4 3 uneq1d ( 𝑥 = 𝐴 → ( ( rank ‘ 𝑥 ) ∪ ( rank ‘ 𝑦 ) ) = ( ( rank ‘ 𝐴 ) ∪ ( rank ‘ 𝑦 ) ) )
5 2 4 eqeq12d ( 𝑥 = 𝐴 → ( ( rank ‘ ( 𝑥𝑦 ) ) = ( ( rank ‘ 𝑥 ) ∪ ( rank ‘ 𝑦 ) ) ↔ ( rank ‘ ( 𝐴𝑦 ) ) = ( ( rank ‘ 𝐴 ) ∪ ( rank ‘ 𝑦 ) ) ) )
6 uneq2 ( 𝑦 = 𝐵 → ( 𝐴𝑦 ) = ( 𝐴𝐵 ) )
7 6 fveq2d ( 𝑦 = 𝐵 → ( rank ‘ ( 𝐴𝑦 ) ) = ( rank ‘ ( 𝐴𝐵 ) ) )
8 fveq2 ( 𝑦 = 𝐵 → ( rank ‘ 𝑦 ) = ( rank ‘ 𝐵 ) )
9 8 uneq2d ( 𝑦 = 𝐵 → ( ( rank ‘ 𝐴 ) ∪ ( rank ‘ 𝑦 ) ) = ( ( rank ‘ 𝐴 ) ∪ ( rank ‘ 𝐵 ) ) )
10 7 9 eqeq12d ( 𝑦 = 𝐵 → ( ( rank ‘ ( 𝐴𝑦 ) ) = ( ( rank ‘ 𝐴 ) ∪ ( rank ‘ 𝑦 ) ) ↔ ( rank ‘ ( 𝐴𝐵 ) ) = ( ( rank ‘ 𝐴 ) ∪ ( rank ‘ 𝐵 ) ) ) )
11 vex 𝑥 ∈ V
12 vex 𝑦 ∈ V
13 11 12 rankun ( rank ‘ ( 𝑥𝑦 ) ) = ( ( rank ‘ 𝑥 ) ∪ ( rank ‘ 𝑦 ) )
14 5 10 13 vtocl2g ( ( 𝐴𝑉𝐵𝑊 ) → ( rank ‘ ( 𝐴𝐵 ) ) = ( ( rank ‘ 𝐴 ) ∪ ( rank ‘ 𝐵 ) ) )