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

Theorem fseq1p1m1 13259
Description: Add/remove an item to/from the end of a finite sequence. (Contributed by Paul Chapman, 17-Nov-2012.) (Revised by Mario Carneiro, 7-Mar-2014.)
Hypothesis
Ref Expression
fseq1p1m1.1 𝐻 = {⟨(𝑁 + 1), 𝐵⟩}
Assertion
Ref Expression
fseq1p1m1 (𝑁 ∈ ℕ0 → ((𝐹:(1...𝑁)⟶𝐴𝐵𝐴𝐺 = (𝐹𝐻)) ↔ (𝐺:(1...(𝑁 + 1))⟶𝐴 ∧ (𝐺‘(𝑁 + 1)) = 𝐵𝐹 = (𝐺 ↾ (1...𝑁)))))

Proof of Theorem fseq1p1m1
StepHypRef Expression
1 simpr1 1192 . . . . . 6 ((𝑁 ∈ ℕ0 ∧ (𝐹:(1...𝑁)⟶𝐴𝐵𝐴𝐺 = (𝐹𝐻))) → 𝐹:(1...𝑁)⟶𝐴)
2 nn0p1nn 12202 . . . . . . . . 9 (𝑁 ∈ ℕ0 → (𝑁 + 1) ∈ ℕ)
32adantr 480 . . . . . . . 8 ((𝑁 ∈ ℕ0 ∧ (𝐹:(1...𝑁)⟶𝐴𝐵𝐴𝐺 = (𝐹𝐻))) → (𝑁 + 1) ∈ ℕ)
4 simpr2 1193 . . . . . . . 8 ((𝑁 ∈ ℕ0 ∧ (𝐹:(1...𝑁)⟶𝐴𝐵𝐴𝐺 = (𝐹𝐻))) → 𝐵𝐴)
5 fseq1p1m1.1 . . . . . . . . 9 𝐻 = {⟨(𝑁 + 1), 𝐵⟩}
6 fsng 6991 . . . . . . . . 9 (((𝑁 + 1) ∈ ℕ ∧ 𝐵𝐴) → (𝐻:{(𝑁 + 1)}⟶{𝐵} ↔ 𝐻 = {⟨(𝑁 + 1), 𝐵⟩}))
75, 6mpbiri 257 . . . . . . . 8 (((𝑁 + 1) ∈ ℕ ∧ 𝐵𝐴) → 𝐻:{(𝑁 + 1)}⟶{𝐵})
83, 4, 7syl2anc 583 . . . . . . 7 ((𝑁 ∈ ℕ0 ∧ (𝐹:(1...𝑁)⟶𝐴𝐵𝐴𝐺 = (𝐹𝐻))) → 𝐻:{(𝑁 + 1)}⟶{𝐵})
94snssd 4739 . . . . . . 7 ((𝑁 ∈ ℕ0 ∧ (𝐹:(1...𝑁)⟶𝐴𝐵𝐴𝐺 = (𝐹𝐻))) → {𝐵} ⊆ 𝐴)
108, 9fssd 6602 . . . . . 6 ((𝑁 ∈ ℕ0 ∧ (𝐹:(1...𝑁)⟶𝐴𝐵𝐴𝐺 = (𝐹𝐻))) → 𝐻:{(𝑁 + 1)}⟶𝐴)
11 fzp1disj 13244 . . . . . . 7 ((1...𝑁) ∩ {(𝑁 + 1)}) = ∅
1211a1i 11 . . . . . 6 ((𝑁 ∈ ℕ0 ∧ (𝐹:(1...𝑁)⟶𝐴𝐵𝐴𝐺 = (𝐹𝐻))) → ((1...𝑁) ∩ {(𝑁 + 1)}) = ∅)
131, 10, 12fun2d 6622 . . . . 5 ((𝑁 ∈ ℕ0 ∧ (𝐹:(1...𝑁)⟶𝐴𝐵𝐴𝐺 = (𝐹𝐻))) → (𝐹𝐻):((1...𝑁) ∪ {(𝑁 + 1)})⟶𝐴)
14 1z 12280 . . . . . . . 8 1 ∈ ℤ
15 simpl 482 . . . . . . . . 9 ((𝑁 ∈ ℕ0 ∧ (𝐹:(1...𝑁)⟶𝐴𝐵𝐴𝐺 = (𝐹𝐻))) → 𝑁 ∈ ℕ0)
16 nn0uz 12549 . . . . . . . . . 10 0 = (ℤ‘0)
17 1m1e0 11975 . . . . . . . . . . 11 (1 − 1) = 0
1817fveq2i 6759 . . . . . . . . . 10 (ℤ‘(1 − 1)) = (ℤ‘0)
1916, 18eqtr4i 2769 . . . . . . . . 9 0 = (ℤ‘(1 − 1))
2015, 19eleqtrdi 2849 . . . . . . . 8 ((𝑁 ∈ ℕ0 ∧ (𝐹:(1...𝑁)⟶𝐴𝐵𝐴𝐺 = (𝐹𝐻))) → 𝑁 ∈ (ℤ‘(1 − 1)))
21 fzsuc2 13243 . . . . . . . 8 ((1 ∈ ℤ ∧ 𝑁 ∈ (ℤ‘(1 − 1))) → (1...(𝑁 + 1)) = ((1...𝑁) ∪ {(𝑁 + 1)}))
2214, 20, 21sylancr 586 . . . . . . 7 ((𝑁 ∈ ℕ0 ∧ (𝐹:(1...𝑁)⟶𝐴𝐵𝐴𝐺 = (𝐹𝐻))) → (1...(𝑁 + 1)) = ((1...𝑁) ∪ {(𝑁 + 1)}))
2322eqcomd 2744 . . . . . 6 ((𝑁 ∈ ℕ0 ∧ (𝐹:(1...𝑁)⟶𝐴𝐵𝐴𝐺 = (𝐹𝐻))) → ((1...𝑁) ∪ {(𝑁 + 1)}) = (1...(𝑁 + 1)))
2423feq2d 6570 . . . . 5 ((𝑁 ∈ ℕ0 ∧ (𝐹:(1...𝑁)⟶𝐴𝐵𝐴𝐺 = (𝐹𝐻))) → ((𝐹𝐻):((1...𝑁) ∪ {(𝑁 + 1)})⟶𝐴 ↔ (𝐹𝐻):(1...(𝑁 + 1))⟶𝐴))
2513, 24mpbid 231 . . . 4 ((𝑁 ∈ ℕ0 ∧ (𝐹:(1...𝑁)⟶𝐴𝐵𝐴𝐺 = (𝐹𝐻))) → (𝐹𝐻):(1...(𝑁 + 1))⟶𝐴)
26 simpr3 1194 . . . . 5 ((𝑁 ∈ ℕ0 ∧ (𝐹:(1...𝑁)⟶𝐴𝐵𝐴𝐺 = (𝐹𝐻))) → 𝐺 = (𝐹𝐻))
2726feq1d 6569 . . . 4 ((𝑁 ∈ ℕ0 ∧ (𝐹:(1...𝑁)⟶𝐴𝐵𝐴𝐺 = (𝐹𝐻))) → (𝐺:(1...(𝑁 + 1))⟶𝐴 ↔ (𝐹𝐻):(1...(𝑁 + 1))⟶𝐴))
2825, 27mpbird 256 . . 3 ((𝑁 ∈ ℕ0 ∧ (𝐹:(1...𝑁)⟶𝐴𝐵𝐴𝐺 = (𝐹𝐻))) → 𝐺:(1...(𝑁 + 1))⟶𝐴)
29 ovex 7288 . . . . . 6 (𝑁 + 1) ∈ V
3029snid 4594 . . . . 5 (𝑁 + 1) ∈ {(𝑁 + 1)}
31 fvres 6775 . . . . 5 ((𝑁 + 1) ∈ {(𝑁 + 1)} → ((𝐺 ↾ {(𝑁 + 1)})‘(𝑁 + 1)) = (𝐺‘(𝑁 + 1)))
3230, 31ax-mp 5 . . . 4 ((𝐺 ↾ {(𝑁 + 1)})‘(𝑁 + 1)) = (𝐺‘(𝑁 + 1))
3326reseq1d 5879 . . . . . . 7 ((𝑁 ∈ ℕ0 ∧ (𝐹:(1...𝑁)⟶𝐴𝐵𝐴𝐺 = (𝐹𝐻))) → (𝐺 ↾ {(𝑁 + 1)}) = ((𝐹𝐻) ↾ {(𝑁 + 1)}))
34 ffn 6584 . . . . . . . . . . 11 (𝐹:(1...𝑁)⟶𝐴𝐹 Fn (1...𝑁))
35 fnresdisj 6536 . . . . . . . . . . 11 (𝐹 Fn (1...𝑁) → (((1...𝑁) ∩ {(𝑁 + 1)}) = ∅ ↔ (𝐹 ↾ {(𝑁 + 1)}) = ∅))
361, 34, 353syl 18 . . . . . . . . . 10 ((𝑁 ∈ ℕ0 ∧ (𝐹:(1...𝑁)⟶𝐴𝐵𝐴𝐺 = (𝐹𝐻))) → (((1...𝑁) ∩ {(𝑁 + 1)}) = ∅ ↔ (𝐹 ↾ {(𝑁 + 1)}) = ∅))
3712, 36mpbid 231 . . . . . . . . 9 ((𝑁 ∈ ℕ0 ∧ (𝐹:(1...𝑁)⟶𝐴𝐵𝐴𝐺 = (𝐹𝐻))) → (𝐹 ↾ {(𝑁 + 1)}) = ∅)
3837uneq1d 4092 . . . . . . . 8 ((𝑁 ∈ ℕ0 ∧ (𝐹:(1...𝑁)⟶𝐴𝐵𝐴𝐺 = (𝐹𝐻))) → ((𝐹 ↾ {(𝑁 + 1)}) ∪ (𝐻 ↾ {(𝑁 + 1)})) = (∅ ∪ (𝐻 ↾ {(𝑁 + 1)})))
39 resundir 5895 . . . . . . . 8 ((𝐹𝐻) ↾ {(𝑁 + 1)}) = ((𝐹 ↾ {(𝑁 + 1)}) ∪ (𝐻 ↾ {(𝑁 + 1)}))
40 uncom 4083 . . . . . . . . 9 (∅ ∪ (𝐻 ↾ {(𝑁 + 1)})) = ((𝐻 ↾ {(𝑁 + 1)}) ∪ ∅)
41 un0 4321 . . . . . . . . 9 ((𝐻 ↾ {(𝑁 + 1)}) ∪ ∅) = (𝐻 ↾ {(𝑁 + 1)})
4240, 41eqtr2i 2767 . . . . . . . 8 (𝐻 ↾ {(𝑁 + 1)}) = (∅ ∪ (𝐻 ↾ {(𝑁 + 1)}))
4338, 39, 423eqtr4g 2804 . . . . . . 7 ((𝑁 ∈ ℕ0 ∧ (𝐹:(1...𝑁)⟶𝐴𝐵𝐴𝐺 = (𝐹𝐻))) → ((𝐹𝐻) ↾ {(𝑁 + 1)}) = (𝐻 ↾ {(𝑁 + 1)}))
44 ffn 6584 . . . . . . . 8 (𝐻:{(𝑁 + 1)}⟶𝐴𝐻 Fn {(𝑁 + 1)})
45 fnresdm 6535 . . . . . . . 8 (𝐻 Fn {(𝑁 + 1)} → (𝐻 ↾ {(𝑁 + 1)}) = 𝐻)
4610, 44, 453syl 18 . . . . . . 7 ((𝑁 ∈ ℕ0 ∧ (𝐹:(1...𝑁)⟶𝐴𝐵𝐴𝐺 = (𝐹𝐻))) → (𝐻 ↾ {(𝑁 + 1)}) = 𝐻)
4733, 43, 463eqtrd 2782 . . . . . 6 ((𝑁 ∈ ℕ0 ∧ (𝐹:(1...𝑁)⟶𝐴𝐵𝐴𝐺 = (𝐹𝐻))) → (𝐺 ↾ {(𝑁 + 1)}) = 𝐻)
4847fveq1d 6758 . . . . 5 ((𝑁 ∈ ℕ0 ∧ (𝐹:(1...𝑁)⟶𝐴𝐵𝐴𝐺 = (𝐹𝐻))) → ((𝐺 ↾ {(𝑁 + 1)})‘(𝑁 + 1)) = (𝐻‘(𝑁 + 1)))
495fveq1i 6757 . . . . . . 7 (𝐻‘(𝑁 + 1)) = ({⟨(𝑁 + 1), 𝐵⟩}‘(𝑁 + 1))
50 fvsng 7034 . . . . . . 7 (((𝑁 + 1) ∈ ℕ ∧ 𝐵𝐴) → ({⟨(𝑁 + 1), 𝐵⟩}‘(𝑁 + 1)) = 𝐵)
5149, 50eqtrid 2790 . . . . . 6 (((𝑁 + 1) ∈ ℕ ∧ 𝐵𝐴) → (𝐻‘(𝑁 + 1)) = 𝐵)
523, 4, 51syl2anc 583 . . . . 5 ((𝑁 ∈ ℕ0 ∧ (𝐹:(1...𝑁)⟶𝐴𝐵𝐴𝐺 = (𝐹𝐻))) → (𝐻‘(𝑁 + 1)) = 𝐵)
5348, 52eqtrd 2778 . . . 4 ((𝑁 ∈ ℕ0 ∧ (𝐹:(1...𝑁)⟶𝐴𝐵𝐴𝐺 = (𝐹𝐻))) → ((𝐺 ↾ {(𝑁 + 1)})‘(𝑁 + 1)) = 𝐵)
5432, 53eqtr3id 2793 . . 3 ((𝑁 ∈ ℕ0 ∧ (𝐹:(1...𝑁)⟶𝐴𝐵𝐴𝐺 = (𝐹𝐻))) → (𝐺‘(𝑁 + 1)) = 𝐵)
5526reseq1d 5879 . . . 4 ((𝑁 ∈ ℕ0 ∧ (𝐹:(1...𝑁)⟶𝐴𝐵𝐴𝐺 = (𝐹𝐻))) → (𝐺 ↾ (1...𝑁)) = ((𝐹𝐻) ↾ (1...𝑁)))
56 incom 4131 . . . . . . . 8 ({(𝑁 + 1)} ∩ (1...𝑁)) = ((1...𝑁) ∩ {(𝑁 + 1)})
5756, 12eqtrid 2790 . . . . . . 7 ((𝑁 ∈ ℕ0 ∧ (𝐹:(1...𝑁)⟶𝐴𝐵𝐴𝐺 = (𝐹𝐻))) → ({(𝑁 + 1)} ∩ (1...𝑁)) = ∅)
58 ffn 6584 . . . . . . . 8 (𝐻:{(𝑁 + 1)}⟶{𝐵} → 𝐻 Fn {(𝑁 + 1)})
59 fnresdisj 6536 . . . . . . . 8 (𝐻 Fn {(𝑁 + 1)} → (({(𝑁 + 1)} ∩ (1...𝑁)) = ∅ ↔ (𝐻 ↾ (1...𝑁)) = ∅))
608, 58, 593syl 18 . . . . . . 7 ((𝑁 ∈ ℕ0 ∧ (𝐹:(1...𝑁)⟶𝐴𝐵𝐴𝐺 = (𝐹𝐻))) → (({(𝑁 + 1)} ∩ (1...𝑁)) = ∅ ↔ (𝐻 ↾ (1...𝑁)) = ∅))
6157, 60mpbid 231 . . . . . 6 ((𝑁 ∈ ℕ0 ∧ (𝐹:(1...𝑁)⟶𝐴𝐵𝐴𝐺 = (𝐹𝐻))) → (𝐻 ↾ (1...𝑁)) = ∅)
6261uneq2d 4093 . . . . 5 ((𝑁 ∈ ℕ0 ∧ (𝐹:(1...𝑁)⟶𝐴𝐵𝐴𝐺 = (𝐹𝐻))) → ((𝐹 ↾ (1...𝑁)) ∪ (𝐻 ↾ (1...𝑁))) = ((𝐹 ↾ (1...𝑁)) ∪ ∅))
63 resundir 5895 . . . . 5 ((𝐹𝐻) ↾ (1...𝑁)) = ((𝐹 ↾ (1...𝑁)) ∪ (𝐻 ↾ (1...𝑁)))
64 un0 4321 . . . . . 6 ((𝐹 ↾ (1...𝑁)) ∪ ∅) = (𝐹 ↾ (1...𝑁))
6564eqcomi 2747 . . . . 5 (𝐹 ↾ (1...𝑁)) = ((𝐹 ↾ (1...𝑁)) ∪ ∅)
6662, 63, 653eqtr4g 2804 . . . 4 ((𝑁 ∈ ℕ0 ∧ (𝐹:(1...𝑁)⟶𝐴𝐵𝐴𝐺 = (𝐹𝐻))) → ((𝐹𝐻) ↾ (1...𝑁)) = (𝐹 ↾ (1...𝑁)))
67 fnresdm 6535 . . . . 5 (𝐹 Fn (1...𝑁) → (𝐹 ↾ (1...𝑁)) = 𝐹)
681, 34, 673syl 18 . . . 4 ((𝑁 ∈ ℕ0 ∧ (𝐹:(1...𝑁)⟶𝐴𝐵𝐴𝐺 = (𝐹𝐻))) → (𝐹 ↾ (1...𝑁)) = 𝐹)
6955, 66, 683eqtrrd 2783 . . 3 ((𝑁 ∈ ℕ0 ∧ (𝐹:(1...𝑁)⟶𝐴𝐵𝐴𝐺 = (𝐹𝐻))) → 𝐹 = (𝐺 ↾ (1...𝑁)))
7028, 54, 693jca 1126 . 2 ((𝑁 ∈ ℕ0 ∧ (𝐹:(1...𝑁)⟶𝐴𝐵𝐴𝐺 = (𝐹𝐻))) → (𝐺:(1...(𝑁 + 1))⟶𝐴 ∧ (𝐺‘(𝑁 + 1)) = 𝐵𝐹 = (𝐺 ↾ (1...𝑁))))
71 simpr1 1192 . . . . 5 ((𝑁 ∈ ℕ0 ∧ (𝐺:(1...(𝑁 + 1))⟶𝐴 ∧ (𝐺‘(𝑁 + 1)) = 𝐵𝐹 = (𝐺 ↾ (1...𝑁)))) → 𝐺:(1...(𝑁 + 1))⟶𝐴)
72 fzssp1 13228 . . . . 5 (1...𝑁) ⊆ (1...(𝑁 + 1))
73 fssres 6624 . . . . 5 ((𝐺:(1...(𝑁 + 1))⟶𝐴 ∧ (1...𝑁) ⊆ (1...(𝑁 + 1))) → (𝐺 ↾ (1...𝑁)):(1...𝑁)⟶𝐴)
7471, 72, 73sylancl 585 . . . 4 ((𝑁 ∈ ℕ0 ∧ (𝐺:(1...(𝑁 + 1))⟶𝐴 ∧ (𝐺‘(𝑁 + 1)) = 𝐵𝐹 = (𝐺 ↾ (1...𝑁)))) → (𝐺 ↾ (1...𝑁)):(1...𝑁)⟶𝐴)
75 simpr3 1194 . . . . 5 ((𝑁 ∈ ℕ0 ∧ (𝐺:(1...(𝑁 + 1))⟶𝐴 ∧ (𝐺‘(𝑁 + 1)) = 𝐵𝐹 = (𝐺 ↾ (1...𝑁)))) → 𝐹 = (𝐺 ↾ (1...𝑁)))
7675feq1d 6569 . . . 4 ((𝑁 ∈ ℕ0 ∧ (𝐺:(1...(𝑁 + 1))⟶𝐴 ∧ (𝐺‘(𝑁 + 1)) = 𝐵𝐹 = (𝐺 ↾ (1...𝑁)))) → (𝐹:(1...𝑁)⟶𝐴 ↔ (𝐺 ↾ (1...𝑁)):(1...𝑁)⟶𝐴))
7774, 76mpbird 256 . . 3 ((𝑁 ∈ ℕ0 ∧ (𝐺:(1...(𝑁 + 1))⟶𝐴 ∧ (𝐺‘(𝑁 + 1)) = 𝐵𝐹 = (𝐺 ↾ (1...𝑁)))) → 𝐹:(1...𝑁)⟶𝐴)
78 simpr2 1193 . . . 4 ((𝑁 ∈ ℕ0 ∧ (𝐺:(1...(𝑁 + 1))⟶𝐴 ∧ (𝐺‘(𝑁 + 1)) = 𝐵𝐹 = (𝐺 ↾ (1...𝑁)))) → (𝐺‘(𝑁 + 1)) = 𝐵)
792adantr 480 . . . . . . 7 ((𝑁 ∈ ℕ0 ∧ (𝐺:(1...(𝑁 + 1))⟶𝐴 ∧ (𝐺‘(𝑁 + 1)) = 𝐵𝐹 = (𝐺 ↾ (1...𝑁)))) → (𝑁 + 1) ∈ ℕ)
80 nnuz 12550 . . . . . . 7 ℕ = (ℤ‘1)
8179, 80eleqtrdi 2849 . . . . . 6 ((𝑁 ∈ ℕ0 ∧ (𝐺:(1...(𝑁 + 1))⟶𝐴 ∧ (𝐺‘(𝑁 + 1)) = 𝐵𝐹 = (𝐺 ↾ (1...𝑁)))) → (𝑁 + 1) ∈ (ℤ‘1))
82 eluzfz2 13193 . . . . . 6 ((𝑁 + 1) ∈ (ℤ‘1) → (𝑁 + 1) ∈ (1...(𝑁 + 1)))
8381, 82syl 17 . . . . 5 ((𝑁 ∈ ℕ0 ∧ (𝐺:(1...(𝑁 + 1))⟶𝐴 ∧ (𝐺‘(𝑁 + 1)) = 𝐵𝐹 = (𝐺 ↾ (1...𝑁)))) → (𝑁 + 1) ∈ (1...(𝑁 + 1)))
8471, 83ffvelrnd 6944 . . . 4 ((𝑁 ∈ ℕ0 ∧ (𝐺:(1...(𝑁 + 1))⟶𝐴 ∧ (𝐺‘(𝑁 + 1)) = 𝐵𝐹 = (𝐺 ↾ (1...𝑁)))) → (𝐺‘(𝑁 + 1)) ∈ 𝐴)
8578, 84eqeltrrd 2840 . . 3 ((𝑁 ∈ ℕ0 ∧ (𝐺:(1...(𝑁 + 1))⟶𝐴 ∧ (𝐺‘(𝑁 + 1)) = 𝐵𝐹 = (𝐺 ↾ (1...𝑁)))) → 𝐵𝐴)
86 ffn 6584 . . . . . . . . 9 (𝐺:(1...(𝑁 + 1))⟶𝐴𝐺 Fn (1...(𝑁 + 1)))
8771, 86syl 17 . . . . . . . 8 ((𝑁 ∈ ℕ0 ∧ (𝐺:(1...(𝑁 + 1))⟶𝐴 ∧ (𝐺‘(𝑁 + 1)) = 𝐵𝐹 = (𝐺 ↾ (1...𝑁)))) → 𝐺 Fn (1...(𝑁 + 1)))
88 fnressn 7012 . . . . . . . 8 ((𝐺 Fn (1...(𝑁 + 1)) ∧ (𝑁 + 1) ∈ (1...(𝑁 + 1))) → (𝐺 ↾ {(𝑁 + 1)}) = {⟨(𝑁 + 1), (𝐺‘(𝑁 + 1))⟩})
8987, 83, 88syl2anc 583 . . . . . . 7 ((𝑁 ∈ ℕ0 ∧ (𝐺:(1...(𝑁 + 1))⟶𝐴 ∧ (𝐺‘(𝑁 + 1)) = 𝐵𝐹 = (𝐺 ↾ (1...𝑁)))) → (𝐺 ↾ {(𝑁 + 1)}) = {⟨(𝑁 + 1), (𝐺‘(𝑁 + 1))⟩})
90 opeq2 4802 . . . . . . . . 9 ((𝐺‘(𝑁 + 1)) = 𝐵 → ⟨(𝑁 + 1), (𝐺‘(𝑁 + 1))⟩ = ⟨(𝑁 + 1), 𝐵⟩)
9190sneqd 4570 . . . . . . . 8 ((𝐺‘(𝑁 + 1)) = 𝐵 → {⟨(𝑁 + 1), (𝐺‘(𝑁 + 1))⟩} = {⟨(𝑁 + 1), 𝐵⟩})
9278, 91syl 17 . . . . . . 7 ((𝑁 ∈ ℕ0 ∧ (𝐺:(1...(𝑁 + 1))⟶𝐴 ∧ (𝐺‘(𝑁 + 1)) = 𝐵𝐹 = (𝐺 ↾ (1...𝑁)))) → {⟨(𝑁 + 1), (𝐺‘(𝑁 + 1))⟩} = {⟨(𝑁 + 1), 𝐵⟩})
9389, 92eqtrd 2778 . . . . . 6 ((𝑁 ∈ ℕ0 ∧ (𝐺:(1...(𝑁 + 1))⟶𝐴 ∧ (𝐺‘(𝑁 + 1)) = 𝐵𝐹 = (𝐺 ↾ (1...𝑁)))) → (𝐺 ↾ {(𝑁 + 1)}) = {⟨(𝑁 + 1), 𝐵⟩})
945, 93eqtr4id 2798 . . . . 5 ((𝑁 ∈ ℕ0 ∧ (𝐺:(1...(𝑁 + 1))⟶𝐴 ∧ (𝐺‘(𝑁 + 1)) = 𝐵𝐹 = (𝐺 ↾ (1...𝑁)))) → 𝐻 = (𝐺 ↾ {(𝑁 + 1)}))
9575, 94uneq12d 4094 . . . 4 ((𝑁 ∈ ℕ0 ∧ (𝐺:(1...(𝑁 + 1))⟶𝐴 ∧ (𝐺‘(𝑁 + 1)) = 𝐵𝐹 = (𝐺 ↾ (1...𝑁)))) → (𝐹𝐻) = ((𝐺 ↾ (1...𝑁)) ∪ (𝐺 ↾ {(𝑁 + 1)})))
96 simpl 482 . . . . . . . 8 ((𝑁 ∈ ℕ0 ∧ (𝐺:(1...(𝑁 + 1))⟶𝐴 ∧ (𝐺‘(𝑁 + 1)) = 𝐵𝐹 = (𝐺 ↾ (1...𝑁)))) → 𝑁 ∈ ℕ0)
9796, 19eleqtrdi 2849 . . . . . . 7 ((𝑁 ∈ ℕ0 ∧ (𝐺:(1...(𝑁 + 1))⟶𝐴 ∧ (𝐺‘(𝑁 + 1)) = 𝐵𝐹 = (𝐺 ↾ (1...𝑁)))) → 𝑁 ∈ (ℤ‘(1 − 1)))
9814, 97, 21sylancr 586 . . . . . 6 ((𝑁 ∈ ℕ0 ∧ (𝐺:(1...(𝑁 + 1))⟶𝐴 ∧ (𝐺‘(𝑁 + 1)) = 𝐵𝐹 = (𝐺 ↾ (1...𝑁)))) → (1...(𝑁 + 1)) = ((1...𝑁) ∪ {(𝑁 + 1)}))
9998reseq2d 5880 . . . . 5 ((𝑁 ∈ ℕ0 ∧ (𝐺:(1...(𝑁 + 1))⟶𝐴 ∧ (𝐺‘(𝑁 + 1)) = 𝐵𝐹 = (𝐺 ↾ (1...𝑁)))) → (𝐺 ↾ (1...(𝑁 + 1))) = (𝐺 ↾ ((1...𝑁) ∪ {(𝑁 + 1)})))
100 resundi 5894 . . . . 5 (𝐺 ↾ ((1...𝑁) ∪ {(𝑁 + 1)})) = ((𝐺 ↾ (1...𝑁)) ∪ (𝐺 ↾ {(𝑁 + 1)}))
10199, 100eqtr2di 2796 . . . 4 ((𝑁 ∈ ℕ0 ∧ (𝐺:(1...(𝑁 + 1))⟶𝐴 ∧ (𝐺‘(𝑁 + 1)) = 𝐵𝐹 = (𝐺 ↾ (1...𝑁)))) → ((𝐺 ↾ (1...𝑁)) ∪ (𝐺 ↾ {(𝑁 + 1)})) = (𝐺 ↾ (1...(𝑁 + 1))))
102 fnresdm 6535 . . . . 5 (𝐺 Fn (1...(𝑁 + 1)) → (𝐺 ↾ (1...(𝑁 + 1))) = 𝐺)
10371, 86, 1023syl 18 . . . 4 ((𝑁 ∈ ℕ0 ∧ (𝐺:(1...(𝑁 + 1))⟶𝐴 ∧ (𝐺‘(𝑁 + 1)) = 𝐵𝐹 = (𝐺 ↾ (1...𝑁)))) → (𝐺 ↾ (1...(𝑁 + 1))) = 𝐺)
10495, 101, 1033eqtrrd 2783 . . 3 ((𝑁 ∈ ℕ0 ∧ (𝐺:(1...(𝑁 + 1))⟶𝐴 ∧ (𝐺‘(𝑁 + 1)) = 𝐵𝐹 = (𝐺 ↾ (1...𝑁)))) → 𝐺 = (𝐹𝐻))
10577, 85, 1043jca 1126 . 2 ((𝑁 ∈ ℕ0 ∧ (𝐺:(1...(𝑁 + 1))⟶𝐴 ∧ (𝐺‘(𝑁 + 1)) = 𝐵𝐹 = (𝐺 ↾ (1...𝑁)))) → (𝐹:(1...𝑁)⟶𝐴𝐵𝐴𝐺 = (𝐹𝐻)))
10670, 105impbida 797 1 (𝑁 ∈ ℕ0 → ((𝐹:(1...𝑁)⟶𝐴𝐵𝐴𝐺 = (𝐹𝐻)) ↔ (𝐺:(1...(𝑁 + 1))⟶𝐴 ∧ (𝐺‘(𝑁 + 1)) = 𝐵𝐹 = (𝐺 ↾ (1...𝑁)))))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 205  wa 395  w3a 1085   = wceq 1539  wcel 2108  cun 3881  cin 3882  wss 3883  c0 4253  {csn 4558  cop 4564  cres 5582   Fn wfn 6413  wf 6414  cfv 6418  (class class class)co 7255  0cc0 10802  1c1 10803   + caddc 10805  cmin 11135  cn 11903  0cn0 12163  cz 12249  cuz 12511  ...cfz 13168
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1799  ax-4 1813  ax-5 1914  ax-6 1972  ax-7 2012  ax-8 2110  ax-9 2118  ax-10 2139  ax-11 2156  ax-12 2173  ax-ext 2709  ax-sep 5218  ax-nul 5225  ax-pow 5283  ax-pr 5347  ax-un 7566  ax-cnex 10858  ax-resscn 10859  ax-1cn 10860  ax-icn 10861  ax-addcl 10862  ax-addrcl 10863  ax-mulcl 10864  ax-mulrcl 10865  ax-mulcom 10866  ax-addass 10867  ax-mulass 10868  ax-distr 10869  ax-i2m1 10870  ax-1ne0 10871  ax-1rid 10872  ax-rnegex 10873  ax-rrecex 10874  ax-cnre 10875  ax-pre-lttri 10876  ax-pre-lttrn 10877  ax-pre-ltadd 10878  ax-pre-mulgt0 10879
This theorem depends on definitions:  df-bi 206  df-an 396  df-or 844  df-3or 1086  df-3an 1087  df-tru 1542  df-fal 1552  df-ex 1784  df-nf 1788  df-sb 2069  df-mo 2540  df-eu 2569  df-clab 2716  df-cleq 2730  df-clel 2817  df-nfc 2888  df-ne 2943  df-nel 3049  df-ral 3068  df-rex 3069  df-reu 3070  df-rab 3072  df-v 3424  df-sbc 3712  df-csb 3829  df-dif 3886  df-un 3888  df-in 3890  df-ss 3900  df-pss 3902  df-nul 4254  df-if 4457  df-pw 4532  df-sn 4559  df-pr 4561  df-tp 4563  df-op 4565  df-uni 4837  df-iun 4923  df-br 5071  df-opab 5133  df-mpt 5154  df-tr 5188  df-id 5480  df-eprel 5486  df-po 5494  df-so 5495  df-fr 5535  df-we 5537  df-xp 5586  df-rel 5587  df-cnv 5588  df-co 5589  df-dm 5590  df-rn 5591  df-res 5592  df-ima 5593  df-pred 6191  df-ord 6254  df-on 6255  df-lim 6256  df-suc 6257  df-iota 6376  df-fun 6420  df-fn 6421  df-f 6422  df-f1 6423  df-fo 6424  df-f1o 6425  df-fv 6426  df-riota 7212  df-ov 7258  df-oprab 7259  df-mpo 7260  df-om 7688  df-1st 7804  df-2nd 7805  df-frecs 8068  df-wrecs 8099  df-recs 8173  df-rdg 8212  df-er 8456  df-en 8692  df-dom 8693  df-sdom 8694  df-pnf 10942  df-mnf 10943  df-xr 10944  df-ltxr 10945  df-le 10946  df-sub 11137  df-neg 11138  df-nn 11904  df-n0 12164  df-z 12250  df-uz 12512  df-fz 13169
This theorem is referenced by:  fseq1m1p1  13260
  Copyright terms: Public domain W3C validator