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

Theorem mdetunilem9 21769
Description: Lemma for mdetuni 21771. (Contributed by SO, 15-Jul-2018.)
Hypotheses
Ref Expression
mdetuni.a 𝐴 = (𝑁 Mat 𝑅)
mdetuni.b 𝐵 = (Base‘𝐴)
mdetuni.k 𝐾 = (Base‘𝑅)
mdetuni.0g 0 = (0g𝑅)
mdetuni.1r 1 = (1r𝑅)
mdetuni.pg + = (+g𝑅)
mdetuni.tg · = (.r𝑅)
mdetuni.n (𝜑𝑁 ∈ Fin)
mdetuni.r (𝜑𝑅 ∈ Ring)
mdetuni.ff (𝜑𝐷:𝐵𝐾)
mdetuni.al (𝜑 → ∀𝑥𝐵𝑦𝑁𝑧𝑁 ((𝑦𝑧 ∧ ∀𝑤𝑁 (𝑦𝑥𝑤) = (𝑧𝑥𝑤)) → (𝐷𝑥) = 0 ))
mdetuni.li (𝜑 → ∀𝑥𝐵𝑦𝐵𝑧𝐵𝑤𝑁 (((𝑥 ↾ ({𝑤} × 𝑁)) = ((𝑦 ↾ ({𝑤} × 𝑁)) ∘f + (𝑧 ↾ ({𝑤} × 𝑁))) ∧ (𝑥 ↾ ((𝑁 ∖ {𝑤}) × 𝑁)) = (𝑦 ↾ ((𝑁 ∖ {𝑤}) × 𝑁)) ∧ (𝑥 ↾ ((𝑁 ∖ {𝑤}) × 𝑁)) = (𝑧 ↾ ((𝑁 ∖ {𝑤}) × 𝑁))) → (𝐷𝑥) = ((𝐷𝑦) + (𝐷𝑧))))
mdetuni.sc (𝜑 → ∀𝑥𝐵𝑦𝐾𝑧𝐵𝑤𝑁 (((𝑥 ↾ ({𝑤} × 𝑁)) = ((({𝑤} × 𝑁) × {𝑦}) ∘f · (𝑧 ↾ ({𝑤} × 𝑁))) ∧ (𝑥 ↾ ((𝑁 ∖ {𝑤}) × 𝑁)) = (𝑧 ↾ ((𝑁 ∖ {𝑤}) × 𝑁))) → (𝐷𝑥) = (𝑦 · (𝐷𝑧))))
mdetunilem9.id (𝜑 → (𝐷‘(1r𝐴)) = 0 )
mdetunilem9.y 𝑌 = {𝑥 ∣ ∀𝑦𝐵𝑧 ∈ (𝑁m 𝑁)(∀𝑤𝑥 (𝑦𝑤) = if(𝑤𝑧, 1 , 0 ) → (𝐷𝑦) = 0 )}
Assertion
Ref Expression
mdetunilem9 (𝜑𝐷 = (𝐵 × { 0 }))
Distinct variable groups:   𝜑,𝑥,𝑦,𝑧,𝑤   𝑥,𝐵,𝑦,𝑧,𝑤   𝑥,𝐾,𝑦,𝑧,𝑤   𝑥,𝑁,𝑦,𝑧,𝑤   𝑥,𝐷,𝑦,𝑧,𝑤   𝑥, · ,𝑦,𝑧,𝑤   𝑥, + ,𝑦,𝑧,𝑤   𝑥, 0 ,𝑦,𝑧,𝑤   𝑥, 1 ,𝑦,𝑧,𝑤   𝑥,𝑅,𝑦,𝑧,𝑤   𝑥,𝐴,𝑦,𝑧,𝑤
Allowed substitution hints:   𝑌(𝑥,𝑦,𝑧,𝑤)

Proof of Theorem mdetunilem9
Dummy variables 𝑎 𝑏 𝑐 𝑑 𝑒 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 ral0 4443 . . . 4 𝑤 ∈ ∅ (𝑎𝑤) = if(𝑤 ∈ ( I ↾ 𝑁), 1 , 0 )
2 simpr 485 . . . . 5 ((𝜑𝑎𝐵) → 𝑎𝐵)
3 f1oi 6754 . . . . . . . 8 ( I ↾ 𝑁):𝑁1-1-onto𝑁
4 f1of 6716 . . . . . . . 8 (( I ↾ 𝑁):𝑁1-1-onto𝑁 → ( I ↾ 𝑁):𝑁𝑁)
53, 4mp1i 13 . . . . . . 7 (𝜑 → ( I ↾ 𝑁):𝑁𝑁)
6 mdetuni.n . . . . . . . 8 (𝜑𝑁 ∈ Fin)
76, 6elmapd 8629 . . . . . . 7 (𝜑 → (( I ↾ 𝑁) ∈ (𝑁m 𝑁) ↔ ( I ↾ 𝑁):𝑁𝑁))
85, 7mpbird 256 . . . . . 6 (𝜑 → ( I ↾ 𝑁) ∈ (𝑁m 𝑁))
98adantr 481 . . . . 5 ((𝜑𝑎𝐵) → ( I ↾ 𝑁) ∈ (𝑁m 𝑁))
10 simplrl 774 . . . . . . . . . . . . 13 (((𝜑 ∧ (𝑦𝐵𝑧 ∈ (𝑁m 𝑁))) ∧ ∀𝑤 ∈ (𝑁 × 𝑁)(𝑦𝑤) = if(𝑤𝑧, 1 , 0 )) → 𝑦𝐵)
11 mdetuni.a . . . . . . . . . . . . . . . . 17 𝐴 = (𝑁 Mat 𝑅)
12 mdetuni.k . . . . . . . . . . . . . . . . 17 𝐾 = (Base‘𝑅)
13 mdetuni.b . . . . . . . . . . . . . . . . 17 𝐵 = (Base‘𝐴)
1411, 12, 13matbas2i 21571 . . . . . . . . . . . . . . . 16 (𝑦𝐵𝑦 ∈ (𝐾m (𝑁 × 𝑁)))
15 elmapi 8637 . . . . . . . . . . . . . . . 16 (𝑦 ∈ (𝐾m (𝑁 × 𝑁)) → 𝑦:(𝑁 × 𝑁)⟶𝐾)
1614, 15syl 17 . . . . . . . . . . . . . . 15 (𝑦𝐵𝑦:(𝑁 × 𝑁)⟶𝐾)
1716feqmptd 6837 . . . . . . . . . . . . . 14 (𝑦𝐵𝑦 = (𝑤 ∈ (𝑁 × 𝑁) ↦ (𝑦𝑤)))
1817fveq2d 6778 . . . . . . . . . . . . 13 (𝑦𝐵 → (𝐷𝑦) = (𝐷‘(𝑤 ∈ (𝑁 × 𝑁) ↦ (𝑦𝑤))))
1910, 18syl 17 . . . . . . . . . . . 12 (((𝜑 ∧ (𝑦𝐵𝑧 ∈ (𝑁m 𝑁))) ∧ ∀𝑤 ∈ (𝑁 × 𝑁)(𝑦𝑤) = if(𝑤𝑧, 1 , 0 )) → (𝐷𝑦) = (𝐷‘(𝑤 ∈ (𝑁 × 𝑁) ↦ (𝑦𝑤))))
20 eqid 2738 . . . . . . . . . . . . . 14 (𝑁 × 𝑁) = (𝑁 × 𝑁)
21 mpteq12 5166 . . . . . . . . . . . . . . 15 (((𝑁 × 𝑁) = (𝑁 × 𝑁) ∧ ∀𝑤 ∈ (𝑁 × 𝑁)(𝑦𝑤) = if(𝑤𝑧, 1 , 0 )) → (𝑤 ∈ (𝑁 × 𝑁) ↦ (𝑦𝑤)) = (𝑤 ∈ (𝑁 × 𝑁) ↦ if(𝑤𝑧, 1 , 0 )))
2221fveq2d 6778 . . . . . . . . . . . . . 14 (((𝑁 × 𝑁) = (𝑁 × 𝑁) ∧ ∀𝑤 ∈ (𝑁 × 𝑁)(𝑦𝑤) = if(𝑤𝑧, 1 , 0 )) → (𝐷‘(𝑤 ∈ (𝑁 × 𝑁) ↦ (𝑦𝑤))) = (𝐷‘(𝑤 ∈ (𝑁 × 𝑁) ↦ if(𝑤𝑧, 1 , 0 ))))
2320, 22mpan 687 . . . . . . . . . . . . 13 (∀𝑤 ∈ (𝑁 × 𝑁)(𝑦𝑤) = if(𝑤𝑧, 1 , 0 ) → (𝐷‘(𝑤 ∈ (𝑁 × 𝑁) ↦ (𝑦𝑤))) = (𝐷‘(𝑤 ∈ (𝑁 × 𝑁) ↦ if(𝑤𝑧, 1 , 0 ))))
2423adantl 482 . . . . . . . . . . . 12 (((𝜑 ∧ (𝑦𝐵𝑧 ∈ (𝑁m 𝑁))) ∧ ∀𝑤 ∈ (𝑁 × 𝑁)(𝑦𝑤) = if(𝑤𝑧, 1 , 0 )) → (𝐷‘(𝑤 ∈ (𝑁 × 𝑁) ↦ (𝑦𝑤))) = (𝐷‘(𝑤 ∈ (𝑁 × 𝑁) ↦ if(𝑤𝑧, 1 , 0 ))))
25 eleq1 2826 . . . . . . . . . . . . . . . . 17 (𝑎 = 𝑧 → (𝑎 ∈ (𝑁m 𝑁) ↔ 𝑧 ∈ (𝑁m 𝑁)))
2625anbi2d 629 . . . . . . . . . . . . . . . 16 (𝑎 = 𝑧 → ((𝜑𝑎 ∈ (𝑁m 𝑁)) ↔ (𝜑𝑧 ∈ (𝑁m 𝑁))))
27 elequ2 2121 . . . . . . . . . . . . . . . . . . . 20 (𝑎 = 𝑧 → (𝑤𝑎𝑤𝑧))
2827ifbid 4482 . . . . . . . . . . . . . . . . . . 19 (𝑎 = 𝑧 → if(𝑤𝑎, 1 , 0 ) = if(𝑤𝑧, 1 , 0 ))
2928mpteq2dv 5176 . . . . . . . . . . . . . . . . . 18 (𝑎 = 𝑧 → (𝑤 ∈ (𝑁 × 𝑁) ↦ if(𝑤𝑎, 1 , 0 )) = (𝑤 ∈ (𝑁 × 𝑁) ↦ if(𝑤𝑧, 1 , 0 )))
3029fveq2d 6778 . . . . . . . . . . . . . . . . 17 (𝑎 = 𝑧 → (𝐷‘(𝑤 ∈ (𝑁 × 𝑁) ↦ if(𝑤𝑎, 1 , 0 ))) = (𝐷‘(𝑤 ∈ (𝑁 × 𝑁) ↦ if(𝑤𝑧, 1 , 0 ))))
3130eqeq1d 2740 . . . . . . . . . . . . . . . 16 (𝑎 = 𝑧 → ((𝐷‘(𝑤 ∈ (𝑁 × 𝑁) ↦ if(𝑤𝑎, 1 , 0 ))) = 0 ↔ (𝐷‘(𝑤 ∈ (𝑁 × 𝑁) ↦ if(𝑤𝑧, 1 , 0 ))) = 0 ))
3226, 31imbi12d 345 . . . . . . . . . . . . . . 15 (𝑎 = 𝑧 → (((𝜑𝑎 ∈ (𝑁m 𝑁)) → (𝐷‘(𝑤 ∈ (𝑁 × 𝑁) ↦ if(𝑤𝑎, 1 , 0 ))) = 0 ) ↔ ((𝜑𝑧 ∈ (𝑁m 𝑁)) → (𝐷‘(𝑤 ∈ (𝑁 × 𝑁) ↦ if(𝑤𝑧, 1 , 0 ))) = 0 )))
33 eleq1 2826 . . . . . . . . . . . . . . . . . . . 20 (𝑤 = ⟨𝑏, 𝑐⟩ → (𝑤𝑎 ↔ ⟨𝑏, 𝑐⟩ ∈ 𝑎))
3433ifbid 4482 . . . . . . . . . . . . . . . . . . 19 (𝑤 = ⟨𝑏, 𝑐⟩ → if(𝑤𝑎, 1 , 0 ) = if(⟨𝑏, 𝑐⟩ ∈ 𝑎, 1 , 0 ))
3534mpompt 7388 . . . . . . . . . . . . . . . . . 18 (𝑤 ∈ (𝑁 × 𝑁) ↦ if(𝑤𝑎, 1 , 0 )) = (𝑏𝑁, 𝑐𝑁 ↦ if(⟨𝑏, 𝑐⟩ ∈ 𝑎, 1 , 0 ))
36 elmapi 8637 . . . . . . . . . . . . . . . . . . . . . . . . 25 (𝑎 ∈ (𝑁m 𝑁) → 𝑎:𝑁𝑁)
3736adantl 482 . . . . . . . . . . . . . . . . . . . . . . . 24 ((𝜑𝑎 ∈ (𝑁m 𝑁)) → 𝑎:𝑁𝑁)
3837ffnd 6601 . . . . . . . . . . . . . . . . . . . . . . 23 ((𝜑𝑎 ∈ (𝑁m 𝑁)) → 𝑎 Fn 𝑁)
39383ad2ant1 1132 . . . . . . . . . . . . . . . . . . . . . 22 (((𝜑𝑎 ∈ (𝑁m 𝑁)) ∧ 𝑏𝑁𝑐𝑁) → 𝑎 Fn 𝑁)
40 simp2 1136 . . . . . . . . . . . . . . . . . . . . . 22 (((𝜑𝑎 ∈ (𝑁m 𝑁)) ∧ 𝑏𝑁𝑐𝑁) → 𝑏𝑁)
41 fnopfvb 6823 . . . . . . . . . . . . . . . . . . . . . 22 ((𝑎 Fn 𝑁𝑏𝑁) → ((𝑎𝑏) = 𝑐 ↔ ⟨𝑏, 𝑐⟩ ∈ 𝑎))
4239, 40, 41syl2anc 584 . . . . . . . . . . . . . . . . . . . . 21 (((𝜑𝑎 ∈ (𝑁m 𝑁)) ∧ 𝑏𝑁𝑐𝑁) → ((𝑎𝑏) = 𝑐 ↔ ⟨𝑏, 𝑐⟩ ∈ 𝑎))
4342bicomd 222 . . . . . . . . . . . . . . . . . . . 20 (((𝜑𝑎 ∈ (𝑁m 𝑁)) ∧ 𝑏𝑁𝑐𝑁) → (⟨𝑏, 𝑐⟩ ∈ 𝑎 ↔ (𝑎𝑏) = 𝑐))
4443ifbid 4482 . . . . . . . . . . . . . . . . . . 19 (((𝜑𝑎 ∈ (𝑁m 𝑁)) ∧ 𝑏𝑁𝑐𝑁) → if(⟨𝑏, 𝑐⟩ ∈ 𝑎, 1 , 0 ) = if((𝑎𝑏) = 𝑐, 1 , 0 ))
4544mpoeq3dva 7352 . . . . . . . . . . . . . . . . . 18 ((𝜑𝑎 ∈ (𝑁m 𝑁)) → (𝑏𝑁, 𝑐𝑁 ↦ if(⟨𝑏, 𝑐⟩ ∈ 𝑎, 1 , 0 )) = (𝑏𝑁, 𝑐𝑁 ↦ if((𝑎𝑏) = 𝑐, 1 , 0 )))
4635, 45eqtrid 2790 . . . . . . . . . . . . . . . . 17 ((𝜑𝑎 ∈ (𝑁m 𝑁)) → (𝑤 ∈ (𝑁 × 𝑁) ↦ if(𝑤𝑎, 1 , 0 )) = (𝑏𝑁, 𝑐𝑁 ↦ if((𝑎𝑏) = 𝑐, 1 , 0 )))
4746fveq2d 6778 . . . . . . . . . . . . . . . 16 ((𝜑𝑎 ∈ (𝑁m 𝑁)) → (𝐷‘(𝑤 ∈ (𝑁 × 𝑁) ↦ if(𝑤𝑎, 1 , 0 ))) = (𝐷‘(𝑏𝑁, 𝑐𝑁 ↦ if((𝑎𝑏) = 𝑐, 1 , 0 ))))
48 mdetuni.0g . . . . . . . . . . . . . . . . . 18 0 = (0g𝑅)
49 mdetuni.1r . . . . . . . . . . . . . . . . . 18 1 = (1r𝑅)
50 mdetuni.pg . . . . . . . . . . . . . . . . . 18 + = (+g𝑅)
51 mdetuni.tg . . . . . . . . . . . . . . . . . 18 · = (.r𝑅)
52 mdetuni.r . . . . . . . . . . . . . . . . . 18 (𝜑𝑅 ∈ Ring)
53 mdetuni.ff . . . . . . . . . . . . . . . . . 18 (𝜑𝐷:𝐵𝐾)
54 mdetuni.al . . . . . . . . . . . . . . . . . 18 (𝜑 → ∀𝑥𝐵𝑦𝑁𝑧𝑁 ((𝑦𝑧 ∧ ∀𝑤𝑁 (𝑦𝑥𝑤) = (𝑧𝑥𝑤)) → (𝐷𝑥) = 0 ))
55 mdetuni.li . . . . . . . . . . . . . . . . . 18 (𝜑 → ∀𝑥𝐵𝑦𝐵𝑧𝐵𝑤𝑁 (((𝑥 ↾ ({𝑤} × 𝑁)) = ((𝑦 ↾ ({𝑤} × 𝑁)) ∘f + (𝑧 ↾ ({𝑤} × 𝑁))) ∧ (𝑥 ↾ ((𝑁 ∖ {𝑤}) × 𝑁)) = (𝑦 ↾ ((𝑁 ∖ {𝑤}) × 𝑁)) ∧ (𝑥 ↾ ((𝑁 ∖ {𝑤}) × 𝑁)) = (𝑧 ↾ ((𝑁 ∖ {𝑤}) × 𝑁))) → (𝐷𝑥) = ((𝐷𝑦) + (𝐷𝑧))))
56 mdetuni.sc . . . . . . . . . . . . . . . . . 18 (𝜑 → ∀𝑥𝐵𝑦𝐾𝑧𝐵𝑤𝑁 (((𝑥 ↾ ({𝑤} × 𝑁)) = ((({𝑤} × 𝑁) × {𝑦}) ∘f · (𝑧 ↾ ({𝑤} × 𝑁))) ∧ (𝑥 ↾ ((𝑁 ∖ {𝑤}) × 𝑁)) = (𝑧 ↾ ((𝑁 ∖ {𝑤}) × 𝑁))) → (𝐷𝑥) = (𝑦 · (𝐷𝑧))))
57 mdetunilem9.id . . . . . . . . . . . . . . . . . 18 (𝜑 → (𝐷‘(1r𝐴)) = 0 )
5811, 13, 12, 48, 49, 50, 51, 6, 52, 53, 54, 55, 56, 57mdetunilem8 21768 . . . . . . . . . . . . . . . . 17 ((𝜑𝑎:𝑁𝑁) → (𝐷‘(𝑏𝑁, 𝑐𝑁 ↦ if((𝑎𝑏) = 𝑐, 1 , 0 ))) = 0 )
5936, 58sylan2 593 . . . . . . . . . . . . . . . 16 ((𝜑𝑎 ∈ (𝑁m 𝑁)) → (𝐷‘(𝑏𝑁, 𝑐𝑁 ↦ if((𝑎𝑏) = 𝑐, 1 , 0 ))) = 0 )
6047, 59eqtrd 2778 . . . . . . . . . . . . . . 15 ((𝜑𝑎 ∈ (𝑁m 𝑁)) → (𝐷‘(𝑤 ∈ (𝑁 × 𝑁) ↦ if(𝑤𝑎, 1 , 0 ))) = 0 )
6132, 60chvarvv 2002 . . . . . . . . . . . . . 14 ((𝜑𝑧 ∈ (𝑁m 𝑁)) → (𝐷‘(𝑤 ∈ (𝑁 × 𝑁) ↦ if(𝑤𝑧, 1 , 0 ))) = 0 )
6261adantrl 713 . . . . . . . . . . . . 13 ((𝜑 ∧ (𝑦𝐵𝑧 ∈ (𝑁m 𝑁))) → (𝐷‘(𝑤 ∈ (𝑁 × 𝑁) ↦ if(𝑤𝑧, 1 , 0 ))) = 0 )
6362adantr 481 . . . . . . . . . . . 12 (((𝜑 ∧ (𝑦𝐵𝑧 ∈ (𝑁m 𝑁))) ∧ ∀𝑤 ∈ (𝑁 × 𝑁)(𝑦𝑤) = if(𝑤𝑧, 1 , 0 )) → (𝐷‘(𝑤 ∈ (𝑁 × 𝑁) ↦ if(𝑤𝑧, 1 , 0 ))) = 0 )
6419, 24, 633eqtrd 2782 . . . . . . . . . . 11 (((𝜑 ∧ (𝑦𝐵𝑧 ∈ (𝑁m 𝑁))) ∧ ∀𝑤 ∈ (𝑁 × 𝑁)(𝑦𝑤) = if(𝑤𝑧, 1 , 0 )) → (𝐷𝑦) = 0 )
6564ex 413 . . . . . . . . . 10 ((𝜑 ∧ (𝑦𝐵𝑧 ∈ (𝑁m 𝑁))) → (∀𝑤 ∈ (𝑁 × 𝑁)(𝑦𝑤) = if(𝑤𝑧, 1 , 0 ) → (𝐷𝑦) = 0 ))
6665ralrimivva 3123 . . . . . . . . 9 (𝜑 → ∀𝑦𝐵𝑧 ∈ (𝑁m 𝑁)(∀𝑤 ∈ (𝑁 × 𝑁)(𝑦𝑤) = if(𝑤𝑧, 1 , 0 ) → (𝐷𝑦) = 0 ))
67 xpfi 9085 . . . . . . . . . . 11 ((𝑁 ∈ Fin ∧ 𝑁 ∈ Fin) → (𝑁 × 𝑁) ∈ Fin)
686, 6, 67syl2anc 584 . . . . . . . . . 10 (𝜑 → (𝑁 × 𝑁) ∈ Fin)
69 raleq 3342 . . . . . . . . . . . . 13 (𝑥 = (𝑁 × 𝑁) → (∀𝑤𝑥 (𝑦𝑤) = if(𝑤𝑧, 1 , 0 ) ↔ ∀𝑤 ∈ (𝑁 × 𝑁)(𝑦𝑤) = if(𝑤𝑧, 1 , 0 )))
7069imbi1d 342 . . . . . . . . . . . 12 (𝑥 = (𝑁 × 𝑁) → ((∀𝑤𝑥 (𝑦𝑤) = if(𝑤𝑧, 1 , 0 ) → (𝐷𝑦) = 0 ) ↔ (∀𝑤 ∈ (𝑁 × 𝑁)(𝑦𝑤) = if(𝑤𝑧, 1 , 0 ) → (𝐷𝑦) = 0 )))
71702ralbidv 3129 . . . . . . . . . . 11 (𝑥 = (𝑁 × 𝑁) → (∀𝑦𝐵𝑧 ∈ (𝑁m 𝑁)(∀𝑤𝑥 (𝑦𝑤) = if(𝑤𝑧, 1 , 0 ) → (𝐷𝑦) = 0 ) ↔ ∀𝑦𝐵𝑧 ∈ (𝑁m 𝑁)(∀𝑤 ∈ (𝑁 × 𝑁)(𝑦𝑤) = if(𝑤𝑧, 1 , 0 ) → (𝐷𝑦) = 0 )))
72 mdetunilem9.y . . . . . . . . . . 11 𝑌 = {𝑥 ∣ ∀𝑦𝐵𝑧 ∈ (𝑁m 𝑁)(∀𝑤𝑥 (𝑦𝑤) = if(𝑤𝑧, 1 , 0 ) → (𝐷𝑦) = 0 )}
7371, 72elab2g 3611 . . . . . . . . . 10 ((𝑁 × 𝑁) ∈ Fin → ((𝑁 × 𝑁) ∈ 𝑌 ↔ ∀𝑦𝐵𝑧 ∈ (𝑁m 𝑁)(∀𝑤 ∈ (𝑁 × 𝑁)(𝑦𝑤) = if(𝑤𝑧, 1 , 0 ) → (𝐷𝑦) = 0 )))
7468, 73syl 17 . . . . . . . . 9 (𝜑 → ((𝑁 × 𝑁) ∈ 𝑌 ↔ ∀𝑦𝐵𝑧 ∈ (𝑁m 𝑁)(∀𝑤 ∈ (𝑁 × 𝑁)(𝑦𝑤) = if(𝑤𝑧, 1 , 0 ) → (𝐷𝑦) = 0 )))
7566, 74mpbird 256 . . . . . . . 8 (𝜑 → (𝑁 × 𝑁) ∈ 𝑌)
76 ssid 3943 . . . . . . . . 9 (𝑁 × 𝑁) ⊆ (𝑁 × 𝑁)
77683ad2ant1 1132 . . . . . . . . . . 11 ((𝜑 ∧ (𝑁 × 𝑁) ⊆ (𝑁 × 𝑁) ∧ ¬ ∅ ∈ 𝑌) → (𝑁 × 𝑁) ∈ Fin)
78 sseq1 3946 . . . . . . . . . . . . . 14 (𝑎 = ∅ → (𝑎 ⊆ (𝑁 × 𝑁) ↔ ∅ ⊆ (𝑁 × 𝑁)))
79783anbi2d 1440 . . . . . . . . . . . . 13 (𝑎 = ∅ → ((𝜑𝑎 ⊆ (𝑁 × 𝑁) ∧ ¬ ∅ ∈ 𝑌) ↔ (𝜑 ∧ ∅ ⊆ (𝑁 × 𝑁) ∧ ¬ ∅ ∈ 𝑌)))
80 eleq1 2826 . . . . . . . . . . . . . 14 (𝑎 = ∅ → (𝑎𝑌 ↔ ∅ ∈ 𝑌))
8180notbid 318 . . . . . . . . . . . . 13 (𝑎 = ∅ → (¬ 𝑎𝑌 ↔ ¬ ∅ ∈ 𝑌))
8279, 81imbi12d 345 . . . . . . . . . . . 12 (𝑎 = ∅ → (((𝜑𝑎 ⊆ (𝑁 × 𝑁) ∧ ¬ ∅ ∈ 𝑌) → ¬ 𝑎𝑌) ↔ ((𝜑 ∧ ∅ ⊆ (𝑁 × 𝑁) ∧ ¬ ∅ ∈ 𝑌) → ¬ ∅ ∈ 𝑌)))
83 sseq1 3946 . . . . . . . . . . . . . 14 (𝑎 = 𝑏 → (𝑎 ⊆ (𝑁 × 𝑁) ↔ 𝑏 ⊆ (𝑁 × 𝑁)))
84833anbi2d 1440 . . . . . . . . . . . . 13 (𝑎 = 𝑏 → ((𝜑𝑎 ⊆ (𝑁 × 𝑁) ∧ ¬ ∅ ∈ 𝑌) ↔ (𝜑𝑏 ⊆ (𝑁 × 𝑁) ∧ ¬ ∅ ∈ 𝑌)))
85 eleq1 2826 . . . . . . . . . . . . . 14 (𝑎 = 𝑏 → (𝑎𝑌𝑏𝑌))
8685notbid 318 . . . . . . . . . . . . 13 (𝑎 = 𝑏 → (¬ 𝑎𝑌 ↔ ¬ 𝑏𝑌))
8784, 86imbi12d 345 . . . . . . . . . . . 12 (𝑎 = 𝑏 → (((𝜑𝑎 ⊆ (𝑁 × 𝑁) ∧ ¬ ∅ ∈ 𝑌) → ¬ 𝑎𝑌) ↔ ((𝜑𝑏 ⊆ (𝑁 × 𝑁) ∧ ¬ ∅ ∈ 𝑌) → ¬ 𝑏𝑌)))
88 sseq1 3946 . . . . . . . . . . . . . 14 (𝑎 = (𝑏 ∪ {𝑐}) → (𝑎 ⊆ (𝑁 × 𝑁) ↔ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁)))
89883anbi2d 1440 . . . . . . . . . . . . 13 (𝑎 = (𝑏 ∪ {𝑐}) → ((𝜑𝑎 ⊆ (𝑁 × 𝑁) ∧ ¬ ∅ ∈ 𝑌) ↔ (𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ ¬ ∅ ∈ 𝑌)))
90 eleq1 2826 . . . . . . . . . . . . . 14 (𝑎 = (𝑏 ∪ {𝑐}) → (𝑎𝑌 ↔ (𝑏 ∪ {𝑐}) ∈ 𝑌))
9190notbid 318 . . . . . . . . . . . . 13 (𝑎 = (𝑏 ∪ {𝑐}) → (¬ 𝑎𝑌 ↔ ¬ (𝑏 ∪ {𝑐}) ∈ 𝑌))
9289, 91imbi12d 345 . . . . . . . . . . . 12 (𝑎 = (𝑏 ∪ {𝑐}) → (((𝜑𝑎 ⊆ (𝑁 × 𝑁) ∧ ¬ ∅ ∈ 𝑌) → ¬ 𝑎𝑌) ↔ ((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ ¬ ∅ ∈ 𝑌) → ¬ (𝑏 ∪ {𝑐}) ∈ 𝑌)))
93 sseq1 3946 . . . . . . . . . . . . . 14 (𝑎 = (𝑁 × 𝑁) → (𝑎 ⊆ (𝑁 × 𝑁) ↔ (𝑁 × 𝑁) ⊆ (𝑁 × 𝑁)))
94933anbi2d 1440 . . . . . . . . . . . . 13 (𝑎 = (𝑁 × 𝑁) → ((𝜑𝑎 ⊆ (𝑁 × 𝑁) ∧ ¬ ∅ ∈ 𝑌) ↔ (𝜑 ∧ (𝑁 × 𝑁) ⊆ (𝑁 × 𝑁) ∧ ¬ ∅ ∈ 𝑌)))
95 eleq1 2826 . . . . . . . . . . . . . 14 (𝑎 = (𝑁 × 𝑁) → (𝑎𝑌 ↔ (𝑁 × 𝑁) ∈ 𝑌))
9695notbid 318 . . . . . . . . . . . . 13 (𝑎 = (𝑁 × 𝑁) → (¬ 𝑎𝑌 ↔ ¬ (𝑁 × 𝑁) ∈ 𝑌))
9794, 96imbi12d 345 . . . . . . . . . . . 12 (𝑎 = (𝑁 × 𝑁) → (((𝜑𝑎 ⊆ (𝑁 × 𝑁) ∧ ¬ ∅ ∈ 𝑌) → ¬ 𝑎𝑌) ↔ ((𝜑 ∧ (𝑁 × 𝑁) ⊆ (𝑁 × 𝑁) ∧ ¬ ∅ ∈ 𝑌) → ¬ (𝑁 × 𝑁) ∈ 𝑌)))
98 simp3 1137 . . . . . . . . . . . 12 ((𝜑 ∧ ∅ ⊆ (𝑁 × 𝑁) ∧ ¬ ∅ ∈ 𝑌) → ¬ ∅ ∈ 𝑌)
99 ssun1 4106 . . . . . . . . . . . . . . . 16 𝑏 ⊆ (𝑏 ∪ {𝑐})
100 sstr2 3928 . . . . . . . . . . . . . . . 16 (𝑏 ⊆ (𝑏 ∪ {𝑐}) → ((𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) → 𝑏 ⊆ (𝑁 × 𝑁)))
10199, 100ax-mp 5 . . . . . . . . . . . . . . 15 ((𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) → 𝑏 ⊆ (𝑁 × 𝑁))
1021013anim2i 1152 . . . . . . . . . . . . . 14 ((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ ¬ ∅ ∈ 𝑌) → (𝜑𝑏 ⊆ (𝑁 × 𝑁) ∧ ¬ ∅ ∈ 𝑌))
103102imim1i 63 . . . . . . . . . . . . 13 (((𝜑𝑏 ⊆ (𝑁 × 𝑁) ∧ ¬ ∅ ∈ 𝑌) → ¬ 𝑏𝑌) → ((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ ¬ ∅ ∈ 𝑌) → ¬ 𝑏𝑌))
104 simpl1 1190 . . . . . . . . . . . . . . . . . . . . . . . 24 (((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ (𝑏 ∪ {𝑐}) ∈ 𝑌) ∧ ((𝑎𝐵𝑑 ∈ (𝑁m 𝑁)) ∧ ∀𝑤𝑏 (𝑎𝑤) = if(𝑤𝑑, 1 , 0 ))) → 𝜑)
105 simpl2 1191 . . . . . . . . . . . . . . . . . . . . . . . 24 (((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ (𝑏 ∪ {𝑐}) ∈ 𝑌) ∧ ((𝑎𝐵𝑑 ∈ (𝑁m 𝑁)) ∧ ∀𝑤𝑏 (𝑎𝑤) = if(𝑤𝑑, 1 , 0 ))) → (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁))
106 simprll 776 . . . . . . . . . . . . . . . . . . . . . . . 24 (((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ (𝑏 ∪ {𝑐}) ∈ 𝑌) ∧ ((𝑎𝐵𝑑 ∈ (𝑁m 𝑁)) ∧ ∀𝑤𝑏 (𝑎𝑤) = if(𝑤𝑑, 1 , 0 ))) → 𝑎𝐵)
10711, 12, 13matbas2i 21571 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 (𝑎𝐵𝑎 ∈ (𝐾m (𝑁 × 𝑁)))
108 elmapi 8637 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 (𝑎 ∈ (𝐾m (𝑁 × 𝑁)) → 𝑎:(𝑁 × 𝑁)⟶𝐾)
109107, 108syl 17 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 (𝑎𝐵𝑎:(𝑁 × 𝑁)⟶𝐾)
1101093ad2ant3 1134 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 ((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) → 𝑎:(𝑁 × 𝑁)⟶𝐾)
111110feqmptd 6837 . . . . . . . . . . . . . . . . . . . . . . . . . . 27 ((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) → 𝑎 = (𝑒 ∈ (𝑁 × 𝑁) ↦ (𝑎𝑒)))
112111reseq1d 5890 . . . . . . . . . . . . . . . . . . . . . . . . . 26 ((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) → (𝑎 ↾ ({(1st𝑐)} × 𝑁)) = ((𝑒 ∈ (𝑁 × 𝑁) ↦ (𝑎𝑒)) ↾ ({(1st𝑐)} × 𝑁)))
113523ad2ant1 1132 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 ((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) → 𝑅 ∈ Ring)
114 ringgrp 19788 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 (𝑅 ∈ Ring → 𝑅 ∈ Grp)
115113, 114syl 17 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 ((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) → 𝑅 ∈ Grp)
116115adantr 481 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 (((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) ∧ 𝑒 ∈ ({(1st𝑐)} × 𝑁)) → 𝑅 ∈ Grp)
117110adantr 481 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 (((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) ∧ 𝑒 ∈ ({(1st𝑐)} × 𝑁)) → 𝑎:(𝑁 × 𝑁)⟶𝐾)
118 simp2 1136 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41 ((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) → (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁))
119118unssbd 4122 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40 ((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) → {𝑐} ⊆ (𝑁 × 𝑁))
120 vex 3436 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41 𝑐 ∈ V
121120snss 4719 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40 (𝑐 ∈ (𝑁 × 𝑁) ↔ {𝑐} ⊆ (𝑁 × 𝑁))
122119, 121sylibr 233 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39 ((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) → 𝑐 ∈ (𝑁 × 𝑁))
123 xp1st 7863 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39 (𝑐 ∈ (𝑁 × 𝑁) → (1st𝑐) ∈ 𝑁)
124122, 123syl 17 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38 ((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) → (1st𝑐) ∈ 𝑁)
125124snssd 4742 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37 ((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) → {(1st𝑐)} ⊆ 𝑁)
126 xpss1 5608 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37 ({(1st𝑐)} ⊆ 𝑁 → ({(1st𝑐)} × 𝑁) ⊆ (𝑁 × 𝑁))
127125, 126syl 17 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 ((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) → ({(1st𝑐)} × 𝑁) ⊆ (𝑁 × 𝑁))
128127sselda 3921 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 (((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) ∧ 𝑒 ∈ ({(1st𝑐)} × 𝑁)) → 𝑒 ∈ (𝑁 × 𝑁))
129117, 128ffvelrnd 6962 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 (((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) ∧ 𝑒 ∈ ({(1st𝑐)} × 𝑁)) → (𝑎𝑒) ∈ 𝐾)
13012, 49ringidcl 19807 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37 (𝑅 ∈ Ring → 1𝐾)
131113, 130syl 17 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 ((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) → 1𝐾)
13212, 48ring0cl 19808 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37 (𝑅 ∈ Ring → 0𝐾)
133113, 132syl 17 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 ((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) → 0𝐾)
134131, 133ifcld 4505 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 ((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) → if(𝑒𝑑, 1 , 0 ) ∈ 𝐾)
135134adantr 481 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 (((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) ∧ 𝑒 ∈ ({(1st𝑐)} × 𝑁)) → if(𝑒𝑑, 1 , 0 ) ∈ 𝐾)
136 eqid 2738 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 (-g𝑅) = (-g𝑅)
13712, 50, 136grpnpcan 18667 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 ((𝑅 ∈ Grp ∧ (𝑎𝑒) ∈ 𝐾 ∧ if(𝑒𝑑, 1 , 0 ) ∈ 𝐾) → (((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )) + if(𝑒𝑑, 1 , 0 )) = (𝑎𝑒))
138116, 129, 135, 137syl3anc 1370 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 (((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) ∧ 𝑒 ∈ ({(1st𝑐)} × 𝑁)) → (((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )) + if(𝑒𝑑, 1 , 0 )) = (𝑎𝑒))
139138eqcomd 2744 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 (((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) ∧ 𝑒 ∈ ({(1st𝑐)} × 𝑁)) → (𝑎𝑒) = (((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )) + if(𝑒𝑑, 1 , 0 )))
140139adantr 481 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 ((((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) ∧ 𝑒 ∈ ({(1st𝑐)} × 𝑁)) ∧ 𝑒 = 𝑐) → (𝑎𝑒) = (((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )) + if(𝑒𝑑, 1 , 0 )))
141 iftrue 4465 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 (𝑒 = 𝑐 → if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ) = ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )))
142 iftrue 4465 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 (𝑒 = 𝑐 → if(𝑒 = 𝑐, if(𝑒𝑑, 1 , 0 ), (𝑎𝑒)) = if(𝑒𝑑, 1 , 0 ))
143141, 142oveq12d 7293 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 (𝑒 = 𝑐 → (if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ) + if(𝑒 = 𝑐, if(𝑒𝑑, 1 , 0 ), (𝑎𝑒))) = (((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )) + if(𝑒𝑑, 1 , 0 )))
144143adantl 482 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 ((((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) ∧ 𝑒 ∈ ({(1st𝑐)} × 𝑁)) ∧ 𝑒 = 𝑐) → (if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ) + if(𝑒 = 𝑐, if(𝑒𝑑, 1 , 0 ), (𝑎𝑒))) = (((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )) + if(𝑒𝑑, 1 , 0 )))
145140, 144eqtr4d 2781 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 ((((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) ∧ 𝑒 ∈ ({(1st𝑐)} × 𝑁)) ∧ 𝑒 = 𝑐) → (𝑎𝑒) = (if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ) + if(𝑒 = 𝑐, if(𝑒𝑑, 1 , 0 ), (𝑎𝑒))))
14612, 50, 48grplid 18609 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 ((𝑅 ∈ Grp ∧ (𝑎𝑒) ∈ 𝐾) → ( 0 + (𝑎𝑒)) = (𝑎𝑒))
147116, 129, 146syl2anc 584 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 (((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) ∧ 𝑒 ∈ ({(1st𝑐)} × 𝑁)) → ( 0 + (𝑎𝑒)) = (𝑎𝑒))
148147eqcomd 2744 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 (((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) ∧ 𝑒 ∈ ({(1st𝑐)} × 𝑁)) → (𝑎𝑒) = ( 0 + (𝑎𝑒)))
149148adantr 481 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 ((((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) ∧ 𝑒 ∈ ({(1st𝑐)} × 𝑁)) ∧ ¬ 𝑒 = 𝑐) → (𝑎𝑒) = ( 0 + (𝑎𝑒)))
150 iffalse 4468 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 𝑒 = 𝑐 → if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ) = 0 )
151 iffalse 4468 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 𝑒 = 𝑐 → if(𝑒 = 𝑐, if(𝑒𝑑, 1 , 0 ), (𝑎𝑒)) = (𝑎𝑒))
152150, 151oveq12d 7293 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 𝑒 = 𝑐 → (if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ) + if(𝑒 = 𝑐, if(𝑒𝑑, 1 , 0 ), (𝑎𝑒))) = ( 0 + (𝑎𝑒)))
153152adantl 482 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 ((((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) ∧ 𝑒 ∈ ({(1st𝑐)} × 𝑁)) ∧ ¬ 𝑒 = 𝑐) → (if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ) + if(𝑒 = 𝑐, if(𝑒𝑑, 1 , 0 ), (𝑎𝑒))) = ( 0 + (𝑎𝑒)))
154149, 153eqtr4d 2781 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 ((((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) ∧ 𝑒 ∈ ({(1st𝑐)} × 𝑁)) ∧ ¬ 𝑒 = 𝑐) → (𝑎𝑒) = (if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ) + if(𝑒 = 𝑐, if(𝑒𝑑, 1 , 0 ), (𝑎𝑒))))
155145, 154pm2.61dan 810 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 (((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) ∧ 𝑒 ∈ ({(1st𝑐)} × 𝑁)) → (𝑎𝑒) = (if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ) + if(𝑒 = 𝑐, if(𝑒𝑑, 1 , 0 ), (𝑎𝑒))))
156155mpteq2dva 5174 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 ((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) → (𝑒 ∈ ({(1st𝑐)} × 𝑁) ↦ (𝑎𝑒)) = (𝑒 ∈ ({(1st𝑐)} × 𝑁) ↦ (if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ) + if(𝑒 = 𝑐, if(𝑒𝑑, 1 , 0 ), (𝑎𝑒)))))
157 snfi 8834 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 {(1st𝑐)} ∈ Fin
15863ad2ant1 1132 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 ((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) → 𝑁 ∈ Fin)
159 xpfi 9085 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 (({(1st𝑐)} ∈ Fin ∧ 𝑁 ∈ Fin) → ({(1st𝑐)} × 𝑁) ∈ Fin)
160157, 158, 159sylancr 587 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 ((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) → ({(1st𝑐)} × 𝑁) ∈ Fin)
161 ovex 7308 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )) ∈ V
16248fvexi 6788 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 0 ∈ V
163161, 162ifex 4509 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ) ∈ V
164163a1i 11 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 (((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) ∧ 𝑒 ∈ ({(1st𝑐)} × 𝑁)) → if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ) ∈ V)
16549fvexi 6788 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 1 ∈ V
166165, 162ifex 4509 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 if(𝑒𝑑, 1 , 0 ) ∈ V
167 fvex 6787 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 (𝑎𝑒) ∈ V
168166, 167ifex 4509 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 if(𝑒 = 𝑐, if(𝑒𝑑, 1 , 0 ), (𝑎𝑒)) ∈ V
169168a1i 11 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 (((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) ∧ 𝑒 ∈ ({(1st𝑐)} × 𝑁)) → if(𝑒 = 𝑐, if(𝑒𝑑, 1 , 0 ), (𝑎𝑒)) ∈ V)
170 xp1st 7863 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 (𝑒 ∈ ({(1st𝑐)} × 𝑁) → (1st𝑒) ∈ {(1st𝑐)})
171 elsni 4578 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 ((1st𝑒) ∈ {(1st𝑐)} → (1st𝑒) = (1st𝑐))
172 iftrue 4465 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 ((1st𝑒) = (1st𝑐) → if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒)) = if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ))
173170, 171, 1723syl 18 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 (𝑒 ∈ ({(1st𝑐)} × 𝑁) → if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒)) = if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ))
174173mpteq2ia 5177 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 (𝑒 ∈ ({(1st𝑐)} × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒))) = (𝑒 ∈ ({(1st𝑐)} × 𝑁) ↦ if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ))
175174a1i 11 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 ((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) → (𝑒 ∈ ({(1st𝑐)} × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒))) = (𝑒 ∈ ({(1st𝑐)} × 𝑁) ↦ if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 )))
176 eqidd 2739 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 ((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) → (𝑒 ∈ ({(1st𝑐)} × 𝑁) ↦ if(𝑒 = 𝑐, if(𝑒𝑑, 1 , 0 ), (𝑎𝑒))) = (𝑒 ∈ ({(1st𝑐)} × 𝑁) ↦ if(𝑒 = 𝑐, if(𝑒𝑑, 1 , 0 ), (𝑎𝑒))))
177160, 164, 169, 175, 176offval2 7553 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 ((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) → ((𝑒 ∈ ({(1st𝑐)} × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒))) ∘f + (𝑒 ∈ ({(1st𝑐)} × 𝑁) ↦ if(𝑒 = 𝑐, if(𝑒𝑑, 1 , 0 ), (𝑎𝑒)))) = (𝑒 ∈ ({(1st𝑐)} × 𝑁) ↦ (if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ) + if(𝑒 = 𝑐, if(𝑒𝑑, 1 , 0 ), (𝑎𝑒)))))
178156, 177eqtr4d 2781 . . . . . . . . . . . . . . . . . . . . . . . . . . 27 ((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) → (𝑒 ∈ ({(1st𝑐)} × 𝑁) ↦ (𝑎𝑒)) = ((𝑒 ∈ ({(1st𝑐)} × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒))) ∘f + (𝑒 ∈ ({(1st𝑐)} × 𝑁) ↦ if(𝑒 = 𝑐, if(𝑒𝑑, 1 , 0 ), (𝑎𝑒)))))
179127resmptd 5948 . . . . . . . . . . . . . . . . . . . . . . . . . . 27 ((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) → ((𝑒 ∈ (𝑁 × 𝑁) ↦ (𝑎𝑒)) ↾ ({(1st𝑐)} × 𝑁)) = (𝑒 ∈ ({(1st𝑐)} × 𝑁) ↦ (𝑎𝑒)))
180127resmptd 5948 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 ((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) → ((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒))) ↾ ({(1st𝑐)} × 𝑁)) = (𝑒 ∈ ({(1st𝑐)} × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒))))
181127resmptd 5948 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 ((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) → ((𝑒 ∈ (𝑁 × 𝑁) ↦ if(𝑒 = 𝑐, if(𝑒𝑑, 1 , 0 ), (𝑎𝑒))) ↾ ({(1st𝑐)} × 𝑁)) = (𝑒 ∈ ({(1st𝑐)} × 𝑁) ↦ if(𝑒 = 𝑐, if(𝑒𝑑, 1 , 0 ), (𝑎𝑒))))
182180, 181oveq12d 7293 . . . . . . . . . . . . . . . . . . . . . . . . . . 27 ((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) → (((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒))) ↾ ({(1st𝑐)} × 𝑁)) ∘f + ((𝑒 ∈ (𝑁 × 𝑁) ↦ if(𝑒 = 𝑐, if(𝑒𝑑, 1 , 0 ), (𝑎𝑒))) ↾ ({(1st𝑐)} × 𝑁))) = ((𝑒 ∈ ({(1st𝑐)} × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒))) ∘f + (𝑒 ∈ ({(1st𝑐)} × 𝑁) ↦ if(𝑒 = 𝑐, if(𝑒𝑑, 1 , 0 ), (𝑎𝑒)))))
183178, 179, 1823eqtr4d 2788 . . . . . . . . . . . . . . . . . . . . . . . . . 26 ((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) → ((𝑒 ∈ (𝑁 × 𝑁) ↦ (𝑎𝑒)) ↾ ({(1st𝑐)} × 𝑁)) = (((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒))) ↾ ({(1st𝑐)} × 𝑁)) ∘f + ((𝑒 ∈ (𝑁 × 𝑁) ↦ if(𝑒 = 𝑐, if(𝑒𝑑, 1 , 0 ), (𝑎𝑒))) ↾ ({(1st𝑐)} × 𝑁))))
184112, 183eqtrd 2778 . . . . . . . . . . . . . . . . . . . . . . . . 25 ((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) → (𝑎 ↾ ({(1st𝑐)} × 𝑁)) = (((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒))) ↾ ({(1st𝑐)} × 𝑁)) ∘f + ((𝑒 ∈ (𝑁 × 𝑁) ↦ if(𝑒 = 𝑐, if(𝑒𝑑, 1 , 0 ), (𝑎𝑒))) ↾ ({(1st𝑐)} × 𝑁))))
185111reseq1d 5890 . . . . . . . . . . . . . . . . . . . . . . . . . 26 ((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) → (𝑎 ↾ ((𝑁 ∖ {(1st𝑐)}) × 𝑁)) = ((𝑒 ∈ (𝑁 × 𝑁) ↦ (𝑎𝑒)) ↾ ((𝑁 ∖ {(1st𝑐)}) × 𝑁)))
186 xp1st 7863 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 (𝑒 ∈ ((𝑁 ∖ {(1st𝑐)}) × 𝑁) → (1st𝑒) ∈ (𝑁 ∖ {(1st𝑐)}))
187 eldifsni 4723 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 ((1st𝑒) ∈ (𝑁 ∖ {(1st𝑐)}) → (1st𝑒) ≠ (1st𝑐))
188186, 187syl 17 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 (𝑒 ∈ ((𝑁 ∖ {(1st𝑐)}) × 𝑁) → (1st𝑒) ≠ (1st𝑐))
189188neneqd 2948 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 (𝑒 ∈ ((𝑁 ∖ {(1st𝑐)}) × 𝑁) → ¬ (1st𝑒) = (1st𝑐))
190189adantl 482 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 (((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) ∧ 𝑒 ∈ ((𝑁 ∖ {(1st𝑐)}) × 𝑁)) → ¬ (1st𝑒) = (1st𝑐))
191190iffalsed 4470 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 (((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) ∧ 𝑒 ∈ ((𝑁 ∖ {(1st𝑐)}) × 𝑁)) → if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒)) = (𝑎𝑒))
192191mpteq2dva 5174 . . . . . . . . . . . . . . . . . . . . . . . . . . 27 ((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) → (𝑒 ∈ ((𝑁 ∖ {(1st𝑐)}) × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒))) = (𝑒 ∈ ((𝑁 ∖ {(1st𝑐)}) × 𝑁) ↦ (𝑎𝑒)))
193 difss 4066 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 (𝑁 ∖ {(1st𝑐)}) ⊆ 𝑁
194 xpss1 5608 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 ((𝑁 ∖ {(1st𝑐)}) ⊆ 𝑁 → ((𝑁 ∖ {(1st𝑐)}) × 𝑁) ⊆ (𝑁 × 𝑁))
195193, 194ax-mp 5 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 ((𝑁 ∖ {(1st𝑐)}) × 𝑁) ⊆ (𝑁 × 𝑁)
196 resmpt 5945 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 (((𝑁 ∖ {(1st𝑐)}) × 𝑁) ⊆ (𝑁 × 𝑁) → ((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒))) ↾ ((𝑁 ∖ {(1st𝑐)}) × 𝑁)) = (𝑒 ∈ ((𝑁 ∖ {(1st𝑐)}) × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒))))
197195, 196mp1i 13 . . . . . . . . . . . . . . . . . . . . . . . . . . 27 ((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) → ((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒))) ↾ ((𝑁 ∖ {(1st𝑐)}) × 𝑁)) = (𝑒 ∈ ((𝑁 ∖ {(1st𝑐)}) × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒))))
198 resmpt 5945 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 (((𝑁 ∖ {(1st𝑐)}) × 𝑁) ⊆ (𝑁 × 𝑁) → ((𝑒 ∈ (𝑁 × 𝑁) ↦ (𝑎𝑒)) ↾ ((𝑁 ∖ {(1st𝑐)}) × 𝑁)) = (𝑒 ∈ ((𝑁 ∖ {(1st𝑐)}) × 𝑁) ↦ (𝑎𝑒)))
199195, 198mp1i 13 . . . . . . . . . . . . . . . . . . . . . . . . . . 27 ((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) → ((𝑒 ∈ (𝑁 × 𝑁) ↦ (𝑎𝑒)) ↾ ((𝑁 ∖ {(1st𝑐)}) × 𝑁)) = (𝑒 ∈ ((𝑁 ∖ {(1st𝑐)}) × 𝑁) ↦ (𝑎𝑒)))
200192, 197, 1993eqtr4rd 2789 . . . . . . . . . . . . . . . . . . . . . . . . . 26 ((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) → ((𝑒 ∈ (𝑁 × 𝑁) ↦ (𝑎𝑒)) ↾ ((𝑁 ∖ {(1st𝑐)}) × 𝑁)) = ((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒))) ↾ ((𝑁 ∖ {(1st𝑐)}) × 𝑁)))
201185, 200eqtrd 2778 . . . . . . . . . . . . . . . . . . . . . . . . 25 ((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) → (𝑎 ↾ ((𝑁 ∖ {(1st𝑐)}) × 𝑁)) = ((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒))) ↾ ((𝑁 ∖ {(1st𝑐)}) × 𝑁)))
202 fveq2 6774 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 (𝑒 = 𝑐 → (1st𝑒) = (1st𝑐))
203190, 202nsyl 140 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 (((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) ∧ 𝑒 ∈ ((𝑁 ∖ {(1st𝑐)}) × 𝑁)) → ¬ 𝑒 = 𝑐)
204203iffalsed 4470 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 (((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) ∧ 𝑒 ∈ ((𝑁 ∖ {(1st𝑐)}) × 𝑁)) → if(𝑒 = 𝑐, if(𝑒𝑑, 1 , 0 ), (𝑎𝑒)) = (𝑎𝑒))
205204mpteq2dva 5174 . . . . . . . . . . . . . . . . . . . . . . . . . . 27 ((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) → (𝑒 ∈ ((𝑁 ∖ {(1st𝑐)}) × 𝑁) ↦ if(𝑒 = 𝑐, if(𝑒𝑑, 1 , 0 ), (𝑎𝑒))) = (𝑒 ∈ ((𝑁 ∖ {(1st𝑐)}) × 𝑁) ↦ (𝑎𝑒)))
206 resmpt 5945 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 (((𝑁 ∖ {(1st𝑐)}) × 𝑁) ⊆ (𝑁 × 𝑁) → ((𝑒 ∈ (𝑁 × 𝑁) ↦ if(𝑒 = 𝑐, if(𝑒𝑑, 1 , 0 ), (𝑎𝑒))) ↾ ((𝑁 ∖ {(1st𝑐)}) × 𝑁)) = (𝑒 ∈ ((𝑁 ∖ {(1st𝑐)}) × 𝑁) ↦ if(𝑒 = 𝑐, if(𝑒𝑑, 1 , 0 ), (𝑎𝑒))))
207195, 206mp1i 13 . . . . . . . . . . . . . . . . . . . . . . . . . . 27 ((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) → ((𝑒 ∈ (𝑁 × 𝑁) ↦ if(𝑒 = 𝑐, if(𝑒𝑑, 1 , 0 ), (𝑎𝑒))) ↾ ((𝑁 ∖ {(1st𝑐)}) × 𝑁)) = (𝑒 ∈ ((𝑁 ∖ {(1st𝑐)}) × 𝑁) ↦ if(𝑒 = 𝑐, if(𝑒𝑑, 1 , 0 ), (𝑎𝑒))))
208205, 207, 1993eqtr4rd 2789 . . . . . . . . . . . . . . . . . . . . . . . . . 26 ((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) → ((𝑒 ∈ (𝑁 × 𝑁) ↦ (𝑎𝑒)) ↾ ((𝑁 ∖ {(1st𝑐)}) × 𝑁)) = ((𝑒 ∈ (𝑁 × 𝑁) ↦ if(𝑒 = 𝑐, if(𝑒𝑑, 1 , 0 ), (𝑎𝑒))) ↾ ((𝑁 ∖ {(1st𝑐)}) × 𝑁)))
209185, 208eqtrd 2778 . . . . . . . . . . . . . . . . . . . . . . . . 25 ((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) → (𝑎 ↾ ((𝑁 ∖ {(1st𝑐)}) × 𝑁)) = ((𝑒 ∈ (𝑁 × 𝑁) ↦ if(𝑒 = 𝑐, if(𝑒𝑑, 1 , 0 ), (𝑎𝑒))) ↾ ((𝑁 ∖ {(1st𝑐)}) × 𝑁)))
210134adantr 481 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 (((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) ∧ 𝑒 ∈ (𝑁 × 𝑁)) → if(𝑒𝑑, 1 , 0 ) ∈ 𝐾)
211110ffvelrnda 6961 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 (((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) ∧ 𝑒 ∈ (𝑁 × 𝑁)) → (𝑎𝑒) ∈ 𝐾)
212210, 211ifcld 4505 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 (((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) ∧ 𝑒 ∈ (𝑁 × 𝑁)) → if(𝑒 = 𝑐, if(𝑒𝑑, 1 , 0 ), (𝑎𝑒)) ∈ 𝐾)
213212fmpttd 6989 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 ((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) → (𝑒 ∈ (𝑁 × 𝑁) ↦ if(𝑒 = 𝑐, if(𝑒𝑑, 1 , 0 ), (𝑎𝑒))):(𝑁 × 𝑁)⟶𝐾)
21412fvexi 6788 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 𝐾 ∈ V
21567anidms 567 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 (𝑁 ∈ Fin → (𝑁 × 𝑁) ∈ Fin)
216158, 215syl 17 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 ((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) → (𝑁 × 𝑁) ∈ Fin)
217 elmapg 8628 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 ((𝐾 ∈ V ∧ (𝑁 × 𝑁) ∈ Fin) → ((𝑒 ∈ (𝑁 × 𝑁) ↦ if(𝑒 = 𝑐, if(𝑒𝑑, 1 , 0 ), (𝑎𝑒))) ∈ (𝐾m (𝑁 × 𝑁)) ↔ (𝑒 ∈ (𝑁 × 𝑁) ↦ if(𝑒 = 𝑐, if(𝑒𝑑, 1 , 0 ), (𝑎𝑒))):(𝑁 × 𝑁)⟶𝐾))
218214, 216, 217sylancr 587 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 ((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) → ((𝑒 ∈ (𝑁 × 𝑁) ↦ if(𝑒 = 𝑐, if(𝑒𝑑, 1 , 0 ), (𝑎𝑒))) ∈ (𝐾m (𝑁 × 𝑁)) ↔ (𝑒 ∈ (𝑁 × 𝑁) ↦ if(𝑒 = 𝑐, if(𝑒𝑑, 1 , 0 ), (𝑎𝑒))):(𝑁 × 𝑁)⟶𝐾))
219213, 218mpbird 256 . . . . . . . . . . . . . . . . . . . . . . . . . . 27 ((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) → (𝑒 ∈ (𝑁 × 𝑁) ↦ if(𝑒 = 𝑐, if(𝑒𝑑, 1 , 0 ), (𝑎𝑒))) ∈ (𝐾m (𝑁 × 𝑁)))
22011, 12matbas2 21570 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 ((𝑁 ∈ Fin ∧ 𝑅 ∈ Ring) → (𝐾m (𝑁 × 𝑁)) = (Base‘𝐴))
221158, 113, 220syl2anc 584 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 ((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) → (𝐾m (𝑁 × 𝑁)) = (Base‘𝐴))
222221, 13eqtr4di 2796 . . . . . . . . . . . . . . . . . . . . . . . . . . 27 ((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) → (𝐾m (𝑁 × 𝑁)) = 𝐵)
223219, 222eleqtrd 2841 . . . . . . . . . . . . . . . . . . . . . . . . . 26 ((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) → (𝑒 ∈ (𝑁 × 𝑁) ↦ if(𝑒 = 𝑐, if(𝑒𝑑, 1 , 0 ), (𝑎𝑒))) ∈ 𝐵)
224 simp3 1137 . . . . . . . . . . . . . . . . . . . . . . . . . . 27 ((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) → 𝑎𝐵)
225115adantr 481 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 (((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) ∧ 𝑒 ∈ (𝑁 × 𝑁)) → 𝑅 ∈ Grp)
22612, 136grpsubcl 18655 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 ((𝑅 ∈ Grp ∧ (𝑎𝑒) ∈ 𝐾 ∧ if(𝑒𝑑, 1 , 0 ) ∈ 𝐾) → ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )) ∈ 𝐾)
227225, 211, 210, 226syl3anc 1370 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 (((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) ∧ 𝑒 ∈ (𝑁 × 𝑁)) → ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )) ∈ 𝐾)
228133adantr 481 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 (((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) ∧ 𝑒 ∈ (𝑁 × 𝑁)) → 0𝐾)
229227, 228ifcld 4505 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 (((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) ∧ 𝑒 ∈ (𝑁 × 𝑁)) → if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ) ∈ 𝐾)
230229, 211ifcld 4505 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 (((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) ∧ 𝑒 ∈ (𝑁 × 𝑁)) → if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒)) ∈ 𝐾)
231230fmpttd 6989 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 ((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) → (𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒))):(𝑁 × 𝑁)⟶𝐾)
232 elmapg 8628 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 ((𝐾 ∈ V ∧ (𝑁 × 𝑁) ∈ Fin) → ((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒))) ∈ (𝐾m (𝑁 × 𝑁)) ↔ (𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒))):(𝑁 × 𝑁)⟶𝐾))
233214, 216, 232sylancr 587 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 ((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) → ((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒))) ∈ (𝐾m (𝑁 × 𝑁)) ↔ (𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒))):(𝑁 × 𝑁)⟶𝐾))
234231, 233mpbird 256 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 ((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) → (𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒))) ∈ (𝐾m (𝑁 × 𝑁)))
235234, 222eleqtrd 2841 . . . . . . . . . . . . . . . . . . . . . . . . . . 27 ((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) → (𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒))) ∈ 𝐵)
236553ad2ant1 1132 . . . . . . . . . . . . . . . . . . . . . . . . . . 27 ((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) → ∀𝑥𝐵𝑦𝐵𝑧𝐵𝑤𝑁 (((𝑥 ↾ ({𝑤} × 𝑁)) = ((𝑦 ↾ ({𝑤} × 𝑁)) ∘f + (𝑧 ↾ ({𝑤} × 𝑁))) ∧ (𝑥 ↾ ((𝑁 ∖ {𝑤}) × 𝑁)) = (𝑦 ↾ ((𝑁 ∖ {𝑤}) × 𝑁)) ∧ (𝑥 ↾ ((𝑁 ∖ {𝑤}) × 𝑁)) = (𝑧 ↾ ((𝑁 ∖ {𝑤}) × 𝑁))) → (𝐷𝑥) = ((𝐷𝑦) + (𝐷𝑧))))
237 reseq1 5885 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 (𝑥 = 𝑎 → (𝑥 ↾ ({𝑤} × 𝑁)) = (𝑎 ↾ ({𝑤} × 𝑁)))
238237eqeq1d 2740 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 (𝑥 = 𝑎 → ((𝑥 ↾ ({𝑤} × 𝑁)) = ((𝑦 ↾ ({𝑤} × 𝑁)) ∘f + (𝑧 ↾ ({𝑤} × 𝑁))) ↔ (𝑎 ↾ ({𝑤} × 𝑁)) = ((𝑦 ↾ ({𝑤} × 𝑁)) ∘f + (𝑧 ↾ ({𝑤} × 𝑁)))))
239 reseq1 5885 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 (𝑥 = 𝑎 → (𝑥 ↾ ((𝑁 ∖ {𝑤}) × 𝑁)) = (𝑎 ↾ ((𝑁 ∖ {𝑤}) × 𝑁)))
240239eqeq1d 2740 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 (𝑥 = 𝑎 → ((𝑥 ↾ ((𝑁 ∖ {𝑤}) × 𝑁)) = (𝑦 ↾ ((𝑁 ∖ {𝑤}) × 𝑁)) ↔ (𝑎 ↾ ((𝑁 ∖ {𝑤}) × 𝑁)) = (𝑦 ↾ ((𝑁 ∖ {𝑤}) × 𝑁))))
241239eqeq1d 2740 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 (𝑥 = 𝑎 → ((𝑥 ↾ ((𝑁 ∖ {𝑤}) × 𝑁)) = (𝑧 ↾ ((𝑁 ∖ {𝑤}) × 𝑁)) ↔ (𝑎 ↾ ((𝑁 ∖ {𝑤}) × 𝑁)) = (𝑧 ↾ ((𝑁 ∖ {𝑤}) × 𝑁))))
242238, 240, 2413anbi123d 1435 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 (𝑥 = 𝑎 → (((𝑥 ↾ ({𝑤} × 𝑁)) = ((𝑦 ↾ ({𝑤} × 𝑁)) ∘f + (𝑧 ↾ ({𝑤} × 𝑁))) ∧ (𝑥 ↾ ((𝑁 ∖ {𝑤}) × 𝑁)) = (𝑦 ↾ ((𝑁 ∖ {𝑤}) × 𝑁)) ∧ (𝑥 ↾ ((𝑁 ∖ {𝑤}) × 𝑁)) = (𝑧 ↾ ((𝑁 ∖ {𝑤}) × 𝑁))) ↔ ((𝑎 ↾ ({𝑤} × 𝑁)) = ((𝑦 ↾ ({𝑤} × 𝑁)) ∘f + (𝑧 ↾ ({𝑤} × 𝑁))) ∧ (𝑎 ↾ ((𝑁 ∖ {𝑤}) × 𝑁)) = (𝑦 ↾ ((𝑁 ∖ {𝑤}) × 𝑁)) ∧ (𝑎 ↾ ((𝑁 ∖ {𝑤}) × 𝑁)) = (𝑧 ↾ ((𝑁 ∖ {𝑤}) × 𝑁)))))
243 fveqeq2 6783 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 (𝑥 = 𝑎 → ((𝐷𝑥) = ((𝐷𝑦) + (𝐷𝑧)) ↔ (𝐷𝑎) = ((𝐷𝑦) + (𝐷𝑧))))
244242, 243imbi12d 345 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 (𝑥 = 𝑎 → ((((𝑥 ↾ ({𝑤} × 𝑁)) = ((𝑦 ↾ ({𝑤} × 𝑁)) ∘f + (𝑧 ↾ ({𝑤} × 𝑁))) ∧ (𝑥 ↾ ((𝑁 ∖ {𝑤}) × 𝑁)) = (𝑦 ↾ ((𝑁 ∖ {𝑤}) × 𝑁)) ∧ (𝑥 ↾ ((𝑁 ∖ {𝑤}) × 𝑁)) = (𝑧 ↾ ((𝑁 ∖ {𝑤}) × 𝑁))) → (𝐷𝑥) = ((𝐷𝑦) + (𝐷𝑧))) ↔ (((𝑎 ↾ ({𝑤} × 𝑁)) = ((𝑦 ↾ ({𝑤} × 𝑁)) ∘f + (𝑧 ↾ ({𝑤} × 𝑁))) ∧ (𝑎 ↾ ((𝑁 ∖ {𝑤}) × 𝑁)) = (𝑦 ↾ ((𝑁 ∖ {𝑤}) × 𝑁)) ∧ (𝑎 ↾ ((𝑁 ∖ {𝑤}) × 𝑁)) = (𝑧 ↾ ((𝑁 ∖ {𝑤}) × 𝑁))) → (𝐷𝑎) = ((𝐷𝑦) + (𝐷𝑧)))))
2452442ralbidv 3129 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 (𝑥 = 𝑎 → (∀𝑧𝐵𝑤𝑁 (((𝑥 ↾ ({𝑤} × 𝑁)) = ((𝑦 ↾ ({𝑤} × 𝑁)) ∘f + (𝑧 ↾ ({𝑤} × 𝑁))) ∧ (𝑥 ↾ ((𝑁 ∖ {𝑤}) × 𝑁)) = (𝑦 ↾ ((𝑁 ∖ {𝑤}) × 𝑁)) ∧ (𝑥 ↾ ((𝑁 ∖ {𝑤}) × 𝑁)) = (𝑧 ↾ ((𝑁 ∖ {𝑤}) × 𝑁))) → (𝐷𝑥) = ((𝐷𝑦) + (𝐷𝑧))) ↔ ∀𝑧𝐵𝑤𝑁 (((𝑎 ↾ ({𝑤} × 𝑁)) = ((𝑦 ↾ ({𝑤} × 𝑁)) ∘f + (𝑧 ↾ ({𝑤} × 𝑁))) ∧ (𝑎 ↾ ((𝑁 ∖ {𝑤}) × 𝑁)) = (𝑦 ↾ ((𝑁 ∖ {𝑤}) × 𝑁)) ∧ (𝑎 ↾ ((𝑁 ∖ {𝑤}) × 𝑁)) = (𝑧 ↾ ((𝑁 ∖ {𝑤}) × 𝑁))) → (𝐷𝑎) = ((𝐷𝑦) + (𝐷𝑧)))))
246 reseq1 5885 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 (𝑦 = (𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒))) → (𝑦 ↾ ({𝑤} × 𝑁)) = ((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒))) ↾ ({𝑤} × 𝑁)))
247246oveq1d 7290 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 (𝑦 = (𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒))) → ((𝑦 ↾ ({𝑤} × 𝑁)) ∘f + (𝑧 ↾ ({𝑤} × 𝑁))) = (((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒))) ↾ ({𝑤} × 𝑁)) ∘f + (𝑧 ↾ ({𝑤} × 𝑁))))
248247eqeq2d 2749 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 (𝑦 = (𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒))) → ((𝑎 ↾ ({𝑤} × 𝑁)) = ((𝑦 ↾ ({𝑤} × 𝑁)) ∘f + (𝑧 ↾ ({𝑤} × 𝑁))) ↔ (𝑎 ↾ ({𝑤} × 𝑁)) = (((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒))) ↾ ({𝑤} × 𝑁)) ∘f + (𝑧 ↾ ({𝑤} × 𝑁)))))
249 reseq1 5885 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 (𝑦 = (𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒))) → (𝑦 ↾ ((𝑁 ∖ {𝑤}) × 𝑁)) = ((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒))) ↾ ((𝑁 ∖ {𝑤}) × 𝑁)))
250249eqeq2d 2749 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 (𝑦 = (𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒))) → ((𝑎 ↾ ((𝑁 ∖ {𝑤}) × 𝑁)) = (𝑦 ↾ ((𝑁 ∖ {𝑤}) × 𝑁)) ↔ (𝑎 ↾ ((𝑁 ∖ {𝑤}) × 𝑁)) = ((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒))) ↾ ((𝑁 ∖ {𝑤}) × 𝑁))))
251248, 2503anbi12d 1436 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 (𝑦 = (𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒))) → (((𝑎 ↾ ({𝑤} × 𝑁)) = ((𝑦 ↾ ({𝑤} × 𝑁)) ∘f + (𝑧 ↾ ({𝑤} × 𝑁))) ∧ (𝑎 ↾ ((𝑁 ∖ {𝑤}) × 𝑁)) = (𝑦 ↾ ((𝑁 ∖ {𝑤}) × 𝑁)) ∧ (𝑎 ↾ ((𝑁 ∖ {𝑤}) × 𝑁)) = (𝑧 ↾ ((𝑁 ∖ {𝑤}) × 𝑁))) ↔ ((𝑎 ↾ ({𝑤} × 𝑁)) = (((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒))) ↾ ({𝑤} × 𝑁)) ∘f + (𝑧 ↾ ({𝑤} × 𝑁))) ∧ (𝑎 ↾ ((𝑁 ∖ {𝑤}) × 𝑁)) = ((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒))) ↾ ((𝑁 ∖ {𝑤}) × 𝑁)) ∧ (𝑎 ↾ ((𝑁 ∖ {𝑤}) × 𝑁)) = (𝑧 ↾ ((𝑁 ∖ {𝑤}) × 𝑁)))))
252 fveq2 6774 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 (𝑦 = (𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒))) → (𝐷𝑦) = (𝐷‘(𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒)))))
253252oveq1d 7290 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 (𝑦 = (𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒))) → ((𝐷𝑦) + (𝐷𝑧)) = ((𝐷‘(𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒)))) + (𝐷𝑧)))
254253eqeq2d 2749 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 (𝑦 = (𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒))) → ((𝐷𝑎) = ((𝐷𝑦) + (𝐷𝑧)) ↔ (𝐷𝑎) = ((𝐷‘(𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒)))) + (𝐷𝑧))))
255251, 254imbi12d 345 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 (𝑦 = (𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒))) → ((((𝑎 ↾ ({𝑤} × 𝑁)) = ((𝑦 ↾ ({𝑤} × 𝑁)) ∘f + (𝑧 ↾ ({𝑤} × 𝑁))) ∧ (𝑎 ↾ ((𝑁 ∖ {𝑤}) × 𝑁)) = (𝑦 ↾ ((𝑁 ∖ {𝑤}) × 𝑁)) ∧ (𝑎 ↾ ((𝑁 ∖ {𝑤}) × 𝑁)) = (𝑧 ↾ ((𝑁 ∖ {𝑤}) × 𝑁))) → (𝐷𝑎) = ((𝐷𝑦) + (𝐷𝑧))) ↔ (((𝑎 ↾ ({𝑤} × 𝑁)) = (((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒))) ↾ ({𝑤} × 𝑁)) ∘f + (𝑧 ↾ ({𝑤} × 𝑁))) ∧ (𝑎 ↾ ((𝑁 ∖ {𝑤}) × 𝑁)) = ((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒))) ↾ ((𝑁 ∖ {𝑤}) × 𝑁)) ∧ (𝑎 ↾ ((𝑁 ∖ {𝑤}) × 𝑁)) = (𝑧 ↾ ((𝑁 ∖ {𝑤}) × 𝑁))) → (𝐷𝑎) = ((𝐷‘(𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒)))) + (𝐷𝑧)))))
2562552ralbidv 3129 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 (𝑦 = (𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒))) → (∀𝑧𝐵𝑤𝑁 (((𝑎 ↾ ({𝑤} × 𝑁)) = ((𝑦 ↾ ({𝑤} × 𝑁)) ∘f + (𝑧 ↾ ({𝑤} × 𝑁))) ∧ (𝑎 ↾ ((𝑁 ∖ {𝑤}) × 𝑁)) = (𝑦 ↾ ((𝑁 ∖ {𝑤}) × 𝑁)) ∧ (𝑎 ↾ ((𝑁 ∖ {𝑤}) × 𝑁)) = (𝑧 ↾ ((𝑁 ∖ {𝑤}) × 𝑁))) → (𝐷𝑎) = ((𝐷𝑦) + (𝐷𝑧))) ↔ ∀𝑧𝐵𝑤𝑁 (((𝑎 ↾ ({𝑤} × 𝑁)) = (((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒))) ↾ ({𝑤} × 𝑁)) ∘f + (𝑧 ↾ ({𝑤} × 𝑁))) ∧ (𝑎 ↾ ((𝑁 ∖ {𝑤}) × 𝑁)) = ((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒))) ↾ ((𝑁 ∖ {𝑤}) × 𝑁)) ∧ (𝑎 ↾ ((𝑁 ∖ {𝑤}) × 𝑁)) = (𝑧 ↾ ((𝑁 ∖ {𝑤}) × 𝑁))) → (𝐷𝑎) = ((𝐷‘(𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒)))) + (𝐷𝑧)))))
257245, 256rspc2va 3571 . . . . . . . . . . . . . . . . . . . . . . . . . . 27 (((𝑎𝐵 ∧ (𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒))) ∈ 𝐵) ∧ ∀𝑥𝐵𝑦𝐵𝑧𝐵𝑤𝑁 (((𝑥 ↾ ({𝑤} × 𝑁)) = ((𝑦 ↾ ({𝑤} × 𝑁)) ∘f + (𝑧 ↾ ({𝑤} × 𝑁))) ∧ (𝑥 ↾ ((𝑁 ∖ {𝑤}) × 𝑁)) = (𝑦 ↾ ((𝑁 ∖ {𝑤}) × 𝑁)) ∧ (𝑥 ↾ ((𝑁 ∖ {𝑤}) × 𝑁)) = (𝑧 ↾ ((𝑁 ∖ {𝑤}) × 𝑁))) → (𝐷𝑥) = ((𝐷𝑦) + (𝐷𝑧)))) → ∀𝑧𝐵𝑤𝑁 (((𝑎 ↾ ({𝑤} × 𝑁)) = (((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒))) ↾ ({𝑤} × 𝑁)) ∘f + (𝑧 ↾ ({𝑤} × 𝑁))) ∧ (𝑎 ↾ ((𝑁 ∖ {𝑤}) × 𝑁)) = ((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒))) ↾ ((𝑁 ∖ {𝑤}) × 𝑁)) ∧ (𝑎 ↾ ((𝑁 ∖ {𝑤}) × 𝑁)) = (𝑧 ↾ ((𝑁 ∖ {𝑤}) × 𝑁))) → (𝐷𝑎) = ((𝐷‘(𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒)))) + (𝐷𝑧))))
258224, 235, 236, 257syl21anc 835 . . . . . . . . . . . . . . . . . . . . . . . . . 26 ((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) → ∀𝑧𝐵𝑤𝑁 (((𝑎 ↾ ({𝑤} × 𝑁)) = (((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒))) ↾ ({𝑤} × 𝑁)) ∘f + (𝑧 ↾ ({𝑤} × 𝑁))) ∧ (𝑎 ↾ ((𝑁 ∖ {𝑤}) × 𝑁)) = ((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒))) ↾ ((𝑁 ∖ {𝑤}) × 𝑁)) ∧ (𝑎 ↾ ((𝑁 ∖ {𝑤}) × 𝑁)) = (𝑧 ↾ ((𝑁 ∖ {𝑤}) × 𝑁))) → (𝐷𝑎) = ((𝐷‘(𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒)))) + (𝐷𝑧))))
259 reseq1 5885 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 (𝑧 = (𝑒 ∈ (𝑁 × 𝑁) ↦ if(𝑒 = 𝑐, if(𝑒𝑑, 1 , 0 ), (𝑎𝑒))) → (𝑧 ↾ ({𝑤} × 𝑁)) = ((𝑒 ∈ (𝑁 × 𝑁) ↦ if(𝑒 = 𝑐, if(𝑒𝑑, 1 , 0 ), (𝑎𝑒))) ↾ ({𝑤} × 𝑁)))
260259oveq2d 7291 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 (𝑧 = (𝑒 ∈ (𝑁 × 𝑁) ↦ if(𝑒 = 𝑐, if(𝑒𝑑, 1 , 0 ), (𝑎𝑒))) → (((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒))) ↾ ({𝑤} × 𝑁)) ∘f + (𝑧 ↾ ({𝑤} × 𝑁))) = (((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒))) ↾ ({𝑤} × 𝑁)) ∘f + ((𝑒 ∈ (𝑁 × 𝑁) ↦ if(𝑒 = 𝑐, if(𝑒𝑑, 1 , 0 ), (𝑎𝑒))) ↾ ({𝑤} × 𝑁))))
261260eqeq2d 2749 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 (𝑧 = (𝑒 ∈ (𝑁 × 𝑁) ↦ if(𝑒 = 𝑐, if(𝑒𝑑, 1 , 0 ), (𝑎𝑒))) → ((𝑎 ↾ ({𝑤} × 𝑁)) = (((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒))) ↾ ({𝑤} × 𝑁)) ∘f + (𝑧 ↾ ({𝑤} × 𝑁))) ↔ (𝑎 ↾ ({𝑤} × 𝑁)) = (((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒))) ↾ ({𝑤} × 𝑁)) ∘f + ((𝑒 ∈ (𝑁 × 𝑁) ↦ if(𝑒 = 𝑐, if(𝑒𝑑, 1 , 0 ), (𝑎𝑒))) ↾ ({𝑤} × 𝑁)))))
262 reseq1 5885 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 (𝑧 = (𝑒 ∈ (𝑁 × 𝑁) ↦ if(𝑒 = 𝑐, if(𝑒𝑑, 1 , 0 ), (𝑎𝑒))) → (𝑧 ↾ ((𝑁 ∖ {𝑤}) × 𝑁)) = ((𝑒 ∈ (𝑁 × 𝑁) ↦ if(𝑒 = 𝑐, if(𝑒𝑑, 1 , 0 ), (𝑎𝑒))) ↾ ((𝑁 ∖ {𝑤}) × 𝑁)))
263262eqeq2d 2749 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 (𝑧 = (𝑒 ∈ (𝑁 × 𝑁) ↦ if(𝑒 = 𝑐, if(𝑒𝑑, 1 , 0 ), (𝑎𝑒))) → ((𝑎 ↾ ((𝑁 ∖ {𝑤}) × 𝑁)) = (𝑧 ↾ ((𝑁 ∖ {𝑤}) × 𝑁)) ↔ (𝑎 ↾ ((𝑁 ∖ {𝑤}) × 𝑁)) = ((𝑒 ∈ (𝑁 × 𝑁) ↦ if(𝑒 = 𝑐, if(𝑒𝑑, 1 , 0 ), (𝑎𝑒))) ↾ ((𝑁 ∖ {𝑤}) × 𝑁))))
264261, 2633anbi13d 1437 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 (𝑧 = (𝑒 ∈ (𝑁 × 𝑁) ↦ if(𝑒 = 𝑐, if(𝑒𝑑, 1 , 0 ), (𝑎𝑒))) → (((𝑎 ↾ ({𝑤} × 𝑁)) = (((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒))) ↾ ({𝑤} × 𝑁)) ∘f + (𝑧 ↾ ({𝑤} × 𝑁))) ∧ (𝑎 ↾ ((𝑁 ∖ {𝑤}) × 𝑁)) = ((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒))) ↾ ((𝑁 ∖ {𝑤}) × 𝑁)) ∧ (𝑎 ↾ ((𝑁 ∖ {𝑤}) × 𝑁)) = (𝑧 ↾ ((𝑁 ∖ {𝑤}) × 𝑁))) ↔ ((𝑎 ↾ ({𝑤} × 𝑁)) = (((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒))) ↾ ({𝑤} × 𝑁)) ∘f + ((𝑒 ∈ (𝑁 × 𝑁) ↦ if(𝑒 = 𝑐, if(𝑒𝑑, 1 , 0 ), (𝑎𝑒))) ↾ ({𝑤} × 𝑁))) ∧ (𝑎 ↾ ((𝑁 ∖ {𝑤}) × 𝑁)) = ((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒))) ↾ ((𝑁 ∖ {𝑤}) × 𝑁)) ∧ (𝑎 ↾ ((𝑁 ∖ {𝑤}) × 𝑁)) = ((𝑒 ∈ (𝑁 × 𝑁) ↦ if(𝑒 = 𝑐, if(𝑒𝑑, 1 , 0 ), (𝑎𝑒))) ↾ ((𝑁 ∖ {𝑤}) × 𝑁)))))
265 fveq2 6774 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 (𝑧 = (𝑒 ∈ (𝑁 × 𝑁) ↦ if(𝑒 = 𝑐, if(𝑒𝑑, 1 , 0 ), (𝑎𝑒))) → (𝐷𝑧) = (𝐷‘(𝑒 ∈ (𝑁 × 𝑁) ↦ if(𝑒 = 𝑐, if(𝑒𝑑, 1 , 0 ), (𝑎𝑒)))))
266265oveq2d 7291 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 (𝑧 = (𝑒 ∈ (𝑁 × 𝑁) ↦ if(𝑒 = 𝑐, if(𝑒𝑑, 1 , 0 ), (𝑎𝑒))) → ((𝐷‘(𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒)))) + (𝐷𝑧)) = ((𝐷‘(𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒)))) + (𝐷‘(𝑒 ∈ (𝑁 × 𝑁) ↦ if(𝑒 = 𝑐, if(𝑒𝑑, 1 , 0 ), (𝑎𝑒))))))
267266eqeq2d 2749 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 (𝑧 = (𝑒 ∈ (𝑁 × 𝑁) ↦ if(𝑒 = 𝑐, if(𝑒𝑑, 1 , 0 ), (𝑎𝑒))) → ((𝐷𝑎) = ((𝐷‘(𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒)))) + (𝐷𝑧)) ↔ (𝐷𝑎) = ((𝐷‘(𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒)))) + (𝐷‘(𝑒 ∈ (𝑁 × 𝑁) ↦ if(𝑒 = 𝑐, if(𝑒𝑑, 1 , 0 ), (𝑎𝑒)))))))
268264, 267imbi12d 345 . . . . . . . . . . . . . . . . . . . . . . . . . . 27 (𝑧 = (𝑒 ∈ (𝑁 × 𝑁) ↦ if(𝑒 = 𝑐, if(𝑒𝑑, 1 , 0 ), (𝑎𝑒))) → ((((𝑎 ↾ ({𝑤} × 𝑁)) = (((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒))) ↾ ({𝑤} × 𝑁)) ∘f + (𝑧 ↾ ({𝑤} × 𝑁))) ∧ (𝑎 ↾ ((𝑁 ∖ {𝑤}) × 𝑁)) = ((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒))) ↾ ((𝑁 ∖ {𝑤}) × 𝑁)) ∧ (𝑎 ↾ ((𝑁 ∖ {𝑤}) × 𝑁)) = (𝑧 ↾ ((𝑁 ∖ {𝑤}) × 𝑁))) → (𝐷𝑎) = ((𝐷‘(𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒)))) + (𝐷𝑧))) ↔ (((𝑎 ↾ ({𝑤} × 𝑁)) = (((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒))) ↾ ({𝑤} × 𝑁)) ∘f + ((𝑒 ∈ (𝑁 × 𝑁) ↦ if(𝑒 = 𝑐, if(𝑒𝑑, 1 , 0 ), (𝑎𝑒))) ↾ ({𝑤} × 𝑁))) ∧ (𝑎 ↾ ((𝑁 ∖ {𝑤}) × 𝑁)) = ((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒))) ↾ ((𝑁 ∖ {𝑤}) × 𝑁)) ∧ (𝑎 ↾ ((𝑁 ∖ {𝑤}) × 𝑁)) = ((𝑒 ∈ (𝑁 × 𝑁) ↦ if(𝑒 = 𝑐, if(𝑒𝑑, 1 , 0 ), (𝑎𝑒))) ↾ ((𝑁 ∖ {𝑤}) × 𝑁))) → (𝐷𝑎) = ((𝐷‘(𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒)))) + (𝐷‘(𝑒 ∈ (𝑁 × 𝑁) ↦ if(𝑒 = 𝑐, if(𝑒𝑑, 1 , 0 ), (𝑎𝑒))))))))
269 sneq 4571 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 (𝑤 = (1st𝑐) → {𝑤} = {(1st𝑐)})
270269xpeq1d 5618 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 (𝑤 = (1st𝑐) → ({𝑤} × 𝑁) = ({(1st𝑐)} × 𝑁))
271270reseq2d 5891 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 (𝑤 = (1st𝑐) → (𝑎 ↾ ({𝑤} × 𝑁)) = (𝑎 ↾ ({(1st𝑐)} × 𝑁)))
272270reseq2d 5891 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 (𝑤 = (1st𝑐) → ((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒))) ↾ ({𝑤} × 𝑁)) = ((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒))) ↾ ({(1st𝑐)} × 𝑁)))
273270reseq2d 5891 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 (𝑤 = (1st𝑐) → ((𝑒 ∈ (𝑁 × 𝑁) ↦ if(𝑒 = 𝑐, if(𝑒𝑑, 1 , 0 ), (𝑎𝑒))) ↾ ({𝑤} × 𝑁)) = ((𝑒 ∈ (𝑁 × 𝑁) ↦ if(𝑒 = 𝑐, if(𝑒𝑑, 1 , 0 ), (𝑎𝑒))) ↾ ({(1st𝑐)} × 𝑁)))
274272, 273oveq12d 7293 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 (𝑤 = (1st𝑐) → (((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒))) ↾ ({𝑤} × 𝑁)) ∘f + ((𝑒 ∈ (𝑁 × 𝑁) ↦ if(𝑒 = 𝑐, if(𝑒𝑑, 1 , 0 ), (𝑎𝑒))) ↾ ({𝑤} × 𝑁))) = (((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒))) ↾ ({(1st𝑐)} × 𝑁)) ∘f + ((𝑒 ∈ (𝑁 × 𝑁) ↦ if(𝑒 = 𝑐, if(𝑒𝑑, 1 , 0 ), (𝑎𝑒))) ↾ ({(1st𝑐)} × 𝑁))))
275271, 274eqeq12d 2754 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 (𝑤 = (1st𝑐) → ((𝑎 ↾ ({𝑤} × 𝑁)) = (((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒))) ↾ ({𝑤} × 𝑁)) ∘f + ((𝑒 ∈ (𝑁 × 𝑁) ↦ if(𝑒 = 𝑐, if(𝑒𝑑, 1 , 0 ), (𝑎𝑒))) ↾ ({𝑤} × 𝑁))) ↔ (𝑎 ↾ ({(1st𝑐)} × 𝑁)) = (((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒))) ↾ ({(1st𝑐)} × 𝑁)) ∘f + ((𝑒 ∈ (𝑁 × 𝑁) ↦ if(𝑒 = 𝑐, if(𝑒𝑑, 1 , 0 ), (𝑎𝑒))) ↾ ({(1st𝑐)} × 𝑁)))))
276269difeq2d 4057 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 (𝑤 = (1st𝑐) → (𝑁 ∖ {𝑤}) = (𝑁 ∖ {(1st𝑐)}))
277276xpeq1d 5618 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 (𝑤 = (1st𝑐) → ((𝑁 ∖ {𝑤}) × 𝑁) = ((𝑁 ∖ {(1st𝑐)}) × 𝑁))
278277reseq2d 5891 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 (𝑤 = (1st𝑐) → (𝑎 ↾ ((𝑁 ∖ {𝑤}) × 𝑁)) = (𝑎 ↾ ((𝑁 ∖ {(1st𝑐)}) × 𝑁)))
279277reseq2d 5891 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 (𝑤 = (1st𝑐) → ((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒))) ↾ ((𝑁 ∖ {𝑤}) × 𝑁)) = ((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒))) ↾ ((𝑁 ∖ {(1st𝑐)}) × 𝑁)))
280278, 279eqeq12d 2754 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 (𝑤 = (1st𝑐) → ((𝑎 ↾ ((𝑁 ∖ {𝑤}) × 𝑁)) = ((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒))) ↾ ((𝑁 ∖ {𝑤}) × 𝑁)) ↔ (𝑎 ↾ ((𝑁 ∖ {(1st𝑐)}) × 𝑁)) = ((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒))) ↾ ((𝑁 ∖ {(1st𝑐)}) × 𝑁))))
281277reseq2d 5891 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 (𝑤 = (1st𝑐) → ((𝑒 ∈ (𝑁 × 𝑁) ↦ if(𝑒 = 𝑐, if(𝑒𝑑, 1 , 0 ), (𝑎𝑒))) ↾ ((𝑁 ∖ {𝑤}) × 𝑁)) = ((𝑒 ∈ (𝑁 × 𝑁) ↦ if(𝑒 = 𝑐, if(𝑒𝑑, 1 , 0 ), (𝑎𝑒))) ↾ ((𝑁 ∖ {(1st𝑐)}) × 𝑁)))
282278, 281eqeq12d 2754 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 (𝑤 = (1st𝑐) → ((𝑎 ↾ ((𝑁 ∖ {𝑤}) × 𝑁)) = ((𝑒 ∈ (𝑁 × 𝑁) ↦ if(𝑒 = 𝑐, if(𝑒𝑑, 1 , 0 ), (𝑎𝑒))) ↾ ((𝑁 ∖ {𝑤}) × 𝑁)) ↔ (𝑎 ↾ ((𝑁 ∖ {(1st𝑐)}) × 𝑁)) = ((𝑒 ∈ (𝑁 × 𝑁) ↦ if(𝑒 = 𝑐, if(𝑒𝑑, 1 , 0 ), (𝑎𝑒))) ↾ ((𝑁 ∖ {(1st𝑐)}) × 𝑁))))
283275, 280, 2823anbi123d 1435 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 (𝑤 = (1st𝑐) → (((𝑎 ↾ ({𝑤} × 𝑁)) = (((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒))) ↾ ({𝑤} × 𝑁)) ∘f + ((𝑒 ∈ (𝑁 × 𝑁) ↦ if(𝑒 = 𝑐, if(𝑒𝑑, 1 , 0 ), (𝑎𝑒))) ↾ ({𝑤} × 𝑁))) ∧ (𝑎 ↾ ((𝑁 ∖ {𝑤}) × 𝑁)) = ((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒))) ↾ ((𝑁 ∖ {𝑤}) × 𝑁)) ∧ (𝑎 ↾ ((𝑁 ∖ {𝑤}) × 𝑁)) = ((𝑒 ∈ (𝑁 × 𝑁) ↦ if(𝑒 = 𝑐, if(𝑒𝑑, 1 , 0 ), (𝑎𝑒))) ↾ ((𝑁 ∖ {𝑤}) × 𝑁))) ↔ ((𝑎 ↾ ({(1st𝑐)} × 𝑁)) = (((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒))) ↾ ({(1st𝑐)} × 𝑁)) ∘f + ((𝑒 ∈ (𝑁 × 𝑁) ↦ if(𝑒 = 𝑐, if(𝑒𝑑, 1 , 0 ), (𝑎𝑒))) ↾ ({(1st𝑐)} × 𝑁))) ∧ (𝑎 ↾ ((𝑁 ∖ {(1st𝑐)}) × 𝑁)) = ((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒))) ↾ ((𝑁 ∖ {(1st𝑐)}) × 𝑁)) ∧ (𝑎 ↾ ((𝑁 ∖ {(1st𝑐)}) × 𝑁)) = ((𝑒 ∈ (𝑁 × 𝑁) ↦ if(𝑒 = 𝑐, if(𝑒𝑑, 1 , 0 ), (𝑎𝑒))) ↾ ((𝑁 ∖ {(1st𝑐)}) × 𝑁)))))
284283imbi1d 342 . . . . . . . . . . . . . . . . . . . . . . . . . . 27 (𝑤 = (1st𝑐) → ((((𝑎 ↾ ({𝑤} × 𝑁)) = (((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒))) ↾ ({𝑤} × 𝑁)) ∘f + ((𝑒 ∈ (𝑁 × 𝑁) ↦ if(𝑒 = 𝑐, if(𝑒𝑑, 1 , 0 ), (𝑎𝑒))) ↾ ({𝑤} × 𝑁))) ∧ (𝑎 ↾ ((𝑁 ∖ {𝑤}) × 𝑁)) = ((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒))) ↾ ((𝑁 ∖ {𝑤}) × 𝑁)) ∧ (𝑎 ↾ ((𝑁 ∖ {𝑤}) × 𝑁)) = ((𝑒 ∈ (𝑁 × 𝑁) ↦ if(𝑒 = 𝑐, if(𝑒𝑑, 1 , 0 ), (𝑎𝑒))) ↾ ((𝑁 ∖ {𝑤}) × 𝑁))) → (𝐷𝑎) = ((𝐷‘(𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒)))) + (𝐷‘(𝑒 ∈ (𝑁 × 𝑁) ↦ if(𝑒 = 𝑐, if(𝑒𝑑, 1 , 0 ), (𝑎𝑒)))))) ↔ (((𝑎 ↾ ({(1st𝑐)} × 𝑁)) = (((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒))) ↾ ({(1st𝑐)} × 𝑁)) ∘f + ((𝑒 ∈ (𝑁 × 𝑁) ↦ if(𝑒 = 𝑐, if(𝑒𝑑, 1 , 0 ), (𝑎𝑒))) ↾ ({(1st𝑐)} × 𝑁))) ∧ (𝑎 ↾ ((𝑁 ∖ {(1st𝑐)}) × 𝑁)) = ((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒))) ↾ ((𝑁 ∖ {(1st𝑐)}) × 𝑁)) ∧ (𝑎 ↾ ((𝑁 ∖ {(1st𝑐)}) × 𝑁)) = ((𝑒 ∈ (𝑁 × 𝑁) ↦ if(𝑒 = 𝑐, if(𝑒𝑑, 1 , 0 ), (𝑎𝑒))) ↾ ((𝑁 ∖ {(1st𝑐)}) × 𝑁))) → (𝐷𝑎) = ((𝐷‘(𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒)))) + (𝐷‘(𝑒 ∈ (𝑁 × 𝑁) ↦ if(𝑒 = 𝑐, if(𝑒𝑑, 1 , 0 ), (𝑎𝑒))))))))
285268, 284rspc2va 3571 . . . . . . . . . . . . . . . . . . . . . . . . . 26 ((((𝑒 ∈ (𝑁 × 𝑁) ↦ if(𝑒 = 𝑐, if(𝑒𝑑, 1 , 0 ), (𝑎𝑒))) ∈ 𝐵 ∧ (1st𝑐) ∈ 𝑁) ∧ ∀𝑧𝐵𝑤𝑁 (((𝑎 ↾ ({𝑤} × 𝑁)) = (((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒))) ↾ ({𝑤} × 𝑁)) ∘f + (𝑧 ↾ ({𝑤} × 𝑁))) ∧ (𝑎 ↾ ((𝑁 ∖ {𝑤}) × 𝑁)) = ((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒))) ↾ ((𝑁 ∖ {𝑤}) × 𝑁)) ∧ (𝑎 ↾ ((𝑁 ∖ {𝑤}) × 𝑁)) = (𝑧 ↾ ((𝑁 ∖ {𝑤}) × 𝑁))) → (𝐷𝑎) = ((𝐷‘(𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒)))) + (𝐷𝑧)))) → (((𝑎 ↾ ({(1st𝑐)} × 𝑁)) = (((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒))) ↾ ({(1st𝑐)} × 𝑁)) ∘f + ((𝑒 ∈ (𝑁 × 𝑁) ↦ if(𝑒 = 𝑐, if(𝑒𝑑, 1 , 0 ), (𝑎𝑒))) ↾ ({(1st𝑐)} × 𝑁))) ∧ (𝑎 ↾ ((𝑁 ∖ {(1st𝑐)}) × 𝑁)) = ((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒))) ↾ ((𝑁 ∖ {(1st𝑐)}) × 𝑁)) ∧ (𝑎 ↾ ((𝑁 ∖ {(1st𝑐)}) × 𝑁)) = ((𝑒 ∈ (𝑁 × 𝑁) ↦ if(𝑒 = 𝑐, if(𝑒𝑑, 1 , 0 ), (𝑎𝑒))) ↾ ((𝑁 ∖ {(1st𝑐)}) × 𝑁))) → (𝐷𝑎) = ((𝐷‘(𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒)))) + (𝐷‘(𝑒 ∈ (𝑁 × 𝑁) ↦ if(𝑒 = 𝑐, if(𝑒𝑑, 1 , 0 ), (𝑎𝑒)))))))
286223, 124, 258, 285syl21anc 835 . . . . . . . . . . . . . . . . . . . . . . . . 25 ((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) → (((𝑎 ↾ ({(1st𝑐)} × 𝑁)) = (((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒))) ↾ ({(1st𝑐)} × 𝑁)) ∘f + ((𝑒 ∈ (𝑁 × 𝑁) ↦ if(𝑒 = 𝑐, if(𝑒𝑑, 1 , 0 ), (𝑎𝑒))) ↾ ({(1st𝑐)} × 𝑁))) ∧ (𝑎 ↾ ((𝑁 ∖ {(1st𝑐)}) × 𝑁)) = ((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒))) ↾ ((𝑁 ∖ {(1st𝑐)}) × 𝑁)) ∧ (𝑎 ↾ ((𝑁 ∖ {(1st𝑐)}) × 𝑁)) = ((𝑒 ∈ (𝑁 × 𝑁) ↦ if(𝑒 = 𝑐, if(𝑒𝑑, 1 , 0 ), (𝑎𝑒))) ↾ ((𝑁 ∖ {(1st𝑐)}) × 𝑁))) → (𝐷𝑎) = ((𝐷‘(𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒)))) + (𝐷‘(𝑒 ∈ (𝑁 × 𝑁) ↦ if(𝑒 = 𝑐, if(𝑒𝑑, 1 , 0 ), (𝑎𝑒)))))))
287184, 201, 209, 286mp3and 1463 . . . . . . . . . . . . . . . . . . . . . . . 24 ((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) → (𝐷𝑎) = ((𝐷‘(𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒)))) + (𝐷‘(𝑒 ∈ (𝑁 × 𝑁) ↦ if(𝑒 = 𝑐, if(𝑒𝑑, 1 , 0 ), (𝑎𝑒))))))
288104, 105, 106, 287syl3anc 1370 . . . . . . . . . . . . . . . . . . . . . . 23 (((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ (𝑏 ∪ {𝑐}) ∈ 𝑌) ∧ ((𝑎𝐵𝑑 ∈ (𝑁m 𝑁)) ∧ ∀𝑤𝑏 (𝑎𝑤) = if(𝑤𝑑, 1 , 0 ))) → (𝐷𝑎) = ((𝐷‘(𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒)))) + (𝐷‘(𝑒 ∈ (𝑁 × 𝑁) ↦ if(𝑒 = 𝑐, if(𝑒𝑑, 1 , 0 ), (𝑎𝑒))))))
289 fveq2 6774 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 (𝑒 = 𝑐 → (𝑎𝑒) = (𝑎𝑐))
290 elequ1 2113 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 (𝑒 = 𝑐 → (𝑒𝑑𝑐𝑑))
291290ifbid 4482 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 (𝑒 = 𝑐 → if(𝑒𝑑, 1 , 0 ) = if(𝑐𝑑, 1 , 0 ))
292289, 291oveq12d 7293 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 (𝑒 = 𝑐 → ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )) = ((𝑎𝑐)(-g𝑅)if(𝑐𝑑, 1 , 0 )))
293292adantl 482 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 ((((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) ∧ 𝑒 ∈ ({(1st𝑐)} × 𝑁)) ∧ 𝑒 = 𝑐) → ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )) = ((𝑎𝑐)(-g𝑅)if(𝑐𝑑, 1 , 0 )))
294110, 122ffvelrnd 6962 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 ((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) → (𝑎𝑐) ∈ 𝐾)
295131, 133ifcld 4505 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 ((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) → if(𝑐𝑑, 1 , 0 ) ∈ 𝐾)
29612, 136grpsubcl 18655 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 ((𝑅 ∈ Grp ∧ (𝑎𝑐) ∈ 𝐾 ∧ if(𝑐𝑑, 1 , 0 ) ∈ 𝐾) → ((𝑎𝑐)(-g𝑅)if(𝑐𝑑, 1 , 0 )) ∈ 𝐾)
297115, 294, 295, 296syl3anc 1370 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 ((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) → ((𝑎𝑐)(-g𝑅)if(𝑐𝑑, 1 , 0 )) ∈ 𝐾)
29812, 51, 49ringridm 19811 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 ((𝑅 ∈ Ring ∧ ((𝑎𝑐)(-g𝑅)if(𝑐𝑑, 1 , 0 )) ∈ 𝐾) → (((𝑎𝑐)(-g𝑅)if(𝑐𝑑, 1 , 0 )) · 1 ) = ((𝑎𝑐)(-g𝑅)if(𝑐𝑑, 1 , 0 )))
299113, 297, 298syl2anc 584 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 ((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) → (((𝑎𝑐)(-g𝑅)if(𝑐𝑑, 1 , 0 )) · 1 ) = ((𝑎𝑐)(-g𝑅)if(𝑐𝑑, 1 , 0 )))
300299ad2antrr 723 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 ((((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) ∧ 𝑒 ∈ ({(1st𝑐)} × 𝑁)) ∧ 𝑒 = 𝑐) → (((𝑎𝑐)(-g𝑅)if(𝑐𝑑, 1 , 0 )) · 1 ) = ((𝑎𝑐)(-g𝑅)if(𝑐𝑑, 1 , 0 )))
301293, 300eqtr4d 2781 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 ((((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) ∧ 𝑒 ∈ ({(1st𝑐)} × 𝑁)) ∧ 𝑒 = 𝑐) → ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )) = (((𝑎𝑐)(-g𝑅)if(𝑐𝑑, 1 , 0 )) · 1 ))
302141adantl 482 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 ((((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) ∧ 𝑒 ∈ ({(1st𝑐)} × 𝑁)) ∧ 𝑒 = 𝑐) → if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ) = ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )))
303 iftrue 4465 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 (𝑒 = 𝑐 → if(𝑒 = 𝑐, 1 , 0 ) = 1 )
304303oveq2d 7291 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 (𝑒 = 𝑐 → (((𝑎𝑐)(-g𝑅)if(𝑐𝑑, 1 , 0 )) · if(𝑒 = 𝑐, 1 , 0 )) = (((𝑎𝑐)(-g𝑅)if(𝑐𝑑, 1 , 0 )) · 1 ))
305304adantl 482 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 ((((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) ∧ 𝑒 ∈ ({(1st𝑐)} × 𝑁)) ∧ 𝑒 = 𝑐) → (((𝑎𝑐)(-g𝑅)if(𝑐𝑑, 1 , 0 )) · if(𝑒 = 𝑐, 1 , 0 )) = (((𝑎𝑐)(-g𝑅)if(𝑐𝑑, 1 , 0 )) · 1 ))
306301, 302, 3053eqtr4d 2788 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 ((((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) ∧ 𝑒 ∈ ({(1st𝑐)} × 𝑁)) ∧ 𝑒 = 𝑐) → if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ) = (((𝑎𝑐)(-g𝑅)if(𝑐𝑑, 1 , 0 )) · if(𝑒 = 𝑐, 1 , 0 )))
30712, 51, 48ringrz 19827 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 ((𝑅 ∈ Ring ∧ ((𝑎𝑐)(-g𝑅)if(𝑐𝑑, 1 , 0 )) ∈ 𝐾) → (((𝑎𝑐)(-g𝑅)if(𝑐𝑑, 1 , 0 )) · 0 ) = 0 )
308113, 297, 307syl2anc 584 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 ((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) → (((𝑎𝑐)(-g𝑅)if(𝑐𝑑, 1 , 0 )) · 0 ) = 0 )
309308eqcomd 2744 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 ((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) → 0 = (((𝑎𝑐)(-g𝑅)if(𝑐𝑑, 1 , 0 )) · 0 ))
310309ad2antrr 723 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 ((((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) ∧ 𝑒 ∈ ({(1st𝑐)} × 𝑁)) ∧ ¬ 𝑒 = 𝑐) → 0 = (((𝑎𝑐)(-g𝑅)if(𝑐𝑑, 1 , 0 )) · 0 ))
311150adantl 482 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 ((((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) ∧ 𝑒 ∈ ({(1st𝑐)} × 𝑁)) ∧ ¬ 𝑒 = 𝑐) → if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ) = 0 )
312 iffalse 4468 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 𝑒 = 𝑐 → if(𝑒 = 𝑐, 1 , 0 ) = 0 )
313312oveq2d 7291 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 𝑒 = 𝑐 → (((𝑎𝑐)(-g𝑅)if(𝑐𝑑, 1 , 0 )) · if(𝑒 = 𝑐, 1 , 0 )) = (((𝑎𝑐)(-g𝑅)if(𝑐𝑑, 1 , 0 )) · 0 ))
314313adantl 482 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 ((((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) ∧ 𝑒 ∈ ({(1st𝑐)} × 𝑁)) ∧ ¬ 𝑒 = 𝑐) → (((𝑎𝑐)(-g𝑅)if(𝑐𝑑, 1 , 0 )) · if(𝑒 = 𝑐, 1 , 0 )) = (((𝑎𝑐)(-g𝑅)if(𝑐𝑑, 1 , 0 )) · 0 ))
315310, 311, 3143eqtr4d 2788 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 ((((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) ∧ 𝑒 ∈ ({(1st𝑐)} × 𝑁)) ∧ ¬ 𝑒 = 𝑐) → if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ) = (((𝑎𝑐)(-g𝑅)if(𝑐𝑑, 1 , 0 )) · if(𝑒 = 𝑐, 1 , 0 )))
316306, 315pm2.61dan 810 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 (((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) ∧ 𝑒 ∈ ({(1st𝑐)} × 𝑁)) → if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ) = (((𝑎𝑐)(-g𝑅)if(𝑐𝑑, 1 , 0 )) · if(𝑒 = 𝑐, 1 , 0 )))
317170adantl 482 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 (((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) ∧ 𝑒 ∈ ({(1st𝑐)} × 𝑁)) → (1st𝑒) ∈ {(1st𝑐)})
318317, 171syl 17 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 (((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) ∧ 𝑒 ∈ ({(1st𝑐)} × 𝑁)) → (1st𝑒) = (1st𝑐))
319318iftrued 4467 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 (((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) ∧ 𝑒 ∈ ({(1st𝑐)} × 𝑁)) → if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒)) = if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ))
320318iftrued 4467 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 (((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) ∧ 𝑒 ∈ ({(1st𝑐)} × 𝑁)) → if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, 1 , 0 ), (𝑎𝑒)) = if(𝑒 = 𝑐, 1 , 0 ))
321320oveq2d 7291 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 (((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) ∧ 𝑒 ∈ ({(1st𝑐)} × 𝑁)) → (((𝑎𝑐)(-g𝑅)if(𝑐𝑑, 1 , 0 )) · if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, 1 , 0 ), (𝑎𝑒))) = (((𝑎𝑐)(-g𝑅)if(𝑐𝑑, 1 , 0 )) · if(𝑒 = 𝑐, 1 , 0 )))
322316, 319, 3213eqtr4d 2788 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 (((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) ∧ 𝑒 ∈ ({(1st𝑐)} × 𝑁)) → if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒)) = (((𝑎𝑐)(-g𝑅)if(𝑐𝑑, 1 , 0 )) · if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, 1 , 0 ), (𝑎𝑒))))
323322mpteq2dva 5174 . . . . . . . . . . . . . . . . . . . . . . . . . . 27 ((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) → (𝑒 ∈ ({(1st𝑐)} × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒))) = (𝑒 ∈ ({(1st𝑐)} × 𝑁) ↦ (((𝑎𝑐)(-g𝑅)if(𝑐𝑑, 1 , 0 )) · if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, 1 , 0 ), (𝑎𝑒)))))
324 ovexd 7310 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 (((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) ∧ 𝑒 ∈ ({(1st𝑐)} × 𝑁)) → ((𝑎𝑐)(-g𝑅)if(𝑐𝑑, 1 , 0 )) ∈ V)
325165, 162ifex 4509 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 if(𝑒 = 𝑐, 1 , 0 ) ∈ V
326325, 167ifex 4509 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, 1 , 0 ), (𝑎𝑒)) ∈ V
327326a1i 11 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 (((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) ∧ 𝑒 ∈ ({(1st𝑐)} × 𝑁)) → if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, 1 , 0 ), (𝑎𝑒)) ∈ V)
328 fconstmpt 5649 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 (({(1st𝑐)} × 𝑁) × {((𝑎𝑐)(-g𝑅)if(𝑐𝑑, 1 , 0 ))}) = (𝑒 ∈ ({(1st𝑐)} × 𝑁) ↦ ((𝑎𝑐)(-g𝑅)if(𝑐𝑑, 1 , 0 )))
329328a1i 11 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 ((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) → (({(1st𝑐)} × 𝑁) × {((𝑎𝑐)(-g𝑅)if(𝑐𝑑, 1 , 0 ))}) = (𝑒 ∈ ({(1st𝑐)} × 𝑁) ↦ ((𝑎𝑐)(-g𝑅)if(𝑐𝑑, 1 , 0 ))))
330127resmptd 5948 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 ((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) → ((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, 1 , 0 ), (𝑎𝑒))) ↾ ({(1st𝑐)} × 𝑁)) = (𝑒 ∈ ({(1st𝑐)} × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, 1 , 0 ), (𝑎𝑒))))
331160, 324, 327, 329, 330offval2 7553 . . . . . . . . . . . . . . . . . . . . . . . . . . 27 ((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) → ((({(1st𝑐)} × 𝑁) × {((𝑎𝑐)(-g𝑅)if(𝑐𝑑, 1 , 0 ))}) ∘f · ((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, 1 , 0 ), (𝑎𝑒))) ↾ ({(1st𝑐)} × 𝑁))) = (𝑒 ∈ ({(1st𝑐)} × 𝑁) ↦ (((𝑎𝑐)(-g𝑅)if(𝑐𝑑, 1 , 0 )) · if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, 1 , 0 ), (𝑎𝑒)))))
332323, 180, 3313eqtr4d 2788 . . . . . . . . . . . . . . . . . . . . . . . . . 26 ((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) → ((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒))) ↾ ({(1st𝑐)} × 𝑁)) = ((({(1st𝑐)} × 𝑁) × {((𝑎𝑐)(-g𝑅)if(𝑐𝑑, 1 , 0 ))}) ∘f · ((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, 1 , 0 ), (𝑎𝑒))) ↾ ({(1st𝑐)} × 𝑁))))
333 iffalse 4468 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 (¬ (1st𝑒) = (1st𝑐) → if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒)) = (𝑎𝑒))
334 iffalse 4468 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 (¬ (1st𝑒) = (1st𝑐) → if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, 1 , 0 ), (𝑎𝑒)) = (𝑎𝑒))
335333, 334eqtr4d 2781 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 (¬ (1st𝑒) = (1st𝑐) → if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒)) = if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, 1 , 0 ), (𝑎𝑒)))
336190, 335syl 17 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 (((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) ∧ 𝑒 ∈ ((𝑁 ∖ {(1st𝑐)}) × 𝑁)) → if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒)) = if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, 1 , 0 ), (𝑎𝑒)))
337336mpteq2dva 5174 . . . . . . . . . . . . . . . . . . . . . . . . . . 27 ((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) → (𝑒 ∈ ((𝑁 ∖ {(1st𝑐)}) × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒))) = (𝑒 ∈ ((𝑁 ∖ {(1st𝑐)}) × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, 1 , 0 ), (𝑎𝑒))))
338 resmpt 5945 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 (((𝑁 ∖ {(1st𝑐)}) × 𝑁) ⊆ (𝑁 × 𝑁) → ((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, 1 , 0 ), (𝑎𝑒))) ↾ ((𝑁 ∖ {(1st𝑐)}) × 𝑁)) = (𝑒 ∈ ((𝑁 ∖ {(1st𝑐)}) × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, 1 , 0 ), (𝑎𝑒))))
339195, 338mp1i 13 . . . . . . . . . . . . . . . . . . . . . . . . . . 27 ((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) → ((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, 1 , 0 ), (𝑎𝑒))) ↾ ((𝑁 ∖ {(1st𝑐)}) × 𝑁)) = (𝑒 ∈ ((𝑁 ∖ {(1st𝑐)}) × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, 1 , 0 ), (𝑎𝑒))))
340337, 197, 3393eqtr4d 2788 . . . . . . . . . . . . . . . . . . . . . . . . . 26 ((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) → ((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒))) ↾ ((𝑁 ∖ {(1st𝑐)}) × 𝑁)) = ((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, 1 , 0 ), (𝑎𝑒))) ↾ ((𝑁 ∖ {(1st𝑐)}) × 𝑁)))
341131, 133ifcld 4505 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 ((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) → if(𝑒 = 𝑐, 1 , 0 ) ∈ 𝐾)
342341adantr 481 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 (((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) ∧ 𝑒 ∈ (𝑁 × 𝑁)) → if(𝑒 = 𝑐, 1 , 0 ) ∈ 𝐾)
343342, 211ifcld 4505 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 (((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) ∧ 𝑒 ∈ (𝑁 × 𝑁)) → if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, 1 , 0 ), (𝑎𝑒)) ∈ 𝐾)
344343fmpttd 6989 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 ((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) → (𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, 1 , 0 ), (𝑎𝑒))):(𝑁 × 𝑁)⟶𝐾)
345 elmapg 8628 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 ((𝐾 ∈ V ∧ (𝑁 × 𝑁) ∈ Fin) → ((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, 1 , 0 ), (𝑎𝑒))) ∈ (𝐾m (𝑁 × 𝑁)) ↔ (𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, 1 , 0 ), (𝑎𝑒))):(𝑁 × 𝑁)⟶𝐾))
346214, 216, 345sylancr 587 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 ((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) → ((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, 1 , 0 ), (𝑎𝑒))) ∈ (𝐾m (𝑁 × 𝑁)) ↔ (𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, 1 , 0 ), (𝑎𝑒))):(𝑁 × 𝑁)⟶𝐾))
347344, 346mpbird 256 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 ((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) → (𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, 1 , 0 ), (𝑎𝑒))) ∈ (𝐾m (𝑁 × 𝑁)))
348347, 222eleqtrd 2841 . . . . . . . . . . . . . . . . . . . . . . . . . . 27 ((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) → (𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, 1 , 0 ), (𝑎𝑒))) ∈ 𝐵)
349563ad2ant1 1132 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 ((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) → ∀𝑥𝐵𝑦𝐾𝑧𝐵𝑤𝑁 (((𝑥 ↾ ({𝑤} × 𝑁)) = ((({𝑤} × 𝑁) × {𝑦}) ∘f · (𝑧 ↾ ({𝑤} × 𝑁))) ∧ (𝑥 ↾ ((𝑁 ∖ {𝑤}) × 𝑁)) = (𝑧 ↾ ((𝑁 ∖ {𝑤}) × 𝑁))) → (𝐷𝑥) = (𝑦 · (𝐷𝑧))))
350 reseq1 5885 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 (𝑥 = (𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒))) → (𝑥 ↾ ({𝑤} × 𝑁)) = ((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒))) ↾ ({𝑤} × 𝑁)))
351350eqeq1d 2740 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 (𝑥 = (𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒))) → ((𝑥 ↾ ({𝑤} × 𝑁)) = ((({𝑤} × 𝑁) × {𝑦}) ∘f · (𝑧 ↾ ({𝑤} × 𝑁))) ↔ ((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒))) ↾ ({𝑤} × 𝑁)) = ((({𝑤} × 𝑁) × {𝑦}) ∘f · (𝑧 ↾ ({𝑤} × 𝑁)))))
352 reseq1 5885 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 (𝑥 = (𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒))) → (𝑥 ↾ ((𝑁 ∖ {𝑤}) × 𝑁)) = ((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒))) ↾ ((𝑁 ∖ {𝑤}) × 𝑁)))
353352eqeq1d 2740 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 (𝑥 = (𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒))) → ((𝑥 ↾ ((𝑁 ∖ {𝑤}) × 𝑁)) = (𝑧 ↾ ((𝑁 ∖ {𝑤}) × 𝑁)) ↔ ((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒))) ↾ ((𝑁 ∖ {𝑤}) × 𝑁)) = (𝑧 ↾ ((𝑁 ∖ {𝑤}) × 𝑁))))
354351, 353anbi12d 631 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 (𝑥 = (𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒))) → (((𝑥 ↾ ({𝑤} × 𝑁)) = ((({𝑤} × 𝑁) × {𝑦}) ∘f · (𝑧 ↾ ({𝑤} × 𝑁))) ∧ (𝑥 ↾ ((𝑁 ∖ {𝑤}) × 𝑁)) = (𝑧 ↾ ((𝑁 ∖ {𝑤}) × 𝑁))) ↔ (((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒))) ↾ ({𝑤} × 𝑁)) = ((({𝑤} × 𝑁) × {𝑦}) ∘f · (𝑧 ↾ ({𝑤} × 𝑁))) ∧ ((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒))) ↾ ((𝑁 ∖ {𝑤}) × 𝑁)) = (𝑧 ↾ ((𝑁 ∖ {𝑤}) × 𝑁)))))
355 fveqeq2 6783 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 (𝑥 = (𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒))) → ((𝐷𝑥) = (𝑦 · (𝐷𝑧)) ↔ (𝐷‘(𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒)))) = (𝑦 · (𝐷𝑧))))
356354, 355imbi12d 345 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 (𝑥 = (𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒))) → ((((𝑥 ↾ ({𝑤} × 𝑁)) = ((({𝑤} × 𝑁) × {𝑦}) ∘f · (𝑧 ↾ ({𝑤} × 𝑁))) ∧ (𝑥 ↾ ((𝑁 ∖ {𝑤}) × 𝑁)) = (𝑧 ↾ ((𝑁 ∖ {𝑤}) × 𝑁))) → (𝐷𝑥) = (𝑦 · (𝐷𝑧))) ↔ ((((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒))) ↾ ({𝑤} × 𝑁)) = ((({𝑤} × 𝑁) × {𝑦}) ∘f · (𝑧 ↾ ({𝑤} × 𝑁))) ∧ ((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒))) ↾ ((𝑁 ∖ {𝑤}) × 𝑁)) = (𝑧 ↾ ((𝑁 ∖ {𝑤}) × 𝑁))) → (𝐷‘(𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒)))) = (𝑦 · (𝐷𝑧)))))
3573562ralbidv 3129 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 (𝑥 = (𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒))) → (∀𝑧𝐵𝑤𝑁 (((𝑥 ↾ ({𝑤} × 𝑁)) = ((({𝑤} × 𝑁) × {𝑦}) ∘f · (𝑧 ↾ ({𝑤} × 𝑁))) ∧ (𝑥 ↾ ((𝑁 ∖ {𝑤}) × 𝑁)) = (𝑧 ↾ ((𝑁 ∖ {𝑤}) × 𝑁))) → (𝐷𝑥) = (𝑦 · (𝐷𝑧))) ↔ ∀𝑧𝐵𝑤𝑁 ((((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒))) ↾ ({𝑤} × 𝑁)) = ((({𝑤} × 𝑁) × {𝑦}) ∘f · (𝑧 ↾ ({𝑤} × 𝑁))) ∧ ((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒))) ↾ ((𝑁 ∖ {𝑤}) × 𝑁)) = (𝑧 ↾ ((𝑁 ∖ {𝑤}) × 𝑁))) → (𝐷‘(𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒)))) = (𝑦 · (𝐷𝑧)))))
358 sneq 4571 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 (𝑦 = ((𝑎𝑐)(-g𝑅)if(𝑐𝑑, 1 , 0 )) → {𝑦} = {((𝑎𝑐)(-g𝑅)if(𝑐𝑑, 1 , 0 ))})
359358xpeq2d 5619 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 (𝑦 = ((𝑎𝑐)(-g𝑅)if(𝑐𝑑, 1 , 0 )) → (({𝑤} × 𝑁) × {𝑦}) = (({𝑤} × 𝑁) × {((𝑎𝑐)(-g𝑅)if(𝑐𝑑, 1 , 0 ))}))
360359oveq1d 7290 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 (𝑦 = ((𝑎𝑐)(-g𝑅)if(𝑐𝑑, 1 , 0 )) → ((({𝑤} × 𝑁) × {𝑦}) ∘f · (𝑧 ↾ ({𝑤} × 𝑁))) = ((({𝑤} × 𝑁) × {((𝑎𝑐)(-g𝑅)if(𝑐𝑑, 1 , 0 ))}) ∘f · (𝑧 ↾ ({𝑤} × 𝑁))))
361360eqeq2d 2749 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 (𝑦 = ((𝑎𝑐)(-g𝑅)if(𝑐𝑑, 1 , 0 )) → (((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒))) ↾ ({𝑤} × 𝑁)) = ((({𝑤} × 𝑁) × {𝑦}) ∘f · (𝑧 ↾ ({𝑤} × 𝑁))) ↔ ((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒))) ↾ ({𝑤} × 𝑁)) = ((({𝑤} × 𝑁) × {((𝑎𝑐)(-g𝑅)if(𝑐𝑑, 1 , 0 ))}) ∘f · (𝑧 ↾ ({𝑤} × 𝑁)))))
362361anbi1d 630 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 (𝑦 = ((𝑎𝑐)(-g𝑅)if(𝑐𝑑, 1 , 0 )) → ((((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒))) ↾ ({𝑤} × 𝑁)) = ((({𝑤} × 𝑁) × {𝑦}) ∘f · (𝑧 ↾ ({𝑤} × 𝑁))) ∧ ((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒))) ↾ ((𝑁 ∖ {𝑤}) × 𝑁)) = (𝑧 ↾ ((𝑁 ∖ {𝑤}) × 𝑁))) ↔ (((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒))) ↾ ({𝑤} × 𝑁)) = ((({𝑤} × 𝑁) × {((𝑎𝑐)(-g𝑅)if(𝑐𝑑, 1 , 0 ))}) ∘f · (𝑧 ↾ ({𝑤} × 𝑁))) ∧ ((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒))) ↾ ((𝑁 ∖ {𝑤}) × 𝑁)) = (𝑧 ↾ ((𝑁 ∖ {𝑤}) × 𝑁)))))
363 oveq1 7282 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 (𝑦 = ((𝑎𝑐)(-g𝑅)if(𝑐𝑑, 1 , 0 )) → (𝑦 · (𝐷𝑧)) = (((𝑎𝑐)(-g𝑅)if(𝑐𝑑, 1 , 0 )) · (𝐷𝑧)))
364363eqeq2d 2749 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 (𝑦 = ((𝑎𝑐)(-g𝑅)if(𝑐𝑑, 1 , 0 )) → ((𝐷‘(𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒)))) = (𝑦 · (𝐷𝑧)) ↔ (𝐷‘(𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒)))) = (((𝑎𝑐)(-g𝑅)if(𝑐𝑑, 1 , 0 )) · (𝐷𝑧))))
365362, 364imbi12d 345 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 (𝑦 = ((𝑎𝑐)(-g𝑅)if(𝑐𝑑, 1 , 0 )) → (((((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒))) ↾ ({𝑤} × 𝑁)) = ((({𝑤} × 𝑁) × {𝑦}) ∘f · (𝑧 ↾ ({𝑤} × 𝑁))) ∧ ((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒))) ↾ ((𝑁 ∖ {𝑤}) × 𝑁)) = (𝑧 ↾ ((𝑁 ∖ {𝑤}) × 𝑁))) → (𝐷‘(𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒)))) = (𝑦 · (𝐷𝑧))) ↔ ((((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒))) ↾ ({𝑤} × 𝑁)) = ((({𝑤} × 𝑁) × {((𝑎𝑐)(-g𝑅)if(𝑐𝑑, 1 , 0 ))}) ∘f · (𝑧 ↾ ({𝑤} × 𝑁))) ∧ ((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒))) ↾ ((𝑁 ∖ {𝑤}) × 𝑁)) = (𝑧 ↾ ((𝑁 ∖ {𝑤}) × 𝑁))) → (𝐷‘(𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒)))) = (((𝑎𝑐)(-g𝑅)if(𝑐𝑑, 1 , 0 )) · (𝐷𝑧)))))
3663652ralbidv 3129 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 (𝑦 = ((𝑎𝑐)(-g𝑅)if(𝑐𝑑, 1 , 0 )) → (∀𝑧𝐵𝑤𝑁 ((((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒))) ↾ ({𝑤} × 𝑁)) = ((({𝑤} × 𝑁) × {𝑦}) ∘f · (𝑧 ↾ ({𝑤} × 𝑁))) ∧ ((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒))) ↾ ((𝑁 ∖ {𝑤}) × 𝑁)) = (𝑧 ↾ ((𝑁 ∖ {𝑤}) × 𝑁))) → (𝐷‘(𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒)))) = (𝑦 · (𝐷𝑧))) ↔ ∀𝑧𝐵𝑤𝑁 ((((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒))) ↾ ({𝑤} × 𝑁)) = ((({𝑤} × 𝑁) × {((𝑎𝑐)(-g𝑅)if(𝑐𝑑, 1 , 0 ))}) ∘f · (𝑧 ↾ ({𝑤} × 𝑁))) ∧ ((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒))) ↾ ((𝑁 ∖ {𝑤}) × 𝑁)) = (𝑧 ↾ ((𝑁 ∖ {𝑤}) × 𝑁))) → (𝐷‘(𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒)))) = (((𝑎𝑐)(-g𝑅)if(𝑐𝑑, 1 , 0 )) · (𝐷𝑧)))))
367357, 366rspc2va 3571 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 ((((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒))) ∈ 𝐵 ∧ ((𝑎𝑐)(-g𝑅)if(𝑐𝑑, 1 , 0 )) ∈ 𝐾) ∧ ∀𝑥𝐵𝑦𝐾𝑧𝐵𝑤𝑁 (((𝑥 ↾ ({𝑤} × 𝑁)) = ((({𝑤} × 𝑁) × {𝑦}) ∘f · (𝑧 ↾ ({𝑤} × 𝑁))) ∧ (𝑥 ↾ ((𝑁 ∖ {𝑤}) × 𝑁)) = (𝑧 ↾ ((𝑁 ∖ {𝑤}) × 𝑁))) → (𝐷𝑥) = (𝑦 · (𝐷𝑧)))) → ∀𝑧𝐵𝑤𝑁 ((((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒))) ↾ ({𝑤} × 𝑁)) = ((({𝑤} × 𝑁) × {((𝑎𝑐)(-g𝑅)if(𝑐𝑑, 1 , 0 ))}) ∘f · (𝑧 ↾ ({𝑤} × 𝑁))) ∧ ((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒))) ↾ ((𝑁 ∖ {𝑤}) × 𝑁)) = (𝑧 ↾ ((𝑁 ∖ {𝑤}) × 𝑁))) → (𝐷‘(𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒)))) = (((𝑎𝑐)(-g𝑅)if(𝑐𝑑, 1 , 0 )) · (𝐷𝑧))))
368235, 297, 349, 367syl21anc 835 . . . . . . . . . . . . . . . . . . . . . . . . . . 27 ((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) → ∀𝑧𝐵𝑤𝑁 ((((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒))) ↾ ({𝑤} × 𝑁)) = ((({𝑤} × 𝑁) × {((𝑎𝑐)(-g𝑅)if(𝑐𝑑, 1 , 0 ))}) ∘f · (𝑧 ↾ ({𝑤} × 𝑁))) ∧ ((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒))) ↾ ((𝑁 ∖ {𝑤}) × 𝑁)) = (𝑧 ↾ ((𝑁 ∖ {𝑤}) × 𝑁))) → (𝐷‘(𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒)))) = (((𝑎𝑐)(-g𝑅)if(𝑐𝑑, 1 , 0 )) · (𝐷𝑧))))
369 reseq1 5885 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 (𝑧 = (𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, 1 , 0 ), (𝑎𝑒))) → (𝑧 ↾ ({𝑤} × 𝑁)) = ((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, 1 , 0 ), (𝑎𝑒))) ↾ ({𝑤} × 𝑁)))
370369oveq2d 7291 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 (𝑧 = (𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, 1 , 0 ), (𝑎𝑒))) → ((({𝑤} × 𝑁) × {((𝑎𝑐)(-g𝑅)if(𝑐𝑑, 1 , 0 ))}) ∘f · (𝑧 ↾ ({𝑤} × 𝑁))) = ((({𝑤} × 𝑁) × {((𝑎𝑐)(-g𝑅)if(𝑐𝑑, 1 , 0 ))}) ∘f · ((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, 1 , 0 ), (𝑎𝑒))) ↾ ({𝑤} × 𝑁))))
371370eqeq2d 2749 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 (𝑧 = (𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, 1 , 0 ), (𝑎𝑒))) → (((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒))) ↾ ({𝑤} × 𝑁)) = ((({𝑤} × 𝑁) × {((𝑎𝑐)(-g𝑅)if(𝑐𝑑, 1 , 0 ))}) ∘f · (𝑧 ↾ ({𝑤} × 𝑁))) ↔ ((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒))) ↾ ({𝑤} × 𝑁)) = ((({𝑤} × 𝑁) × {((𝑎𝑐)(-g𝑅)if(𝑐𝑑, 1 , 0 ))}) ∘f · ((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, 1 , 0 ), (𝑎𝑒))) ↾ ({𝑤} × 𝑁)))))
372 reseq1 5885 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 (𝑧 = (𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, 1 , 0 ), (𝑎𝑒))) → (𝑧 ↾ ((𝑁 ∖ {𝑤}) × 𝑁)) = ((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, 1 , 0 ), (𝑎𝑒))) ↾ ((𝑁 ∖ {𝑤}) × 𝑁)))
373372eqeq2d 2749 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 (𝑧 = (𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, 1 , 0 ), (𝑎𝑒))) → (((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒))) ↾ ((𝑁 ∖ {𝑤}) × 𝑁)) = (𝑧 ↾ ((𝑁 ∖ {𝑤}) × 𝑁)) ↔ ((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒))) ↾ ((𝑁 ∖ {𝑤}) × 𝑁)) = ((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, 1 , 0 ), (𝑎𝑒))) ↾ ((𝑁 ∖ {𝑤}) × 𝑁))))
374371, 373anbi12d 631 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 (𝑧 = (𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, 1 , 0 ), (𝑎𝑒))) → ((((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒))) ↾ ({𝑤} × 𝑁)) = ((({𝑤} × 𝑁) × {((𝑎𝑐)(-g𝑅)if(𝑐𝑑, 1 , 0 ))}) ∘f · (𝑧 ↾ ({𝑤} × 𝑁))) ∧ ((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒))) ↾ ((𝑁 ∖ {𝑤}) × 𝑁)) = (𝑧 ↾ ((𝑁 ∖ {𝑤}) × 𝑁))) ↔ (((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒))) ↾ ({𝑤} × 𝑁)) = ((({𝑤} × 𝑁) × {((𝑎𝑐)(-g𝑅)if(𝑐𝑑, 1 , 0 ))}) ∘f · ((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, 1 , 0 ), (𝑎𝑒))) ↾ ({𝑤} × 𝑁))) ∧ ((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒))) ↾ ((𝑁 ∖ {𝑤}) × 𝑁)) = ((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, 1 , 0 ), (𝑎𝑒))) ↾ ((𝑁 ∖ {𝑤}) × 𝑁)))))
375 fveq2 6774 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 (𝑧 = (𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, 1 , 0 ), (𝑎𝑒))) → (𝐷𝑧) = (𝐷‘(𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, 1 , 0 ), (𝑎𝑒)))))
376375oveq2d 7291 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 (𝑧 = (𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, 1 , 0 ), (𝑎𝑒))) → (((𝑎𝑐)(-g𝑅)if(𝑐𝑑, 1 , 0 )) · (𝐷𝑧)) = (((𝑎𝑐)(-g𝑅)if(𝑐𝑑, 1 , 0 )) · (𝐷‘(𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, 1 , 0 ), (𝑎𝑒))))))
377376eqeq2d 2749 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 (𝑧 = (𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, 1 , 0 ), (𝑎𝑒))) → ((𝐷‘(𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒)))) = (((𝑎𝑐)(-g𝑅)if(𝑐𝑑, 1 , 0 )) · (𝐷𝑧)) ↔ (𝐷‘(𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒)))) = (((𝑎𝑐)(-g𝑅)if(𝑐𝑑, 1 , 0 )) · (𝐷‘(𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, 1 , 0 ), (𝑎𝑒)))))))
378374, 377imbi12d 345 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 (𝑧 = (𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, 1 , 0 ), (𝑎𝑒))) → (((((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒))) ↾ ({𝑤} × 𝑁)) = ((({𝑤} × 𝑁) × {((𝑎𝑐)(-g𝑅)if(𝑐𝑑, 1 , 0 ))}) ∘f · (𝑧 ↾ ({𝑤} × 𝑁))) ∧ ((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒))) ↾ ((𝑁 ∖ {𝑤}) × 𝑁)) = (𝑧 ↾ ((𝑁 ∖ {𝑤}) × 𝑁))) → (𝐷‘(𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒)))) = (((𝑎𝑐)(-g𝑅)if(𝑐𝑑, 1 , 0 )) · (𝐷𝑧))) ↔ ((((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒))) ↾ ({𝑤} × 𝑁)) = ((({𝑤} × 𝑁) × {((𝑎𝑐)(-g𝑅)if(𝑐𝑑, 1 , 0 ))}) ∘f · ((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, 1 , 0 ), (𝑎𝑒))) ↾ ({𝑤} × 𝑁))) ∧ ((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒))) ↾ ((𝑁 ∖ {𝑤}) × 𝑁)) = ((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, 1 , 0 ), (𝑎𝑒))) ↾ ((𝑁 ∖ {𝑤}) × 𝑁))) → (𝐷‘(𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒)))) = (((𝑎𝑐)(-g𝑅)if(𝑐𝑑, 1 , 0 )) · (𝐷‘(𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, 1 , 0 ), (𝑎𝑒))))))))
379270xpeq1d 5618 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 (𝑤 = (1st𝑐) → (({𝑤} × 𝑁) × {((𝑎𝑐)(-g𝑅)if(𝑐𝑑, 1 , 0 ))}) = (({(1st𝑐)} × 𝑁) × {((𝑎𝑐)(-g𝑅)if(𝑐𝑑, 1 , 0 ))}))
380270reseq2d 5891 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 (𝑤 = (1st𝑐) → ((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, 1 , 0 ), (𝑎𝑒))) ↾ ({𝑤} × 𝑁)) = ((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, 1 , 0 ), (𝑎𝑒))) ↾ ({(1st𝑐)} × 𝑁)))
381379, 380oveq12d 7293 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 (𝑤 = (1st𝑐) → ((({𝑤} × 𝑁) × {((𝑎𝑐)(-g𝑅)if(𝑐𝑑, 1 , 0 ))}) ∘f · ((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, 1 , 0 ), (𝑎𝑒))) ↾ ({𝑤} × 𝑁))) = ((({(1st𝑐)} × 𝑁) × {((𝑎𝑐)(-g𝑅)if(𝑐𝑑, 1 , 0 ))}) ∘f · ((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, 1 , 0 ), (𝑎𝑒))) ↾ ({(1st𝑐)} × 𝑁))))
382272, 381eqeq12d 2754 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 (𝑤 = (1st𝑐) → (((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒))) ↾ ({𝑤} × 𝑁)) = ((({𝑤} × 𝑁) × {((𝑎𝑐)(-g𝑅)if(𝑐𝑑, 1 , 0 ))}) ∘f · ((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, 1 , 0 ), (𝑎𝑒))) ↾ ({𝑤} × 𝑁))) ↔ ((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒))) ↾ ({(1st𝑐)} × 𝑁)) = ((({(1st𝑐)} × 𝑁) × {((𝑎𝑐)(-g𝑅)if(𝑐𝑑, 1 , 0 ))}) ∘f · ((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, 1 , 0 ), (𝑎𝑒))) ↾ ({(1st𝑐)} × 𝑁)))))
383277reseq2d 5891 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 (𝑤 = (1st𝑐) → ((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, 1 , 0 ), (𝑎𝑒))) ↾ ((𝑁 ∖ {𝑤}) × 𝑁)) = ((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, 1 , 0 ), (𝑎𝑒))) ↾ ((𝑁 ∖ {(1st𝑐)}) × 𝑁)))
384279, 383eqeq12d 2754 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 (𝑤 = (1st𝑐) → (((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒))) ↾ ((𝑁 ∖ {𝑤}) × 𝑁)) = ((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, 1 , 0 ), (𝑎𝑒))) ↾ ((𝑁 ∖ {𝑤}) × 𝑁)) ↔ ((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒))) ↾ ((𝑁 ∖ {(1st𝑐)}) × 𝑁)) = ((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, 1 , 0 ), (𝑎𝑒))) ↾ ((𝑁 ∖ {(1st𝑐)}) × 𝑁))))
385382, 384anbi12d 631 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 (𝑤 = (1st𝑐) → ((((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒))) ↾ ({𝑤} × 𝑁)) = ((({𝑤} × 𝑁) × {((𝑎𝑐)(-g𝑅)if(𝑐𝑑, 1 , 0 ))}) ∘f · ((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, 1 , 0 ), (𝑎𝑒))) ↾ ({𝑤} × 𝑁))) ∧ ((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒))) ↾ ((𝑁 ∖ {𝑤}) × 𝑁)) = ((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, 1 , 0 ), (𝑎𝑒))) ↾ ((𝑁 ∖ {𝑤}) × 𝑁))) ↔ (((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒))) ↾ ({(1st𝑐)} × 𝑁)) = ((({(1st𝑐)} × 𝑁) × {((𝑎𝑐)(-g𝑅)if(𝑐𝑑, 1 , 0 ))}) ∘f · ((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, 1 , 0 ), (𝑎𝑒))) ↾ ({(1st𝑐)} × 𝑁))) ∧ ((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒))) ↾ ((𝑁 ∖ {(1st𝑐)}) × 𝑁)) = ((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, 1 , 0 ), (𝑎𝑒))) ↾ ((𝑁 ∖ {(1st𝑐)}) × 𝑁)))))
386385imbi1d 342 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 (𝑤 = (1st𝑐) → (((((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒))) ↾ ({𝑤} × 𝑁)) = ((({𝑤} × 𝑁) × {((𝑎𝑐)(-g𝑅)if(𝑐𝑑, 1 , 0 ))}) ∘f · ((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, 1 , 0 ), (𝑎𝑒))) ↾ ({𝑤} × 𝑁))) ∧ ((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒))) ↾ ((𝑁 ∖ {𝑤}) × 𝑁)) = ((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, 1 , 0 ), (𝑎𝑒))) ↾ ((𝑁 ∖ {𝑤}) × 𝑁))) → (𝐷‘(𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒)))) = (((𝑎𝑐)(-g𝑅)if(𝑐𝑑, 1 , 0 )) · (𝐷‘(𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, 1 , 0 ), (𝑎𝑒)))))) ↔ ((((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒))) ↾ ({(1st𝑐)} × 𝑁)) = ((({(1st𝑐)} × 𝑁) × {((𝑎𝑐)(-g𝑅)if(𝑐𝑑, 1 , 0 ))}) ∘f · ((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, 1 , 0 ), (𝑎𝑒))) ↾ ({(1st𝑐)} × 𝑁))) ∧ ((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒))) ↾ ((𝑁 ∖ {(1st𝑐)}) × 𝑁)) = ((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, 1 , 0 ), (𝑎𝑒))) ↾ ((𝑁 ∖ {(1st𝑐)}) × 𝑁))) → (𝐷‘(𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒)))) = (((𝑎𝑐)(-g𝑅)if(𝑐𝑑, 1 , 0 )) · (𝐷‘(𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, 1 , 0 ), (𝑎𝑒))))))))
387378, 386rspc2va 3571 . . . . . . . . . . . . . . . . . . . . . . . . . . 27 ((((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, 1 , 0 ), (𝑎𝑒))) ∈ 𝐵 ∧ (1st𝑐) ∈ 𝑁) ∧ ∀𝑧𝐵𝑤𝑁 ((((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒))) ↾ ({𝑤} × 𝑁)) = ((({𝑤} × 𝑁) × {((𝑎𝑐)(-g𝑅)if(𝑐𝑑, 1 , 0 ))}) ∘f · (𝑧 ↾ ({𝑤} × 𝑁))) ∧ ((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒))) ↾ ((𝑁 ∖ {𝑤}) × 𝑁)) = (𝑧 ↾ ((𝑁 ∖ {𝑤}) × 𝑁))) → (𝐷‘(𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒)))) = (((𝑎𝑐)(-g𝑅)if(𝑐𝑑, 1 , 0 )) · (𝐷𝑧)))) → ((((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒))) ↾ ({(1st𝑐)} × 𝑁)) = ((({(1st𝑐)} × 𝑁) × {((𝑎𝑐)(-g𝑅)if(𝑐𝑑, 1 , 0 ))}) ∘f · ((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, 1 , 0 ), (𝑎𝑒))) ↾ ({(1st𝑐)} × 𝑁))) ∧ ((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒))) ↾ ((𝑁 ∖ {(1st𝑐)}) × 𝑁)) = ((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, 1 , 0 ), (𝑎𝑒))) ↾ ((𝑁 ∖ {(1st𝑐)}) × 𝑁))) → (𝐷‘(𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒)))) = (((𝑎𝑐)(-g𝑅)if(𝑐𝑑, 1 , 0 )) · (𝐷‘(𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, 1 , 0 ), (𝑎𝑒)))))))
388348, 124, 368, 387syl21anc 835 . . . . . . . . . . . . . . . . . . . . . . . . . 26 ((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) → ((((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒))) ↾ ({(1st𝑐)} × 𝑁)) = ((({(1st𝑐)} × 𝑁) × {((𝑎𝑐)(-g𝑅)if(𝑐𝑑, 1 , 0 ))}) ∘f · ((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, 1 , 0 ), (𝑎𝑒))) ↾ ({(1st𝑐)} × 𝑁))) ∧ ((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒))) ↾ ((𝑁 ∖ {(1st𝑐)}) × 𝑁)) = ((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, 1 , 0 ), (𝑎𝑒))) ↾ ((𝑁 ∖ {(1st𝑐)}) × 𝑁))) → (𝐷‘(𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒)))) = (((𝑎𝑐)(-g𝑅)if(𝑐𝑑, 1 , 0 )) · (𝐷‘(𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, 1 , 0 ), (𝑎𝑒)))))))
389332, 340, 388mp2and 696 . . . . . . . . . . . . . . . . . . . . . . . . 25 ((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) → (𝐷‘(𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒)))) = (((𝑎𝑐)(-g𝑅)if(𝑐𝑑, 1 , 0 )) · (𝐷‘(𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, 1 , 0 ), (𝑎𝑒))))))
390389oveq1d 7290 . . . . . . . . . . . . . . . . . . . . . . . 24 ((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) → ((𝐷‘(𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒)))) + (𝐷‘(𝑒 ∈ (𝑁 × 𝑁) ↦ if(𝑒 = 𝑐, if(𝑒𝑑, 1 , 0 ), (𝑎𝑒))))) = ((((𝑎𝑐)(-g𝑅)if(𝑐𝑑, 1 , 0 )) · (𝐷‘(𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, 1 , 0 ), (𝑎𝑒))))) + (𝐷‘(𝑒 ∈ (𝑁 × 𝑁) ↦ if(𝑒 = 𝑐, if(𝑒𝑑, 1 , 0 ), (𝑎𝑒))))))
391104, 105, 106, 390syl3anc 1370 . . . . . . . . . . . . . . . . . . . . . . 23 (((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ (𝑏 ∪ {𝑐}) ∈ 𝑌) ∧ ((𝑎𝐵𝑑 ∈ (𝑁m 𝑁)) ∧ ∀𝑤𝑏 (𝑎𝑤) = if(𝑤𝑑, 1 , 0 ))) → ((𝐷‘(𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, ((𝑎𝑒)(-g𝑅)if(𝑒𝑑, 1 , 0 )), 0 ), (𝑎𝑒)))) + (𝐷‘(𝑒 ∈ (𝑁 × 𝑁) ↦ if(𝑒 = 𝑐, if(𝑒𝑑, 1 , 0 ), (𝑎𝑒))))) = ((((𝑎𝑐)(-g𝑅)if(𝑐𝑑, 1 , 0 )) · (𝐷‘(𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, 1 , 0 ), (𝑎𝑒))))) + (𝐷‘(𝑒 ∈ (𝑁 × 𝑁) ↦ if(𝑒 = 𝑐, if(𝑒𝑑, 1 , 0 ), (𝑎𝑒))))))
392 simpl3 1192 . . . . . . . . . . . . . . . . . . . . . . . 24 (((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ (𝑏 ∪ {𝑐}) ∈ 𝑌) ∧ ((𝑎𝐵𝑑 ∈ (𝑁m 𝑁)) ∧ ∀𝑤𝑏 (𝑎𝑤) = if(𝑤𝑑, 1 , 0 ))) → (𝑏 ∪ {𝑐}) ∈ 𝑌)
393 simprlr 777 . . . . . . . . . . . . . . . . . . . . . . . 24 (((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ (𝑏 ∪ {𝑐}) ∈ 𝑌) ∧ ((𝑎𝐵𝑑 ∈ (𝑁m 𝑁)) ∧ ∀𝑤𝑏 (𝑎𝑤) = if(𝑤𝑑, 1 , 0 ))) → 𝑑 ∈ (𝑁m 𝑁))
394 simprr 770 . . . . . . . . . . . . . . . . . . . . . . . 24 (((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ (𝑏 ∪ {𝑐}) ∈ 𝑌) ∧ ((𝑎𝐵𝑑 ∈ (𝑁m 𝑁)) ∧ ∀𝑤𝑏 (𝑎𝑤) = if(𝑤𝑑, 1 , 0 ))) → ∀𝑤𝑏 (𝑎𝑤) = if(𝑤𝑑, 1 , 0 ))
395 ralss 3991 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 (𝑏 ⊆ (𝑏 ∪ {𝑐}) → (∀𝑤𝑏 (𝑎𝑤) = if(𝑤𝑑, 1 , 0 ) ↔ ∀𝑤 ∈ (𝑏 ∪ {𝑐})(𝑤𝑏 → (𝑎𝑤) = if(𝑤𝑑, 1 , 0 ))))
39699, 395ax-mp 5 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 (∀𝑤𝑏 (𝑎𝑤) = if(𝑤𝑑, 1 , 0 ) ↔ ∀𝑤 ∈ (𝑏 ∪ {𝑐})(𝑤𝑏 → (𝑎𝑤) = if(𝑤𝑑, 1 , 0 )))
397 iftrue 4465 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37 ((1st𝑤) = (1st𝑐) → if((1st𝑤) = (1st𝑐), if(𝑤 = 𝑐, 1 , 0 ), (𝑎𝑤)) = if(𝑤 = 𝑐, 1 , 0 ))
398397adantl 482 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 (((((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) ∧ 𝑑 ∈ (𝑁m 𝑁)) ∧ 𝑤 ∈ (𝑏 ∪ {𝑐})) ∧ (1st𝑤) = (1st𝑐)) → if((1st𝑤) = (1st𝑐), if(𝑤 = 𝑐, 1 , 0 ), (𝑎𝑤)) = if(𝑤 = 𝑐, 1 , 0 ))
399 ibar 529 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39 ((1st𝑤) = (1st𝑐) → ((2nd𝑤) = (2nd𝑐) ↔ ((1st𝑤) = (1st𝑐) ∧ (2nd𝑤) = (2nd𝑐))))
400399adantl 482 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38 (((((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) ∧ 𝑑 ∈ (𝑁m 𝑁)) ∧ 𝑤 ∈ (𝑏 ∪ {𝑐})) ∧ (1st𝑤) = (1st𝑐)) → ((2nd𝑤) = (2nd𝑐) ↔ ((1st𝑤) = (1st𝑐) ∧ (2nd𝑤) = (2nd𝑐))))
401 relxp 5607 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41 Rel (𝑁 × 𝑁)
402 simpl2 1191 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43 (((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) ∧ 𝑑 ∈ (𝑁m 𝑁)) → (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁))
403402sselda 3921 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42 ((((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) ∧ 𝑑 ∈ (𝑁m 𝑁)) ∧ 𝑤 ∈ (𝑏 ∪ {𝑐})) → 𝑤 ∈ (𝑁 × 𝑁))
404403adantr 481 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41 (((((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) ∧ 𝑑 ∈ (𝑁m 𝑁)) ∧ 𝑤 ∈ (𝑏 ∪ {𝑐})) ∧ (1st𝑤) = (1st𝑐)) → 𝑤 ∈ (𝑁 × 𝑁))
405 1st2nd 7880 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41 ((Rel (𝑁 × 𝑁) ∧ 𝑤 ∈ (𝑁 × 𝑁)) → 𝑤 = ⟨(1st𝑤), (2nd𝑤)⟩)
406401, 404, 405sylancr 587 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40 (((((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) ∧ 𝑑 ∈ (𝑁m 𝑁)) ∧ 𝑤 ∈ (𝑏 ∪ {𝑐})) ∧ (1st𝑤) = (1st𝑐)) → 𝑤 = ⟨(1st𝑤), (2nd𝑤)⟩)
407406eleq1d 2823 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39 (((((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) ∧ 𝑑 ∈ (𝑁m 𝑁)) ∧ 𝑤 ∈ (𝑏 ∪ {𝑐})) ∧ (1st𝑤) = (1st𝑐)) → (𝑤 ∈ (𝑑 sSet ⟨(1st𝑐), (2nd𝑐)⟩) ↔ ⟨(1st𝑤), (2nd𝑤)⟩ ∈ (𝑑 sSet ⟨(1st𝑐), (2nd𝑐)⟩)))
408 simpr 485 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43 (((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) ∧ 𝑑 ∈ (𝑁m 𝑁)) → 𝑑 ∈ (𝑁m 𝑁))
409 elmapi 8637 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44 (𝑑 ∈ (𝑁m 𝑁) → 𝑑:𝑁𝑁)
410409adantl 482 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43 (((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) ∧ 𝑑 ∈ (𝑁m 𝑁)) → 𝑑:𝑁𝑁)
411124adantr 481 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43 (((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) ∧ 𝑑 ∈ (𝑁m 𝑁)) → (1st𝑐) ∈ 𝑁)
412 xp2nd 7864 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45 (𝑐 ∈ (𝑁 × 𝑁) → (2nd𝑐) ∈ 𝑁)
413122, 412syl 17 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44 ((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) → (2nd𝑐) ∈ 𝑁)
414413adantr 481 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43 (((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) ∧ 𝑑 ∈ (𝑁m 𝑁)) → (2nd𝑐) ∈ 𝑁)
415 fsets 16870 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43 (((𝑑 ∈ (𝑁m 𝑁) ∧ 𝑑:𝑁𝑁) ∧ (1st𝑐) ∈ 𝑁 ∧ (2nd𝑐) ∈ 𝑁) → (𝑑 sSet ⟨(1st𝑐), (2nd𝑐)⟩):𝑁𝑁)
416408, 410, 411, 414, 415syl211anc 1375 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42 (((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) ∧ 𝑑 ∈ (𝑁m 𝑁)) → (𝑑 sSet ⟨(1st𝑐), (2nd𝑐)⟩):𝑁𝑁)
417416ffnd 6601 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41 (((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) ∧ 𝑑 ∈ (𝑁m 𝑁)) → (𝑑 sSet ⟨(1st𝑐), (2nd𝑐)⟩) Fn 𝑁)
418417ad2antrr 723 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40 (((((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) ∧ 𝑑 ∈ (𝑁m 𝑁)) ∧ 𝑤 ∈ (𝑏 ∪ {𝑐})) ∧ (1st𝑤) = (1st𝑐)) → (𝑑 sSet ⟨(1st𝑐), (2nd𝑐)⟩) Fn 𝑁)
419 xp1st 7863 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42 (𝑤 ∈ (𝑁 × 𝑁) → (1st𝑤) ∈ 𝑁)
420403, 419syl 17 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41 ((((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) ∧ 𝑑 ∈ (𝑁m 𝑁)) ∧ 𝑤 ∈ (𝑏 ∪ {𝑐})) → (1st𝑤) ∈ 𝑁)
421420adantr 481 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40 (((((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) ∧ 𝑑 ∈ (𝑁m 𝑁)) ∧ 𝑤 ∈ (𝑏 ∪ {𝑐})) ∧ (1st𝑤) = (1st𝑐)) → (1st𝑤) ∈ 𝑁)
422 fnopfvb 6823 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40 (((𝑑 sSet ⟨(1st𝑐), (2nd𝑐)⟩) Fn 𝑁 ∧ (1st𝑤) ∈ 𝑁) → (((𝑑 sSet ⟨(1st𝑐), (2nd𝑐)⟩)‘(1st𝑤)) = (2nd𝑤) ↔ ⟨(1st𝑤), (2nd𝑤)⟩ ∈ (𝑑 sSet ⟨(1st𝑐), (2nd𝑐)⟩)))
423418, 421, 422syl2anc 584 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39 (((((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) ∧ 𝑑 ∈ (𝑁m 𝑁)) ∧ 𝑤 ∈ (𝑏 ∪ {𝑐})) ∧ (1st𝑤) = (1st𝑐)) → (((𝑑 sSet ⟨(1st𝑐), (2nd𝑐)⟩)‘(1st𝑤)) = (2nd𝑤) ↔ ⟨(1st𝑤), (2nd𝑤)⟩ ∈ (𝑑 sSet ⟨(1st𝑐), (2nd𝑐)⟩)))
424 fveq2 6774 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43 ((1st𝑤) = (1st𝑐) → ((𝑑 sSet ⟨(1st𝑐), (2nd𝑐)⟩)‘(1st𝑤)) = ((𝑑 sSet ⟨(1st𝑐), (2nd𝑐)⟩)‘(1st𝑐)))
425424adantl 482 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42 (((((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) ∧ 𝑑 ∈ (𝑁m 𝑁)) ∧ 𝑤 ∈ (𝑏 ∪ {𝑐})) ∧ (1st𝑤) = (1st𝑐)) → ((𝑑 sSet ⟨(1st𝑐), (2nd𝑐)⟩)‘(1st𝑤)) = ((𝑑 sSet ⟨(1st𝑐), (2nd𝑐)⟩)‘(1st𝑐)))
426 vex 3436 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43 𝑑 ∈ V
427 fvex 6787 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43 (1st𝑐) ∈ V
428 fvex 6787 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43 (2nd𝑐) ∈ V
429 fvsetsid 16869 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43 ((𝑑 ∈ V ∧ (1st𝑐) ∈ V ∧ (2nd𝑐) ∈ V) → ((𝑑 sSet ⟨(1st𝑐), (2nd𝑐)⟩)‘(1st𝑐)) = (2nd𝑐))
430426, 427, 428, 429mp3an 1460 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42 ((𝑑 sSet ⟨(1st𝑐), (2nd𝑐)⟩)‘(1st𝑐)) = (2nd𝑐)
431425, 430eqtrdi 2794 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41 (((((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) ∧ 𝑑 ∈ (𝑁m 𝑁)) ∧ 𝑤 ∈ (𝑏 ∪ {𝑐})) ∧ (1st𝑤) = (1st𝑐)) → ((𝑑 sSet ⟨(1st𝑐), (2nd𝑐)⟩)‘(1st𝑤)) = (2nd𝑐))
432431eqeq1d 2740 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40 (((((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) ∧ 𝑑 ∈ (𝑁m 𝑁)) ∧ 𝑤 ∈ (𝑏 ∪ {𝑐})) ∧ (1st𝑤) = (1st𝑐)) → (((𝑑 sSet ⟨(1st𝑐), (2nd𝑐)⟩)‘(1st𝑤)) = (2nd𝑤) ↔ (2nd𝑐) = (2nd𝑤)))
433 eqcom 2745 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40 ((2nd𝑐) = (2nd𝑤) ↔ (2nd𝑤) = (2nd𝑐))
434432, 433bitrdi 287 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39 (((((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) ∧ 𝑑 ∈ (𝑁m 𝑁)) ∧ 𝑤 ∈ (𝑏 ∪ {𝑐})) ∧ (1st𝑤) = (1st𝑐)) → (((𝑑 sSet ⟨(1st𝑐), (2nd𝑐)⟩)‘(1st𝑤)) = (2nd𝑤) ↔ (2nd𝑤) = (2nd𝑐)))
435407, 423, 4343bitr2rd 308 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38 (((((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) ∧ 𝑑 ∈ (𝑁m 𝑁)) ∧ 𝑤 ∈ (𝑏 ∪ {𝑐})) ∧ (1st𝑤) = (1st𝑐)) → ((2nd𝑤) = (2nd𝑐) ↔ 𝑤 ∈ (𝑑 sSet ⟨(1st𝑐), (2nd𝑐)⟩)))
436122ad3antrrr 727 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39 (((((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) ∧ 𝑑 ∈ (𝑁m 𝑁)) ∧ 𝑤 ∈ (𝑏 ∪ {𝑐})) ∧ (1st𝑤) = (1st𝑐)) → 𝑐 ∈ (𝑁 × 𝑁))
437 xpopth 7872 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39 ((𝑤 ∈ (𝑁 × 𝑁) ∧ 𝑐 ∈ (𝑁 × 𝑁)) → (((1st𝑤) = (1st𝑐) ∧ (2nd𝑤) = (2nd𝑐)) ↔ 𝑤 = 𝑐))
438404, 436, 437syl2anc 584 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38 (((((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) ∧ 𝑑 ∈ (𝑁m 𝑁)) ∧ 𝑤 ∈ (𝑏 ∪ {𝑐})) ∧ (1st𝑤) = (1st𝑐)) → (((1st𝑤) = (1st𝑐) ∧ (2nd𝑤) = (2nd𝑐)) ↔ 𝑤 = 𝑐))
439400, 435, 4383bitr3rd 310 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37 (((((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) ∧ 𝑑 ∈ (𝑁m 𝑁)) ∧ 𝑤 ∈ (𝑏 ∪ {𝑐})) ∧ (1st𝑤) = (1st𝑐)) → (𝑤 = 𝑐𝑤 ∈ (𝑑 sSet ⟨(1st𝑐), (2nd𝑐)⟩)))
440439ifbid 4482 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 (((((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) ∧ 𝑑 ∈ (𝑁m 𝑁)) ∧ 𝑤 ∈ (𝑏 ∪ {𝑐})) ∧ (1st𝑤) = (1st𝑐)) → if(𝑤 = 𝑐, 1 , 0 ) = if(𝑤 ∈ (𝑑 sSet ⟨(1st𝑐), (2nd𝑐)⟩), 1 , 0 ))
441398, 440eqtrd 2778 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 (((((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) ∧ 𝑑 ∈ (𝑁m 𝑁)) ∧ 𝑤 ∈ (𝑏 ∪ {𝑐})) ∧ (1st𝑤) = (1st𝑐)) → if((1st𝑤) = (1st𝑐), if(𝑤 = 𝑐, 1 , 0 ), (𝑎𝑤)) = if(𝑤 ∈ (𝑑 sSet ⟨(1st𝑐), (2nd𝑐)⟩), 1 , 0 ))
442441a1d 25 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 (((((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) ∧ 𝑑 ∈ (𝑁m 𝑁)) ∧ 𝑤 ∈ (𝑏 ∪ {𝑐})) ∧ (1st𝑤) = (1st𝑐)) → ((𝑤𝑏 → (𝑎𝑤) = if(𝑤𝑑, 1 , 0 )) → if((1st𝑤) = (1st𝑐), if(𝑤 = 𝑐, 1 , 0 ), (𝑎𝑤)) = if(𝑤 ∈ (𝑑 sSet ⟨(1st𝑐), (2nd𝑐)⟩), 1 , 0 )))
443 elsni 4578 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40 (𝑤 ∈ {𝑐} → 𝑤 = 𝑐)
444443fveq2d 6778 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39 (𝑤 ∈ {𝑐} → (1st𝑤) = (1st𝑐))
445444con3i 154 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38 (¬ (1st𝑤) = (1st𝑐) → ¬ 𝑤 ∈ {𝑐})
446445adantl 482 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37 ((𝑤 ∈ (𝑏 ∪ {𝑐}) ∧ ¬ (1st𝑤) = (1st𝑐)) → ¬ 𝑤 ∈ {𝑐})
447 elun 4083 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39 (𝑤 ∈ (𝑏 ∪ {𝑐}) ↔ (𝑤𝑏𝑤 ∈ {𝑐}))
448447biimpi 215 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38 (𝑤 ∈ (𝑏 ∪ {𝑐}) → (𝑤𝑏𝑤 ∈ {𝑐}))
449448adantr 481 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37 ((𝑤 ∈ (𝑏 ∪ {𝑐}) ∧ ¬ (1st𝑤) = (1st𝑐)) → (𝑤𝑏𝑤 ∈ {𝑐}))
450 orel2 888 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37 𝑤 ∈ {𝑐} → ((𝑤𝑏𝑤 ∈ {𝑐}) → 𝑤𝑏))
451446, 449, 450sylc 65 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 ((𝑤 ∈ (𝑏 ∪ {𝑐}) ∧ ¬ (1st𝑤) = (1st𝑐)) → 𝑤𝑏)
452451adantll 711 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 (((((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) ∧ 𝑑 ∈ (𝑁m 𝑁)) ∧ 𝑤 ∈ (𝑏 ∪ {𝑐})) ∧ ¬ (1st𝑤) = (1st𝑐)) → 𝑤𝑏)
453 iffalse 4468 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38 (¬ (1st𝑤) = (1st𝑐) → if((1st𝑤) = (1st𝑐), if(𝑤 = 𝑐, 1 , 0 ), if(𝑤𝑑, 1 , 0 )) = if(𝑤𝑑, 1 , 0 ))
454453adantl 482 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37 (((((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) ∧ 𝑑 ∈ (𝑁m 𝑁)) ∧ 𝑤 ∈ (𝑏 ∪ {𝑐})) ∧ ¬ (1st𝑤) = (1st𝑐)) → if((1st𝑤) = (1st𝑐), if(𝑤 = 𝑐, 1 , 0 ), if(𝑤𝑑, 1 , 0 )) = if(𝑤𝑑, 1 , 0 ))
455 setsres 16879 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41 (𝑑 ∈ V → ((𝑑 sSet ⟨(1st𝑐), (2nd𝑐)⟩) ↾ (V ∖ {(1st𝑐)})) = (𝑑 ↾ (V ∖ {(1st𝑐)})))
456455eleq2d 2824 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40 (𝑑 ∈ V → (⟨(1st𝑤), (2nd𝑤)⟩ ∈ ((𝑑 sSet ⟨(1st𝑐), (2nd𝑐)⟩) ↾ (V ∖ {(1st𝑐)})) ↔ ⟨(1st𝑤), (2nd𝑤)⟩ ∈ (𝑑 ↾ (V ∖ {(1st𝑐)}))))
457426, 456mp1i 13 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39 (((((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) ∧ 𝑑 ∈ (𝑁m 𝑁)) ∧ 𝑤 ∈ (𝑏 ∪ {𝑐})) ∧ ¬ (1st𝑤) = (1st𝑐)) → (⟨(1st𝑤), (2nd𝑤)⟩ ∈ ((𝑑 sSet ⟨(1st𝑐), (2nd𝑐)⟩) ↾ (V ∖ {(1st𝑐)})) ↔ ⟨(1st𝑤), (2nd𝑤)⟩ ∈ (𝑑 ↾ (V ∖ {(1st𝑐)}))))
458 fvex 6787 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42 (1st𝑤) ∈ V
459458a1i 11 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41 (¬ (1st𝑤) = (1st𝑐) → (1st𝑤) ∈ V)
460 neqne 2951 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41 (¬ (1st𝑤) = (1st𝑐) → (1st𝑤) ≠ (1st𝑐))
461 eldifsn 4720 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41 ((1st𝑤) ∈ (V ∖ {(1st𝑐)}) ↔ ((1st𝑤) ∈ V ∧ (1st𝑤) ≠ (1st𝑐)))
462459, 460, 461sylanbrc 583 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40 (¬ (1st𝑤) = (1st𝑐) → (1st𝑤) ∈ (V ∖ {(1st𝑐)}))
463 fvex 6787 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43 (2nd𝑤) ∈ V
464463opres 5901 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42 ((1st𝑤) ∈ (V ∖ {(1st𝑐)}) → (⟨(1st𝑤), (2nd𝑤)⟩ ∈ ((𝑑 sSet ⟨(1st𝑐), (2nd𝑐)⟩) ↾ (V ∖ {(1st𝑐)})) ↔ ⟨(1st𝑤), (2nd𝑤)⟩ ∈ (𝑑 sSet ⟨(1st𝑐), (2nd𝑐)⟩)))
465464adantl 482 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41 ((𝑤 ∈ (𝑁 × 𝑁) ∧ (1st𝑤) ∈ (V ∖ {(1st𝑐)})) → (⟨(1st𝑤), (2nd𝑤)⟩ ∈ ((𝑑 sSet ⟨(1st𝑐), (2nd𝑐)⟩) ↾ (V ∖ {(1st𝑐)})) ↔ ⟨(1st𝑤), (2nd𝑤)⟩ ∈ (𝑑 sSet ⟨(1st𝑐), (2nd𝑐)⟩)))
466 1st2nd2 7870 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43 (𝑤 ∈ (𝑁 × 𝑁) → 𝑤 = ⟨(1st𝑤), (2nd𝑤)⟩)
467466eleq1d 2823 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42 (𝑤 ∈ (𝑁 × 𝑁) → (𝑤 ∈ (𝑑 sSet ⟨(1st𝑐), (2nd𝑐)⟩) ↔ ⟨(1st𝑤), (2nd𝑤)⟩ ∈ (𝑑 sSet ⟨(1st𝑐), (2nd𝑐)⟩)))
468467adantr 481 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41 ((𝑤 ∈ (𝑁 × 𝑁) ∧ (1st𝑤) ∈ (V ∖ {(1st𝑐)})) → (𝑤 ∈ (𝑑 sSet ⟨(1st𝑐), (2nd𝑐)⟩) ↔ ⟨(1st𝑤), (2nd𝑤)⟩ ∈ (𝑑 sSet ⟨(1st𝑐), (2nd𝑐)⟩)))
469465, 468bitr4d 281 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40 ((𝑤 ∈ (𝑁 × 𝑁) ∧ (1st𝑤) ∈ (V ∖ {(1st𝑐)})) → (⟨(1st𝑤), (2nd𝑤)⟩ ∈ ((𝑑 sSet ⟨(1st𝑐), (2nd𝑐)⟩) ↾ (V ∖ {(1st𝑐)})) ↔ 𝑤 ∈ (𝑑 sSet ⟨(1st𝑐), (2nd𝑐)⟩)))
470403, 462, 469syl2an 596 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39 (((((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) ∧ 𝑑 ∈ (𝑁m 𝑁)) ∧ 𝑤 ∈ (𝑏 ∪ {𝑐})) ∧ ¬ (1st𝑤) = (1st𝑐)) → (⟨(1st𝑤), (2nd𝑤)⟩ ∈ ((𝑑 sSet ⟨(1st𝑐), (2nd𝑐)⟩) ↾ (V ∖ {(1st𝑐)})) ↔ 𝑤 ∈ (𝑑 sSet ⟨(1st𝑐), (2nd𝑐)⟩)))
471463opres 5901 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42 ((1st𝑤) ∈ (V ∖ {(1st𝑐)}) → (⟨(1st𝑤), (2nd𝑤)⟩ ∈ (𝑑 ↾ (V ∖ {(1st𝑐)})) ↔ ⟨(1st𝑤), (2nd𝑤)⟩ ∈ 𝑑))
472471adantl 482 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41 ((𝑤 ∈ (𝑁 × 𝑁) ∧ (1st𝑤) ∈ (V ∖ {(1st𝑐)})) → (⟨(1st𝑤), (2nd𝑤)⟩ ∈ (𝑑 ↾ (V ∖ {(1st𝑐)})) ↔ ⟨(1st𝑤), (2nd𝑤)⟩ ∈ 𝑑))
473466eleq1d 2823 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42 (𝑤 ∈ (𝑁 × 𝑁) → (𝑤𝑑 ↔ ⟨(1st𝑤), (2nd𝑤)⟩ ∈ 𝑑))
474473adantr 481 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41 ((𝑤 ∈ (𝑁 × 𝑁) ∧ (1st𝑤) ∈ (V ∖ {(1st𝑐)})) → (𝑤𝑑 ↔ ⟨(1st𝑤), (2nd𝑤)⟩ ∈ 𝑑))
475472, 474bitr4d 281 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40 ((𝑤 ∈ (𝑁 × 𝑁) ∧ (1st𝑤) ∈ (V ∖ {(1st𝑐)})) → (⟨(1st𝑤), (2nd𝑤)⟩ ∈ (𝑑 ↾ (V ∖ {(1st𝑐)})) ↔ 𝑤𝑑))
476403, 462, 475syl2an 596 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39 (((((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) ∧ 𝑑 ∈ (𝑁m 𝑁)) ∧ 𝑤 ∈ (𝑏 ∪ {𝑐})) ∧ ¬ (1st𝑤) = (1st𝑐)) → (⟨(1st𝑤), (2nd𝑤)⟩ ∈ (𝑑 ↾ (V ∖ {(1st𝑐)})) ↔ 𝑤𝑑))
477457, 470, 4763bitr3rd 310 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38 (((((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) ∧ 𝑑 ∈ (𝑁m 𝑁)) ∧ 𝑤 ∈ (𝑏 ∪ {𝑐})) ∧ ¬ (1st𝑤) = (1st𝑐)) → (𝑤𝑑𝑤 ∈ (𝑑 sSet ⟨(1st𝑐), (2nd𝑐)⟩)))
478477ifbid 4482 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37 (((((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) ∧ 𝑑 ∈ (𝑁m 𝑁)) ∧ 𝑤 ∈ (𝑏 ∪ {𝑐})) ∧ ¬ (1st𝑤) = (1st𝑐)) → if(𝑤𝑑, 1 , 0 ) = if(𝑤 ∈ (𝑑 sSet ⟨(1st𝑐), (2nd𝑐)⟩), 1 , 0 ))
479454, 478eqtrd 2778 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 (((((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) ∧ 𝑑 ∈ (𝑁m 𝑁)) ∧ 𝑤 ∈ (𝑏 ∪ {𝑐})) ∧ ¬ (1st𝑤) = (1st𝑐)) → if((1st𝑤) = (1st𝑐), if(𝑤 = 𝑐, 1 , 0 ), if(𝑤𝑑, 1 , 0 )) = if(𝑤 ∈ (𝑑 sSet ⟨(1st𝑐), (2nd𝑐)⟩), 1 , 0 ))
480 ifeq2 4464 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37 ((𝑎𝑤) = if(𝑤𝑑, 1 , 0 ) → if((1st𝑤) = (1st𝑐), if(𝑤 = 𝑐, 1 , 0 ), (𝑎𝑤)) = if((1st𝑤) = (1st𝑐), if(𝑤 = 𝑐, 1 , 0 ), if(𝑤𝑑, 1 , 0 )))
481480eqeq1d 2740 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 ((𝑎𝑤) = if(𝑤𝑑, 1 , 0 ) → (if((1st𝑤) = (1st𝑐), if(𝑤 = 𝑐, 1 , 0 ), (𝑎𝑤)) = if(𝑤 ∈ (𝑑 sSet ⟨(1st𝑐), (2nd𝑐)⟩), 1 , 0 ) ↔ if((1st𝑤) = (1st𝑐), if(𝑤 = 𝑐, 1 , 0 ), if(𝑤𝑑, 1 , 0 )) = if(𝑤 ∈ (𝑑 sSet ⟨(1st𝑐), (2nd𝑐)⟩), 1 , 0 )))
482479, 481syl5ibrcom 246 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 (((((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) ∧ 𝑑 ∈ (𝑁m 𝑁)) ∧ 𝑤 ∈ (𝑏 ∪ {𝑐})) ∧ ¬ (1st𝑤) = (1st𝑐)) → ((𝑎𝑤) = if(𝑤𝑑, 1 , 0 ) → if((1st𝑤) = (1st𝑐), if(𝑤 = 𝑐, 1 , 0 ), (𝑎𝑤)) = if(𝑤 ∈ (𝑑 sSet ⟨(1st𝑐), (2nd𝑐)⟩), 1 , 0 )))
483452, 482embantd 59 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 (((((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) ∧ 𝑑 ∈ (𝑁m 𝑁)) ∧ 𝑤 ∈ (𝑏 ∪ {𝑐})) ∧ ¬ (1st𝑤) = (1st𝑐)) → ((𝑤𝑏 → (𝑎𝑤) = if(𝑤𝑑, 1 , 0 )) → if((1st𝑤) = (1st𝑐), if(𝑤 = 𝑐, 1 , 0 ), (𝑎𝑤)) = if(𝑤 ∈ (𝑑 sSet ⟨(1st𝑐), (2nd𝑐)⟩), 1 , 0 )))
484442, 483pm2.61dan 810 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 ((((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) ∧ 𝑑 ∈ (𝑁m 𝑁)) ∧ 𝑤 ∈ (𝑏 ∪ {𝑐})) → ((𝑤𝑏 → (𝑎𝑤) = if(𝑤𝑑, 1 , 0 )) → if((1st𝑤) = (1st𝑐), if(𝑤 = 𝑐, 1 , 0 ), (𝑎𝑤)) = if(𝑤 ∈ (𝑑 sSet ⟨(1st𝑐), (2nd𝑐)⟩), 1 , 0 )))
485 fveqeq2 6783 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37 (𝑒 = 𝑤 → ((1st𝑒) = (1st𝑐) ↔ (1st𝑤) = (1st𝑐)))
486 equequ1 2028 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38 (𝑒 = 𝑤 → (𝑒 = 𝑐𝑤 = 𝑐))
487486ifbid 4482 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37 (𝑒 = 𝑤 → if(𝑒 = 𝑐, 1 , 0 ) = if(𝑤 = 𝑐, 1 , 0 ))
488 fveq2 6774 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37 (𝑒 = 𝑤 → (𝑎𝑒) = (𝑎𝑤))
489485, 487, 488ifbieq12d 4487 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 (𝑒 = 𝑤 → if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, 1 , 0 ), (𝑎𝑒)) = if((1st𝑤) = (1st𝑐), if(𝑤 = 𝑐, 1 , 0 ), (𝑎𝑤)))
490 eqid 2738 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 (𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, 1 , 0 ), (𝑎𝑒))) = (𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, 1 , 0 ), (𝑎𝑒)))
491165, 162ifex 4509 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37 if(𝑤 = 𝑐, 1 , 0 ) ∈ V
492 fvex 6787 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37 (𝑎𝑤) ∈ V
493491, 492ifex 4509 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 if((1st𝑤) = (1st𝑐), if(𝑤 = 𝑐, 1 , 0 ), (𝑎𝑤)) ∈ V
494489, 490, 493fvmpt 6875 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 (𝑤 ∈ (𝑁 × 𝑁) → ((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, 1 , 0 ), (𝑎𝑒)))‘𝑤) = if((1st𝑤) = (1st𝑐), if(𝑤 = 𝑐, 1 , 0 ), (𝑎𝑤)))
495494eqeq1d 2740 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 (𝑤 ∈ (𝑁 × 𝑁) → (((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, 1 , 0 ), (𝑎𝑒)))‘𝑤) = if(𝑤 ∈ (𝑑 sSet ⟨(1st𝑐), (2nd𝑐)⟩), 1 , 0 ) ↔ if((1st𝑤) = (1st𝑐), if(𝑤 = 𝑐, 1 , 0 ), (𝑎𝑤)) = if(𝑤 ∈ (𝑑 sSet ⟨(1st𝑐), (2nd𝑐)⟩), 1 , 0 )))
496403, 495syl 17 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 ((((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) ∧ 𝑑 ∈ (𝑁m 𝑁)) ∧ 𝑤 ∈ (𝑏 ∪ {𝑐})) → (((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, 1 , 0 ), (𝑎𝑒)))‘𝑤) = if(𝑤 ∈ (𝑑 sSet ⟨(1st𝑐), (2nd𝑐)⟩), 1 , 0 ) ↔ if((1st𝑤) = (1st𝑐), if(𝑤 = 𝑐, 1 , 0 ), (𝑎𝑤)) = if(𝑤 ∈ (𝑑 sSet ⟨(1st𝑐), (2nd𝑐)⟩), 1 , 0 )))
497484, 496sylibrd 258 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 ((((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) ∧ 𝑑 ∈ (𝑁m 𝑁)) ∧ 𝑤 ∈ (𝑏 ∪ {𝑐})) → ((𝑤𝑏 → (𝑎𝑤) = if(𝑤𝑑, 1 , 0 )) → ((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, 1 , 0 ), (𝑎𝑒)))‘𝑤) = if(𝑤 ∈ (𝑑 sSet ⟨(1st𝑐), (2nd𝑐)⟩), 1 , 0 )))
498497ralimdva 3108 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 (((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) ∧ 𝑑 ∈ (𝑁m 𝑁)) → (∀𝑤 ∈ (𝑏 ∪ {𝑐})(𝑤𝑏 → (𝑎𝑤) = if(𝑤𝑑, 1 , 0 )) → ∀𝑤 ∈ (𝑏 ∪ {𝑐})((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, 1 , 0 ), (𝑎𝑒)))‘𝑤) = if(𝑤 ∈ (𝑑 sSet ⟨(1st𝑐), (2nd𝑐)⟩), 1 , 0 )))
499396, 498syl5bi 241 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 (((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) ∧ 𝑑 ∈ (𝑁m 𝑁)) → (∀𝑤𝑏 (𝑎𝑤) = if(𝑤𝑑, 1 , 0 ) → ∀𝑤 ∈ (𝑏 ∪ {𝑐})((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, 1 , 0 ), (𝑎𝑒)))‘𝑤) = if(𝑤 ∈ (𝑑 sSet ⟨(1st𝑐), (2nd𝑐)⟩), 1 , 0 )))
500499impr 455 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 (((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) ∧ (𝑑 ∈ (𝑁m 𝑁) ∧ ∀𝑤𝑏 (𝑎𝑤) = if(𝑤𝑑, 1 , 0 ))) → ∀𝑤 ∈ (𝑏 ∪ {𝑐})((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, 1 , 0 ), (𝑎𝑒)))‘𝑤) = if(𝑤 ∈ (𝑑 sSet ⟨(1st𝑐), (2nd𝑐)⟩), 1 , 0 ))
5015003adantr1 1168 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 (((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) ∧ ((𝑏 ∪ {𝑐}) ∈ 𝑌𝑑 ∈ (𝑁m 𝑁) ∧ ∀𝑤𝑏 (𝑎𝑤) = if(𝑤𝑑, 1 , 0 ))) → ∀𝑤 ∈ (𝑏 ∪ {𝑐})((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, 1 , 0 ), (𝑎𝑒)))‘𝑤) = if(𝑤 ∈ (𝑑 sSet ⟨(1st𝑐), (2nd𝑐)⟩), 1 , 0 ))
502348adantr 481 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 (((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) ∧ ((𝑏 ∪ {𝑐}) ∈ 𝑌𝑑 ∈ (𝑁m 𝑁) ∧ ∀𝑤𝑏 (𝑎𝑤) = if(𝑤𝑑, 1 , 0 ))) → (𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, 1 , 0 ), (𝑎𝑒))) ∈ 𝐵)
503 simpr2 1194 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 (((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) ∧ ((𝑏 ∪ {𝑐}) ∈ 𝑌𝑑 ∈ (𝑁m 𝑁) ∧ ∀𝑤𝑏 (𝑎𝑤) = if(𝑤𝑑, 1 , 0 ))) → 𝑑 ∈ (𝑁m 𝑁))
504503, 409syl 17 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 (((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) ∧ ((𝑏 ∪ {𝑐}) ∈ 𝑌𝑑 ∈ (𝑁m 𝑁) ∧ ∀𝑤𝑏 (𝑎𝑤) = if(𝑤𝑑, 1 , 0 ))) → 𝑑:𝑁𝑁)
505124adantr 481 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 (((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) ∧ ((𝑏 ∪ {𝑐}) ∈ 𝑌𝑑 ∈ (𝑁m 𝑁) ∧ ∀𝑤𝑏 (𝑎𝑤) = if(𝑤𝑑, 1 , 0 ))) → (1st𝑐) ∈ 𝑁)
506413adantr 481 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 (((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) ∧ ((𝑏 ∪ {𝑐}) ∈ 𝑌𝑑 ∈ (𝑁m 𝑁) ∧ ∀𝑤𝑏 (𝑎𝑤) = if(𝑤𝑑, 1 , 0 ))) → (2nd𝑐) ∈ 𝑁)
507503, 504, 505, 506, 415syl211anc 1375 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 (((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) ∧ ((𝑏 ∪ {𝑐}) ∈ 𝑌𝑑 ∈ (𝑁m 𝑁) ∧ ∀𝑤𝑏 (𝑎𝑤) = if(𝑤𝑑, 1 , 0 ))) → (𝑑 sSet ⟨(1st𝑐), (2nd𝑐)⟩):𝑁𝑁)
508158, 158elmapd 8629 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 ((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) → ((𝑑 sSet ⟨(1st𝑐), (2nd𝑐)⟩) ∈ (𝑁m 𝑁) ↔ (𝑑 sSet ⟨(1st𝑐), (2nd𝑐)⟩):𝑁𝑁))
509508adantr 481 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 (((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) ∧ ((𝑏 ∪ {𝑐}) ∈ 𝑌𝑑 ∈ (𝑁m 𝑁) ∧ ∀𝑤𝑏 (𝑎𝑤) = if(𝑤𝑑, 1 , 0 ))) → ((𝑑 sSet ⟨(1st𝑐), (2nd𝑐)⟩) ∈ (𝑁m 𝑁) ↔ (𝑑 sSet ⟨(1st𝑐), (2nd𝑐)⟩):𝑁𝑁))
510507, 509mpbird 256 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 (((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) ∧ ((𝑏 ∪ {𝑐}) ∈ 𝑌𝑑 ∈ (𝑁m 𝑁) ∧ ∀𝑤𝑏 (𝑎𝑤) = if(𝑤𝑑, 1 , 0 ))) → (𝑑 sSet ⟨(1st𝑐), (2nd𝑐)⟩) ∈ (𝑁m 𝑁))
511 simpr1 1193 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 (((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) ∧ ((𝑏 ∪ {𝑐}) ∈ 𝑌𝑑 ∈ (𝑁m 𝑁) ∧ ∀𝑤𝑏 (𝑎𝑤) = if(𝑤𝑑, 1 , 0 ))) → (𝑏 ∪ {𝑐}) ∈ 𝑌)
512 raleq 3342 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 (𝑥 = (𝑏 ∪ {𝑐}) → (∀𝑤𝑥 (𝑦𝑤) = if(𝑤𝑧, 1 , 0 ) ↔ ∀𝑤 ∈ (𝑏 ∪ {𝑐})(𝑦𝑤) = if(𝑤𝑧, 1 , 0 )))
513512imbi1d 342 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 (𝑥 = (𝑏 ∪ {𝑐}) → ((∀𝑤𝑥 (𝑦𝑤) = if(𝑤𝑧, 1 , 0 ) → (𝐷𝑦) = 0 ) ↔ (∀𝑤 ∈ (𝑏 ∪ {𝑐})(𝑦𝑤) = if(𝑤𝑧, 1 , 0 ) → (𝐷𝑦) = 0 )))
5145132ralbidv 3129 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 (𝑥 = (𝑏 ∪ {𝑐}) → (∀𝑦𝐵𝑧 ∈ (𝑁m 𝑁)(∀𝑤𝑥 (𝑦𝑤) = if(𝑤𝑧, 1 , 0 ) → (𝐷𝑦) = 0 ) ↔ ∀𝑦𝐵𝑧 ∈ (𝑁m 𝑁)(∀𝑤 ∈ (𝑏 ∪ {𝑐})(𝑦𝑤) = if(𝑤𝑧, 1 , 0 ) → (𝐷𝑦) = 0 )))
515514, 72elab2g 3611 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 ((𝑏 ∪ {𝑐}) ∈ 𝑌 → ((𝑏 ∪ {𝑐}) ∈ 𝑌 ↔ ∀𝑦𝐵𝑧 ∈ (𝑁m 𝑁)(∀𝑤 ∈ (𝑏 ∪ {𝑐})(𝑦𝑤) = if(𝑤𝑧, 1 , 0 ) → (𝐷𝑦) = 0 )))
516515ibi 266 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 ((𝑏 ∪ {𝑐}) ∈ 𝑌 → ∀𝑦𝐵𝑧 ∈ (𝑁m 𝑁)(∀𝑤 ∈ (𝑏 ∪ {𝑐})(𝑦𝑤) = if(𝑤𝑧, 1 , 0 ) → (𝐷𝑦) = 0 ))
517511, 516syl 17 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 (((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) ∧ ((𝑏 ∪ {𝑐}) ∈ 𝑌𝑑 ∈ (𝑁m 𝑁) ∧ ∀𝑤𝑏 (𝑎𝑤) = if(𝑤𝑑, 1 , 0 ))) → ∀𝑦𝐵𝑧 ∈ (𝑁m 𝑁)(∀𝑤 ∈ (𝑏 ∪ {𝑐})(𝑦𝑤) = if(𝑤𝑧, 1 , 0 ) → (𝐷𝑦) = 0 ))
518 fveq1 6773 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 (𝑦 = (𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, 1 , 0 ), (𝑎𝑒))) → (𝑦𝑤) = ((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, 1 , 0 ), (𝑎𝑒)))‘𝑤))
519518eqeq1d 2740 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 (𝑦 = (𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, 1 , 0 ), (𝑎𝑒))) → ((𝑦𝑤) = if(𝑤𝑧, 1 , 0 ) ↔ ((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, 1 , 0 ), (𝑎𝑒)))‘𝑤) = if(𝑤𝑧, 1 , 0 )))
520519ralbidv 3112 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 (𝑦 = (𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, 1 , 0 ), (𝑎𝑒))) → (∀𝑤 ∈ (𝑏 ∪ {𝑐})(𝑦𝑤) = if(𝑤𝑧, 1 , 0 ) ↔ ∀𝑤 ∈ (𝑏 ∪ {𝑐})((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, 1 , 0 ), (𝑎𝑒)))‘𝑤) = if(𝑤𝑧, 1 , 0 )))
521 fveqeq2 6783 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 (𝑦 = (𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, 1 , 0 ), (𝑎𝑒))) → ((𝐷𝑦) = 0 ↔ (𝐷‘(𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, 1 , 0 ), (𝑎𝑒)))) = 0 ))
522520, 521imbi12d 345 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 (𝑦 = (𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, 1 , 0 ), (𝑎𝑒))) → ((∀𝑤 ∈ (𝑏 ∪ {𝑐})(𝑦𝑤) = if(𝑤𝑧, 1 , 0 ) → (𝐷𝑦) = 0 ) ↔ (∀𝑤 ∈ (𝑏 ∪ {𝑐})((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, 1 , 0 ), (𝑎𝑒)))‘𝑤) = if(𝑤𝑧, 1 , 0 ) → (𝐷‘(𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, 1 , 0 ), (𝑎𝑒)))) = 0 )))
523 eleq2 2827 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 (𝑧 = (𝑑 sSet ⟨(1st𝑐), (2nd𝑐)⟩) → (𝑤𝑧𝑤 ∈ (𝑑 sSet ⟨(1st𝑐), (2nd𝑐)⟩)))
524523ifbid 4482 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 (𝑧 = (𝑑 sSet ⟨(1st𝑐), (2nd𝑐)⟩) → if(𝑤𝑧, 1 , 0 ) = if(𝑤 ∈ (𝑑 sSet ⟨(1st𝑐), (2nd𝑐)⟩), 1 , 0 ))
525524eqeq2d 2749 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 (𝑧 = (𝑑 sSet ⟨(1st𝑐), (2nd𝑐)⟩) → (((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, 1 , 0 ), (𝑎𝑒)))‘𝑤) = if(𝑤𝑧, 1 , 0 ) ↔ ((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, 1 , 0 ), (𝑎𝑒)))‘𝑤) = if(𝑤 ∈ (𝑑 sSet ⟨(1st𝑐), (2nd𝑐)⟩), 1 , 0 )))
526525ralbidv 3112 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 (𝑧 = (𝑑 sSet ⟨(1st𝑐), (2nd𝑐)⟩) → (∀𝑤 ∈ (𝑏 ∪ {𝑐})((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, 1 , 0 ), (𝑎𝑒)))‘𝑤) = if(𝑤𝑧, 1 , 0 ) ↔ ∀𝑤 ∈ (𝑏 ∪ {𝑐})((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, 1 , 0 ), (𝑎𝑒)))‘𝑤) = if(𝑤 ∈ (𝑑 sSet ⟨(1st𝑐), (2nd𝑐)⟩), 1 , 0 )))
527526imbi1d 342 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 (𝑧 = (𝑑 sSet ⟨(1st𝑐), (2nd𝑐)⟩) → ((∀𝑤 ∈ (𝑏 ∪ {𝑐})((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, 1 , 0 ), (𝑎𝑒)))‘𝑤) = if(𝑤𝑧, 1 , 0 ) → (𝐷‘(𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, 1 , 0 ), (𝑎𝑒)))) = 0 ) ↔ (∀𝑤 ∈ (𝑏 ∪ {𝑐})((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, 1 , 0 ), (𝑎𝑒)))‘𝑤) = if(𝑤 ∈ (𝑑 sSet ⟨(1st𝑐), (2nd𝑐)⟩), 1 , 0 ) → (𝐷‘(𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, 1 , 0 ), (𝑎𝑒)))) = 0 )))
528522, 527rspc2va 3571 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 ((((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, 1 , 0 ), (𝑎𝑒))) ∈ 𝐵 ∧ (𝑑 sSet ⟨(1st𝑐), (2nd𝑐)⟩) ∈ (𝑁m 𝑁)) ∧ ∀𝑦𝐵𝑧 ∈ (𝑁m 𝑁)(∀𝑤 ∈ (𝑏 ∪ {𝑐})(𝑦𝑤) = if(𝑤𝑧, 1 , 0 ) → (𝐷𝑦) = 0 )) → (∀𝑤 ∈ (𝑏 ∪ {𝑐})((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, 1 , 0 ), (𝑎𝑒)))‘𝑤) = if(𝑤 ∈ (𝑑 sSet ⟨(1st𝑐), (2nd𝑐)⟩), 1 , 0 ) → (𝐷‘(𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, 1 , 0 ), (𝑎𝑒)))) = 0 ))
529502, 510, 517, 528syl21anc 835 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 (((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) ∧ ((𝑏 ∪ {𝑐}) ∈ 𝑌𝑑 ∈ (𝑁m 𝑁) ∧ ∀𝑤𝑏 (𝑎𝑤) = if(𝑤𝑑, 1 , 0 ))) → (∀𝑤 ∈ (𝑏 ∪ {𝑐})((𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, 1 , 0 ), (𝑎𝑒)))‘𝑤) = if(𝑤 ∈ (𝑑 sSet ⟨(1st𝑐), (2nd𝑐)⟩), 1 , 0 ) → (𝐷‘(𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, 1 , 0 ), (𝑎𝑒)))) = 0 ))
530501, 529mpd 15 . . . . . . . . . . . . . . . . . . . . . . . . . . 27 (((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) ∧ ((𝑏 ∪ {𝑐}) ∈ 𝑌𝑑 ∈ (𝑁m 𝑁) ∧ ∀𝑤𝑏 (𝑎𝑤) = if(𝑤𝑑, 1 , 0 ))) → (𝐷‘(𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, 1 , 0 ), (𝑎𝑒)))) = 0 )
531530oveq2d 7291 . . . . . . . . . . . . . . . . . . . . . . . . . 26 (((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) ∧ ((𝑏 ∪ {𝑐}) ∈ 𝑌𝑑 ∈ (𝑁m 𝑁) ∧ ∀𝑤𝑏 (𝑎𝑤) = if(𝑤𝑑, 1 , 0 ))) → (((𝑎𝑐)(-g𝑅)if(𝑐𝑑, 1 , 0 )) · (𝐷‘(𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, 1 , 0 ), (𝑎𝑒))))) = (((𝑎𝑐)(-g𝑅)if(𝑐𝑑, 1 , 0 )) · 0 ))
532118unssad 4121 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 ((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) → 𝑏 ⊆ (𝑁 × 𝑁))
533532adantr 481 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 (((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) ∧ ((𝑏 ∪ {𝑐}) ∈ 𝑌𝑑 ∈ (𝑁m 𝑁) ∧ ∀𝑤𝑏 (𝑎𝑤) = if(𝑤𝑑, 1 , 0 ))) → 𝑏 ⊆ (𝑁 × 𝑁))
534 simpr3 1195 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 (((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) ∧ ((𝑏 ∪ {𝑐}) ∈ 𝑌𝑑 ∈ (𝑁m 𝑁) ∧ ∀𝑤𝑏 (𝑎𝑤) = if(𝑤𝑑, 1 , 0 ))) → ∀𝑤𝑏 (𝑎𝑤) = if(𝑤𝑑, 1 , 0 ))
535 ssel2 3916 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 ((𝑏 ⊆ (𝑁 × 𝑁) ∧ 𝑤𝑏) → 𝑤 ∈ (𝑁 × 𝑁))
536535adantr 481 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 (((𝑏 ⊆ (𝑁 × 𝑁) ∧ 𝑤𝑏) ∧ (𝑎𝑤) = if(𝑤𝑑, 1 , 0 )) → 𝑤 ∈ (𝑁 × 𝑁))
537 elequ1 2113 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 (𝑒 = 𝑤 → (𝑒𝑑𝑤𝑑))
538537ifbid 4482 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 (𝑒 = 𝑤 → if(𝑒𝑑, 1 , 0 ) = if(𝑤𝑑, 1 , 0 ))
539486, 538, 488ifbieq12d 4487 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 (𝑒 = 𝑤 → if(𝑒 = 𝑐, if(𝑒𝑑, 1 , 0 ), (𝑎𝑒)) = if(𝑤 = 𝑐, if(𝑤𝑑, 1 , 0 ), (𝑎𝑤)))
540 eqid 2738 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 (𝑒 ∈ (𝑁 × 𝑁) ↦ if(𝑒 = 𝑐, if(𝑒𝑑, 1 , 0 ), (𝑎𝑒))) = (𝑒 ∈ (𝑁 × 𝑁) ↦ if(𝑒 = 𝑐, if(𝑒𝑑, 1 , 0 ), (𝑎𝑒)))
541165, 162ifex 4509 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 if(𝑤𝑑, 1 , 0 ) ∈ V
542541, 492ifex 4509 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 if(𝑤 = 𝑐, if(𝑤𝑑, 1 , 0 ), (𝑎𝑤)) ∈ V
543539, 540, 542fvmpt 6875 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 (𝑤 ∈ (𝑁 × 𝑁) → ((𝑒 ∈ (𝑁 × 𝑁) ↦ if(𝑒 = 𝑐, if(𝑒𝑑, 1 , 0 ), (𝑎𝑒)))‘𝑤) = if(𝑤 = 𝑐, if(𝑤𝑑, 1 , 0 ), (𝑎𝑤)))
544536, 543syl 17 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 (((𝑏 ⊆ (𝑁 × 𝑁) ∧ 𝑤𝑏) ∧ (𝑎𝑤) = if(𝑤𝑑, 1 , 0 )) → ((𝑒 ∈ (𝑁 × 𝑁) ↦ if(𝑒 = 𝑐, if(𝑒𝑑, 1 , 0 ), (𝑎𝑒)))‘𝑤) = if(𝑤 = 𝑐, if(𝑤𝑑, 1 , 0 ), (𝑎𝑤)))
545 ifeq2 4464 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 ((𝑎𝑤) = if(𝑤𝑑, 1 , 0 ) → if(𝑤 = 𝑐, if(𝑤𝑑, 1 , 0 ), (𝑎𝑤)) = if(𝑤 = 𝑐, if(𝑤𝑑, 1 , 0 ), if(𝑤𝑑, 1 , 0 )))
546545adantl 482 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 (((𝑏 ⊆ (𝑁 × 𝑁) ∧ 𝑤𝑏) ∧ (𝑎𝑤) = if(𝑤𝑑, 1 , 0 )) → if(𝑤 = 𝑐, if(𝑤𝑑, 1 , 0 ), (𝑎𝑤)) = if(𝑤 = 𝑐, if(𝑤𝑑, 1 , 0 ), if(𝑤𝑑, 1 , 0 )))
547 ifid 4499 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 if(𝑤 = 𝑐, if(𝑤𝑑, 1 , 0 ), if(𝑤𝑑, 1 , 0 )) = if(𝑤𝑑, 1 , 0 )
548546, 547eqtrdi 2794 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 (((𝑏 ⊆ (𝑁 × 𝑁) ∧ 𝑤𝑏) ∧ (𝑎𝑤) = if(𝑤𝑑, 1 , 0 )) → if(𝑤 = 𝑐, if(𝑤𝑑, 1 , 0 ), (𝑎𝑤)) = if(𝑤𝑑, 1 , 0 ))
549544, 548eqtrd 2778 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 (((𝑏 ⊆ (𝑁 × 𝑁) ∧ 𝑤𝑏) ∧ (𝑎𝑤) = if(𝑤𝑑, 1 , 0 )) → ((𝑒 ∈ (𝑁 × 𝑁) ↦ if(𝑒 = 𝑐, if(𝑒𝑑, 1 , 0 ), (𝑎𝑒)))‘𝑤) = if(𝑤𝑑, 1 , 0 ))
550549ex 413 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 ((𝑏 ⊆ (𝑁 × 𝑁) ∧ 𝑤𝑏) → ((𝑎𝑤) = if(𝑤𝑑, 1 , 0 ) → ((𝑒 ∈ (𝑁 × 𝑁) ↦ if(𝑒 = 𝑐, if(𝑒𝑑, 1 , 0 ), (𝑎𝑒)))‘𝑤) = if(𝑤𝑑, 1 , 0 )))
551550ralimdva 3108 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 (𝑏 ⊆ (𝑁 × 𝑁) → (∀𝑤𝑏 (𝑎𝑤) = if(𝑤𝑑, 1 , 0 ) → ∀𝑤𝑏 ((𝑒 ∈ (𝑁 × 𝑁) ↦ if(𝑒 = 𝑐, if(𝑒𝑑, 1 , 0 ), (𝑎𝑒)))‘𝑤) = if(𝑤𝑑, 1 , 0 )))
552533, 534, 551sylc 65 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 (((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) ∧ ((𝑏 ∪ {𝑐}) ∈ 𝑌𝑑 ∈ (𝑁m 𝑁) ∧ ∀𝑤𝑏 (𝑎𝑤) = if(𝑤𝑑, 1 , 0 ))) → ∀𝑤𝑏 ((𝑒 ∈ (𝑁 × 𝑁) ↦ if(𝑒 = 𝑐, if(𝑒𝑑, 1 , 0 ), (𝑎𝑒)))‘𝑤) = if(𝑤𝑑, 1 , 0 ))
553142, 291eqtrd 2778 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 (𝑒 = 𝑐 → if(𝑒 = 𝑐, if(𝑒𝑑, 1 , 0 ), (𝑎𝑒)) = if(𝑐𝑑, 1 , 0 ))
554165, 162ifex 4509 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 if(𝑐𝑑, 1 , 0 ) ∈ V
555553, 540, 554fvmpt 6875 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 (𝑐 ∈ (𝑁 × 𝑁) → ((𝑒 ∈ (𝑁 × 𝑁) ↦ if(𝑒 = 𝑐, if(𝑒𝑑, 1 , 0 ), (𝑎𝑒)))‘𝑐) = if(𝑐𝑑, 1 , 0 ))
556122, 555syl 17 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 ((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) → ((𝑒 ∈ (𝑁 × 𝑁) ↦ if(𝑒 = 𝑐, if(𝑒𝑑, 1 , 0 ), (𝑎𝑒)))‘𝑐) = if(𝑐𝑑, 1 , 0 ))
557556adantr 481 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 (((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) ∧ ((𝑏 ∪ {𝑐}) ∈ 𝑌𝑑 ∈ (𝑁m 𝑁) ∧ ∀𝑤𝑏 (𝑎𝑤) = if(𝑤𝑑, 1 , 0 ))) → ((𝑒 ∈ (𝑁 × 𝑁) ↦ if(𝑒 = 𝑐, if(𝑒𝑑, 1 , 0 ), (𝑎𝑒)))‘𝑐) = if(𝑐𝑑, 1 , 0 ))
558 fveq2 6774 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 (𝑤 = 𝑐 → ((𝑒 ∈ (𝑁 × 𝑁) ↦ if(𝑒 = 𝑐, if(𝑒𝑑, 1 , 0 ), (𝑎𝑒)))‘𝑤) = ((𝑒 ∈ (𝑁 × 𝑁) ↦ if(𝑒 = 𝑐, if(𝑒𝑑, 1 , 0 ), (𝑎𝑒)))‘𝑐))
559 elequ1 2113 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 (𝑤 = 𝑐 → (𝑤𝑑𝑐𝑑))
560559ifbid 4482 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 (𝑤 = 𝑐 → if(𝑤𝑑, 1 , 0 ) = if(𝑐𝑑, 1 , 0 ))
561558, 560eqeq12d 2754 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 (𝑤 = 𝑐 → (((𝑒 ∈ (𝑁 × 𝑁) ↦ if(𝑒 = 𝑐, if(𝑒𝑑, 1 , 0 ), (𝑎𝑒)))‘𝑤) = if(𝑤𝑑, 1 , 0 ) ↔ ((𝑒 ∈ (𝑁 × 𝑁) ↦ if(𝑒 = 𝑐, if(𝑒𝑑, 1 , 0 ), (𝑎𝑒)))‘𝑐) = if(𝑐𝑑, 1 , 0 )))
562561ralunsn 4825 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 (𝑐 ∈ V → (∀𝑤 ∈ (𝑏 ∪ {𝑐})((𝑒 ∈ (𝑁 × 𝑁) ↦ if(𝑒 = 𝑐, if(𝑒𝑑, 1 , 0 ), (𝑎𝑒)))‘𝑤) = if(𝑤𝑑, 1 , 0 ) ↔ (∀𝑤𝑏 ((𝑒 ∈ (𝑁 × 𝑁) ↦ if(𝑒 = 𝑐, if(𝑒𝑑, 1 , 0 ), (𝑎𝑒)))‘𝑤) = if(𝑤𝑑, 1 , 0 ) ∧ ((𝑒 ∈ (𝑁 × 𝑁) ↦ if(𝑒 = 𝑐, if(𝑒𝑑, 1 , 0 ), (𝑎𝑒)))‘𝑐) = if(𝑐𝑑, 1 , 0 ))))
563562elv 3438 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 (∀𝑤 ∈ (𝑏 ∪ {𝑐})((𝑒 ∈ (𝑁 × 𝑁) ↦ if(𝑒 = 𝑐, if(𝑒𝑑, 1 , 0 ), (𝑎𝑒)))‘𝑤) = if(𝑤𝑑, 1 , 0 ) ↔ (∀𝑤𝑏 ((𝑒 ∈ (𝑁 × 𝑁) ↦ if(𝑒 = 𝑐, if(𝑒𝑑, 1 , 0 ), (𝑎𝑒)))‘𝑤) = if(𝑤𝑑, 1 , 0 ) ∧ ((𝑒 ∈ (𝑁 × 𝑁) ↦ if(𝑒 = 𝑐, if(𝑒𝑑, 1 , 0 ), (𝑎𝑒)))‘𝑐) = if(𝑐𝑑, 1 , 0 )))
564552, 557, 563sylanbrc 583 . . . . . . . . . . . . . . . . . . . . . . . . . . 27 (((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) ∧ ((𝑏 ∪ {𝑐}) ∈ 𝑌𝑑 ∈ (𝑁m 𝑁) ∧ ∀𝑤𝑏 (𝑎𝑤) = if(𝑤𝑑, 1 , 0 ))) → ∀𝑤 ∈ (𝑏 ∪ {𝑐})((𝑒 ∈ (𝑁 × 𝑁) ↦ if(𝑒 = 𝑐, if(𝑒𝑑, 1 , 0 ), (𝑎𝑒)))‘𝑤) = if(𝑤𝑑, 1 , 0 ))
565223adantr 481 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 (((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) ∧ ((𝑏 ∪ {𝑐}) ∈ 𝑌𝑑 ∈ (𝑁m 𝑁) ∧ ∀𝑤𝑏 (𝑎𝑤) = if(𝑤𝑑, 1 , 0 ))) → (𝑒 ∈ (𝑁 × 𝑁) ↦ if(𝑒 = 𝑐, if(𝑒𝑑, 1 , 0 ), (𝑎𝑒))) ∈ 𝐵)
566 fveq1 6773 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 (𝑦 = (𝑒 ∈ (𝑁 × 𝑁) ↦ if(𝑒 = 𝑐, if(𝑒𝑑, 1 , 0 ), (𝑎𝑒))) → (𝑦𝑤) = ((𝑒 ∈ (𝑁 × 𝑁) ↦ if(𝑒 = 𝑐, if(𝑒𝑑, 1 , 0 ), (𝑎𝑒)))‘𝑤))
567566eqeq1d 2740 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 (𝑦 = (𝑒 ∈ (𝑁 × 𝑁) ↦ if(𝑒 = 𝑐, if(𝑒𝑑, 1 , 0 ), (𝑎𝑒))) → ((𝑦𝑤) = if(𝑤𝑧, 1 , 0 ) ↔ ((𝑒 ∈ (𝑁 × 𝑁) ↦ if(𝑒 = 𝑐, if(𝑒𝑑, 1 , 0 ), (𝑎𝑒)))‘𝑤) = if(𝑤𝑧, 1 , 0 )))
568567ralbidv 3112 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 (𝑦 = (𝑒 ∈ (𝑁 × 𝑁) ↦ if(𝑒 = 𝑐, if(𝑒𝑑, 1 , 0 ), (𝑎𝑒))) → (∀𝑤 ∈ (𝑏 ∪ {𝑐})(𝑦𝑤) = if(𝑤𝑧, 1 , 0 ) ↔ ∀𝑤 ∈ (𝑏 ∪ {𝑐})((𝑒 ∈ (𝑁 × 𝑁) ↦ if(𝑒 = 𝑐, if(𝑒𝑑, 1 , 0 ), (𝑎𝑒)))‘𝑤) = if(𝑤𝑧, 1 , 0 )))
569 fveqeq2 6783 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 (𝑦 = (𝑒 ∈ (𝑁 × 𝑁) ↦ if(𝑒 = 𝑐, if(𝑒𝑑, 1 , 0 ), (𝑎𝑒))) → ((𝐷𝑦) = 0 ↔ (𝐷‘(𝑒 ∈ (𝑁 × 𝑁) ↦ if(𝑒 = 𝑐, if(𝑒𝑑, 1 , 0 ), (𝑎𝑒)))) = 0 ))
570568, 569imbi12d 345 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 (𝑦 = (𝑒 ∈ (𝑁 × 𝑁) ↦ if(𝑒 = 𝑐, if(𝑒𝑑, 1 , 0 ), (𝑎𝑒))) → ((∀𝑤 ∈ (𝑏 ∪ {𝑐})(𝑦𝑤) = if(𝑤𝑧, 1 , 0 ) → (𝐷𝑦) = 0 ) ↔ (∀𝑤 ∈ (𝑏 ∪ {𝑐})((𝑒 ∈ (𝑁 × 𝑁) ↦ if(𝑒 = 𝑐, if(𝑒𝑑, 1 , 0 ), (𝑎𝑒)))‘𝑤) = if(𝑤𝑧, 1 , 0 ) → (𝐷‘(𝑒 ∈ (𝑁 × 𝑁) ↦ if(𝑒 = 𝑐, if(𝑒𝑑, 1 , 0 ), (𝑎𝑒)))) = 0 )))
571 elequ2 2121 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 (𝑧 = 𝑑 → (𝑤𝑧𝑤𝑑))
572571ifbid 4482 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 (𝑧 = 𝑑 → if(𝑤𝑧, 1 , 0 ) = if(𝑤𝑑, 1 , 0 ))
573572eqeq2d 2749 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 (𝑧 = 𝑑 → (((𝑒 ∈ (𝑁 × 𝑁) ↦ if(𝑒 = 𝑐, if(𝑒𝑑, 1 , 0 ), (𝑎𝑒)))‘𝑤) = if(𝑤𝑧, 1 , 0 ) ↔ ((𝑒 ∈ (𝑁 × 𝑁) ↦ if(𝑒 = 𝑐, if(𝑒𝑑, 1 , 0 ), (𝑎𝑒)))‘𝑤) = if(𝑤𝑑, 1 , 0 )))
574573ralbidv 3112 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 (𝑧 = 𝑑 → (∀𝑤 ∈ (𝑏 ∪ {𝑐})((𝑒 ∈ (𝑁 × 𝑁) ↦ if(𝑒 = 𝑐, if(𝑒𝑑, 1 , 0 ), (𝑎𝑒)))‘𝑤) = if(𝑤𝑧, 1 , 0 ) ↔ ∀𝑤 ∈ (𝑏 ∪ {𝑐})((𝑒 ∈ (𝑁 × 𝑁) ↦ if(𝑒 = 𝑐, if(𝑒𝑑, 1 , 0 ), (𝑎𝑒)))‘𝑤) = if(𝑤𝑑, 1 , 0 )))
575574imbi1d 342 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 (𝑧 = 𝑑 → ((∀𝑤 ∈ (𝑏 ∪ {𝑐})((𝑒 ∈ (𝑁 × 𝑁) ↦ if(𝑒 = 𝑐, if(𝑒𝑑, 1 , 0 ), (𝑎𝑒)))‘𝑤) = if(𝑤𝑧, 1 , 0 ) → (𝐷‘(𝑒 ∈ (𝑁 × 𝑁) ↦ if(𝑒 = 𝑐, if(𝑒𝑑, 1 , 0 ), (𝑎𝑒)))) = 0 ) ↔ (∀𝑤 ∈ (𝑏 ∪ {𝑐})((𝑒 ∈ (𝑁 × 𝑁) ↦ if(𝑒 = 𝑐, if(𝑒𝑑, 1 , 0 ), (𝑎𝑒)))‘𝑤) = if(𝑤𝑑, 1 , 0 ) → (𝐷‘(𝑒 ∈ (𝑁 × 𝑁) ↦ if(𝑒 = 𝑐, if(𝑒𝑑, 1 , 0 ), (𝑎𝑒)))) = 0 )))
576570, 575rspc2va 3571 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 ((((𝑒 ∈ (𝑁 × 𝑁) ↦ if(𝑒 = 𝑐, if(𝑒𝑑, 1 , 0 ), (𝑎𝑒))) ∈ 𝐵𝑑 ∈ (𝑁m 𝑁)) ∧ ∀𝑦𝐵𝑧 ∈ (𝑁m 𝑁)(∀𝑤 ∈ (𝑏 ∪ {𝑐})(𝑦𝑤) = if(𝑤𝑧, 1 , 0 ) → (𝐷𝑦) = 0 )) → (∀𝑤 ∈ (𝑏 ∪ {𝑐})((𝑒 ∈ (𝑁 × 𝑁) ↦ if(𝑒 = 𝑐, if(𝑒𝑑, 1 , 0 ), (𝑎𝑒)))‘𝑤) = if(𝑤𝑑, 1 , 0 ) → (𝐷‘(𝑒 ∈ (𝑁 × 𝑁) ↦ if(𝑒 = 𝑐, if(𝑒𝑑, 1 , 0 ), (𝑎𝑒)))) = 0 ))
577565, 503, 517, 576syl21anc 835 . . . . . . . . . . . . . . . . . . . . . . . . . . 27 (((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) ∧ ((𝑏 ∪ {𝑐}) ∈ 𝑌𝑑 ∈ (𝑁m 𝑁) ∧ ∀𝑤𝑏 (𝑎𝑤) = if(𝑤𝑑, 1 , 0 ))) → (∀𝑤 ∈ (𝑏 ∪ {𝑐})((𝑒 ∈ (𝑁 × 𝑁) ↦ if(𝑒 = 𝑐, if(𝑒𝑑, 1 , 0 ), (𝑎𝑒)))‘𝑤) = if(𝑤𝑑, 1 , 0 ) → (𝐷‘(𝑒 ∈ (𝑁 × 𝑁) ↦ if(𝑒 = 𝑐, if(𝑒𝑑, 1 , 0 ), (𝑎𝑒)))) = 0 ))
578564, 577mpd 15 . . . . . . . . . . . . . . . . . . . . . . . . . 26 (((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) ∧ ((𝑏 ∪ {𝑐}) ∈ 𝑌𝑑 ∈ (𝑁m 𝑁) ∧ ∀𝑤𝑏 (𝑎𝑤) = if(𝑤𝑑, 1 , 0 ))) → (𝐷‘(𝑒 ∈ (𝑁 × 𝑁) ↦ if(𝑒 = 𝑐, if(𝑒𝑑, 1 , 0 ), (𝑎𝑒)))) = 0 )
579531, 578oveq12d 7293 . . . . . . . . . . . . . . . . . . . . . . . . 25 (((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) ∧ ((𝑏 ∪ {𝑐}) ∈ 𝑌𝑑 ∈ (𝑁m 𝑁) ∧ ∀𝑤𝑏 (𝑎𝑤) = if(𝑤𝑑, 1 , 0 ))) → ((((𝑎𝑐)(-g𝑅)if(𝑐𝑑, 1 , 0 )) · (𝐷‘(𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, 1 , 0 ), (𝑎𝑒))))) + (𝐷‘(𝑒 ∈ (𝑁 × 𝑁) ↦ if(𝑒 = 𝑐, if(𝑒𝑑, 1 , 0 ), (𝑎𝑒))))) = ((((𝑎𝑐)(-g𝑅)if(𝑐𝑑, 1 , 0 )) · 0 ) + 0 ))
580308oveq1d 7290 . . . . . . . . . . . . . . . . . . . . . . . . . . 27 ((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) → ((((𝑎𝑐)(-g𝑅)if(𝑐𝑑, 1 , 0 )) · 0 ) + 0 ) = ( 0 + 0 ))
58112, 50, 48grplid 18609 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 ((𝑅 ∈ Grp ∧ 0𝐾) → ( 0 + 0 ) = 0 )
582115, 133, 581syl2anc 584 . . . . . . . . . . . . . . . . . . . . . . . . . . 27 ((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) → ( 0 + 0 ) = 0 )
583580, 582eqtrd 2778 . . . . . . . . . . . . . . . . . . . . . . . . . 26 ((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) → ((((𝑎𝑐)(-g𝑅)if(𝑐𝑑, 1 , 0 )) · 0 ) + 0 ) = 0 )
584583adantr 481 . . . . . . . . . . . . . . . . . . . . . . . . 25 (((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) ∧ ((𝑏 ∪ {𝑐}) ∈ 𝑌𝑑 ∈ (𝑁m 𝑁) ∧ ∀𝑤𝑏 (𝑎𝑤) = if(𝑤𝑑, 1 , 0 ))) → ((((𝑎𝑐)(-g𝑅)if(𝑐𝑑, 1 , 0 )) · 0 ) + 0 ) = 0 )
585579, 584eqtrd 2778 . . . . . . . . . . . . . . . . . . . . . . . 24 (((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ 𝑎𝐵) ∧ ((𝑏 ∪ {𝑐}) ∈ 𝑌𝑑 ∈ (𝑁m 𝑁) ∧ ∀𝑤𝑏 (𝑎𝑤) = if(𝑤𝑑, 1 , 0 ))) → ((((𝑎𝑐)(-g𝑅)if(𝑐𝑑, 1 , 0 )) · (𝐷‘(𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, 1 , 0 ), (𝑎𝑒))))) + (𝐷‘(𝑒 ∈ (𝑁 × 𝑁) ↦ if(𝑒 = 𝑐, if(𝑒𝑑, 1 , 0 ), (𝑎𝑒))))) = 0 )
586104, 105, 106, 392, 393, 394, 585syl33anc 1384 . . . . . . . . . . . . . . . . . . . . . . 23 (((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ (𝑏 ∪ {𝑐}) ∈ 𝑌) ∧ ((𝑎𝐵𝑑 ∈ (𝑁m 𝑁)) ∧ ∀𝑤𝑏 (𝑎𝑤) = if(𝑤𝑑, 1 , 0 ))) → ((((𝑎𝑐)(-g𝑅)if(𝑐𝑑, 1 , 0 )) · (𝐷‘(𝑒 ∈ (𝑁 × 𝑁) ↦ if((1st𝑒) = (1st𝑐), if(𝑒 = 𝑐, 1 , 0 ), (𝑎𝑒))))) + (𝐷‘(𝑒 ∈ (𝑁 × 𝑁) ↦ if(𝑒 = 𝑐, if(𝑒𝑑, 1 , 0 ), (𝑎𝑒))))) = 0 )
587288, 391, 5863eqtrd 2782 . . . . . . . . . . . . . . . . . . . . . 22 (((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ (𝑏 ∪ {𝑐}) ∈ 𝑌) ∧ ((𝑎𝐵𝑑 ∈ (𝑁m 𝑁)) ∧ ∀𝑤𝑏 (𝑎𝑤) = if(𝑤𝑑, 1 , 0 ))) → (𝐷𝑎) = 0 )
588587expr 457 . . . . . . . . . . . . . . . . . . . . 21 (((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ (𝑏 ∪ {𝑐}) ∈ 𝑌) ∧ (𝑎𝐵𝑑 ∈ (𝑁m 𝑁))) → (∀𝑤𝑏 (𝑎𝑤) = if(𝑤𝑑, 1 , 0 ) → (𝐷𝑎) = 0 ))
589588ralrimivva 3123 . . . . . . . . . . . . . . . . . . . 20 ((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ (𝑏 ∪ {𝑐}) ∈ 𝑌) → ∀𝑎𝐵𝑑 ∈ (𝑁m 𝑁)(∀𝑤𝑏 (𝑎𝑤) = if(𝑤𝑑, 1 , 0 ) → (𝐷𝑎) = 0 ))
590 fveq1 6773 . . . . . . . . . . . . . . . . . . . . . . . 24 (𝑎 = 𝑦 → (𝑎𝑤) = (𝑦𝑤))
591590eqeq1d 2740 . . . . . . . . . . . . . . . . . . . . . . 23 (𝑎 = 𝑦 → ((𝑎𝑤) = if(𝑤𝑑, 1 , 0 ) ↔ (𝑦𝑤) = if(𝑤𝑑, 1 , 0 )))
592591ralbidv 3112 . . . . . . . . . . . . . . . . . . . . . 22 (𝑎 = 𝑦 → (∀𝑤𝑏 (𝑎𝑤) = if(𝑤𝑑, 1 , 0 ) ↔ ∀𝑤𝑏 (𝑦𝑤) = if(𝑤𝑑, 1 , 0 )))
593 fveqeq2 6783 . . . . . . . . . . . . . . . . . . . . . 22 (𝑎 = 𝑦 → ((𝐷𝑎) = 0 ↔ (𝐷𝑦) = 0 ))
594592, 593imbi12d 345 . . . . . . . . . . . . . . . . . . . . 21 (𝑎 = 𝑦 → ((∀𝑤𝑏 (𝑎𝑤) = if(𝑤𝑑, 1 , 0 ) → (𝐷𝑎) = 0 ) ↔ (∀𝑤𝑏 (𝑦𝑤) = if(𝑤𝑑, 1 , 0 ) → (𝐷𝑦) = 0 )))
595 elequ2 2121 . . . . . . . . . . . . . . . . . . . . . . . . 25 (𝑑 = 𝑧 → (𝑤𝑑𝑤𝑧))
596595ifbid 4482 . . . . . . . . . . . . . . . . . . . . . . . 24 (𝑑 = 𝑧 → if(𝑤𝑑, 1 , 0 ) = if(𝑤𝑧, 1 , 0 ))
597596eqeq2d 2749 . . . . . . . . . . . . . . . . . . . . . . 23 (𝑑 = 𝑧 → ((𝑦𝑤) = if(𝑤𝑑, 1 , 0 ) ↔ (𝑦𝑤) = if(𝑤𝑧, 1 , 0 )))
598597ralbidv 3112 . . . . . . . . . . . . . . . . . . . . . 22 (𝑑 = 𝑧 → (∀𝑤𝑏 (𝑦𝑤) = if(𝑤𝑑, 1 , 0 ) ↔ ∀𝑤𝑏 (𝑦𝑤) = if(𝑤𝑧, 1 , 0 )))
599598imbi1d 342 . . . . . . . . . . . . . . . . . . . . 21 (𝑑 = 𝑧 → ((∀𝑤𝑏 (𝑦𝑤) = if(𝑤𝑑, 1 , 0 ) → (𝐷𝑦) = 0 ) ↔ (∀𝑤𝑏 (𝑦𝑤) = if(𝑤𝑧, 1 , 0 ) → (𝐷𝑦) = 0 )))
600594, 599cbvral2vw 3396 . . . . . . . . . . . . . . . . . . . 20 (∀𝑎𝐵𝑑 ∈ (𝑁m 𝑁)(∀𝑤𝑏 (𝑎𝑤) = if(𝑤𝑑, 1 , 0 ) → (𝐷𝑎) = 0 ) ↔ ∀𝑦𝐵𝑧 ∈ (𝑁m 𝑁)(∀𝑤𝑏 (𝑦𝑤) = if(𝑤𝑧, 1 , 0 ) → (𝐷𝑦) = 0 ))
601589, 600sylib 217 . . . . . . . . . . . . . . . . . . 19 ((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ (𝑏 ∪ {𝑐}) ∈ 𝑌) → ∀𝑦𝐵𝑧 ∈ (𝑁m 𝑁)(∀𝑤𝑏 (𝑦𝑤) = if(𝑤𝑧, 1 , 0 ) → (𝐷𝑦) = 0 ))
602 vex 3436 . . . . . . . . . . . . . . . . . . . 20 𝑏 ∈ V
603 raleq 3342 . . . . . . . . . . . . . . . . . . . . . 22 (𝑥 = 𝑏 → (∀𝑤𝑥 (𝑦𝑤) = if(𝑤𝑧, 1 , 0 ) ↔ ∀𝑤𝑏 (𝑦𝑤) = if(𝑤𝑧, 1 , 0 )))
604603imbi1d 342 . . . . . . . . . . . . . . . . . . . . 21 (𝑥 = 𝑏 → ((∀𝑤𝑥 (𝑦𝑤) = if(𝑤𝑧, 1 , 0 ) → (𝐷𝑦) = 0 ) ↔ (∀𝑤𝑏 (𝑦𝑤) = if(𝑤𝑧, 1 , 0 ) → (𝐷𝑦) = 0 )))
6056042ralbidv 3129 . . . . . . . . . . . . . . . . . . . 20 (𝑥 = 𝑏 → (∀𝑦𝐵𝑧 ∈ (𝑁m 𝑁)(∀𝑤𝑥 (𝑦𝑤) = if(𝑤𝑧, 1 , 0 ) → (𝐷𝑦) = 0 ) ↔ ∀𝑦𝐵𝑧 ∈ (𝑁m 𝑁)(∀𝑤𝑏 (𝑦𝑤) = if(𝑤𝑧, 1 , 0 ) → (𝐷𝑦) = 0 )))
606602, 605, 72elab2 3613 . . . . . . . . . . . . . . . . . . 19 (𝑏𝑌 ↔ ∀𝑦𝐵𝑧 ∈ (𝑁m 𝑁)(∀𝑤𝑏 (𝑦𝑤) = if(𝑤𝑧, 1 , 0 ) → (𝐷𝑦) = 0 ))
607601, 606sylibr 233 . . . . . . . . . . . . . . . . . 18 ((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ (𝑏 ∪ {𝑐}) ∈ 𝑌) → 𝑏𝑌)
6086073expia 1120 . . . . . . . . . . . . . . . . 17 ((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁)) → ((𝑏 ∪ {𝑐}) ∈ 𝑌𝑏𝑌))
609608con3d 152 . . . . . . . . . . . . . . . 16 ((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁)) → (¬ 𝑏𝑌 → ¬ (𝑏 ∪ {𝑐}) ∈ 𝑌))
6106093adant3 1131 . . . . . . . . . . . . . . 15 ((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ ¬ ∅ ∈ 𝑌) → (¬ 𝑏𝑌 → ¬ (𝑏 ∪ {𝑐}) ∈ 𝑌))
611610a1i 11 . . . . . . . . . . . . . 14 ((𝑏 ∈ Fin ∧ ¬ 𝑐𝑏) → ((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ ¬ ∅ ∈ 𝑌) → (¬ 𝑏𝑌 → ¬ (𝑏 ∪ {𝑐}) ∈ 𝑌)))
612611a2d 29 . . . . . . . . . . . . 13 ((𝑏 ∈ Fin ∧ ¬ 𝑐𝑏) → (((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ ¬ ∅ ∈ 𝑌) → ¬ 𝑏𝑌) → ((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ ¬ ∅ ∈ 𝑌) → ¬ (𝑏 ∪ {𝑐}) ∈ 𝑌)))
613103, 612syl5 34 . . . . . . . . . . . 12 ((𝑏 ∈ Fin ∧ ¬ 𝑐𝑏) → (((𝜑𝑏 ⊆ (𝑁 × 𝑁) ∧ ¬ ∅ ∈ 𝑌) → ¬ 𝑏𝑌) → ((𝜑 ∧ (𝑏 ∪ {𝑐}) ⊆ (𝑁 × 𝑁) ∧ ¬ ∅ ∈ 𝑌) → ¬ (𝑏 ∪ {𝑐}) ∈ 𝑌)))
61482, 87, 92, 97, 98, 613findcard2s 8948 . . . . . . . . . . 11 ((𝑁 × 𝑁) ∈ Fin → ((𝜑 ∧ (𝑁 × 𝑁) ⊆ (𝑁 × 𝑁) ∧ ¬ ∅ ∈ 𝑌) → ¬ (𝑁 × 𝑁) ∈ 𝑌))
61577, 614mpcom 38 . . . . . . . . . 10 ((𝜑 ∧ (𝑁 × 𝑁) ⊆ (𝑁 × 𝑁) ∧ ¬ ∅ ∈ 𝑌) → ¬ (𝑁 × 𝑁) ∈ 𝑌)
6166153exp 1118 . . . . . . . . 9 (𝜑 → ((𝑁 × 𝑁) ⊆ (𝑁 × 𝑁) → (¬ ∅ ∈ 𝑌 → ¬ (𝑁 × 𝑁) ∈ 𝑌)))
61776, 616mpi 20 . . . . . . . 8 (𝜑 → (¬ ∅ ∈ 𝑌 → ¬ (𝑁 × 𝑁) ∈ 𝑌))
61875, 617mt4d 117 . . . . . . 7 (𝜑 → ∅ ∈ 𝑌)
619618adantr 481 . . . . . 6 ((𝜑𝑎𝐵) → ∅ ∈ 𝑌)
620 0ex 5231 . . . . . . 7 ∅ ∈ V
621 raleq 3342 . . . . . . . . 9 (𝑥 = ∅ → (∀𝑤𝑥 (𝑦𝑤) = if(𝑤𝑧, 1 , 0 ) ↔ ∀𝑤 ∈ ∅ (𝑦𝑤) = if(𝑤𝑧, 1 , 0 )))
622621imbi1d 342 . . . . . . . 8 (𝑥 = ∅ → ((∀𝑤𝑥 (𝑦𝑤) = if(𝑤𝑧, 1 , 0 ) → (𝐷𝑦) = 0 ) ↔ (∀𝑤 ∈ ∅ (𝑦𝑤) = if(𝑤𝑧, 1 , 0 ) → (𝐷𝑦) = 0 )))
6236222ralbidv 3129 . . . . . . 7 (𝑥 = ∅ → (∀𝑦𝐵𝑧 ∈ (𝑁m 𝑁)(∀𝑤𝑥 (𝑦𝑤) = if(𝑤𝑧, 1 , 0 ) → (𝐷𝑦) = 0 ) ↔ ∀𝑦𝐵𝑧 ∈ (𝑁m 𝑁)(∀𝑤 ∈ ∅ (𝑦𝑤) = if(𝑤𝑧, 1 , 0 ) → (𝐷𝑦) = 0 )))
624620, 623, 72elab2 3613 . . . . . 6 (∅ ∈ 𝑌 ↔ ∀𝑦𝐵𝑧 ∈ (𝑁m 𝑁)(∀𝑤 ∈ ∅ (𝑦𝑤) = if(𝑤𝑧, 1 , 0 ) → (𝐷𝑦) = 0 ))
625619, 624sylib 217 . . . . 5 ((𝜑𝑎𝐵) → ∀𝑦𝐵𝑧 ∈ (𝑁m 𝑁)(∀𝑤 ∈ ∅ (𝑦𝑤) = if(𝑤𝑧, 1 , 0 ) → (𝐷𝑦) = 0 ))
626 fveq1 6773 . . . . . . . . 9 (𝑦 = 𝑎 → (𝑦𝑤) = (𝑎𝑤))
627626eqeq1d 2740 . . . . . . . 8 (𝑦 = 𝑎 → ((𝑦𝑤) = if(𝑤𝑧, 1 , 0 ) ↔ (𝑎𝑤) = if(𝑤𝑧, 1 , 0 )))
628627ralbidv 3112 . . . . . . 7 (𝑦 = 𝑎 → (∀𝑤 ∈ ∅ (𝑦𝑤) = if(𝑤𝑧, 1 , 0 ) ↔ ∀𝑤 ∈ ∅ (𝑎𝑤) = if(𝑤𝑧, 1 , 0 )))
629 fveqeq2 6783 . . . . . . 7 (𝑦 = 𝑎 → ((𝐷𝑦) = 0 ↔ (𝐷𝑎) = 0 ))
630628, 629imbi12d 345 . . . . . 6 (𝑦 = 𝑎 → ((∀𝑤 ∈ ∅ (𝑦𝑤) = if(𝑤𝑧, 1 , 0 ) → (𝐷𝑦) = 0 ) ↔ (∀𝑤 ∈ ∅ (𝑎𝑤) = if(𝑤𝑧, 1 , 0 ) → (𝐷𝑎) = 0 )))
631 eleq2 2827 . . . . . . . . . 10 (𝑧 = ( I ↾ 𝑁) → (𝑤𝑧𝑤 ∈ ( I ↾ 𝑁)))
632631ifbid 4482 . . . . . . . . 9 (𝑧 = ( I ↾ 𝑁) → if(𝑤𝑧, 1 , 0 ) = if(𝑤 ∈ ( I ↾ 𝑁), 1 , 0 ))
633632eqeq2d 2749 . . . . . . . 8 (𝑧 = ( I ↾ 𝑁) → ((𝑎𝑤) = if(𝑤𝑧, 1 , 0 ) ↔ (𝑎𝑤) = if(𝑤 ∈ ( I ↾ 𝑁), 1 , 0 )))
634633ralbidv 3112 . . . . . . 7 (𝑧 = ( I ↾ 𝑁) → (∀𝑤 ∈ ∅ (𝑎𝑤) = if(𝑤𝑧, 1 , 0 ) ↔ ∀𝑤 ∈ ∅ (𝑎𝑤) = if(𝑤 ∈ ( I ↾ 𝑁), 1 , 0 )))
635634imbi1d 342 . . . . . 6 (𝑧 = ( I ↾ 𝑁) → ((∀𝑤 ∈ ∅ (𝑎𝑤) = if(𝑤𝑧, 1 , 0 ) → (𝐷𝑎) = 0 ) ↔ (∀𝑤 ∈ ∅ (𝑎𝑤) = if(𝑤 ∈ ( I ↾ 𝑁), 1 , 0 ) → (𝐷𝑎) = 0 )))
636630, 635rspc2va 3571 . . . . 5 (((𝑎𝐵 ∧ ( I ↾ 𝑁) ∈ (𝑁m 𝑁)) ∧ ∀𝑦𝐵𝑧 ∈ (𝑁m 𝑁)(∀𝑤 ∈ ∅ (𝑦𝑤) = if(𝑤𝑧, 1 , 0 ) → (𝐷𝑦) = 0 )) → (∀𝑤 ∈ ∅ (𝑎𝑤) = if(𝑤 ∈ ( I ↾ 𝑁), 1 , 0 ) → (𝐷𝑎) = 0 ))
6372, 9, 625, 636syl21anc 835 . . . 4 ((𝜑𝑎𝐵) → (∀𝑤 ∈ ∅ (𝑎𝑤) = if(𝑤 ∈ ( I ↾ 𝑁), 1 , 0 ) → (𝐷𝑎) = 0 ))
6381, 637mpi 20 . . 3 ((𝜑𝑎𝐵) → (𝐷𝑎) = 0 )
639638mpteq2dva 5174 . 2 (𝜑 → (𝑎𝐵 ↦ (𝐷𝑎)) = (𝑎𝐵0 ))
64053feqmptd 6837 . 2 (𝜑𝐷 = (𝑎𝐵 ↦ (𝐷𝑎)))
641 fconstmpt 5649 . . 3 (𝐵 × { 0 }) = (𝑎𝐵0 )
642641a1i 11 . 2 (𝜑 → (𝐵 × { 0 }) = (𝑎𝐵0 ))
643639, 640, 6423eqtr4d 2788 1 (𝜑𝐷 = (𝐵 × { 0 }))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 205  wa 396  wo 844  w3a 1086   = wceq 1539  wcel 2106  {cab 2715  wne 2943  wral 3064  Vcvv 3432  cdif 3884  cun 3885  wss 3887  c0 4256  ifcif 4459  {csn 4561  cop 4567  cmpt 5157   I cid 5488   × cxp 5587  cres 5591  Rel wrel 5594   Fn wfn 6428  wf 6429  1-1-ontowf1o 6432  cfv 6433  (class class class)co 7275  cmpo 7277  f cof 7531  1st c1st 7829  2nd c2nd 7830  m cmap 8615  Fincfn 8733   sSet csts 16864  Basecbs 16912  +gcplusg 16962  .rcmulr 16963  0gc0g 17150  Grpcgrp 18577  -gcsg 18579  1rcur 19737  Ringcrg 19783   Mat cmat 21554
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1798  ax-4 1812  ax-5 1913  ax-6 1971  ax-7 2011  ax-8 2108  ax-9 2116  ax-10 2137  ax-11 2154  ax-12 2171  ax-ext 2709  ax-rep 5209  ax-sep 5223  ax-nul 5230  ax-pow 5288  ax-pr 5352  ax-un 7588  ax-cnex 10927  ax-resscn 10928  ax-1cn 10929  ax-icn 10930  ax-addcl 10931  ax-addrcl 10932  ax-mulcl 10933  ax-mulrcl 10934  ax-mulcom 10935  ax-addass 10936  ax-mulass 10937  ax-distr 10938  ax-i2m1 10939  ax-1ne0 10940  ax-1rid 10941  ax-rnegex 10942  ax-rrecex 10943  ax-cnre 10944  ax-pre-lttri 10945  ax-pre-lttrn 10946  ax-pre-ltadd 10947  ax-pre-mulgt0 10948  ax-addf 10950  ax-mulf 10951
This theorem depends on definitions:  df-bi 206  df-an 397  df-or 845  df-3or 1087  df-3an 1088  df-xor 1507  df-tru 1542  df-fal 1552  df-ex 1783  df-nf 1787  df-sb 2068  df-mo 2540  df-eu 2569  df-clab 2716  df-cleq 2730  df-clel 2816  df-nfc 2889  df-ne 2944  df-nel 3050  df-ral 3069  df-rex 3070  df-rmo 3071  df-reu 3072  df-rab 3073  df-v 3434  df-sbc 3717  df-csb 3833  df-dif 3890  df-un 3892  df-in 3894  df-ss 3904  df-pss 3906  df-nul 4257  df-if 4460  df-pw 4535  df-sn 4562  df-pr 4564  df-tp 4566  df-op 4568  df-ot 4570  df-uni 4840  df-int 4880  df-iun 4926  df-iin 4927  df-br 5075  df-opab 5137  df-mpt 5158  df-tr 5192  df-id 5489  df-eprel 5495  df-po 5503  df-so 5504  df-fr 5544  df-se 5545  df-we 5546  df-xp 5595  df-rel 5596  df-cnv 5597  df-co 5598  df-dm 5599  df-rn 5600  df-res 5601  df-ima 5602  df-pred 6202  df-ord 6269  df-on 6270  df-lim 6271  df-suc 6272  df-iota 6391  df-fun 6435  df-fn 6436  df-f 6437  df-f1 6438  df-fo 6439  df-f1o 6440  df-fv 6441  df-isom 6442  df-riota 7232  df-ov 7278  df-oprab 7279  df-mpo 7280  df-of 7533  df-om 7713  df-1st 7831  df-2nd 7832  df-supp 7978  df-tpos 8042  df-frecs 8097  df-wrecs 8128  df-recs 8202  df-rdg 8241  df-1o 8297  df-2o 8298  df-er 8498  df-map 8617  df-ixp 8686  df-en 8734  df-dom 8735  df-sdom 8736  df-fin 8737  df-fsupp 9129  df-sup 9201  df-oi 9269  df-card 9697  df-pnf 11011  df-mnf 11012  df-xr 11013  df-ltxr 11014  df-le 11015  df-sub 11207  df-neg 11208  df-div 11633  df-nn 11974  df-2 12036  df-3 12037  df-4 12038  df-5 12039  df-6 12040  df-7 12041  df-8 12042  df-9 12043  df-n0 12234  df-xnn0 12306  df-z 12320  df-dec 12438  df-uz 12583  df-rp 12731  df-fz 13240  df-fzo 13383  df-seq 13722  df-exp 13783  df-hash 14045  df-word 14218  df-lsw 14266  df-concat 14274  df-s1 14301  df-substr 14354  df-pfx 14384  df-splice 14463  df-reverse 14472  df-s2 14561  df-struct 16848  df-sets 16865  df-slot 16883  df-ndx 16895  df-base 16913  df-ress 16942  df-plusg 16975  df-mulr 16976  df-starv 16977  df-sca 16978  df-vsca 16979  df-ip 16980  df-tset 16981  df-ple 16982  df-ds 16984  df-unif 16985  df-hom 16986  df-cco 16987  df-0g 17152  df-gsum 17153  df-prds 17158  df-pws 17160  df-mre 17295  df-mrc 17296  df-acs 17298  df-mgm 18326  df-sgrp 18375  df-mnd 18386  df-mhm 18430  df-submnd 18431  df-efmnd 18508  df-grp 18580  df-minusg 18581  df-sbg 18582  df-mulg 18701  df-subg 18752  df-ghm 18832  df-gim 18875  df-cntz 18923  df-oppg 18950  df-symg 18975  df-pmtr 19050  df-psgn 19099  df-evpm 19100  df-cmn 19388  df-abl 19389  df-mgp 19721  df-ur 19738  df-ring 19785  df-cring 19786  df-oppr 19862  df-dvdsr 19883  df-unit 19884  df-invr 19914  df-dvr 19925  df-rnghom 19959  df-drng 19993  df-subrg 20022  df-lmod 20125  df-lss 20194  df-sra 20434  df-rgmod 20435  df-cnfld 20598  df-zring 20671  df-zrh 20705  df-dsmm 20939  df-frlm 20954  df-mamu 21533  df-mat 21555
This theorem is referenced by:  mdetuni0  21770
  Copyright terms: Public domain W3C validator