ILE Home Intuitionistic Logic Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  ILE Home  >  Th. List  >  fseq1p1m1 GIF version

Theorem fseq1p1m1 10050
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 998 . . . . . 6 ((𝑁 ∈ ℕ0 ∧ (𝐹:(1...𝑁)⟶𝐴𝐵𝐴𝐺 = (𝐹𝐻))) → 𝐹:(1...𝑁)⟶𝐴)
2 nn0p1nn 9174 . . . . . . . . 9 (𝑁 ∈ ℕ0 → (𝑁 + 1) ∈ ℕ)
32adantr 274 . . . . . . . 8 ((𝑁 ∈ ℕ0 ∧ (𝐹:(1...𝑁)⟶𝐴𝐵𝐴𝐺 = (𝐹𝐻))) → (𝑁 + 1) ∈ ℕ)
4 simpr2 999 . . . . . . . 8 ((𝑁 ∈ ℕ0 ∧ (𝐹:(1...𝑁)⟶𝐴𝐵𝐴𝐺 = (𝐹𝐻))) → 𝐵𝐴)
5 fseq1p1m1.1 . . . . . . . . 9 𝐻 = {⟨(𝑁 + 1), 𝐵⟩}
6 fsng 5669 . . . . . . . . 9 (((𝑁 + 1) ∈ ℕ ∧ 𝐵𝐴) → (𝐻:{(𝑁 + 1)}⟶{𝐵} ↔ 𝐻 = {⟨(𝑁 + 1), 𝐵⟩}))
75, 6mpbiri 167 . . . . . . . 8 (((𝑁 + 1) ∈ ℕ ∧ 𝐵𝐴) → 𝐻:{(𝑁 + 1)}⟶{𝐵})
83, 4, 7syl2anc 409 . . . . . . 7 ((𝑁 ∈ ℕ0 ∧ (𝐹:(1...𝑁)⟶𝐴𝐵𝐴𝐺 = (𝐹𝐻))) → 𝐻:{(𝑁 + 1)}⟶{𝐵})
94snssd 3725 . . . . . . 7 ((𝑁 ∈ ℕ0 ∧ (𝐹:(1...𝑁)⟶𝐴𝐵𝐴𝐺 = (𝐹𝐻))) → {𝐵} ⊆ 𝐴)
108, 9fssd 5360 . . . . . 6 ((𝑁 ∈ ℕ0 ∧ (𝐹:(1...𝑁)⟶𝐴𝐵𝐴𝐺 = (𝐹𝐻))) → 𝐻:{(𝑁 + 1)}⟶𝐴)
11 fzp1disj 10036 . . . . . . 7 ((1...𝑁) ∩ {(𝑁 + 1)}) = ∅
1211a1i 9 . . . . . 6 ((𝑁 ∈ ℕ0 ∧ (𝐹:(1...𝑁)⟶𝐴𝐵𝐴𝐺 = (𝐹𝐻))) → ((1...𝑁) ∩ {(𝑁 + 1)}) = ∅)
13 fun2 5371 . . . . . 6 (((𝐹:(1...𝑁)⟶𝐴𝐻:{(𝑁 + 1)}⟶𝐴) ∧ ((1...𝑁) ∩ {(𝑁 + 1)}) = ∅) → (𝐹𝐻):((1...𝑁) ∪ {(𝑁 + 1)})⟶𝐴)
141, 10, 12, 13syl21anc 1232 . . . . 5 ((𝑁 ∈ ℕ0 ∧ (𝐹:(1...𝑁)⟶𝐴𝐵𝐴𝐺 = (𝐹𝐻))) → (𝐹𝐻):((1...𝑁) ∪ {(𝑁 + 1)})⟶𝐴)
15 1z 9238 . . . . . . . 8 1 ∈ ℤ
16 simpl 108 . . . . . . . . 9 ((𝑁 ∈ ℕ0 ∧ (𝐹:(1...𝑁)⟶𝐴𝐵𝐴𝐺 = (𝐹𝐻))) → 𝑁 ∈ ℕ0)
17 nn0uz 9521 . . . . . . . . . 10 0 = (ℤ‘0)
18 1m1e0 8947 . . . . . . . . . . 11 (1 − 1) = 0
1918fveq2i 5499 . . . . . . . . . 10 (ℤ‘(1 − 1)) = (ℤ‘0)
2017, 19eqtr4i 2194 . . . . . . . . 9 0 = (ℤ‘(1 − 1))
2116, 20eleqtrdi 2263 . . . . . . . 8 ((𝑁 ∈ ℕ0 ∧ (𝐹:(1...𝑁)⟶𝐴𝐵𝐴𝐺 = (𝐹𝐻))) → 𝑁 ∈ (ℤ‘(1 − 1)))
22 fzsuc2 10035 . . . . . . . 8 ((1 ∈ ℤ ∧ 𝑁 ∈ (ℤ‘(1 − 1))) → (1...(𝑁 + 1)) = ((1...𝑁) ∪ {(𝑁 + 1)}))
2315, 21, 22sylancr 412 . . . . . . 7 ((𝑁 ∈ ℕ0 ∧ (𝐹:(1...𝑁)⟶𝐴𝐵𝐴𝐺 = (𝐹𝐻))) → (1...(𝑁 + 1)) = ((1...𝑁) ∪ {(𝑁 + 1)}))
2423eqcomd 2176 . . . . . 6 ((𝑁 ∈ ℕ0 ∧ (𝐹:(1...𝑁)⟶𝐴𝐵𝐴𝐺 = (𝐹𝐻))) → ((1...𝑁) ∪ {(𝑁 + 1)}) = (1...(𝑁 + 1)))
2524feq2d 5335 . . . . 5 ((𝑁 ∈ ℕ0 ∧ (𝐹:(1...𝑁)⟶𝐴𝐵𝐴𝐺 = (𝐹𝐻))) → ((𝐹𝐻):((1...𝑁) ∪ {(𝑁 + 1)})⟶𝐴 ↔ (𝐹𝐻):(1...(𝑁 + 1))⟶𝐴))
2614, 25mpbid 146 . . . 4 ((𝑁 ∈ ℕ0 ∧ (𝐹:(1...𝑁)⟶𝐴𝐵𝐴𝐺 = (𝐹𝐻))) → (𝐹𝐻):(1...(𝑁 + 1))⟶𝐴)
27 simpr3 1000 . . . . 5 ((𝑁 ∈ ℕ0 ∧ (𝐹:(1...𝑁)⟶𝐴𝐵𝐴𝐺 = (𝐹𝐻))) → 𝐺 = (𝐹𝐻))
2827feq1d 5334 . . . 4 ((𝑁 ∈ ℕ0 ∧ (𝐹:(1...𝑁)⟶𝐴𝐵𝐴𝐺 = (𝐹𝐻))) → (𝐺:(1...(𝑁 + 1))⟶𝐴 ↔ (𝐹𝐻):(1...(𝑁 + 1))⟶𝐴))
2926, 28mpbird 166 . . 3 ((𝑁 ∈ ℕ0 ∧ (𝐹:(1...𝑁)⟶𝐴𝐵𝐴𝐺 = (𝐹𝐻))) → 𝐺:(1...(𝑁 + 1))⟶𝐴)
3027reseq1d 4890 . . . . . 6 ((𝑁 ∈ ℕ0 ∧ (𝐹:(1...𝑁)⟶𝐴𝐵𝐴𝐺 = (𝐹𝐻))) → (𝐺 ↾ {(𝑁 + 1)}) = ((𝐹𝐻) ↾ {(𝑁 + 1)}))
31 ffn 5347 . . . . . . . . . 10 (𝐹:(1...𝑁)⟶𝐴𝐹 Fn (1...𝑁))
32 fnresdisj 5308 . . . . . . . . . 10 (𝐹 Fn (1...𝑁) → (((1...𝑁) ∩ {(𝑁 + 1)}) = ∅ ↔ (𝐹 ↾ {(𝑁 + 1)}) = ∅))
331, 31, 323syl 17 . . . . . . . . 9 ((𝑁 ∈ ℕ0 ∧ (𝐹:(1...𝑁)⟶𝐴𝐵𝐴𝐺 = (𝐹𝐻))) → (((1...𝑁) ∩ {(𝑁 + 1)}) = ∅ ↔ (𝐹 ↾ {(𝑁 + 1)}) = ∅))
3412, 33mpbid 146 . . . . . . . 8 ((𝑁 ∈ ℕ0 ∧ (𝐹:(1...𝑁)⟶𝐴𝐵𝐴𝐺 = (𝐹𝐻))) → (𝐹 ↾ {(𝑁 + 1)}) = ∅)
3534uneq1d 3280 . . . . . . 7 ((𝑁 ∈ ℕ0 ∧ (𝐹:(1...𝑁)⟶𝐴𝐵𝐴𝐺 = (𝐹𝐻))) → ((𝐹 ↾ {(𝑁 + 1)}) ∪ (𝐻 ↾ {(𝑁 + 1)})) = (∅ ∪ (𝐻 ↾ {(𝑁 + 1)})))
36 resundir 4905 . . . . . . 7 ((𝐹𝐻) ↾ {(𝑁 + 1)}) = ((𝐹 ↾ {(𝑁 + 1)}) ∪ (𝐻 ↾ {(𝑁 + 1)}))
37 uncom 3271 . . . . . . . 8 (∅ ∪ (𝐻 ↾ {(𝑁 + 1)})) = ((𝐻 ↾ {(𝑁 + 1)}) ∪ ∅)
38 un0 3448 . . . . . . . 8 ((𝐻 ↾ {(𝑁 + 1)}) ∪ ∅) = (𝐻 ↾ {(𝑁 + 1)})
3937, 38eqtr2i 2192 . . . . . . 7 (𝐻 ↾ {(𝑁 + 1)}) = (∅ ∪ (𝐻 ↾ {(𝑁 + 1)}))
4035, 36, 393eqtr4g 2228 . . . . . 6 ((𝑁 ∈ ℕ0 ∧ (𝐹:(1...𝑁)⟶𝐴𝐵𝐴𝐺 = (𝐹𝐻))) → ((𝐹𝐻) ↾ {(𝑁 + 1)}) = (𝐻 ↾ {(𝑁 + 1)}))
41 ffn 5347 . . . . . . 7 (𝐻:{(𝑁 + 1)}⟶𝐴𝐻 Fn {(𝑁 + 1)})
42 fnresdm 5307 . . . . . . 7 (𝐻 Fn {(𝑁 + 1)} → (𝐻 ↾ {(𝑁 + 1)}) = 𝐻)
4310, 41, 423syl 17 . . . . . 6 ((𝑁 ∈ ℕ0 ∧ (𝐹:(1...𝑁)⟶𝐴𝐵𝐴𝐺 = (𝐹𝐻))) → (𝐻 ↾ {(𝑁 + 1)}) = 𝐻)
4430, 40, 433eqtrd 2207 . . . . 5 ((𝑁 ∈ ℕ0 ∧ (𝐹:(1...𝑁)⟶𝐴𝐵𝐴𝐺 = (𝐹𝐻))) → (𝐺 ↾ {(𝑁 + 1)}) = 𝐻)
4544fveq1d 5498 . . . 4 ((𝑁 ∈ ℕ0 ∧ (𝐹:(1...𝑁)⟶𝐴𝐵𝐴𝐺 = (𝐹𝐻))) → ((𝐺 ↾ {(𝑁 + 1)})‘(𝑁 + 1)) = (𝐻‘(𝑁 + 1)))
4616nn0zd 9332 . . . . . 6 ((𝑁 ∈ ℕ0 ∧ (𝐹:(1...𝑁)⟶𝐴𝐵𝐴𝐺 = (𝐹𝐻))) → 𝑁 ∈ ℤ)
4746peano2zd 9337 . . . . 5 ((𝑁 ∈ ℕ0 ∧ (𝐹:(1...𝑁)⟶𝐴𝐵𝐴𝐺 = (𝐹𝐻))) → (𝑁 + 1) ∈ ℤ)
48 snidg 3612 . . . . 5 ((𝑁 + 1) ∈ ℤ → (𝑁 + 1) ∈ {(𝑁 + 1)})
49 fvres 5520 . . . . 5 ((𝑁 + 1) ∈ {(𝑁 + 1)} → ((𝐺 ↾ {(𝑁 + 1)})‘(𝑁 + 1)) = (𝐺‘(𝑁 + 1)))
5047, 48, 493syl 17 . . . 4 ((𝑁 ∈ ℕ0 ∧ (𝐹:(1...𝑁)⟶𝐴𝐵𝐴𝐺 = (𝐹𝐻))) → ((𝐺 ↾ {(𝑁 + 1)})‘(𝑁 + 1)) = (𝐺‘(𝑁 + 1)))
515fveq1i 5497 . . . . . 6 (𝐻‘(𝑁 + 1)) = ({⟨(𝑁 + 1), 𝐵⟩}‘(𝑁 + 1))
52 fvsng 5692 . . . . . 6 (((𝑁 + 1) ∈ ℕ ∧ 𝐵𝐴) → ({⟨(𝑁 + 1), 𝐵⟩}‘(𝑁 + 1)) = 𝐵)
5351, 52eqtrid 2215 . . . . 5 (((𝑁 + 1) ∈ ℕ ∧ 𝐵𝐴) → (𝐻‘(𝑁 + 1)) = 𝐵)
543, 4, 53syl2anc 409 . . . 4 ((𝑁 ∈ ℕ0 ∧ (𝐹:(1...𝑁)⟶𝐴𝐵𝐴𝐺 = (𝐹𝐻))) → (𝐻‘(𝑁 + 1)) = 𝐵)
5545, 50, 543eqtr3d 2211 . . 3 ((𝑁 ∈ ℕ0 ∧ (𝐹:(1...𝑁)⟶𝐴𝐵𝐴𝐺 = (𝐹𝐻))) → (𝐺‘(𝑁 + 1)) = 𝐵)
5627reseq1d 4890 . . . 4 ((𝑁 ∈ ℕ0 ∧ (𝐹:(1...𝑁)⟶𝐴𝐵𝐴𝐺 = (𝐹𝐻))) → (𝐺 ↾ (1...𝑁)) = ((𝐹𝐻) ↾ (1...𝑁)))
57 incom 3319 . . . . . . . 8 ({(𝑁 + 1)} ∩ (1...𝑁)) = ((1...𝑁) ∩ {(𝑁 + 1)})
5857, 12eqtrid 2215 . . . . . . 7 ((𝑁 ∈ ℕ0 ∧ (𝐹:(1...𝑁)⟶𝐴𝐵𝐴𝐺 = (𝐹𝐻))) → ({(𝑁 + 1)} ∩ (1...𝑁)) = ∅)
59 ffn 5347 . . . . . . . 8 (𝐻:{(𝑁 + 1)}⟶{𝐵} → 𝐻 Fn {(𝑁 + 1)})
60 fnresdisj 5308 . . . . . . . 8 (𝐻 Fn {(𝑁 + 1)} → (({(𝑁 + 1)} ∩ (1...𝑁)) = ∅ ↔ (𝐻 ↾ (1...𝑁)) = ∅))
618, 59, 603syl 17 . . . . . . 7 ((𝑁 ∈ ℕ0 ∧ (𝐹:(1...𝑁)⟶𝐴𝐵𝐴𝐺 = (𝐹𝐻))) → (({(𝑁 + 1)} ∩ (1...𝑁)) = ∅ ↔ (𝐻 ↾ (1...𝑁)) = ∅))
6258, 61mpbid 146 . . . . . 6 ((𝑁 ∈ ℕ0 ∧ (𝐹:(1...𝑁)⟶𝐴𝐵𝐴𝐺 = (𝐹𝐻))) → (𝐻 ↾ (1...𝑁)) = ∅)
6362uneq2d 3281 . . . . 5 ((𝑁 ∈ ℕ0 ∧ (𝐹:(1...𝑁)⟶𝐴𝐵𝐴𝐺 = (𝐹𝐻))) → ((𝐹 ↾ (1...𝑁)) ∪ (𝐻 ↾ (1...𝑁))) = ((𝐹 ↾ (1...𝑁)) ∪ ∅))
64 resundir 4905 . . . . 5 ((𝐹𝐻) ↾ (1...𝑁)) = ((𝐹 ↾ (1...𝑁)) ∪ (𝐻 ↾ (1...𝑁)))
65 un0 3448 . . . . . 6 ((𝐹 ↾ (1...𝑁)) ∪ ∅) = (𝐹 ↾ (1...𝑁))
6665eqcomi 2174 . . . . 5 (𝐹 ↾ (1...𝑁)) = ((𝐹 ↾ (1...𝑁)) ∪ ∅)
6763, 64, 663eqtr4g 2228 . . . 4 ((𝑁 ∈ ℕ0 ∧ (𝐹:(1...𝑁)⟶𝐴𝐵𝐴𝐺 = (𝐹𝐻))) → ((𝐹𝐻) ↾ (1...𝑁)) = (𝐹 ↾ (1...𝑁)))
68 fnresdm 5307 . . . . 5 (𝐹 Fn (1...𝑁) → (𝐹 ↾ (1...𝑁)) = 𝐹)
691, 31, 683syl 17 . . . 4 ((𝑁 ∈ ℕ0 ∧ (𝐹:(1...𝑁)⟶𝐴𝐵𝐴𝐺 = (𝐹𝐻))) → (𝐹 ↾ (1...𝑁)) = 𝐹)
7056, 67, 693eqtrrd 2208 . . 3 ((𝑁 ∈ ℕ0 ∧ (𝐹:(1...𝑁)⟶𝐴𝐵𝐴𝐺 = (𝐹𝐻))) → 𝐹 = (𝐺 ↾ (1...𝑁)))
7129, 55, 703jca 1172 . 2 ((𝑁 ∈ ℕ0 ∧ (𝐹:(1...𝑁)⟶𝐴𝐵𝐴𝐺 = (𝐹𝐻))) → (𝐺:(1...(𝑁 + 1))⟶𝐴 ∧ (𝐺‘(𝑁 + 1)) = 𝐵𝐹 = (𝐺 ↾ (1...𝑁))))
72 simpr1 998 . . . . 5 ((𝑁 ∈ ℕ0 ∧ (𝐺:(1...(𝑁 + 1))⟶𝐴 ∧ (𝐺‘(𝑁 + 1)) = 𝐵𝐹 = (𝐺 ↾ (1...𝑁)))) → 𝐺:(1...(𝑁 + 1))⟶𝐴)
73 fzssp1 10023 . . . . 5 (1...𝑁) ⊆ (1...(𝑁 + 1))
74 fssres 5373 . . . . 5 ((𝐺:(1...(𝑁 + 1))⟶𝐴 ∧ (1...𝑁) ⊆ (1...(𝑁 + 1))) → (𝐺 ↾ (1...𝑁)):(1...𝑁)⟶𝐴)
7572, 73, 74sylancl 411 . . . 4 ((𝑁 ∈ ℕ0 ∧ (𝐺:(1...(𝑁 + 1))⟶𝐴 ∧ (𝐺‘(𝑁 + 1)) = 𝐵𝐹 = (𝐺 ↾ (1...𝑁)))) → (𝐺 ↾ (1...𝑁)):(1...𝑁)⟶𝐴)
76 simpr3 1000 . . . . 5 ((𝑁 ∈ ℕ0 ∧ (𝐺:(1...(𝑁 + 1))⟶𝐴 ∧ (𝐺‘(𝑁 + 1)) = 𝐵𝐹 = (𝐺 ↾ (1...𝑁)))) → 𝐹 = (𝐺 ↾ (1...𝑁)))
7776feq1d 5334 . . . 4 ((𝑁 ∈ ℕ0 ∧ (𝐺:(1...(𝑁 + 1))⟶𝐴 ∧ (𝐺‘(𝑁 + 1)) = 𝐵𝐹 = (𝐺 ↾ (1...𝑁)))) → (𝐹:(1...𝑁)⟶𝐴 ↔ (𝐺 ↾ (1...𝑁)):(1...𝑁)⟶𝐴))
7875, 77mpbird 166 . . 3 ((𝑁 ∈ ℕ0 ∧ (𝐺:(1...(𝑁 + 1))⟶𝐴 ∧ (𝐺‘(𝑁 + 1)) = 𝐵𝐹 = (𝐺 ↾ (1...𝑁)))) → 𝐹:(1...𝑁)⟶𝐴)
79 simpr2 999 . . . 4 ((𝑁 ∈ ℕ0 ∧ (𝐺:(1...(𝑁 + 1))⟶𝐴 ∧ (𝐺‘(𝑁 + 1)) = 𝐵𝐹 = (𝐺 ↾ (1...𝑁)))) → (𝐺‘(𝑁 + 1)) = 𝐵)
802adantr 274 . . . . . . 7 ((𝑁 ∈ ℕ0 ∧ (𝐺:(1...(𝑁 + 1))⟶𝐴 ∧ (𝐺‘(𝑁 + 1)) = 𝐵𝐹 = (𝐺 ↾ (1...𝑁)))) → (𝑁 + 1) ∈ ℕ)
81 nnuz 9522 . . . . . . 7 ℕ = (ℤ‘1)
8280, 81eleqtrdi 2263 . . . . . 6 ((𝑁 ∈ ℕ0 ∧ (𝐺:(1...(𝑁 + 1))⟶𝐴 ∧ (𝐺‘(𝑁 + 1)) = 𝐵𝐹 = (𝐺 ↾ (1...𝑁)))) → (𝑁 + 1) ∈ (ℤ‘1))
83 eluzfz2 9988 . . . . . 6 ((𝑁 + 1) ∈ (ℤ‘1) → (𝑁 + 1) ∈ (1...(𝑁 + 1)))
8482, 83syl 14 . . . . 5 ((𝑁 ∈ ℕ0 ∧ (𝐺:(1...(𝑁 + 1))⟶𝐴 ∧ (𝐺‘(𝑁 + 1)) = 𝐵𝐹 = (𝐺 ↾ (1...𝑁)))) → (𝑁 + 1) ∈ (1...(𝑁 + 1)))
8572, 84ffvelrnd 5632 . . . 4 ((𝑁 ∈ ℕ0 ∧ (𝐺:(1...(𝑁 + 1))⟶𝐴 ∧ (𝐺‘(𝑁 + 1)) = 𝐵𝐹 = (𝐺 ↾ (1...𝑁)))) → (𝐺‘(𝑁 + 1)) ∈ 𝐴)
8679, 85eqeltrrd 2248 . . 3 ((𝑁 ∈ ℕ0 ∧ (𝐺:(1...(𝑁 + 1))⟶𝐴 ∧ (𝐺‘(𝑁 + 1)) = 𝐵𝐹 = (𝐺 ↾ (1...𝑁)))) → 𝐵𝐴)
87 ffn 5347 . . . . . . . . 9 (𝐺:(1...(𝑁 + 1))⟶𝐴𝐺 Fn (1...(𝑁 + 1)))
8872, 87syl 14 . . . . . . . 8 ((𝑁 ∈ ℕ0 ∧ (𝐺:(1...(𝑁 + 1))⟶𝐴 ∧ (𝐺‘(𝑁 + 1)) = 𝐵𝐹 = (𝐺 ↾ (1...𝑁)))) → 𝐺 Fn (1...(𝑁 + 1)))
89 fnressn 5682 . . . . . . . 8 ((𝐺 Fn (1...(𝑁 + 1)) ∧ (𝑁 + 1) ∈ (1...(𝑁 + 1))) → (𝐺 ↾ {(𝑁 + 1)}) = {⟨(𝑁 + 1), (𝐺‘(𝑁 + 1))⟩})
9088, 84, 89syl2anc 409 . . . . . . 7 ((𝑁 ∈ ℕ0 ∧ (𝐺:(1...(𝑁 + 1))⟶𝐴 ∧ (𝐺‘(𝑁 + 1)) = 𝐵𝐹 = (𝐺 ↾ (1...𝑁)))) → (𝐺 ↾ {(𝑁 + 1)}) = {⟨(𝑁 + 1), (𝐺‘(𝑁 + 1))⟩})
91 opeq2 3766 . . . . . . . . 9 ((𝐺‘(𝑁 + 1)) = 𝐵 → ⟨(𝑁 + 1), (𝐺‘(𝑁 + 1))⟩ = ⟨(𝑁 + 1), 𝐵⟩)
9291sneqd 3596 . . . . . . . 8 ((𝐺‘(𝑁 + 1)) = 𝐵 → {⟨(𝑁 + 1), (𝐺‘(𝑁 + 1))⟩} = {⟨(𝑁 + 1), 𝐵⟩})
9379, 92syl 14 . . . . . . 7 ((𝑁 ∈ ℕ0 ∧ (𝐺:(1...(𝑁 + 1))⟶𝐴 ∧ (𝐺‘(𝑁 + 1)) = 𝐵𝐹 = (𝐺 ↾ (1...𝑁)))) → {⟨(𝑁 + 1), (𝐺‘(𝑁 + 1))⟩} = {⟨(𝑁 + 1), 𝐵⟩})
9490, 93eqtrd 2203 . . . . . 6 ((𝑁 ∈ ℕ0 ∧ (𝐺:(1...(𝑁 + 1))⟶𝐴 ∧ (𝐺‘(𝑁 + 1)) = 𝐵𝐹 = (𝐺 ↾ (1...𝑁)))) → (𝐺 ↾ {(𝑁 + 1)}) = {⟨(𝑁 + 1), 𝐵⟩})
955, 94eqtr4id 2222 . . . . 5 ((𝑁 ∈ ℕ0 ∧ (𝐺:(1...(𝑁 + 1))⟶𝐴 ∧ (𝐺‘(𝑁 + 1)) = 𝐵𝐹 = (𝐺 ↾ (1...𝑁)))) → 𝐻 = (𝐺 ↾ {(𝑁 + 1)}))
9676, 95uneq12d 3282 . . . 4 ((𝑁 ∈ ℕ0 ∧ (𝐺:(1...(𝑁 + 1))⟶𝐴 ∧ (𝐺‘(𝑁 + 1)) = 𝐵𝐹 = (𝐺 ↾ (1...𝑁)))) → (𝐹𝐻) = ((𝐺 ↾ (1...𝑁)) ∪ (𝐺 ↾ {(𝑁 + 1)})))
97 simpl 108 . . . . . . . 8 ((𝑁 ∈ ℕ0 ∧ (𝐺:(1...(𝑁 + 1))⟶𝐴 ∧ (𝐺‘(𝑁 + 1)) = 𝐵𝐹 = (𝐺 ↾ (1...𝑁)))) → 𝑁 ∈ ℕ0)
9897, 20eleqtrdi 2263 . . . . . . 7 ((𝑁 ∈ ℕ0 ∧ (𝐺:(1...(𝑁 + 1))⟶𝐴 ∧ (𝐺‘(𝑁 + 1)) = 𝐵𝐹 = (𝐺 ↾ (1...𝑁)))) → 𝑁 ∈ (ℤ‘(1 − 1)))
9915, 98, 22sylancr 412 . . . . . 6 ((𝑁 ∈ ℕ0 ∧ (𝐺:(1...(𝑁 + 1))⟶𝐴 ∧ (𝐺‘(𝑁 + 1)) = 𝐵𝐹 = (𝐺 ↾ (1...𝑁)))) → (1...(𝑁 + 1)) = ((1...𝑁) ∪ {(𝑁 + 1)}))
10099reseq2d 4891 . . . . 5 ((𝑁 ∈ ℕ0 ∧ (𝐺:(1...(𝑁 + 1))⟶𝐴 ∧ (𝐺‘(𝑁 + 1)) = 𝐵𝐹 = (𝐺 ↾ (1...𝑁)))) → (𝐺 ↾ (1...(𝑁 + 1))) = (𝐺 ↾ ((1...𝑁) ∪ {(𝑁 + 1)})))
101 resundi 4904 . . . . 5 (𝐺 ↾ ((1...𝑁) ∪ {(𝑁 + 1)})) = ((𝐺 ↾ (1...𝑁)) ∪ (𝐺 ↾ {(𝑁 + 1)}))
102100, 101eqtr2di 2220 . . . 4 ((𝑁 ∈ ℕ0 ∧ (𝐺:(1...(𝑁 + 1))⟶𝐴 ∧ (𝐺‘(𝑁 + 1)) = 𝐵𝐹 = (𝐺 ↾ (1...𝑁)))) → ((𝐺 ↾ (1...𝑁)) ∪ (𝐺 ↾ {(𝑁 + 1)})) = (𝐺 ↾ (1...(𝑁 + 1))))
103 fnresdm 5307 . . . . 5 (𝐺 Fn (1...(𝑁 + 1)) → (𝐺 ↾ (1...(𝑁 + 1))) = 𝐺)
10472, 87, 1033syl 17 . . . 4 ((𝑁 ∈ ℕ0 ∧ (𝐺:(1...(𝑁 + 1))⟶𝐴 ∧ (𝐺‘(𝑁 + 1)) = 𝐵𝐹 = (𝐺 ↾ (1...𝑁)))) → (𝐺 ↾ (1...(𝑁 + 1))) = 𝐺)
10596, 102, 1043eqtrrd 2208 . . 3 ((𝑁 ∈ ℕ0 ∧ (𝐺:(1...(𝑁 + 1))⟶𝐴 ∧ (𝐺‘(𝑁 + 1)) = 𝐵𝐹 = (𝐺 ↾ (1...𝑁)))) → 𝐺 = (𝐹𝐻))
10678, 86, 1053jca 1172 . 2 ((𝑁 ∈ ℕ0 ∧ (𝐺:(1...(𝑁 + 1))⟶𝐴 ∧ (𝐺‘(𝑁 + 1)) = 𝐵𝐹 = (𝐺 ↾ (1...𝑁)))) → (𝐹:(1...𝑁)⟶𝐴𝐵𝐴𝐺 = (𝐹𝐻)))
10771, 106impbida 591 1 (𝑁 ∈ ℕ0 → ((𝐹:(1...𝑁)⟶𝐴𝐵𝐴𝐺 = (𝐹𝐻)) ↔ (𝐺:(1...(𝑁 + 1))⟶𝐴 ∧ (𝐺‘(𝑁 + 1)) = 𝐵𝐹 = (𝐺 ↾ (1...𝑁)))))
Colors of variables: wff set class
Syntax hints:  wi 4  wa 103  wb 104  w3a 973   = wceq 1348  wcel 2141  cun 3119  cin 3120  wss 3121  c0 3414  {csn 3583  cop 3586  cres 4613   Fn wfn 5193  wf 5194  cfv 5198  (class class class)co 5853  0cc0 7774  1c1 7775   + caddc 7777  cmin 8090  cn 8878  0cn0 9135  cz 9212  cuz 9487  ...cfz 9965
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-ia1 105  ax-ia2 106  ax-ia3 107  ax-in1 609  ax-in2 610  ax-io 704  ax-5 1440  ax-7 1441  ax-gen 1442  ax-ie1 1486  ax-ie2 1487  ax-8 1497  ax-10 1498  ax-11 1499  ax-i12 1500  ax-bndl 1502  ax-4 1503  ax-17 1519  ax-i9 1523  ax-ial 1527  ax-i5r 1528  ax-13 2143  ax-14 2144  ax-ext 2152  ax-sep 4107  ax-pow 4160  ax-pr 4194  ax-un 4418  ax-setind 4521  ax-cnex 7865  ax-resscn 7866  ax-1cn 7867  ax-1re 7868  ax-icn 7869  ax-addcl 7870  ax-addrcl 7871  ax-mulcl 7872  ax-addcom 7874  ax-addass 7876  ax-distr 7878  ax-i2m1 7879  ax-0lt1 7880  ax-0id 7882  ax-rnegex 7883  ax-cnre 7885  ax-pre-ltirr 7886  ax-pre-ltwlin 7887  ax-pre-lttrn 7888  ax-pre-apti 7889  ax-pre-ltadd 7890
This theorem depends on definitions:  df-bi 116  df-3or 974  df-3an 975  df-tru 1351  df-fal 1354  df-nf 1454  df-sb 1756  df-eu 2022  df-mo 2023  df-clab 2157  df-cleq 2163  df-clel 2166  df-nfc 2301  df-ne 2341  df-nel 2436  df-ral 2453  df-rex 2454  df-reu 2455  df-rab 2457  df-v 2732  df-sbc 2956  df-dif 3123  df-un 3125  df-in 3127  df-ss 3134  df-nul 3415  df-pw 3568  df-sn 3589  df-pr 3590  df-op 3592  df-uni 3797  df-int 3832  df-br 3990  df-opab 4051  df-mpt 4052  df-id 4278  df-xp 4617  df-rel 4618  df-cnv 4619  df-co 4620  df-dm 4621  df-rn 4622  df-res 4623  df-ima 4624  df-iota 5160  df-fun 5200  df-fn 5201  df-f 5202  df-f1 5203  df-fo 5204  df-f1o 5205  df-fv 5206  df-riota 5809  df-ov 5856  df-oprab 5857  df-mpo 5858  df-pnf 7956  df-mnf 7957  df-xr 7958  df-ltxr 7959  df-le 7960  df-sub 8092  df-neg 8093  df-inn 8879  df-n0 9136  df-z 9213  df-uz 9488  df-fz 9966
This theorem is referenced by:  fseq1m1p1  10051
  Copyright terms: Public domain W3C validator