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

Theorem fseq1p1m1 13044
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 11987 . . . . . . . . 9 (𝑁 ∈ ℕ0 → (𝑁 + 1) ∈ ℕ)
32adantr 484 . . . . . . . 8 ((𝑁 ∈ ℕ0 ∧ (𝐹:(1...𝑁)⟶𝐴𝐵𝐴𝐺 = (𝐹𝐻))) → (𝑁 + 1) ∈ ℕ)
4 simpr2 1193 . . . . . . . 8 ((𝑁 ∈ ℕ0 ∧ (𝐹:(1...𝑁)⟶𝐴𝐵𝐴𝐺 = (𝐹𝐻))) → 𝐵𝐴)
5 fseq1p1m1.1 . . . . . . . . 9 𝐻 = {⟨(𝑁 + 1), 𝐵⟩}
6 fsng 6897 . . . . . . . . 9 (((𝑁 + 1) ∈ ℕ ∧ 𝐵𝐴) → (𝐻:{(𝑁 + 1)}⟶{𝐵} ↔ 𝐻 = {⟨(𝑁 + 1), 𝐵⟩}))
75, 6mpbiri 261 . . . . . . . 8 (((𝑁 + 1) ∈ ℕ ∧ 𝐵𝐴) → 𝐻:{(𝑁 + 1)}⟶{𝐵})
83, 4, 7syl2anc 587 . . . . . . 7 ((𝑁 ∈ ℕ0 ∧ (𝐹:(1...𝑁)⟶𝐴𝐵𝐴𝐺 = (𝐹𝐻))) → 𝐻:{(𝑁 + 1)}⟶{𝐵})
94snssd 4703 . . . . . . 7 ((𝑁 ∈ ℕ0 ∧ (𝐹:(1...𝑁)⟶𝐴𝐵𝐴𝐺 = (𝐹𝐻))) → {𝐵} ⊆ 𝐴)
108, 9fssd 6519 . . . . . 6 ((𝑁 ∈ ℕ0 ∧ (𝐹:(1...𝑁)⟶𝐴𝐵𝐴𝐺 = (𝐹𝐻))) → 𝐻:{(𝑁 + 1)}⟶𝐴)
11 fzp1disj 13029 . . . . . . 7 ((1...𝑁) ∩ {(𝑁 + 1)}) = ∅
1211a1i 11 . . . . . 6 ((𝑁 ∈ ℕ0 ∧ (𝐹:(1...𝑁)⟶𝐴𝐵𝐴𝐺 = (𝐹𝐻))) → ((1...𝑁) ∩ {(𝑁 + 1)}) = ∅)
131, 10, 12fun2d 6533 . . . . 5 ((𝑁 ∈ ℕ0 ∧ (𝐹:(1...𝑁)⟶𝐴𝐵𝐴𝐺 = (𝐹𝐻))) → (𝐹𝐻):((1...𝑁) ∪ {(𝑁 + 1)})⟶𝐴)
14 1z 12065 . . . . . . . 8 1 ∈ ℤ
15 simpl 486 . . . . . . . . 9 ((𝑁 ∈ ℕ0 ∧ (𝐹:(1...𝑁)⟶𝐴𝐵𝐴𝐺 = (𝐹𝐻))) → 𝑁 ∈ ℕ0)
16 nn0uz 12334 . . . . . . . . . 10 0 = (ℤ‘0)
17 1m1e0 11760 . . . . . . . . . . 11 (1 − 1) = 0
1817fveq2i 6667 . . . . . . . . . 10 (ℤ‘(1 − 1)) = (ℤ‘0)
1916, 18eqtr4i 2785 . . . . . . . . 9 0 = (ℤ‘(1 − 1))
2015, 19eleqtrdi 2863 . . . . . . . 8 ((𝑁 ∈ ℕ0 ∧ (𝐹:(1...𝑁)⟶𝐴𝐵𝐴𝐺 = (𝐹𝐻))) → 𝑁 ∈ (ℤ‘(1 − 1)))
21 fzsuc2 13028 . . . . . . . 8 ((1 ∈ ℤ ∧ 𝑁 ∈ (ℤ‘(1 − 1))) → (1...(𝑁 + 1)) = ((1...𝑁) ∪ {(𝑁 + 1)}))
2214, 20, 21sylancr 590 . . . . . . 7 ((𝑁 ∈ ℕ0 ∧ (𝐹:(1...𝑁)⟶𝐴𝐵𝐴𝐺 = (𝐹𝐻))) → (1...(𝑁 + 1)) = ((1...𝑁) ∪ {(𝑁 + 1)}))
2322eqcomd 2765 . . . . . 6 ((𝑁 ∈ ℕ0 ∧ (𝐹:(1...𝑁)⟶𝐴𝐵𝐴𝐺 = (𝐹𝐻))) → ((1...𝑁) ∪ {(𝑁 + 1)}) = (1...(𝑁 + 1)))
2423feq2d 6490 . . . . 5 ((𝑁 ∈ ℕ0 ∧ (𝐹:(1...𝑁)⟶𝐴𝐵𝐴𝐺 = (𝐹𝐻))) → ((𝐹𝐻):((1...𝑁) ∪ {(𝑁 + 1)})⟶𝐴 ↔ (𝐹𝐻):(1...(𝑁 + 1))⟶𝐴))
2513, 24mpbid 235 . . . 4 ((𝑁 ∈ ℕ0 ∧ (𝐹:(1...𝑁)⟶𝐴𝐵𝐴𝐺 = (𝐹𝐻))) → (𝐹𝐻):(1...(𝑁 + 1))⟶𝐴)
26 simpr3 1194 . . . . 5 ((𝑁 ∈ ℕ0 ∧ (𝐹:(1...𝑁)⟶𝐴𝐵𝐴𝐺 = (𝐹𝐻))) → 𝐺 = (𝐹𝐻))
2726feq1d 6489 . . . 4 ((𝑁 ∈ ℕ0 ∧ (𝐹:(1...𝑁)⟶𝐴𝐵𝐴𝐺 = (𝐹𝐻))) → (𝐺:(1...(𝑁 + 1))⟶𝐴 ↔ (𝐹𝐻):(1...(𝑁 + 1))⟶𝐴))
2825, 27mpbird 260 . . 3 ((𝑁 ∈ ℕ0 ∧ (𝐹:(1...𝑁)⟶𝐴𝐵𝐴𝐺 = (𝐹𝐻))) → 𝐺:(1...(𝑁 + 1))⟶𝐴)
29 ovex 7190 . . . . . 6 (𝑁 + 1) ∈ V
3029snid 4562 . . . . 5 (𝑁 + 1) ∈ {(𝑁 + 1)}
31 fvres 6683 . . . . 5 ((𝑁 + 1) ∈ {(𝑁 + 1)} → ((𝐺 ↾ {(𝑁 + 1)})‘(𝑁 + 1)) = (𝐺‘(𝑁 + 1)))
3230, 31ax-mp 5 . . . 4 ((𝐺 ↾ {(𝑁 + 1)})‘(𝑁 + 1)) = (𝐺‘(𝑁 + 1))
3326reseq1d 5828 . . . . . . 7 ((𝑁 ∈ ℕ0 ∧ (𝐹:(1...𝑁)⟶𝐴𝐵𝐴𝐺 = (𝐹𝐻))) → (𝐺 ↾ {(𝑁 + 1)}) = ((𝐹𝐻) ↾ {(𝑁 + 1)}))
34 ffn 6504 . . . . . . . . . . 11 (𝐹:(1...𝑁)⟶𝐴𝐹 Fn (1...𝑁))
35 fnresdisj 6456 . . . . . . . . . . 11 (𝐹 Fn (1...𝑁) → (((1...𝑁) ∩ {(𝑁 + 1)}) = ∅ ↔ (𝐹 ↾ {(𝑁 + 1)}) = ∅))
361, 34, 353syl 18 . . . . . . . . . 10 ((𝑁 ∈ ℕ0 ∧ (𝐹:(1...𝑁)⟶𝐴𝐵𝐴𝐺 = (𝐹𝐻))) → (((1...𝑁) ∩ {(𝑁 + 1)}) = ∅ ↔ (𝐹 ↾ {(𝑁 + 1)}) = ∅))
3712, 36mpbid 235 . . . . . . . . 9 ((𝑁 ∈ ℕ0 ∧ (𝐹:(1...𝑁)⟶𝐴𝐵𝐴𝐺 = (𝐹𝐻))) → (𝐹 ↾ {(𝑁 + 1)}) = ∅)
3837uneq1d 4070 . . . . . . . 8 ((𝑁 ∈ ℕ0 ∧ (𝐹:(1...𝑁)⟶𝐴𝐵𝐴𝐺 = (𝐹𝐻))) → ((𝐹 ↾ {(𝑁 + 1)}) ∪ (𝐻 ↾ {(𝑁 + 1)})) = (∅ ∪ (𝐻 ↾ {(𝑁 + 1)})))
39 resundir 5844 . . . . . . . 8 ((𝐹𝐻) ↾ {(𝑁 + 1)}) = ((𝐹 ↾ {(𝑁 + 1)}) ∪ (𝐻 ↾ {(𝑁 + 1)}))
40 uncom 4061 . . . . . . . . 9 (∅ ∪ (𝐻 ↾ {(𝑁 + 1)})) = ((𝐻 ↾ {(𝑁 + 1)}) ∪ ∅)
41 un0 4290 . . . . . . . . 9 ((𝐻 ↾ {(𝑁 + 1)}) ∪ ∅) = (𝐻 ↾ {(𝑁 + 1)})
4240, 41eqtr2i 2783 . . . . . . . 8 (𝐻 ↾ {(𝑁 + 1)}) = (∅ ∪ (𝐻 ↾ {(𝑁 + 1)}))
4338, 39, 423eqtr4g 2819 . . . . . . 7 ((𝑁 ∈ ℕ0 ∧ (𝐹:(1...𝑁)⟶𝐴𝐵𝐴𝐺 = (𝐹𝐻))) → ((𝐹𝐻) ↾ {(𝑁 + 1)}) = (𝐻 ↾ {(𝑁 + 1)}))
44 ffn 6504 . . . . . . . 8 (𝐻:{(𝑁 + 1)}⟶𝐴𝐻 Fn {(𝑁 + 1)})
45 fnresdm 6455 . . . . . . . 8 (𝐻 Fn {(𝑁 + 1)} → (𝐻 ↾ {(𝑁 + 1)}) = 𝐻)
4610, 44, 453syl 18 . . . . . . 7 ((𝑁 ∈ ℕ0 ∧ (𝐹:(1...𝑁)⟶𝐴𝐵𝐴𝐺 = (𝐹𝐻))) → (𝐻 ↾ {(𝑁 + 1)}) = 𝐻)
4733, 43, 463eqtrd 2798 . . . . . 6 ((𝑁 ∈ ℕ0 ∧ (𝐹:(1...𝑁)⟶𝐴𝐵𝐴𝐺 = (𝐹𝐻))) → (𝐺 ↾ {(𝑁 + 1)}) = 𝐻)
4847fveq1d 6666 . . . . 5 ((𝑁 ∈ ℕ0 ∧ (𝐹:(1...𝑁)⟶𝐴𝐵𝐴𝐺 = (𝐹𝐻))) → ((𝐺 ↾ {(𝑁 + 1)})‘(𝑁 + 1)) = (𝐻‘(𝑁 + 1)))
495fveq1i 6665 . . . . . . 7 (𝐻‘(𝑁 + 1)) = ({⟨(𝑁 + 1), 𝐵⟩}‘(𝑁 + 1))
50 fvsng 6940 . . . . . . 7 (((𝑁 + 1) ∈ ℕ ∧ 𝐵𝐴) → ({⟨(𝑁 + 1), 𝐵⟩}‘(𝑁 + 1)) = 𝐵)
5149, 50syl5eq 2806 . . . . . 6 (((𝑁 + 1) ∈ ℕ ∧ 𝐵𝐴) → (𝐻‘(𝑁 + 1)) = 𝐵)
523, 4, 51syl2anc 587 . . . . 5 ((𝑁 ∈ ℕ0 ∧ (𝐹:(1...𝑁)⟶𝐴𝐵𝐴𝐺 = (𝐹𝐻))) → (𝐻‘(𝑁 + 1)) = 𝐵)
5348, 52eqtrd 2794 . . . 4 ((𝑁 ∈ ℕ0 ∧ (𝐹:(1...𝑁)⟶𝐴𝐵𝐴𝐺 = (𝐹𝐻))) → ((𝐺 ↾ {(𝑁 + 1)})‘(𝑁 + 1)) = 𝐵)
5432, 53eqtr3id 2808 . . 3 ((𝑁 ∈ ℕ0 ∧ (𝐹:(1...𝑁)⟶𝐴𝐵𝐴𝐺 = (𝐹𝐻))) → (𝐺‘(𝑁 + 1)) = 𝐵)
5526reseq1d 5828 . . . 4 ((𝑁 ∈ ℕ0 ∧ (𝐹:(1...𝑁)⟶𝐴𝐵𝐴𝐺 = (𝐹𝐻))) → (𝐺 ↾ (1...𝑁)) = ((𝐹𝐻) ↾ (1...𝑁)))
56 incom 4109 . . . . . . . 8 ({(𝑁 + 1)} ∩ (1...𝑁)) = ((1...𝑁) ∩ {(𝑁 + 1)})
5756, 12syl5eq 2806 . . . . . . 7 ((𝑁 ∈ ℕ0 ∧ (𝐹:(1...𝑁)⟶𝐴𝐵𝐴𝐺 = (𝐹𝐻))) → ({(𝑁 + 1)} ∩ (1...𝑁)) = ∅)
58 ffn 6504 . . . . . . . 8 (𝐻:{(𝑁 + 1)}⟶{𝐵} → 𝐻 Fn {(𝑁 + 1)})
59 fnresdisj 6456 . . . . . . . 8 (𝐻 Fn {(𝑁 + 1)} → (({(𝑁 + 1)} ∩ (1...𝑁)) = ∅ ↔ (𝐻 ↾ (1...𝑁)) = ∅))
608, 58, 593syl 18 . . . . . . 7 ((𝑁 ∈ ℕ0 ∧ (𝐹:(1...𝑁)⟶𝐴𝐵𝐴𝐺 = (𝐹𝐻))) → (({(𝑁 + 1)} ∩ (1...𝑁)) = ∅ ↔ (𝐻 ↾ (1...𝑁)) = ∅))
6157, 60mpbid 235 . . . . . 6 ((𝑁 ∈ ℕ0 ∧ (𝐹:(1...𝑁)⟶𝐴𝐵𝐴𝐺 = (𝐹𝐻))) → (𝐻 ↾ (1...𝑁)) = ∅)
6261uneq2d 4071 . . . . 5 ((𝑁 ∈ ℕ0 ∧ (𝐹:(1...𝑁)⟶𝐴𝐵𝐴𝐺 = (𝐹𝐻))) → ((𝐹 ↾ (1...𝑁)) ∪ (𝐻 ↾ (1...𝑁))) = ((𝐹 ↾ (1...𝑁)) ∪ ∅))
63 resundir 5844 . . . . 5 ((𝐹𝐻) ↾ (1...𝑁)) = ((𝐹 ↾ (1...𝑁)) ∪ (𝐻 ↾ (1...𝑁)))
64 un0 4290 . . . . . 6 ((𝐹 ↾ (1...𝑁)) ∪ ∅) = (𝐹 ↾ (1...𝑁))
6564eqcomi 2768 . . . . 5 (𝐹 ↾ (1...𝑁)) = ((𝐹 ↾ (1...𝑁)) ∪ ∅)
6662, 63, 653eqtr4g 2819 . . . 4 ((𝑁 ∈ ℕ0 ∧ (𝐹:(1...𝑁)⟶𝐴𝐵𝐴𝐺 = (𝐹𝐻))) → ((𝐹𝐻) ↾ (1...𝑁)) = (𝐹 ↾ (1...𝑁)))
67 fnresdm 6455 . . . . 5 (𝐹 Fn (1...𝑁) → (𝐹 ↾ (1...𝑁)) = 𝐹)
681, 34, 673syl 18 . . . 4 ((𝑁 ∈ ℕ0 ∧ (𝐹:(1...𝑁)⟶𝐴𝐵𝐴𝐺 = (𝐹𝐻))) → (𝐹 ↾ (1...𝑁)) = 𝐹)
6955, 66, 683eqtrrd 2799 . . 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 13013 . . . . 5 (1...𝑁) ⊆ (1...(𝑁 + 1))
73 fssres 6535 . . . . 5 ((𝐺:(1...(𝑁 + 1))⟶𝐴 ∧ (1...𝑁) ⊆ (1...(𝑁 + 1))) → (𝐺 ↾ (1...𝑁)):(1...𝑁)⟶𝐴)
7471, 72, 73sylancl 589 . . . 4 ((𝑁 ∈ ℕ0 ∧ (𝐺:(1...(𝑁 + 1))⟶𝐴 ∧ (𝐺‘(𝑁 + 1)) = 𝐵𝐹 = (𝐺 ↾ (1...𝑁)))) → (𝐺 ↾ (1...𝑁)):(1...𝑁)⟶𝐴)
75 simpr3 1194 . . . . 5 ((𝑁 ∈ ℕ0 ∧ (𝐺:(1...(𝑁 + 1))⟶𝐴 ∧ (𝐺‘(𝑁 + 1)) = 𝐵𝐹 = (𝐺 ↾ (1...𝑁)))) → 𝐹 = (𝐺 ↾ (1...𝑁)))
7675feq1d 6489 . . . 4 ((𝑁 ∈ ℕ0 ∧ (𝐺:(1...(𝑁 + 1))⟶𝐴 ∧ (𝐺‘(𝑁 + 1)) = 𝐵𝐹 = (𝐺 ↾ (1...𝑁)))) → (𝐹:(1...𝑁)⟶𝐴 ↔ (𝐺 ↾ (1...𝑁)):(1...𝑁)⟶𝐴))
7774, 76mpbird 260 . . 3 ((𝑁 ∈ ℕ0 ∧ (𝐺:(1...(𝑁 + 1))⟶𝐴 ∧ (𝐺‘(𝑁 + 1)) = 𝐵𝐹 = (𝐺 ↾ (1...𝑁)))) → 𝐹:(1...𝑁)⟶𝐴)
78 simpr2 1193 . . . 4 ((𝑁 ∈ ℕ0 ∧ (𝐺:(1...(𝑁 + 1))⟶𝐴 ∧ (𝐺‘(𝑁 + 1)) = 𝐵𝐹 = (𝐺 ↾ (1...𝑁)))) → (𝐺‘(𝑁 + 1)) = 𝐵)
792adantr 484 . . . . . . 7 ((𝑁 ∈ ℕ0 ∧ (𝐺:(1...(𝑁 + 1))⟶𝐴 ∧ (𝐺‘(𝑁 + 1)) = 𝐵𝐹 = (𝐺 ↾ (1...𝑁)))) → (𝑁 + 1) ∈ ℕ)
80 nnuz 12335 . . . . . . 7 ℕ = (ℤ‘1)
8179, 80eleqtrdi 2863 . . . . . 6 ((𝑁 ∈ ℕ0 ∧ (𝐺:(1...(𝑁 + 1))⟶𝐴 ∧ (𝐺‘(𝑁 + 1)) = 𝐵𝐹 = (𝐺 ↾ (1...𝑁)))) → (𝑁 + 1) ∈ (ℤ‘1))
82 eluzfz2 12978 . . . . . 6 ((𝑁 + 1) ∈ (ℤ‘1) → (𝑁 + 1) ∈ (1...(𝑁 + 1)))
8381, 82syl 17 . . . . 5 ((𝑁 ∈ ℕ0 ∧ (𝐺:(1...(𝑁 + 1))⟶𝐴 ∧ (𝐺‘(𝑁 + 1)) = 𝐵𝐹 = (𝐺 ↾ (1...𝑁)))) → (𝑁 + 1) ∈ (1...(𝑁 + 1)))
8471, 83ffvelrnd 6850 . . . 4 ((𝑁 ∈ ℕ0 ∧ (𝐺:(1...(𝑁 + 1))⟶𝐴 ∧ (𝐺‘(𝑁 + 1)) = 𝐵𝐹 = (𝐺 ↾ (1...𝑁)))) → (𝐺‘(𝑁 + 1)) ∈ 𝐴)
8578, 84eqeltrrd 2854 . . 3 ((𝑁 ∈ ℕ0 ∧ (𝐺:(1...(𝑁 + 1))⟶𝐴 ∧ (𝐺‘(𝑁 + 1)) = 𝐵𝐹 = (𝐺 ↾ (1...𝑁)))) → 𝐵𝐴)
86 ffn 6504 . . . . . . . . 9 (𝐺:(1...(𝑁 + 1))⟶𝐴𝐺 Fn (1...(𝑁 + 1)))
8771, 86syl 17 . . . . . . . 8 ((𝑁 ∈ ℕ0 ∧ (𝐺:(1...(𝑁 + 1))⟶𝐴 ∧ (𝐺‘(𝑁 + 1)) = 𝐵𝐹 = (𝐺 ↾ (1...𝑁)))) → 𝐺 Fn (1...(𝑁 + 1)))
88 fnressn 6918 . . . . . . . 8 ((𝐺 Fn (1...(𝑁 + 1)) ∧ (𝑁 + 1) ∈ (1...(𝑁 + 1))) → (𝐺 ↾ {(𝑁 + 1)}) = {⟨(𝑁 + 1), (𝐺‘(𝑁 + 1))⟩})
8987, 83, 88syl2anc 587 . . . . . . 7 ((𝑁 ∈ ℕ0 ∧ (𝐺:(1...(𝑁 + 1))⟶𝐴 ∧ (𝐺‘(𝑁 + 1)) = 𝐵𝐹 = (𝐺 ↾ (1...𝑁)))) → (𝐺 ↾ {(𝑁 + 1)}) = {⟨(𝑁 + 1), (𝐺‘(𝑁 + 1))⟩})
90 opeq2 4767 . . . . . . . . 9 ((𝐺‘(𝑁 + 1)) = 𝐵 → ⟨(𝑁 + 1), (𝐺‘(𝑁 + 1))⟩ = ⟨(𝑁 + 1), 𝐵⟩)
9190sneqd 4538 . . . . . . . 8 ((𝐺‘(𝑁 + 1)) = 𝐵 → {⟨(𝑁 + 1), (𝐺‘(𝑁 + 1))⟩} = {⟨(𝑁 + 1), 𝐵⟩})
9278, 91syl 17 . . . . . . 7 ((𝑁 ∈ ℕ0 ∧ (𝐺:(1...(𝑁 + 1))⟶𝐴 ∧ (𝐺‘(𝑁 + 1)) = 𝐵𝐹 = (𝐺 ↾ (1...𝑁)))) → {⟨(𝑁 + 1), (𝐺‘(𝑁 + 1))⟩} = {⟨(𝑁 + 1), 𝐵⟩})
9389, 92eqtrd 2794 . . . . . 6 ((𝑁 ∈ ℕ0 ∧ (𝐺:(1...(𝑁 + 1))⟶𝐴 ∧ (𝐺‘(𝑁 + 1)) = 𝐵𝐹 = (𝐺 ↾ (1...𝑁)))) → (𝐺 ↾ {(𝑁 + 1)}) = {⟨(𝑁 + 1), 𝐵⟩})
945, 93eqtr4id 2813 . . . . 5 ((𝑁 ∈ ℕ0 ∧ (𝐺:(1...(𝑁 + 1))⟶𝐴 ∧ (𝐺‘(𝑁 + 1)) = 𝐵𝐹 = (𝐺 ↾ (1...𝑁)))) → 𝐻 = (𝐺 ↾ {(𝑁 + 1)}))
9575, 94uneq12d 4072 . . . 4 ((𝑁 ∈ ℕ0 ∧ (𝐺:(1...(𝑁 + 1))⟶𝐴 ∧ (𝐺‘(𝑁 + 1)) = 𝐵𝐹 = (𝐺 ↾ (1...𝑁)))) → (𝐹𝐻) = ((𝐺 ↾ (1...𝑁)) ∪ (𝐺 ↾ {(𝑁 + 1)})))
96 simpl 486 . . . . . . . 8 ((𝑁 ∈ ℕ0 ∧ (𝐺:(1...(𝑁 + 1))⟶𝐴 ∧ (𝐺‘(𝑁 + 1)) = 𝐵𝐹 = (𝐺 ↾ (1...𝑁)))) → 𝑁 ∈ ℕ0)
9796, 19eleqtrdi 2863 . . . . . . 7 ((𝑁 ∈ ℕ0 ∧ (𝐺:(1...(𝑁 + 1))⟶𝐴 ∧ (𝐺‘(𝑁 + 1)) = 𝐵𝐹 = (𝐺 ↾ (1...𝑁)))) → 𝑁 ∈ (ℤ‘(1 − 1)))
9814, 97, 21sylancr 590 . . . . . 6 ((𝑁 ∈ ℕ0 ∧ (𝐺:(1...(𝑁 + 1))⟶𝐴 ∧ (𝐺‘(𝑁 + 1)) = 𝐵𝐹 = (𝐺 ↾ (1...𝑁)))) → (1...(𝑁 + 1)) = ((1...𝑁) ∪ {(𝑁 + 1)}))
9998reseq2d 5829 . . . . 5 ((𝑁 ∈ ℕ0 ∧ (𝐺:(1...(𝑁 + 1))⟶𝐴 ∧ (𝐺‘(𝑁 + 1)) = 𝐵𝐹 = (𝐺 ↾ (1...𝑁)))) → (𝐺 ↾ (1...(𝑁 + 1))) = (𝐺 ↾ ((1...𝑁) ∪ {(𝑁 + 1)})))
100 resundi 5843 . . . . 5 (𝐺 ↾ ((1...𝑁) ∪ {(𝑁 + 1)})) = ((𝐺 ↾ (1...𝑁)) ∪ (𝐺 ↾ {(𝑁 + 1)}))
10199, 100eqtr2di 2811 . . . 4 ((𝑁 ∈ ℕ0 ∧ (𝐺:(1...(𝑁 + 1))⟶𝐴 ∧ (𝐺‘(𝑁 + 1)) = 𝐵𝐹 = (𝐺 ↾ (1...𝑁)))) → ((𝐺 ↾ (1...𝑁)) ∪ (𝐺 ↾ {(𝑁 + 1)})) = (𝐺 ↾ (1...(𝑁 + 1))))
102 fnresdm 6455 . . . . 5 (𝐺 Fn (1...(𝑁 + 1)) → (𝐺 ↾ (1...(𝑁 + 1))) = 𝐺)
10371, 86, 1023syl 18 . . . 4 ((𝑁 ∈ ℕ0 ∧ (𝐺:(1...(𝑁 + 1))⟶𝐴 ∧ (𝐺‘(𝑁 + 1)) = 𝐵𝐹 = (𝐺 ↾ (1...𝑁)))) → (𝐺 ↾ (1...(𝑁 + 1))) = 𝐺)
10495, 101, 1033eqtrrd 2799 . . 3 ((𝑁 ∈ ℕ0 ∧ (𝐺:(1...(𝑁 + 1))⟶𝐴 ∧ (𝐺‘(𝑁 + 1)) = 𝐵𝐹 = (𝐺 ↾ (1...𝑁)))) → 𝐺 = (𝐹𝐻))
10577, 85, 1043jca 1126 . 2 ((𝑁 ∈ ℕ0 ∧ (𝐺:(1...(𝑁 + 1))⟶𝐴 ∧ (𝐺‘(𝑁 + 1)) = 𝐵𝐹 = (𝐺 ↾ (1...𝑁)))) → (𝐹:(1...𝑁)⟶𝐴𝐵𝐴𝐺 = (𝐹𝐻)))
10670, 105impbida 800 1 (𝑁 ∈ ℕ0 → ((𝐹:(1...𝑁)⟶𝐴𝐵𝐴𝐺 = (𝐹𝐻)) ↔ (𝐺:(1...(𝑁 + 1))⟶𝐴 ∧ (𝐺‘(𝑁 + 1)) = 𝐵𝐹 = (𝐺 ↾ (1...𝑁)))))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 209  wa 399  w3a 1085   = wceq 1539  wcel 2112  cun 3859  cin 3860  wss 3861  c0 4228  {csn 4526  cop 4532  cres 5531   Fn wfn 6336  wf 6337  cfv 6341  (class class class)co 7157  0cc0 10589  1c1 10590   + caddc 10592  cmin 10922  cn 11688  0cn0 11948  cz 12034  cuz 12296  ...cfz 12953
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 1912  ax-6 1971  ax-7 2016  ax-8 2114  ax-9 2122  ax-10 2143  ax-11 2159  ax-12 2176  ax-ext 2730  ax-sep 5174  ax-nul 5181  ax-pow 5239  ax-pr 5303  ax-un 7466  ax-cnex 10645  ax-resscn 10646  ax-1cn 10647  ax-icn 10648  ax-addcl 10649  ax-addrcl 10650  ax-mulcl 10651  ax-mulrcl 10652  ax-mulcom 10653  ax-addass 10654  ax-mulass 10655  ax-distr 10656  ax-i2m1 10657  ax-1ne0 10658  ax-1rid 10659  ax-rnegex 10660  ax-rrecex 10661  ax-cnre 10662  ax-pre-lttri 10663  ax-pre-lttrn 10664  ax-pre-ltadd 10665  ax-pre-mulgt0 10666
This theorem depends on definitions:  df-bi 210  df-an 400  df-or 845  df-3or 1086  df-3an 1087  df-tru 1542  df-fal 1552  df-ex 1783  df-nf 1787  df-sb 2071  df-mo 2558  df-eu 2589  df-clab 2737  df-cleq 2751  df-clel 2831  df-nfc 2902  df-ne 2953  df-nel 3057  df-ral 3076  df-rex 3077  df-reu 3078  df-rab 3080  df-v 3412  df-sbc 3700  df-csb 3809  df-dif 3864  df-un 3866  df-in 3868  df-ss 3878  df-pss 3880  df-nul 4229  df-if 4425  df-pw 4500  df-sn 4527  df-pr 4529  df-tp 4531  df-op 4533  df-uni 4803  df-iun 4889  df-br 5038  df-opab 5100  df-mpt 5118  df-tr 5144  df-id 5435  df-eprel 5440  df-po 5448  df-so 5449  df-fr 5488  df-we 5490  df-xp 5535  df-rel 5536  df-cnv 5537  df-co 5538  df-dm 5539  df-rn 5540  df-res 5541  df-ima 5542  df-pred 6132  df-ord 6178  df-on 6179  df-lim 6180  df-suc 6181  df-iota 6300  df-fun 6343  df-fn 6344  df-f 6345  df-f1 6346  df-fo 6347  df-f1o 6348  df-fv 6349  df-riota 7115  df-ov 7160  df-oprab 7161  df-mpo 7162  df-om 7587  df-1st 7700  df-2nd 7701  df-wrecs 7964  df-recs 8025  df-rdg 8063  df-er 8306  df-en 8542  df-dom 8543  df-sdom 8544  df-pnf 10729  df-mnf 10730  df-xr 10731  df-ltxr 10732  df-le 10733  df-sub 10924  df-neg 10925  df-nn 11689  df-n0 11949  df-z 12035  df-uz 12297  df-fz 12954
This theorem is referenced by:  fseq1m1p1  13045
  Copyright terms: Public domain W3C validator