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

Theorem injresinj 12797
Description: A function whose restriction is injective and the values of the remaining arguments are different from all other values is injective itself. (Contributed by Alexander van der Vekens, 31-Oct-2017.)
Assertion
Ref Expression
injresinj (𝐾 ∈ ℕ0 → ((𝐹:(0...𝐾)⟶𝑉 ∧ Fun (𝐹 ↾ (1..^𝐾)) ∧ (𝐹‘0) ≠ (𝐹𝐾)) → (((𝐹 “ {0, 𝐾}) ∩ (𝐹 “ (1..^𝐾))) = ∅ → Fun 𝐹)))

Proof of Theorem injresinj
Dummy variables 𝑣 𝑤 𝑥 𝑦 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 fzo0ss1 12706 . . . . . . . . 9 (1..^𝐾) ⊆ (0..^𝐾)
2 fzossfz 12696 . . . . . . . . 9 (0..^𝐾) ⊆ (0...𝐾)
31, 2sstri 3770 . . . . . . . 8 (1..^𝐾) ⊆ (0...𝐾)
4 fssres 6252 . . . . . . . 8 ((𝐹:(0...𝐾)⟶𝑉 ∧ (1..^𝐾) ⊆ (0...𝐾)) → (𝐹 ↾ (1..^𝐾)):(1..^𝐾)⟶𝑉)
53, 4mpan2 682 . . . . . . 7 (𝐹:(0...𝐾)⟶𝑉 → (𝐹 ↾ (1..^𝐾)):(1..^𝐾)⟶𝑉)
65biantrud 527 . . . . . 6 (𝐹:(0...𝐾)⟶𝑉 → (Fun (𝐹 ↾ (1..^𝐾)) ↔ (Fun (𝐹 ↾ (1..^𝐾)) ∧ (𝐹 ↾ (1..^𝐾)):(1..^𝐾)⟶𝑉)))
7 ancom 452 . . . . . . 7 ((Fun (𝐹 ↾ (1..^𝐾)) ∧ (𝐹 ↾ (1..^𝐾)):(1..^𝐾)⟶𝑉) ↔ ((𝐹 ↾ (1..^𝐾)):(1..^𝐾)⟶𝑉 ∧ Fun (𝐹 ↾ (1..^𝐾))))
8 df-f1 6073 . . . . . . 7 ((𝐹 ↾ (1..^𝐾)):(1..^𝐾)–1-1𝑉 ↔ ((𝐹 ↾ (1..^𝐾)):(1..^𝐾)⟶𝑉 ∧ Fun (𝐹 ↾ (1..^𝐾))))
97, 8bitr4i 269 . . . . . 6 ((Fun (𝐹 ↾ (1..^𝐾)) ∧ (𝐹 ↾ (1..^𝐾)):(1..^𝐾)⟶𝑉) ↔ (𝐹 ↾ (1..^𝐾)):(1..^𝐾)–1-1𝑉)
106, 9syl6bb 278 . . . . 5 (𝐹:(0...𝐾)⟶𝑉 → (Fun (𝐹 ↾ (1..^𝐾)) ↔ (𝐹 ↾ (1..^𝐾)):(1..^𝐾)–1-1𝑉))
11 simp-4r 803 . . . . . . . . 9 ((((((𝐹 ↾ (1..^𝐾)):(1..^𝐾)–1-1𝑉𝐹:(0...𝐾)⟶𝑉) ∧ (𝐹‘0) ≠ (𝐹𝐾)) ∧ 𝐾 ∈ ℕ0) ∧ ((𝐹 “ {0, 𝐾}) ∩ (𝐹 “ (1..^𝐾))) = ∅) → 𝐹:(0...𝐾)⟶𝑉)
12 dff13 6704 . . . . . . . . . . . . . . 15 ((𝐹 ↾ (1..^𝐾)):(1..^𝐾)–1-1𝑉 ↔ ((𝐹 ↾ (1..^𝐾)):(1..^𝐾)⟶𝑉 ∧ ∀𝑣 ∈ (1..^𝐾)∀𝑤 ∈ (1..^𝐾)(((𝐹 ↾ (1..^𝐾))‘𝑣) = ((𝐹 ↾ (1..^𝐾))‘𝑤) → 𝑣 = 𝑤)))
13 fveqeq2 6384 . . . . . . . . . . . . . . . . . . . . . . . . 25 (𝑣 = 𝑥 → (((𝐹 ↾ (1..^𝐾))‘𝑣) = ((𝐹 ↾ (1..^𝐾))‘𝑤) ↔ ((𝐹 ↾ (1..^𝐾))‘𝑥) = ((𝐹 ↾ (1..^𝐾))‘𝑤)))
14 equequ1 2122 . . . . . . . . . . . . . . . . . . . . . . . . 25 (𝑣 = 𝑥 → (𝑣 = 𝑤𝑥 = 𝑤))
1513, 14imbi12d 335 . . . . . . . . . . . . . . . . . . . . . . . 24 (𝑣 = 𝑥 → ((((𝐹 ↾ (1..^𝐾))‘𝑣) = ((𝐹 ↾ (1..^𝐾))‘𝑤) → 𝑣 = 𝑤) ↔ (((𝐹 ↾ (1..^𝐾))‘𝑥) = ((𝐹 ↾ (1..^𝐾))‘𝑤) → 𝑥 = 𝑤)))
16 fveq2 6375 . . . . . . . . . . . . . . . . . . . . . . . . . 26 (𝑤 = 𝑦 → ((𝐹 ↾ (1..^𝐾))‘𝑤) = ((𝐹 ↾ (1..^𝐾))‘𝑦))
1716eqeq2d 2775 . . . . . . . . . . . . . . . . . . . . . . . . 25 (𝑤 = 𝑦 → (((𝐹 ↾ (1..^𝐾))‘𝑥) = ((𝐹 ↾ (1..^𝐾))‘𝑤) ↔ ((𝐹 ↾ (1..^𝐾))‘𝑥) = ((𝐹 ↾ (1..^𝐾))‘𝑦)))
18 equequ2 2123 . . . . . . . . . . . . . . . . . . . . . . . . 25 (𝑤 = 𝑦 → (𝑥 = 𝑤𝑥 = 𝑦))
1917, 18imbi12d 335 . . . . . . . . . . . . . . . . . . . . . . . 24 (𝑤 = 𝑦 → ((((𝐹 ↾ (1..^𝐾))‘𝑥) = ((𝐹 ↾ (1..^𝐾))‘𝑤) → 𝑥 = 𝑤) ↔ (((𝐹 ↾ (1..^𝐾))‘𝑥) = ((𝐹 ↾ (1..^𝐾))‘𝑦) → 𝑥 = 𝑦)))
2015, 19rspc2va 3475 . . . . . . . . . . . . . . . . . . . . . . 23 (((𝑥 ∈ (1..^𝐾) ∧ 𝑦 ∈ (1..^𝐾)) ∧ ∀𝑣 ∈ (1..^𝐾)∀𝑤 ∈ (1..^𝐾)(((𝐹 ↾ (1..^𝐾))‘𝑣) = ((𝐹 ↾ (1..^𝐾))‘𝑤) → 𝑣 = 𝑤)) → (((𝐹 ↾ (1..^𝐾))‘𝑥) = ((𝐹 ↾ (1..^𝐾))‘𝑦) → 𝑥 = 𝑦))
21 fvres 6394 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 (𝑥 ∈ (1..^𝐾) → ((𝐹 ↾ (1..^𝐾))‘𝑥) = (𝐹𝑥))
2221eqcomd 2771 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 (𝑥 ∈ (1..^𝐾) → (𝐹𝑥) = ((𝐹 ↾ (1..^𝐾))‘𝑥))
23 fvres 6394 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 (𝑦 ∈ (1..^𝐾) → ((𝐹 ↾ (1..^𝐾))‘𝑦) = (𝐹𝑦))
2423eqcomd 2771 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 (𝑦 ∈ (1..^𝐾) → (𝐹𝑦) = ((𝐹 ↾ (1..^𝐾))‘𝑦))
2522, 24eqeqan12d 2781 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 ((𝑥 ∈ (1..^𝐾) ∧ 𝑦 ∈ (1..^𝐾)) → ((𝐹𝑥) = (𝐹𝑦) ↔ ((𝐹 ↾ (1..^𝐾))‘𝑥) = ((𝐹 ↾ (1..^𝐾))‘𝑦)))
2625biimpd 220 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 ((𝑥 ∈ (1..^𝐾) ∧ 𝑦 ∈ (1..^𝐾)) → ((𝐹𝑥) = (𝐹𝑦) → ((𝐹 ↾ (1..^𝐾))‘𝑥) = ((𝐹 ↾ (1..^𝐾))‘𝑦)))
2726imim1d 82 . . . . . . . . . . . . . . . . . . . . . . . . . . 27 ((𝑥 ∈ (1..^𝐾) ∧ 𝑦 ∈ (1..^𝐾)) → ((((𝐹 ↾ (1..^𝐾))‘𝑥) = ((𝐹 ↾ (1..^𝐾))‘𝑦) → 𝑥 = 𝑦) → ((𝐹𝑥) = (𝐹𝑦) → 𝑥 = 𝑦)))
2827imp 395 . . . . . . . . . . . . . . . . . . . . . . . . . 26 (((𝑥 ∈ (1..^𝐾) ∧ 𝑦 ∈ (1..^𝐾)) ∧ (((𝐹 ↾ (1..^𝐾))‘𝑥) = ((𝐹 ↾ (1..^𝐾))‘𝑦) → 𝑥 = 𝑦)) → ((𝐹𝑥) = (𝐹𝑦) → 𝑥 = 𝑦))
29282a1d 26 . . . . . . . . . . . . . . . . . . . . . . . . 25 (((𝑥 ∈ (1..^𝐾) ∧ 𝑦 ∈ (1..^𝐾)) ∧ (((𝐹 ↾ (1..^𝐾))‘𝑥) = ((𝐹 ↾ (1..^𝐾))‘𝑦) → 𝑥 = 𝑦)) → (((𝐹 “ {0, 𝐾}) ∩ (𝐹 “ (1..^𝐾))) = ∅ → ((𝑥 ∈ (0...𝐾) ∧ 𝑦 ∈ (0...𝐾)) → ((𝐹𝑥) = (𝐹𝑦) → 𝑥 = 𝑦))))
30292a1d 26 . . . . . . . . . . . . . . . . . . . . . . . 24 (((𝑥 ∈ (1..^𝐾) ∧ 𝑦 ∈ (1..^𝐾)) ∧ (((𝐹 ↾ (1..^𝐾))‘𝑥) = ((𝐹 ↾ (1..^𝐾))‘𝑦) → 𝑥 = 𝑦)) → ((𝐹‘0) ≠ (𝐹𝐾) → ((𝐹:(0...𝐾)⟶𝑉𝐾 ∈ ℕ0) → (((𝐹 “ {0, 𝐾}) ∩ (𝐹 “ (1..^𝐾))) = ∅ → ((𝑥 ∈ (0...𝐾) ∧ 𝑦 ∈ (0...𝐾)) → ((𝐹𝑥) = (𝐹𝑦) → 𝑥 = 𝑦))))))
3130expcom 402 . . . . . . . . . . . . . . . . . . . . . . 23 ((((𝐹 ↾ (1..^𝐾))‘𝑥) = ((𝐹 ↾ (1..^𝐾))‘𝑦) → 𝑥 = 𝑦) → ((𝑥 ∈ (1..^𝐾) ∧ 𝑦 ∈ (1..^𝐾)) → ((𝐹‘0) ≠ (𝐹𝐾) → ((𝐹:(0...𝐾)⟶𝑉𝐾 ∈ ℕ0) → (((𝐹 “ {0, 𝐾}) ∩ (𝐹 “ (1..^𝐾))) = ∅ → ((𝑥 ∈ (0...𝐾) ∧ 𝑦 ∈ (0...𝐾)) → ((𝐹𝑥) = (𝐹𝑦) → 𝑥 = 𝑦)))))))
3220, 31syl 17 . . . . . . . . . . . . . . . . . . . . . 22 (((𝑥 ∈ (1..^𝐾) ∧ 𝑦 ∈ (1..^𝐾)) ∧ ∀𝑣 ∈ (1..^𝐾)∀𝑤 ∈ (1..^𝐾)(((𝐹 ↾ (1..^𝐾))‘𝑣) = ((𝐹 ↾ (1..^𝐾))‘𝑤) → 𝑣 = 𝑤)) → ((𝑥 ∈ (1..^𝐾) ∧ 𝑦 ∈ (1..^𝐾)) → ((𝐹‘0) ≠ (𝐹𝐾) → ((𝐹:(0...𝐾)⟶𝑉𝐾 ∈ ℕ0) → (((𝐹 “ {0, 𝐾}) ∩ (𝐹 “ (1..^𝐾))) = ∅ → ((𝑥 ∈ (0...𝐾) ∧ 𝑦 ∈ (0...𝐾)) → ((𝐹𝑥) = (𝐹𝑦) → 𝑥 = 𝑦)))))))
3332ex 401 . . . . . . . . . . . . . . . . . . . . 21 ((𝑥 ∈ (1..^𝐾) ∧ 𝑦 ∈ (1..^𝐾)) → (∀𝑣 ∈ (1..^𝐾)∀𝑤 ∈ (1..^𝐾)(((𝐹 ↾ (1..^𝐾))‘𝑣) = ((𝐹 ↾ (1..^𝐾))‘𝑤) → 𝑣 = 𝑤) → ((𝑥 ∈ (1..^𝐾) ∧ 𝑦 ∈ (1..^𝐾)) → ((𝐹‘0) ≠ (𝐹𝐾) → ((𝐹:(0...𝐾)⟶𝑉𝐾 ∈ ℕ0) → (((𝐹 “ {0, 𝐾}) ∩ (𝐹 “ (1..^𝐾))) = ∅ → ((𝑥 ∈ (0...𝐾) ∧ 𝑦 ∈ (0...𝐾)) → ((𝐹𝑥) = (𝐹𝑦) → 𝑥 = 𝑦))))))))
3433pm2.43a 54 . . . . . . . . . . . . . . . . . . . 20 ((𝑥 ∈ (1..^𝐾) ∧ 𝑦 ∈ (1..^𝐾)) → (∀𝑣 ∈ (1..^𝐾)∀𝑤 ∈ (1..^𝐾)(((𝐹 ↾ (1..^𝐾))‘𝑣) = ((𝐹 ↾ (1..^𝐾))‘𝑤) → 𝑣 = 𝑤) → ((𝐹‘0) ≠ (𝐹𝐾) → ((𝐹:(0...𝐾)⟶𝑉𝐾 ∈ ℕ0) → (((𝐹 “ {0, 𝐾}) ∩ (𝐹 “ (1..^𝐾))) = ∅ → ((𝑥 ∈ (0...𝐾) ∧ 𝑦 ∈ (0...𝐾)) → ((𝐹𝑥) = (𝐹𝑦) → 𝑥 = 𝑦)))))))
35 ianor 1004 . . . . . . . . . . . . . . . . . . . . 21 (¬ (𝑥 ∈ (1..^𝐾) ∧ 𝑦 ∈ (1..^𝐾)) ↔ (¬ 𝑥 ∈ (1..^𝐾) ∨ ¬ 𝑦 ∈ (1..^𝐾)))
36 eqcom 2772 . . . . . . . . . . . . . . . . . . . . . . . . . . 27 ((𝐹𝑥) = (𝐹𝑦) ↔ (𝐹𝑦) = (𝐹𝑥))
37 injresinjlem 12796 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 𝑥 ∈ (1..^𝐾) → ((𝐹‘0) ≠ (𝐹𝐾) → ((𝐹:(0...𝐾)⟶𝑉𝐾 ∈ ℕ0) → (((𝐹 “ {0, 𝐾}) ∩ (𝐹 “ (1..^𝐾))) = ∅ → ((𝑦 ∈ (0...𝐾) ∧ 𝑥 ∈ (0...𝐾)) → ((𝐹𝑦) = (𝐹𝑥) → 𝑦 = 𝑥))))))
3837imp 395 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 ((¬ 𝑥 ∈ (1..^𝐾) ∧ (𝐹‘0) ≠ (𝐹𝐾)) → ((𝐹:(0...𝐾)⟶𝑉𝐾 ∈ ℕ0) → (((𝐹 “ {0, 𝐾}) ∩ (𝐹 “ (1..^𝐾))) = ∅ → ((𝑦 ∈ (0...𝐾) ∧ 𝑥 ∈ (0...𝐾)) → ((𝐹𝑦) = (𝐹𝑥) → 𝑦 = 𝑥)))))
3938imp41 416 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 (((((¬ 𝑥 ∈ (1..^𝐾) ∧ (𝐹‘0) ≠ (𝐹𝐾)) ∧ (𝐹:(0...𝐾)⟶𝑉𝐾 ∈ ℕ0)) ∧ ((𝐹 “ {0, 𝐾}) ∩ (𝐹 “ (1..^𝐾))) = ∅) ∧ (𝑦 ∈ (0...𝐾) ∧ 𝑥 ∈ (0...𝐾))) → ((𝐹𝑦) = (𝐹𝑥) → 𝑦 = 𝑥))
40 eqcom 2772 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 (𝑦 = 𝑥𝑥 = 𝑦)
4139, 40syl6ib 242 . . . . . . . . . . . . . . . . . . . . . . . . . . 27 (((((¬ 𝑥 ∈ (1..^𝐾) ∧ (𝐹‘0) ≠ (𝐹𝐾)) ∧ (𝐹:(0...𝐾)⟶𝑉𝐾 ∈ ℕ0)) ∧ ((𝐹 “ {0, 𝐾}) ∩ (𝐹 “ (1..^𝐾))) = ∅) ∧ (𝑦 ∈ (0...𝐾) ∧ 𝑥 ∈ (0...𝐾))) → ((𝐹𝑦) = (𝐹𝑥) → 𝑥 = 𝑦))
4236, 41syl5bi 233 . . . . . . . . . . . . . . . . . . . . . . . . . 26 (((((¬ 𝑥 ∈ (1..^𝐾) ∧ (𝐹‘0) ≠ (𝐹𝐾)) ∧ (𝐹:(0...𝐾)⟶𝑉𝐾 ∈ ℕ0)) ∧ ((𝐹 “ {0, 𝐾}) ∩ (𝐹 “ (1..^𝐾))) = ∅) ∧ (𝑦 ∈ (0...𝐾) ∧ 𝑥 ∈ (0...𝐾))) → ((𝐹𝑥) = (𝐹𝑦) → 𝑥 = 𝑦))
4342ex 401 . . . . . . . . . . . . . . . . . . . . . . . . 25 ((((¬ 𝑥 ∈ (1..^𝐾) ∧ (𝐹‘0) ≠ (𝐹𝐾)) ∧ (𝐹:(0...𝐾)⟶𝑉𝐾 ∈ ℕ0)) ∧ ((𝐹 “ {0, 𝐾}) ∩ (𝐹 “ (1..^𝐾))) = ∅) → ((𝑦 ∈ (0...𝐾) ∧ 𝑥 ∈ (0...𝐾)) → ((𝐹𝑥) = (𝐹𝑦) → 𝑥 = 𝑦)))
4443ancomsd 457 . . . . . . . . . . . . . . . . . . . . . . . 24 ((((¬ 𝑥 ∈ (1..^𝐾) ∧ (𝐹‘0) ≠ (𝐹𝐾)) ∧ (𝐹:(0...𝐾)⟶𝑉𝐾 ∈ ℕ0)) ∧ ((𝐹 “ {0, 𝐾}) ∩ (𝐹 “ (1..^𝐾))) = ∅) → ((𝑥 ∈ (0...𝐾) ∧ 𝑦 ∈ (0...𝐾)) → ((𝐹𝑥) = (𝐹𝑦) → 𝑥 = 𝑦)))
4544exp41 425 . . . . . . . . . . . . . . . . . . . . . . 23 𝑥 ∈ (1..^𝐾) → ((𝐹‘0) ≠ (𝐹𝐾) → ((𝐹:(0...𝐾)⟶𝑉𝐾 ∈ ℕ0) → (((𝐹 “ {0, 𝐾}) ∩ (𝐹 “ (1..^𝐾))) = ∅ → ((𝑥 ∈ (0...𝐾) ∧ 𝑦 ∈ (0...𝐾)) → ((𝐹𝑥) = (𝐹𝑦) → 𝑥 = 𝑦))))))
46 injresinjlem 12796 . . . . . . . . . . . . . . . . . . . . . . 23 𝑦 ∈ (1..^𝐾) → ((𝐹‘0) ≠ (𝐹𝐾) → ((𝐹:(0...𝐾)⟶𝑉𝐾 ∈ ℕ0) → (((𝐹 “ {0, 𝐾}) ∩ (𝐹 “ (1..^𝐾))) = ∅ → ((𝑥 ∈ (0...𝐾) ∧ 𝑦 ∈ (0...𝐾)) → ((𝐹𝑥) = (𝐹𝑦) → 𝑥 = 𝑦))))))
4745, 46jaoi 883 . . . . . . . . . . . . . . . . . . . . . 22 ((¬ 𝑥 ∈ (1..^𝐾) ∨ ¬ 𝑦 ∈ (1..^𝐾)) → ((𝐹‘0) ≠ (𝐹𝐾) → ((𝐹:(0...𝐾)⟶𝑉𝐾 ∈ ℕ0) → (((𝐹 “ {0, 𝐾}) ∩ (𝐹 “ (1..^𝐾))) = ∅ → ((𝑥 ∈ (0...𝐾) ∧ 𝑦 ∈ (0...𝐾)) → ((𝐹𝑥) = (𝐹𝑦) → 𝑥 = 𝑦))))))
4847a1d 25 . . . . . . . . . . . . . . . . . . . . 21 ((¬ 𝑥 ∈ (1..^𝐾) ∨ ¬ 𝑦 ∈ (1..^𝐾)) → (∀𝑣 ∈ (1..^𝐾)∀𝑤 ∈ (1..^𝐾)(((𝐹 ↾ (1..^𝐾))‘𝑣) = ((𝐹 ↾ (1..^𝐾))‘𝑤) → 𝑣 = 𝑤) → ((𝐹‘0) ≠ (𝐹𝐾) → ((𝐹:(0...𝐾)⟶𝑉𝐾 ∈ ℕ0) → (((𝐹 “ {0, 𝐾}) ∩ (𝐹 “ (1..^𝐾))) = ∅ → ((𝑥 ∈ (0...𝐾) ∧ 𝑦 ∈ (0...𝐾)) → ((𝐹𝑥) = (𝐹𝑦) → 𝑥 = 𝑦)))))))
4935, 48sylbi 208 . . . . . . . . . . . . . . . . . . . 20 (¬ (𝑥 ∈ (1..^𝐾) ∧ 𝑦 ∈ (1..^𝐾)) → (∀𝑣 ∈ (1..^𝐾)∀𝑤 ∈ (1..^𝐾)(((𝐹 ↾ (1..^𝐾))‘𝑣) = ((𝐹 ↾ (1..^𝐾))‘𝑤) → 𝑣 = 𝑤) → ((𝐹‘0) ≠ (𝐹𝐾) → ((𝐹:(0...𝐾)⟶𝑉𝐾 ∈ ℕ0) → (((𝐹 “ {0, 𝐾}) ∩ (𝐹 “ (1..^𝐾))) = ∅ → ((𝑥 ∈ (0...𝐾) ∧ 𝑦 ∈ (0...𝐾)) → ((𝐹𝑥) = (𝐹𝑦) → 𝑥 = 𝑦)))))))
5034, 49pm2.61i 176 . . . . . . . . . . . . . . . . . . 19 (∀𝑣 ∈ (1..^𝐾)∀𝑤 ∈ (1..^𝐾)(((𝐹 ↾ (1..^𝐾))‘𝑣) = ((𝐹 ↾ (1..^𝐾))‘𝑤) → 𝑣 = 𝑤) → ((𝐹‘0) ≠ (𝐹𝐾) → ((𝐹:(0...𝐾)⟶𝑉𝐾 ∈ ℕ0) → (((𝐹 “ {0, 𝐾}) ∩ (𝐹 “ (1..^𝐾))) = ∅ → ((𝑥 ∈ (0...𝐾) ∧ 𝑦 ∈ (0...𝐾)) → ((𝐹𝑥) = (𝐹𝑦) → 𝑥 = 𝑦))))))
5150imp41 416 . . . . . . . . . . . . . . . . . 18 ((((∀𝑣 ∈ (1..^𝐾)∀𝑤 ∈ (1..^𝐾)(((𝐹 ↾ (1..^𝐾))‘𝑣) = ((𝐹 ↾ (1..^𝐾))‘𝑤) → 𝑣 = 𝑤) ∧ (𝐹‘0) ≠ (𝐹𝐾)) ∧ (𝐹:(0...𝐾)⟶𝑉𝐾 ∈ ℕ0)) ∧ ((𝐹 “ {0, 𝐾}) ∩ (𝐹 “ (1..^𝐾))) = ∅) → ((𝑥 ∈ (0...𝐾) ∧ 𝑦 ∈ (0...𝐾)) → ((𝐹𝑥) = (𝐹𝑦) → 𝑥 = 𝑦)))
5251ralrimivv 3117 . . . . . . . . . . . . . . . . 17 ((((∀𝑣 ∈ (1..^𝐾)∀𝑤 ∈ (1..^𝐾)(((𝐹 ↾ (1..^𝐾))‘𝑣) = ((𝐹 ↾ (1..^𝐾))‘𝑤) → 𝑣 = 𝑤) ∧ (𝐹‘0) ≠ (𝐹𝐾)) ∧ (𝐹:(0...𝐾)⟶𝑉𝐾 ∈ ℕ0)) ∧ ((𝐹 “ {0, 𝐾}) ∩ (𝐹 “ (1..^𝐾))) = ∅) → ∀𝑥 ∈ (0...𝐾)∀𝑦 ∈ (0...𝐾)((𝐹𝑥) = (𝐹𝑦) → 𝑥 = 𝑦))
5352exp41 425 . . . . . . . . . . . . . . . 16 (∀𝑣 ∈ (1..^𝐾)∀𝑤 ∈ (1..^𝐾)(((𝐹 ↾ (1..^𝐾))‘𝑣) = ((𝐹 ↾ (1..^𝐾))‘𝑤) → 𝑣 = 𝑤) → ((𝐹‘0) ≠ (𝐹𝐾) → ((𝐹:(0...𝐾)⟶𝑉𝐾 ∈ ℕ0) → (((𝐹 “ {0, 𝐾}) ∩ (𝐹 “ (1..^𝐾))) = ∅ → ∀𝑥 ∈ (0...𝐾)∀𝑦 ∈ (0...𝐾)((𝐹𝑥) = (𝐹𝑦) → 𝑥 = 𝑦)))))
5453adantl 473 . . . . . . . . . . . . . . 15 (((𝐹 ↾ (1..^𝐾)):(1..^𝐾)⟶𝑉 ∧ ∀𝑣 ∈ (1..^𝐾)∀𝑤 ∈ (1..^𝐾)(((𝐹 ↾ (1..^𝐾))‘𝑣) = ((𝐹 ↾ (1..^𝐾))‘𝑤) → 𝑣 = 𝑤)) → ((𝐹‘0) ≠ (𝐹𝐾) → ((𝐹:(0...𝐾)⟶𝑉𝐾 ∈ ℕ0) → (((𝐹 “ {0, 𝐾}) ∩ (𝐹 “ (1..^𝐾))) = ∅ → ∀𝑥 ∈ (0...𝐾)∀𝑦 ∈ (0...𝐾)((𝐹𝑥) = (𝐹𝑦) → 𝑥 = 𝑦)))))
5512, 54sylbi 208 . . . . . . . . . . . . . 14 ((𝐹 ↾ (1..^𝐾)):(1..^𝐾)–1-1𝑉 → ((𝐹‘0) ≠ (𝐹𝐾) → ((𝐹:(0...𝐾)⟶𝑉𝐾 ∈ ℕ0) → (((𝐹 “ {0, 𝐾}) ∩ (𝐹 “ (1..^𝐾))) = ∅ → ∀𝑥 ∈ (0...𝐾)∀𝑦 ∈ (0...𝐾)((𝐹𝑥) = (𝐹𝑦) → 𝑥 = 𝑦)))))
5655com13 88 . . . . . . . . . . . . 13 ((𝐹:(0...𝐾)⟶𝑉𝐾 ∈ ℕ0) → ((𝐹‘0) ≠ (𝐹𝐾) → ((𝐹 ↾ (1..^𝐾)):(1..^𝐾)–1-1𝑉 → (((𝐹 “ {0, 𝐾}) ∩ (𝐹 “ (1..^𝐾))) = ∅ → ∀𝑥 ∈ (0...𝐾)∀𝑦 ∈ (0...𝐾)((𝐹𝑥) = (𝐹𝑦) → 𝑥 = 𝑦)))))
5756ex 401 . . . . . . . . . . . 12 (𝐹:(0...𝐾)⟶𝑉 → (𝐾 ∈ ℕ0 → ((𝐹‘0) ≠ (𝐹𝐾) → ((𝐹 ↾ (1..^𝐾)):(1..^𝐾)–1-1𝑉 → (((𝐹 “ {0, 𝐾}) ∩ (𝐹 “ (1..^𝐾))) = ∅ → ∀𝑥 ∈ (0...𝐾)∀𝑦 ∈ (0...𝐾)((𝐹𝑥) = (𝐹𝑦) → 𝑥 = 𝑦))))))
5857com24 95 . . . . . . . . . . 11 (𝐹:(0...𝐾)⟶𝑉 → ((𝐹 ↾ (1..^𝐾)):(1..^𝐾)–1-1𝑉 → ((𝐹‘0) ≠ (𝐹𝐾) → (𝐾 ∈ ℕ0 → (((𝐹 “ {0, 𝐾}) ∩ (𝐹 “ (1..^𝐾))) = ∅ → ∀𝑥 ∈ (0...𝐾)∀𝑦 ∈ (0...𝐾)((𝐹𝑥) = (𝐹𝑦) → 𝑥 = 𝑦))))))
5958impcom 396 . . . . . . . . . 10 (((𝐹 ↾ (1..^𝐾)):(1..^𝐾)–1-1𝑉𝐹:(0...𝐾)⟶𝑉) → ((𝐹‘0) ≠ (𝐹𝐾) → (𝐾 ∈ ℕ0 → (((𝐹 “ {0, 𝐾}) ∩ (𝐹 “ (1..^𝐾))) = ∅ → ∀𝑥 ∈ (0...𝐾)∀𝑦 ∈ (0...𝐾)((𝐹𝑥) = (𝐹𝑦) → 𝑥 = 𝑦)))))
6059imp41 416 . . . . . . . . 9 ((((((𝐹 ↾ (1..^𝐾)):(1..^𝐾)–1-1𝑉𝐹:(0...𝐾)⟶𝑉) ∧ (𝐹‘0) ≠ (𝐹𝐾)) ∧ 𝐾 ∈ ℕ0) ∧ ((𝐹 “ {0, 𝐾}) ∩ (𝐹 “ (1..^𝐾))) = ∅) → ∀𝑥 ∈ (0...𝐾)∀𝑦 ∈ (0...𝐾)((𝐹𝑥) = (𝐹𝑦) → 𝑥 = 𝑦))
61 dff13 6704 . . . . . . . . 9 (𝐹:(0...𝐾)–1-1𝑉 ↔ (𝐹:(0...𝐾)⟶𝑉 ∧ ∀𝑥 ∈ (0...𝐾)∀𝑦 ∈ (0...𝐾)((𝐹𝑥) = (𝐹𝑦) → 𝑥 = 𝑦)))
6211, 60, 61sylanbrc 578 . . . . . . . 8 ((((((𝐹 ↾ (1..^𝐾)):(1..^𝐾)–1-1𝑉𝐹:(0...𝐾)⟶𝑉) ∧ (𝐹‘0) ≠ (𝐹𝐾)) ∧ 𝐾 ∈ ℕ0) ∧ ((𝐹 “ {0, 𝐾}) ∩ (𝐹 “ (1..^𝐾))) = ∅) → 𝐹:(0...𝐾)–1-1𝑉)
6311biantrurd 528 . . . . . . . . 9 ((((((𝐹 ↾ (1..^𝐾)):(1..^𝐾)–1-1𝑉𝐹:(0...𝐾)⟶𝑉) ∧ (𝐹‘0) ≠ (𝐹𝐾)) ∧ 𝐾 ∈ ℕ0) ∧ ((𝐹 “ {0, 𝐾}) ∩ (𝐹 “ (1..^𝐾))) = ∅) → (Fun 𝐹 ↔ (𝐹:(0...𝐾)⟶𝑉 ∧ Fun 𝐹)))
64 df-f1 6073 . . . . . . . . 9 (𝐹:(0...𝐾)–1-1𝑉 ↔ (𝐹:(0...𝐾)⟶𝑉 ∧ Fun 𝐹))
6563, 64syl6bbr 280 . . . . . . . 8 ((((((𝐹 ↾ (1..^𝐾)):(1..^𝐾)–1-1𝑉𝐹:(0...𝐾)⟶𝑉) ∧ (𝐹‘0) ≠ (𝐹𝐾)) ∧ 𝐾 ∈ ℕ0) ∧ ((𝐹 “ {0, 𝐾}) ∩ (𝐹 “ (1..^𝐾))) = ∅) → (Fun 𝐹𝐹:(0...𝐾)–1-1𝑉))
6662, 65mpbird 248 . . . . . . 7 ((((((𝐹 ↾ (1..^𝐾)):(1..^𝐾)–1-1𝑉𝐹:(0...𝐾)⟶𝑉) ∧ (𝐹‘0) ≠ (𝐹𝐾)) ∧ 𝐾 ∈ ℕ0) ∧ ((𝐹 “ {0, 𝐾}) ∩ (𝐹 “ (1..^𝐾))) = ∅) → Fun 𝐹)
6766ex 401 . . . . . 6 (((((𝐹 ↾ (1..^𝐾)):(1..^𝐾)–1-1𝑉𝐹:(0...𝐾)⟶𝑉) ∧ (𝐹‘0) ≠ (𝐹𝐾)) ∧ 𝐾 ∈ ℕ0) → (((𝐹 “ {0, 𝐾}) ∩ (𝐹 “ (1..^𝐾))) = ∅ → Fun 𝐹))
6867exp41 425 . . . . 5 ((𝐹 ↾ (1..^𝐾)):(1..^𝐾)–1-1𝑉 → (𝐹:(0...𝐾)⟶𝑉 → ((𝐹‘0) ≠ (𝐹𝐾) → (𝐾 ∈ ℕ0 → (((𝐹 “ {0, 𝐾}) ∩ (𝐹 “ (1..^𝐾))) = ∅ → Fun 𝐹)))))
6910, 68syl6bi 244 . . . 4 (𝐹:(0...𝐾)⟶𝑉 → (Fun (𝐹 ↾ (1..^𝐾)) → (𝐹:(0...𝐾)⟶𝑉 → ((𝐹‘0) ≠ (𝐹𝐾) → (𝐾 ∈ ℕ0 → (((𝐹 “ {0, 𝐾}) ∩ (𝐹 “ (1..^𝐾))) = ∅ → Fun 𝐹))))))
7069pm2.43a 54 . . 3 (𝐹:(0...𝐾)⟶𝑉 → (Fun (𝐹 ↾ (1..^𝐾)) → ((𝐹‘0) ≠ (𝐹𝐾) → (𝐾 ∈ ℕ0 → (((𝐹 “ {0, 𝐾}) ∩ (𝐹 “ (1..^𝐾))) = ∅ → Fun 𝐹)))))
71703imp 1137 . 2 ((𝐹:(0...𝐾)⟶𝑉 ∧ Fun (𝐹 ↾ (1..^𝐾)) ∧ (𝐹‘0) ≠ (𝐹𝐾)) → (𝐾 ∈ ℕ0 → (((𝐹 “ {0, 𝐾}) ∩ (𝐹 “ (1..^𝐾))) = ∅ → Fun 𝐹)))
7271com12 32 1 (𝐾 ∈ ℕ0 → ((𝐹:(0...𝐾)⟶𝑉 ∧ Fun (𝐹 ↾ (1..^𝐾)) ∧ (𝐹‘0) ≠ (𝐹𝐾)) → (((𝐹 “ {0, 𝐾}) ∩ (𝐹 “ (1..^𝐾))) = ∅ → Fun 𝐹)))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wa 384  wo 873  w3a 1107   = wceq 1652  wcel 2155  wne 2937  wral 3055  cin 3731  wss 3732  c0 4079  {cpr 4336  ccnv 5276  cres 5279  cima 5280  Fun wfun 6062  wf 6064  1-1wf1 6065  cfv 6068  (class class class)co 6842  0cc0 10189  1c1 10190  0cn0 11538  ...cfz 12533  ..^cfzo 12673
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1890  ax-4 1904  ax-5 2005  ax-6 2070  ax-7 2105  ax-8 2157  ax-9 2164  ax-10 2183  ax-11 2198  ax-12 2211  ax-13 2352  ax-ext 2743  ax-sep 4941  ax-nul 4949  ax-pow 5001  ax-pr 5062  ax-un 7147  ax-cnex 10245  ax-resscn 10246  ax-1cn 10247  ax-icn 10248  ax-addcl 10249  ax-addrcl 10250  ax-mulcl 10251  ax-mulrcl 10252  ax-mulcom 10253  ax-addass 10254  ax-mulass 10255  ax-distr 10256  ax-i2m1 10257  ax-1ne0 10258  ax-1rid 10259  ax-rnegex 10260  ax-rrecex 10261  ax-cnre 10262  ax-pre-lttri 10263  ax-pre-lttrn 10264  ax-pre-ltadd 10265  ax-pre-mulgt0 10266
This theorem depends on definitions:  df-bi 198  df-an 385  df-or 874  df-3or 1108  df-3an 1109  df-tru 1656  df-ex 1875  df-nf 1879  df-sb 2063  df-mo 2565  df-eu 2582  df-clab 2752  df-cleq 2758  df-clel 2761  df-nfc 2896  df-ne 2938  df-nel 3041  df-ral 3060  df-rex 3061  df-reu 3062  df-rab 3064  df-v 3352  df-sbc 3597  df-csb 3692  df-dif 3735  df-un 3737  df-in 3739  df-ss 3746  df-pss 3748  df-nul 4080  df-if 4244  df-pw 4317  df-sn 4335  df-pr 4337  df-tp 4339  df-op 4341  df-uni 4595  df-iun 4678  df-br 4810  df-opab 4872  df-mpt 4889  df-tr 4912  df-id 5185  df-eprel 5190  df-po 5198  df-so 5199  df-fr 5236  df-we 5238  df-xp 5283  df-rel 5284  df-cnv 5285  df-co 5286  df-dm 5287  df-rn 5288  df-res 5289  df-ima 5290  df-pred 5865  df-ord 5911  df-on 5912  df-lim 5913  df-suc 5914  df-iota 6031  df-fun 6070  df-fn 6071  df-f 6072  df-f1 6073  df-fo 6074  df-f1o 6075  df-fv 6076  df-riota 6803  df-ov 6845  df-oprab 6846  df-mpt2 6847  df-om 7264  df-1st 7366  df-2nd 7367  df-wrecs 7610  df-recs 7672  df-rdg 7710  df-er 7947  df-en 8161  df-dom 8162  df-sdom 8163  df-pnf 10330  df-mnf 10331  df-xr 10332  df-ltxr 10333  df-le 10334  df-sub 10522  df-neg 10523  df-nn 11275  df-n0 11539  df-z 11625  df-uz 11887  df-fz 12534  df-fzo 12674
This theorem is referenced by:  pthdepisspth  26923
  Copyright terms: Public domain W3C validator