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

Theorem seq3f1olemstep 10436
Description: Lemma for seq3f1o 10439. Given a permutation which is constant up to a point, supply a new one which is constant for one more position. (Contributed by Jim Kingdon, 19-Aug-2022.)
Hypotheses
Ref Expression
iseqf1o.1 ((𝜑 ∧ (𝑥𝑆𝑦𝑆)) → (𝑥 + 𝑦) ∈ 𝑆)
iseqf1o.2 ((𝜑 ∧ (𝑥𝑆𝑦𝑆)) → (𝑥 + 𝑦) = (𝑦 + 𝑥))
iseqf1o.3 ((𝜑 ∧ (𝑥𝑆𝑦𝑆𝑧𝑆)) → ((𝑥 + 𝑦) + 𝑧) = (𝑥 + (𝑦 + 𝑧)))
iseqf1o.4 (𝜑𝑁 ∈ (ℤ𝑀))
iseqf1o.6 (𝜑𝐹:(𝑀...𝑁)–1-1-onto→(𝑀...𝑁))
iseqf1o.7 ((𝜑𝑥 ∈ (ℤ𝑀)) → (𝐺𝑥) ∈ 𝑆)
iseqf1olemstep.k (𝜑𝐾 ∈ (𝑀...𝑁))
iseqf1olemstep.j (𝜑𝐽:(𝑀...𝑁)–1-1-onto→(𝑀...𝑁))
iseqf1olemstep.const (𝜑 → ∀𝑥 ∈ (𝑀..^𝐾)(𝐽𝑥) = 𝑥)
seq3f1olemstep.jp (𝜑 → (seq𝑀( + , 𝐽 / 𝑓𝑃)‘𝑁) = (seq𝑀( + , 𝐿)‘𝑁))
seq3f1olemstep.p 𝑃 = (𝑥 ∈ (ℤ𝑀) ↦ if(𝑥𝑁, (𝐺‘(𝑓𝑥)), (𝐺𝑀)))
Assertion
Ref Expression
seq3f1olemstep (𝜑 → ∃𝑓(𝑓:(𝑀...𝑁)–1-1-onto→(𝑀...𝑁) ∧ ∀𝑥 ∈ (𝑀...𝐾)(𝑓𝑥) = 𝑥 ∧ (seq𝑀( + , 𝑃)‘𝑁) = (seq𝑀( + , 𝐿)‘𝑁)))
Distinct variable groups:   + ,𝑓,𝑥,𝑦,𝑧   𝑓,𝐽,𝑥,𝑦,𝑧   𝑓,𝐾,𝑥,𝑦,𝑧   𝑓,𝐿   𝑓,𝑀,𝑥,𝑦,𝑧   𝑓,𝑁,𝑥,𝑦,𝑧   𝑆,𝑓,𝑥,𝑦,𝑧   𝜑,𝑥,𝑦,𝑧   𝑥,𝑃,𝑦,𝑧   𝑓,𝐺,𝑥
Allowed substitution hints:   𝜑(𝑓)   𝑃(𝑓)   𝐹(𝑥,𝑦,𝑧,𝑓)   𝐺(𝑦,𝑧)   𝐿(𝑥,𝑦,𝑧)

Proof of Theorem seq3f1olemstep
Dummy variable 𝑢 is distinct from all other variables.
StepHypRef Expression
1 iseqf1olemstep.j . . . . . 6 (𝜑𝐽:(𝑀...𝑁)–1-1-onto→(𝑀...𝑁))
2 f1of 5432 . . . . . 6 (𝐽:(𝑀...𝑁)–1-1-onto→(𝑀...𝑁) → 𝐽:(𝑀...𝑁)⟶(𝑀...𝑁))
31, 2syl 14 . . . . 5 (𝜑𝐽:(𝑀...𝑁)⟶(𝑀...𝑁))
4 iseqf1olemstep.k . . . . . . 7 (𝜑𝐾 ∈ (𝑀...𝑁))
5 elfzel1 9959 . . . . . . 7 (𝐾 ∈ (𝑀...𝑁) → 𝑀 ∈ ℤ)
64, 5syl 14 . . . . . 6 (𝜑𝑀 ∈ ℤ)
7 elfzel2 9958 . . . . . . 7 (𝐾 ∈ (𝑀...𝑁) → 𝑁 ∈ ℤ)
84, 7syl 14 . . . . . 6 (𝜑𝑁 ∈ ℤ)
96, 8fzfigd 10366 . . . . 5 (𝜑 → (𝑀...𝑁) ∈ Fin)
10 fex 5714 . . . . 5 ((𝐽:(𝑀...𝑁)⟶(𝑀...𝑁) ∧ (𝑀...𝑁) ∈ Fin) → 𝐽 ∈ V)
113, 9, 10syl2anc 409 . . . 4 (𝜑𝐽 ∈ V)
1211adantr 274 . . 3 ((𝜑𝐾 = (𝐽𝐾)) → 𝐽 ∈ V)
131adantr 274 . . . 4 ((𝜑𝐾 = (𝐽𝐾)) → 𝐽:(𝑀...𝑁)–1-1-onto→(𝑀...𝑁))
14 iseqf1olemstep.const . . . . . . 7 (𝜑 → ∀𝑥 ∈ (𝑀..^𝐾)(𝐽𝑥) = 𝑥)
1514adantr 274 . . . . . 6 ((𝜑𝐾 = (𝐽𝐾)) → ∀𝑥 ∈ (𝑀..^𝐾)(𝐽𝑥) = 𝑥)
16 eqcom 2167 . . . . . . . . . 10 (𝐾 = (𝐽𝐾) ↔ (𝐽𝐾) = 𝐾)
1716biimpi 119 . . . . . . . . 9 (𝐾 = (𝐽𝐾) → (𝐽𝐾) = 𝐾)
1817adantl 275 . . . . . . . 8 ((𝜑𝐾 = (𝐽𝐾)) → (𝐽𝐾) = 𝐾)
19 f1ocnvfvb 5748 . . . . . . . . . 10 ((𝐽:(𝑀...𝑁)–1-1-onto→(𝑀...𝑁) ∧ 𝐾 ∈ (𝑀...𝑁) ∧ 𝐾 ∈ (𝑀...𝑁)) → ((𝐽𝐾) = 𝐾 ↔ (𝐽𝐾) = 𝐾))
201, 4, 4, 19syl3anc 1228 . . . . . . . . 9 (𝜑 → ((𝐽𝐾) = 𝐾 ↔ (𝐽𝐾) = 𝐾))
2120adantr 274 . . . . . . . 8 ((𝜑𝐾 = (𝐽𝐾)) → ((𝐽𝐾) = 𝐾 ↔ (𝐽𝐾) = 𝐾))
2218, 21mpbird 166 . . . . . . 7 ((𝜑𝐾 = (𝐽𝐾)) → (𝐽𝐾) = 𝐾)
23 elfzelz 9960 . . . . . . . . . 10 (𝐾 ∈ (𝑀...𝑁) → 𝐾 ∈ ℤ)
244, 23syl 14 . . . . . . . . 9 (𝜑𝐾 ∈ ℤ)
2524adantr 274 . . . . . . . 8 ((𝜑𝐾 = (𝐽𝐾)) → 𝐾 ∈ ℤ)
26 fveq2 5486 . . . . . . . . . 10 (𝑥 = 𝐾 → (𝐽𝑥) = (𝐽𝐾))
27 id 19 . . . . . . . . . 10 (𝑥 = 𝐾𝑥 = 𝐾)
2826, 27eqeq12d 2180 . . . . . . . . 9 (𝑥 = 𝐾 → ((𝐽𝑥) = 𝑥 ↔ (𝐽𝐾) = 𝐾))
2928ralsng 3616 . . . . . . . 8 (𝐾 ∈ ℤ → (∀𝑥 ∈ {𝐾} (𝐽𝑥) = 𝑥 ↔ (𝐽𝐾) = 𝐾))
3025, 29syl 14 . . . . . . 7 ((𝜑𝐾 = (𝐽𝐾)) → (∀𝑥 ∈ {𝐾} (𝐽𝑥) = 𝑥 ↔ (𝐽𝐾) = 𝐾))
3122, 30mpbird 166 . . . . . 6 ((𝜑𝐾 = (𝐽𝐾)) → ∀𝑥 ∈ {𝐾} (𝐽𝑥) = 𝑥)
32 ralun 3304 . . . . . 6 ((∀𝑥 ∈ (𝑀..^𝐾)(𝐽𝑥) = 𝑥 ∧ ∀𝑥 ∈ {𝐾} (𝐽𝑥) = 𝑥) → ∀𝑥 ∈ ((𝑀..^𝐾) ∪ {𝐾})(𝐽𝑥) = 𝑥)
3315, 31, 32syl2anc 409 . . . . 5 ((𝜑𝐾 = (𝐽𝐾)) → ∀𝑥 ∈ ((𝑀..^𝐾) ∪ {𝐾})(𝐽𝑥) = 𝑥)
34 elfzuz 9956 . . . . . . . 8 (𝐾 ∈ (𝑀...𝑁) → 𝐾 ∈ (ℤ𝑀))
35 fzisfzounsn 10171 . . . . . . . 8 (𝐾 ∈ (ℤ𝑀) → (𝑀...𝐾) = ((𝑀..^𝐾) ∪ {𝐾}))
364, 34, 353syl 17 . . . . . . 7 (𝜑 → (𝑀...𝐾) = ((𝑀..^𝐾) ∪ {𝐾}))
3736raleqdv 2667 . . . . . 6 (𝜑 → (∀𝑥 ∈ (𝑀...𝐾)(𝐽𝑥) = 𝑥 ↔ ∀𝑥 ∈ ((𝑀..^𝐾) ∪ {𝐾})(𝐽𝑥) = 𝑥))
3837adantr 274 . . . . 5 ((𝜑𝐾 = (𝐽𝐾)) → (∀𝑥 ∈ (𝑀...𝐾)(𝐽𝑥) = 𝑥 ↔ ∀𝑥 ∈ ((𝑀..^𝐾) ∪ {𝐾})(𝐽𝑥) = 𝑥))
3933, 38mpbird 166 . . . 4 ((𝜑𝐾 = (𝐽𝐾)) → ∀𝑥 ∈ (𝑀...𝐾)(𝐽𝑥) = 𝑥)
40 seq3f1olemstep.jp . . . . 5 (𝜑 → (seq𝑀( + , 𝐽 / 𝑓𝑃)‘𝑁) = (seq𝑀( + , 𝐿)‘𝑁))
4140adantr 274 . . . 4 ((𝜑𝐾 = (𝐽𝐾)) → (seq𝑀( + , 𝐽 / 𝑓𝑃)‘𝑁) = (seq𝑀( + , 𝐿)‘𝑁))
4213, 39, 413jca 1167 . . 3 ((𝜑𝐾 = (𝐽𝐾)) → (𝐽:(𝑀...𝑁)–1-1-onto→(𝑀...𝑁) ∧ ∀𝑥 ∈ (𝑀...𝐾)(𝐽𝑥) = 𝑥 ∧ (seq𝑀( + , 𝐽 / 𝑓𝑃)‘𝑁) = (seq𝑀( + , 𝐿)‘𝑁)))
43 nfcv 2308 . . . 4 𝑓𝐽
44 nfv 1516 . . . . 5 𝑓 𝐽:(𝑀...𝑁)–1-1-onto→(𝑀...𝑁)
45 nfv 1516 . . . . 5 𝑓𝑥 ∈ (𝑀...𝐾)(𝐽𝑥) = 𝑥
46 nfcv 2308 . . . . . . . 8 𝑓𝑀
47 nfcv 2308 . . . . . . . 8 𝑓 +
48 nfcsb1v 3078 . . . . . . . 8 𝑓𝐽 / 𝑓𝑃
4946, 47, 48nfseq 10390 . . . . . . 7 𝑓seq𝑀( + , 𝐽 / 𝑓𝑃)
50 nfcv 2308 . . . . . . 7 𝑓𝑁
5149, 50nffv 5496 . . . . . 6 𝑓(seq𝑀( + , 𝐽 / 𝑓𝑃)‘𝑁)
5251nfeq1 2318 . . . . 5 𝑓(seq𝑀( + , 𝐽 / 𝑓𝑃)‘𝑁) = (seq𝑀( + , 𝐿)‘𝑁)
5344, 45, 52nf3an 1554 . . . 4 𝑓(𝐽:(𝑀...𝑁)–1-1-onto→(𝑀...𝑁) ∧ ∀𝑥 ∈ (𝑀...𝐾)(𝐽𝑥) = 𝑥 ∧ (seq𝑀( + , 𝐽 / 𝑓𝑃)‘𝑁) = (seq𝑀( + , 𝐿)‘𝑁))
54 f1oeq1 5421 . . . . 5 (𝑓 = 𝐽 → (𝑓:(𝑀...𝑁)–1-1-onto→(𝑀...𝑁) ↔ 𝐽:(𝑀...𝑁)–1-1-onto→(𝑀...𝑁)))
55 fveq1 5485 . . . . . . 7 (𝑓 = 𝐽 → (𝑓𝑥) = (𝐽𝑥))
5655eqeq1d 2174 . . . . . 6 (𝑓 = 𝐽 → ((𝑓𝑥) = 𝑥 ↔ (𝐽𝑥) = 𝑥))
5756ralbidv 2466 . . . . 5 (𝑓 = 𝐽 → (∀𝑥 ∈ (𝑀...𝐾)(𝑓𝑥) = 𝑥 ↔ ∀𝑥 ∈ (𝑀...𝐾)(𝐽𝑥) = 𝑥))
58 csbeq1a 3054 . . . . . . . 8 (𝑓 = 𝐽𝑃 = 𝐽 / 𝑓𝑃)
5958seqeq3d 10388 . . . . . . 7 (𝑓 = 𝐽 → seq𝑀( + , 𝑃) = seq𝑀( + , 𝐽 / 𝑓𝑃))
6059fveq1d 5488 . . . . . 6 (𝑓 = 𝐽 → (seq𝑀( + , 𝑃)‘𝑁) = (seq𝑀( + , 𝐽 / 𝑓𝑃)‘𝑁))
6160eqeq1d 2174 . . . . 5 (𝑓 = 𝐽 → ((seq𝑀( + , 𝑃)‘𝑁) = (seq𝑀( + , 𝐿)‘𝑁) ↔ (seq𝑀( + , 𝐽 / 𝑓𝑃)‘𝑁) = (seq𝑀( + , 𝐿)‘𝑁)))
6254, 57, 613anbi123d 1302 . . . 4 (𝑓 = 𝐽 → ((𝑓:(𝑀...𝑁)–1-1-onto→(𝑀...𝑁) ∧ ∀𝑥 ∈ (𝑀...𝐾)(𝑓𝑥) = 𝑥 ∧ (seq𝑀( + , 𝑃)‘𝑁) = (seq𝑀( + , 𝐿)‘𝑁)) ↔ (𝐽:(𝑀...𝑁)–1-1-onto→(𝑀...𝑁) ∧ ∀𝑥 ∈ (𝑀...𝐾)(𝐽𝑥) = 𝑥 ∧ (seq𝑀( + , 𝐽 / 𝑓𝑃)‘𝑁) = (seq𝑀( + , 𝐿)‘𝑁))))
6343, 53, 62spcegf 2809 . . 3 (𝐽 ∈ V → ((𝐽:(𝑀...𝑁)–1-1-onto→(𝑀...𝑁) ∧ ∀𝑥 ∈ (𝑀...𝐾)(𝐽𝑥) = 𝑥 ∧ (seq𝑀( + , 𝐽 / 𝑓𝑃)‘𝑁) = (seq𝑀( + , 𝐿)‘𝑁)) → ∃𝑓(𝑓:(𝑀...𝑁)–1-1-onto→(𝑀...𝑁) ∧ ∀𝑥 ∈ (𝑀...𝐾)(𝑓𝑥) = 𝑥 ∧ (seq𝑀( + , 𝑃)‘𝑁) = (seq𝑀( + , 𝐿)‘𝑁))))
6412, 42, 63sylc 62 . 2 ((𝜑𝐾 = (𝐽𝐾)) → ∃𝑓(𝑓:(𝑀...𝑁)–1-1-onto→(𝑀...𝑁) ∧ ∀𝑥 ∈ (𝑀...𝐾)(𝑓𝑥) = 𝑥 ∧ (seq𝑀( + , 𝑃)‘𝑁) = (seq𝑀( + , 𝐿)‘𝑁)))
654adantr 274 . . . 4 ((𝜑 ∧ ¬ 𝐾 = (𝐽𝐾)) → 𝐾 ∈ (𝑀...𝑁))
661adantr 274 . . . 4 ((𝜑 ∧ ¬ 𝐾 = (𝐽𝐾)) → 𝐽:(𝑀...𝑁)–1-1-onto→(𝑀...𝑁))
67 eqid 2165 . . . 4 (𝑢 ∈ (𝑀...𝑁) ↦ if(𝑢 ∈ (𝐾...(𝐽𝐾)), if(𝑢 = 𝐾, 𝐾, (𝐽‘(𝑢 − 1))), (𝐽𝑢))) = (𝑢 ∈ (𝑀...𝑁) ↦ if(𝑢 ∈ (𝐾...(𝐽𝐾)), if(𝑢 = 𝐾, 𝐾, (𝐽‘(𝑢 − 1))), (𝐽𝑢)))
6865, 66, 67iseqf1olemqf1o 10428 . . 3 ((𝜑 ∧ ¬ 𝐾 = (𝐽𝐾)) → (𝑢 ∈ (𝑀...𝑁) ↦ if(𝑢 ∈ (𝐾...(𝐽𝐾)), if(𝑢 = 𝐾, 𝐾, (𝐽‘(𝑢 − 1))), (𝐽𝑢))):(𝑀...𝑁)–1-1-onto→(𝑀...𝑁))
6914adantr 274 . . . 4 ((𝜑 ∧ ¬ 𝐾 = (𝐽𝐾)) → ∀𝑥 ∈ (𝑀..^𝐾)(𝐽𝑥) = 𝑥)
7065, 66, 67, 69iseqf1olemqk 10429 . . 3 ((𝜑 ∧ ¬ 𝐾 = (𝐽𝐾)) → ∀𝑥 ∈ (𝑀...𝐾)((𝑢 ∈ (𝑀...𝑁) ↦ if(𝑢 ∈ (𝐾...(𝐽𝐾)), if(𝑢 = 𝐾, 𝐾, (𝐽‘(𝑢 − 1))), (𝐽𝑢)))‘𝑥) = 𝑥)
71 iseqf1o.1 . . . . . 6 ((𝜑 ∧ (𝑥𝑆𝑦𝑆)) → (𝑥 + 𝑦) ∈ 𝑆)
7271adantlr 469 . . . . 5 (((𝜑 ∧ ¬ 𝐾 = (𝐽𝐾)) ∧ (𝑥𝑆𝑦𝑆)) → (𝑥 + 𝑦) ∈ 𝑆)
73 iseqf1o.2 . . . . . 6 ((𝜑 ∧ (𝑥𝑆𝑦𝑆)) → (𝑥 + 𝑦) = (𝑦 + 𝑥))
7473adantlr 469 . . . . 5 (((𝜑 ∧ ¬ 𝐾 = (𝐽𝐾)) ∧ (𝑥𝑆𝑦𝑆)) → (𝑥 + 𝑦) = (𝑦 + 𝑥))
75 iseqf1o.3 . . . . . 6 ((𝜑 ∧ (𝑥𝑆𝑦𝑆𝑧𝑆)) → ((𝑥 + 𝑦) + 𝑧) = (𝑥 + (𝑦 + 𝑧)))
7675adantlr 469 . . . . 5 (((𝜑 ∧ ¬ 𝐾 = (𝐽𝐾)) ∧ (𝑥𝑆𝑦𝑆𝑧𝑆)) → ((𝑥 + 𝑦) + 𝑧) = (𝑥 + (𝑦 + 𝑧)))
77 iseqf1o.4 . . . . . 6 (𝜑𝑁 ∈ (ℤ𝑀))
7877adantr 274 . . . . 5 ((𝜑 ∧ ¬ 𝐾 = (𝐽𝐾)) → 𝑁 ∈ (ℤ𝑀))
79 iseqf1o.6 . . . . . 6 (𝜑𝐹:(𝑀...𝑁)–1-1-onto→(𝑀...𝑁))
8079adantr 274 . . . . 5 ((𝜑 ∧ ¬ 𝐾 = (𝐽𝐾)) → 𝐹:(𝑀...𝑁)–1-1-onto→(𝑀...𝑁))
81 iseqf1o.7 . . . . . 6 ((𝜑𝑥 ∈ (ℤ𝑀)) → (𝐺𝑥) ∈ 𝑆)
8281adantlr 469 . . . . 5 (((𝜑 ∧ ¬ 𝐾 = (𝐽𝐾)) ∧ 𝑥 ∈ (ℤ𝑀)) → (𝐺𝑥) ∈ 𝑆)
83 neqne 2344 . . . . . 6 𝐾 = (𝐽𝐾) → 𝐾 ≠ (𝐽𝐾))
8483adantl 275 . . . . 5 ((𝜑 ∧ ¬ 𝐾 = (𝐽𝐾)) → 𝐾 ≠ (𝐽𝐾))
85 seq3f1olemstep.p . . . . 5 𝑃 = (𝑥 ∈ (ℤ𝑀) ↦ if(𝑥𝑁, (𝐺‘(𝑓𝑥)), (𝐺𝑀)))
8672, 74, 76, 78, 80, 82, 65, 66, 69, 84, 67, 85seq3f1olemqsum 10435 . . . 4 ((𝜑 ∧ ¬ 𝐾 = (𝐽𝐾)) → (seq𝑀( + , 𝐽 / 𝑓𝑃)‘𝑁) = (seq𝑀( + , (𝑢 ∈ (𝑀...𝑁) ↦ if(𝑢 ∈ (𝐾...(𝐽𝐾)), if(𝑢 = 𝐾, 𝐾, (𝐽‘(𝑢 − 1))), (𝐽𝑢))) / 𝑓𝑃)‘𝑁))
8740adantr 274 . . . 4 ((𝜑 ∧ ¬ 𝐾 = (𝐽𝐾)) → (seq𝑀( + , 𝐽 / 𝑓𝑃)‘𝑁) = (seq𝑀( + , 𝐿)‘𝑁))
8886, 87eqtr3d 2200 . . 3 ((𝜑 ∧ ¬ 𝐾 = (𝐽𝐾)) → (seq𝑀( + , (𝑢 ∈ (𝑀...𝑁) ↦ if(𝑢 ∈ (𝐾...(𝐽𝐾)), if(𝑢 = 𝐾, 𝐾, (𝐽‘(𝑢 − 1))), (𝐽𝑢))) / 𝑓𝑃)‘𝑁) = (seq𝑀( + , 𝐿)‘𝑁))
8965, 5syl 14 . . . . 5 ((𝜑 ∧ ¬ 𝐾 = (𝐽𝐾)) → 𝑀 ∈ ℤ)
9065, 7syl 14 . . . . 5 ((𝜑 ∧ ¬ 𝐾 = (𝐽𝐾)) → 𝑁 ∈ ℤ)
9189, 90fzfigd 10366 . . . 4 ((𝜑 ∧ ¬ 𝐾 = (𝐽𝐾)) → (𝑀...𝑁) ∈ Fin)
92 mptexg 5710 . . . 4 ((𝑀...𝑁) ∈ Fin → (𝑢 ∈ (𝑀...𝑁) ↦ if(𝑢 ∈ (𝐾...(𝐽𝐾)), if(𝑢 = 𝐾, 𝐾, (𝐽‘(𝑢 − 1))), (𝐽𝑢))) ∈ V)
93 nfcv 2308 . . . . 5 𝑓(𝑢 ∈ (𝑀...𝑁) ↦ if(𝑢 ∈ (𝐾...(𝐽𝐾)), if(𝑢 = 𝐾, 𝐾, (𝐽‘(𝑢 − 1))), (𝐽𝑢)))
94 nfv 1516 . . . . . 6 𝑓(𝑢 ∈ (𝑀...𝑁) ↦ if(𝑢 ∈ (𝐾...(𝐽𝐾)), if(𝑢 = 𝐾, 𝐾, (𝐽‘(𝑢 − 1))), (𝐽𝑢))):(𝑀...𝑁)–1-1-onto→(𝑀...𝑁)
95 nfv 1516 . . . . . 6 𝑓𝑥 ∈ (𝑀...𝐾)((𝑢 ∈ (𝑀...𝑁) ↦ if(𝑢 ∈ (𝐾...(𝐽𝐾)), if(𝑢 = 𝐾, 𝐾, (𝐽‘(𝑢 − 1))), (𝐽𝑢)))‘𝑥) = 𝑥
96 nfcsb1v 3078 . . . . . . . . 9 𝑓(𝑢 ∈ (𝑀...𝑁) ↦ if(𝑢 ∈ (𝐾...(𝐽𝐾)), if(𝑢 = 𝐾, 𝐾, (𝐽‘(𝑢 − 1))), (𝐽𝑢))) / 𝑓𝑃
9746, 47, 96nfseq 10390 . . . . . . . 8 𝑓seq𝑀( + , (𝑢 ∈ (𝑀...𝑁) ↦ if(𝑢 ∈ (𝐾...(𝐽𝐾)), if(𝑢 = 𝐾, 𝐾, (𝐽‘(𝑢 − 1))), (𝐽𝑢))) / 𝑓𝑃)
9897, 50nffv 5496 . . . . . . 7 𝑓(seq𝑀( + , (𝑢 ∈ (𝑀...𝑁) ↦ if(𝑢 ∈ (𝐾...(𝐽𝐾)), if(𝑢 = 𝐾, 𝐾, (𝐽‘(𝑢 − 1))), (𝐽𝑢))) / 𝑓𝑃)‘𝑁)
9998nfeq1 2318 . . . . . 6 𝑓(seq𝑀( + , (𝑢 ∈ (𝑀...𝑁) ↦ if(𝑢 ∈ (𝐾...(𝐽𝐾)), if(𝑢 = 𝐾, 𝐾, (𝐽‘(𝑢 − 1))), (𝐽𝑢))) / 𝑓𝑃)‘𝑁) = (seq𝑀( + , 𝐿)‘𝑁)
10094, 95, 99nf3an 1554 . . . . 5 𝑓((𝑢 ∈ (𝑀...𝑁) ↦ if(𝑢 ∈ (𝐾...(𝐽𝐾)), if(𝑢 = 𝐾, 𝐾, (𝐽‘(𝑢 − 1))), (𝐽𝑢))):(𝑀...𝑁)–1-1-onto→(𝑀...𝑁) ∧ ∀𝑥 ∈ (𝑀...𝐾)((𝑢 ∈ (𝑀...𝑁) ↦ if(𝑢 ∈ (𝐾...(𝐽𝐾)), if(𝑢 = 𝐾, 𝐾, (𝐽‘(𝑢 − 1))), (𝐽𝑢)))‘𝑥) = 𝑥 ∧ (seq𝑀( + , (𝑢 ∈ (𝑀...𝑁) ↦ if(𝑢 ∈ (𝐾...(𝐽𝐾)), if(𝑢 = 𝐾, 𝐾, (𝐽‘(𝑢 − 1))), (𝐽𝑢))) / 𝑓𝑃)‘𝑁) = (seq𝑀( + , 𝐿)‘𝑁))
101 f1oeq1 5421 . . . . . 6 (𝑓 = (𝑢 ∈ (𝑀...𝑁) ↦ if(𝑢 ∈ (𝐾...(𝐽𝐾)), if(𝑢 = 𝐾, 𝐾, (𝐽‘(𝑢 − 1))), (𝐽𝑢))) → (𝑓:(𝑀...𝑁)–1-1-onto→(𝑀...𝑁) ↔ (𝑢 ∈ (𝑀...𝑁) ↦ if(𝑢 ∈ (𝐾...(𝐽𝐾)), if(𝑢 = 𝐾, 𝐾, (𝐽‘(𝑢 − 1))), (𝐽𝑢))):(𝑀...𝑁)–1-1-onto→(𝑀...𝑁)))
102 fveq1 5485 . . . . . . . 8 (𝑓 = (𝑢 ∈ (𝑀...𝑁) ↦ if(𝑢 ∈ (𝐾...(𝐽𝐾)), if(𝑢 = 𝐾, 𝐾, (𝐽‘(𝑢 − 1))), (𝐽𝑢))) → (𝑓𝑥) = ((𝑢 ∈ (𝑀...𝑁) ↦ if(𝑢 ∈ (𝐾...(𝐽𝐾)), if(𝑢 = 𝐾, 𝐾, (𝐽‘(𝑢 − 1))), (𝐽𝑢)))‘𝑥))
103102eqeq1d 2174 . . . . . . 7 (𝑓 = (𝑢 ∈ (𝑀...𝑁) ↦ if(𝑢 ∈ (𝐾...(𝐽𝐾)), if(𝑢 = 𝐾, 𝐾, (𝐽‘(𝑢 − 1))), (𝐽𝑢))) → ((𝑓𝑥) = 𝑥 ↔ ((𝑢 ∈ (𝑀...𝑁) ↦ if(𝑢 ∈ (𝐾...(𝐽𝐾)), if(𝑢 = 𝐾, 𝐾, (𝐽‘(𝑢 − 1))), (𝐽𝑢)))‘𝑥) = 𝑥))
104103ralbidv 2466 . . . . . 6 (𝑓 = (𝑢 ∈ (𝑀...𝑁) ↦ if(𝑢 ∈ (𝐾...(𝐽𝐾)), if(𝑢 = 𝐾, 𝐾, (𝐽‘(𝑢 − 1))), (𝐽𝑢))) → (∀𝑥 ∈ (𝑀...𝐾)(𝑓𝑥) = 𝑥 ↔ ∀𝑥 ∈ (𝑀...𝐾)((𝑢 ∈ (𝑀...𝑁) ↦ if(𝑢 ∈ (𝐾...(𝐽𝐾)), if(𝑢 = 𝐾, 𝐾, (𝐽‘(𝑢 − 1))), (𝐽𝑢)))‘𝑥) = 𝑥))
105 csbeq1a 3054 . . . . . . . . 9 (𝑓 = (𝑢 ∈ (𝑀...𝑁) ↦ if(𝑢 ∈ (𝐾...(𝐽𝐾)), if(𝑢 = 𝐾, 𝐾, (𝐽‘(𝑢 − 1))), (𝐽𝑢))) → 𝑃 = (𝑢 ∈ (𝑀...𝑁) ↦ if(𝑢 ∈ (𝐾...(𝐽𝐾)), if(𝑢 = 𝐾, 𝐾, (𝐽‘(𝑢 − 1))), (𝐽𝑢))) / 𝑓𝑃)
106105seqeq3d 10388 . . . . . . . 8 (𝑓 = (𝑢 ∈ (𝑀...𝑁) ↦ if(𝑢 ∈ (𝐾...(𝐽𝐾)), if(𝑢 = 𝐾, 𝐾, (𝐽‘(𝑢 − 1))), (𝐽𝑢))) → seq𝑀( + , 𝑃) = seq𝑀( + , (𝑢 ∈ (𝑀...𝑁) ↦ if(𝑢 ∈ (𝐾...(𝐽𝐾)), if(𝑢 = 𝐾, 𝐾, (𝐽‘(𝑢 − 1))), (𝐽𝑢))) / 𝑓𝑃))
107106fveq1d 5488 . . . . . . 7 (𝑓 = (𝑢 ∈ (𝑀...𝑁) ↦ if(𝑢 ∈ (𝐾...(𝐽𝐾)), if(𝑢 = 𝐾, 𝐾, (𝐽‘(𝑢 − 1))), (𝐽𝑢))) → (seq𝑀( + , 𝑃)‘𝑁) = (seq𝑀( + , (𝑢 ∈ (𝑀...𝑁) ↦ if(𝑢 ∈ (𝐾...(𝐽𝐾)), if(𝑢 = 𝐾, 𝐾, (𝐽‘(𝑢 − 1))), (𝐽𝑢))) / 𝑓𝑃)‘𝑁))
108107eqeq1d 2174 . . . . . 6 (𝑓 = (𝑢 ∈ (𝑀...𝑁) ↦ if(𝑢 ∈ (𝐾...(𝐽𝐾)), if(𝑢 = 𝐾, 𝐾, (𝐽‘(𝑢 − 1))), (𝐽𝑢))) → ((seq𝑀( + , 𝑃)‘𝑁) = (seq𝑀( + , 𝐿)‘𝑁) ↔ (seq𝑀( + , (𝑢 ∈ (𝑀...𝑁) ↦ if(𝑢 ∈ (𝐾...(𝐽𝐾)), if(𝑢 = 𝐾, 𝐾, (𝐽‘(𝑢 − 1))), (𝐽𝑢))) / 𝑓𝑃)‘𝑁) = (seq𝑀( + , 𝐿)‘𝑁)))
109101, 104, 1083anbi123d 1302 . . . . 5 (𝑓 = (𝑢 ∈ (𝑀...𝑁) ↦ if(𝑢 ∈ (𝐾...(𝐽𝐾)), if(𝑢 = 𝐾, 𝐾, (𝐽‘(𝑢 − 1))), (𝐽𝑢))) → ((𝑓:(𝑀...𝑁)–1-1-onto→(𝑀...𝑁) ∧ ∀𝑥 ∈ (𝑀...𝐾)(𝑓𝑥) = 𝑥 ∧ (seq𝑀( + , 𝑃)‘𝑁) = (seq𝑀( + , 𝐿)‘𝑁)) ↔ ((𝑢 ∈ (𝑀...𝑁) ↦ if(𝑢 ∈ (𝐾...(𝐽𝐾)), if(𝑢 = 𝐾, 𝐾, (𝐽‘(𝑢 − 1))), (𝐽𝑢))):(𝑀...𝑁)–1-1-onto→(𝑀...𝑁) ∧ ∀𝑥 ∈ (𝑀...𝐾)((𝑢 ∈ (𝑀...𝑁) ↦ if(𝑢 ∈ (𝐾...(𝐽𝐾)), if(𝑢 = 𝐾, 𝐾, (𝐽‘(𝑢 − 1))), (𝐽𝑢)))‘𝑥) = 𝑥 ∧ (seq𝑀( + , (𝑢 ∈ (𝑀...𝑁) ↦ if(𝑢 ∈ (𝐾...(𝐽𝐾)), if(𝑢 = 𝐾, 𝐾, (𝐽‘(𝑢 − 1))), (𝐽𝑢))) / 𝑓𝑃)‘𝑁) = (seq𝑀( + , 𝐿)‘𝑁))))
11093, 100, 109spcegf 2809 . . . 4 ((𝑢 ∈ (𝑀...𝑁) ↦ if(𝑢 ∈ (𝐾...(𝐽𝐾)), if(𝑢 = 𝐾, 𝐾, (𝐽‘(𝑢 − 1))), (𝐽𝑢))) ∈ V → (((𝑢 ∈ (𝑀...𝑁) ↦ if(𝑢 ∈ (𝐾...(𝐽𝐾)), if(𝑢 = 𝐾, 𝐾, (𝐽‘(𝑢 − 1))), (𝐽𝑢))):(𝑀...𝑁)–1-1-onto→(𝑀...𝑁) ∧ ∀𝑥 ∈ (𝑀...𝐾)((𝑢 ∈ (𝑀...𝑁) ↦ if(𝑢 ∈ (𝐾...(𝐽𝐾)), if(𝑢 = 𝐾, 𝐾, (𝐽‘(𝑢 − 1))), (𝐽𝑢)))‘𝑥) = 𝑥 ∧ (seq𝑀( + , (𝑢 ∈ (𝑀...𝑁) ↦ if(𝑢 ∈ (𝐾...(𝐽𝐾)), if(𝑢 = 𝐾, 𝐾, (𝐽‘(𝑢 − 1))), (𝐽𝑢))) / 𝑓𝑃)‘𝑁) = (seq𝑀( + , 𝐿)‘𝑁)) → ∃𝑓(𝑓:(𝑀...𝑁)–1-1-onto→(𝑀...𝑁) ∧ ∀𝑥 ∈ (𝑀...𝐾)(𝑓𝑥) = 𝑥 ∧ (seq𝑀( + , 𝑃)‘𝑁) = (seq𝑀( + , 𝐿)‘𝑁))))
11191, 92, 1103syl 17 . . 3 ((𝜑 ∧ ¬ 𝐾 = (𝐽𝐾)) → (((𝑢 ∈ (𝑀...𝑁) ↦ if(𝑢 ∈ (𝐾...(𝐽𝐾)), if(𝑢 = 𝐾, 𝐾, (𝐽‘(𝑢 − 1))), (𝐽𝑢))):(𝑀...𝑁)–1-1-onto→(𝑀...𝑁) ∧ ∀𝑥 ∈ (𝑀...𝐾)((𝑢 ∈ (𝑀...𝑁) ↦ if(𝑢 ∈ (𝐾...(𝐽𝐾)), if(𝑢 = 𝐾, 𝐾, (𝐽‘(𝑢 − 1))), (𝐽𝑢)))‘𝑥) = 𝑥 ∧ (seq𝑀( + , (𝑢 ∈ (𝑀...𝑁) ↦ if(𝑢 ∈ (𝐾...(𝐽𝐾)), if(𝑢 = 𝐾, 𝐾, (𝐽‘(𝑢 − 1))), (𝐽𝑢))) / 𝑓𝑃)‘𝑁) = (seq𝑀( + , 𝐿)‘𝑁)) → ∃𝑓(𝑓:(𝑀...𝑁)–1-1-onto→(𝑀...𝑁) ∧ ∀𝑥 ∈ (𝑀...𝐾)(𝑓𝑥) = 𝑥 ∧ (seq𝑀( + , 𝑃)‘𝑁) = (seq𝑀( + , 𝐿)‘𝑁))))
11268, 70, 88, 111mp3and 1330 . 2 ((𝜑 ∧ ¬ 𝐾 = (𝐽𝐾)) → ∃𝑓(𝑓:(𝑀...𝑁)–1-1-onto→(𝑀...𝑁) ∧ ∀𝑥 ∈ (𝑀...𝐾)(𝑓𝑥) = 𝑥 ∧ (seq𝑀( + , 𝑃)‘𝑁) = (seq𝑀( + , 𝐿)‘𝑁)))
113 f1ocnv 5445 . . . . . . 7 (𝐽:(𝑀...𝑁)–1-1-onto→(𝑀...𝑁) → 𝐽:(𝑀...𝑁)–1-1-onto→(𝑀...𝑁))
114 f1of 5432 . . . . . . 7 (𝐽:(𝑀...𝑁)–1-1-onto→(𝑀...𝑁) → 𝐽:(𝑀...𝑁)⟶(𝑀...𝑁))
1151, 113, 1143syl 17 . . . . . 6 (𝜑𝐽:(𝑀...𝑁)⟶(𝑀...𝑁))
116115, 4ffvelrnd 5621 . . . . 5 (𝜑 → (𝐽𝐾) ∈ (𝑀...𝑁))
117 elfzelz 9960 . . . . 5 ((𝐽𝐾) ∈ (𝑀...𝑁) → (𝐽𝐾) ∈ ℤ)
118116, 117syl 14 . . . 4 (𝜑 → (𝐽𝐾) ∈ ℤ)
119 zdceq 9266 . . . 4 ((𝐾 ∈ ℤ ∧ (𝐽𝐾) ∈ ℤ) → DECID 𝐾 = (𝐽𝐾))
12024, 118, 119syl2anc 409 . . 3 (𝜑DECID 𝐾 = (𝐽𝐾))
121 exmiddc 826 . . 3 (DECID 𝐾 = (𝐽𝐾) → (𝐾 = (𝐽𝐾) ∨ ¬ 𝐾 = (𝐽𝐾)))
122120, 121syl 14 . 2 (𝜑 → (𝐾 = (𝐽𝐾) ∨ ¬ 𝐾 = (𝐽𝐾)))
12364, 112, 122mpjaodan 788 1 (𝜑 → ∃𝑓(𝑓:(𝑀...𝑁)–1-1-onto→(𝑀...𝑁) ∧ ∀𝑥 ∈ (𝑀...𝐾)(𝑓𝑥) = 𝑥 ∧ (seq𝑀( + , 𝑃)‘𝑁) = (seq𝑀( + , 𝐿)‘𝑁)))
Colors of variables: wff set class
Syntax hints:  ¬ wn 3  wi 4  wa 103  wb 104  wo 698  DECID wdc 824  w3a 968   = wceq 1343  wex 1480  wcel 2136  wne 2336  wral 2444  Vcvv 2726  csb 3045  cun 3114  ifcif 3520  {csn 3576   class class class wbr 3982  cmpt 4043  ccnv 4603  wf 5184  1-1-ontowf1o 5187  cfv 5188  (class class class)co 5842  Fincfn 6706  1c1 7754  cle 7934  cmin 8069  cz 9191  cuz 9466  ...cfz 9944  ..^cfzo 10077  seqcseq 10380
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 604  ax-in2 605  ax-io 699  ax-5 1435  ax-7 1436  ax-gen 1437  ax-ie1 1481  ax-ie2 1482  ax-8 1492  ax-10 1493  ax-11 1494  ax-i12 1495  ax-bndl 1497  ax-4 1498  ax-17 1514  ax-i9 1518  ax-ial 1522  ax-i5r 1523  ax-13 2138  ax-14 2139  ax-ext 2147  ax-coll 4097  ax-sep 4100  ax-nul 4108  ax-pow 4153  ax-pr 4187  ax-un 4411  ax-setind 4514  ax-iinf 4565  ax-cnex 7844  ax-resscn 7845  ax-1cn 7846  ax-1re 7847  ax-icn 7848  ax-addcl 7849  ax-addrcl 7850  ax-mulcl 7851  ax-addcom 7853  ax-addass 7855  ax-distr 7857  ax-i2m1 7858  ax-0lt1 7859  ax-0id 7861  ax-rnegex 7862  ax-cnre 7864  ax-pre-ltirr 7865  ax-pre-ltwlin 7866  ax-pre-lttrn 7867  ax-pre-apti 7868  ax-pre-ltadd 7869
This theorem depends on definitions:  df-bi 116  df-dc 825  df-3or 969  df-3an 970  df-tru 1346  df-fal 1349  df-nf 1449  df-sb 1751  df-eu 2017  df-mo 2018  df-clab 2152  df-cleq 2158  df-clel 2161  df-nfc 2297  df-ne 2337  df-nel 2432  df-ral 2449  df-rex 2450  df-reu 2451  df-rab 2453  df-v 2728  df-sbc 2952  df-csb 3046  df-dif 3118  df-un 3120  df-in 3122  df-ss 3129  df-nul 3410  df-if 3521  df-pw 3561  df-sn 3582  df-pr 3583  df-op 3585  df-uni 3790  df-int 3825  df-iun 3868  df-br 3983  df-opab 4044  df-mpt 4045  df-tr 4081  df-id 4271  df-iord 4344  df-on 4346  df-ilim 4347  df-suc 4349  df-iom 4568  df-xp 4610  df-rel 4611  df-cnv 4612  df-co 4613  df-dm 4614  df-rn 4615  df-res 4616  df-ima 4617  df-iota 5153  df-fun 5190  df-fn 5191  df-f 5192  df-f1 5193  df-fo 5194  df-f1o 5195  df-fv 5196  df-riota 5798  df-ov 5845  df-oprab 5846  df-mpo 5847  df-1st 6108  df-2nd 6109  df-recs 6273  df-frec 6359  df-1o 6384  df-er 6501  df-en 6707  df-fin 6709  df-pnf 7935  df-mnf 7936  df-xr 7937  df-ltxr 7938  df-le 7939  df-sub 8071  df-neg 8072  df-inn 8858  df-n0 9115  df-z 9192  df-uz 9467  df-fz 9945  df-fzo 10078  df-seqfrec 10381
This theorem is referenced by:  seq3f1olemp  10437
  Copyright terms: Public domain W3C validator