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

Theorem injresinj 12536
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 12446 . . . . . . . . 9 (1..^𝐾) ⊆ (0..^𝐾)
2 fzossfz 12436 . . . . . . . . 9 (0..^𝐾) ⊆ (0...𝐾)
31, 2sstri 3596 . . . . . . . 8 (1..^𝐾) ⊆ (0...𝐾)
4 fssres 6032 . . . . . . . 8 ((𝐹:(0...𝐾)⟶𝑉 ∧ (1..^𝐾) ⊆ (0...𝐾)) → (𝐹 ↾ (1..^𝐾)):(1..^𝐾)⟶𝑉)
53, 4mpan2 706 . . . . . . 7 (𝐹:(0...𝐾)⟶𝑉 → (𝐹 ↾ (1..^𝐾)):(1..^𝐾)⟶𝑉)
65biantrud 528 . . . . . 6 (𝐹:(0...𝐾)⟶𝑉 → (Fun (𝐹 ↾ (1..^𝐾)) ↔ (Fun (𝐹 ↾ (1..^𝐾)) ∧ (𝐹 ↾ (1..^𝐾)):(1..^𝐾)⟶𝑉)))
7 ancom 466 . . . . . . 7 ((Fun (𝐹 ↾ (1..^𝐾)) ∧ (𝐹 ↾ (1..^𝐾)):(1..^𝐾)⟶𝑉) ↔ ((𝐹 ↾ (1..^𝐾)):(1..^𝐾)⟶𝑉 ∧ Fun (𝐹 ↾ (1..^𝐾))))
8 df-f1 5857 . . . . . . 7 ((𝐹 ↾ (1..^𝐾)):(1..^𝐾)–1-1𝑉 ↔ ((𝐹 ↾ (1..^𝐾)):(1..^𝐾)⟶𝑉 ∧ Fun (𝐹 ↾ (1..^𝐾))))
97, 8bitr4i 267 . . . . . 6 ((Fun (𝐹 ↾ (1..^𝐾)) ∧ (𝐹 ↾ (1..^𝐾)):(1..^𝐾)⟶𝑉) ↔ (𝐹 ↾ (1..^𝐾)):(1..^𝐾)–1-1𝑉)
106, 9syl6bb 276 . . . . 5 (𝐹:(0...𝐾)⟶𝑉 → (Fun (𝐹 ↾ (1..^𝐾)) ↔ (𝐹 ↾ (1..^𝐾)):(1..^𝐾)–1-1𝑉))
11 simp-4r 806 . . . . . . . . 9 ((((((𝐹 ↾ (1..^𝐾)):(1..^𝐾)–1-1𝑉𝐹:(0...𝐾)⟶𝑉) ∧ (𝐹‘0) ≠ (𝐹𝐾)) ∧ 𝐾 ∈ ℕ0) ∧ ((𝐹 “ {0, 𝐾}) ∩ (𝐹 “ (1..^𝐾))) = ∅) → 𝐹:(0...𝐾)⟶𝑉)
12 dff13 6472 . . . . . . . . . . . . . . 15 ((𝐹 ↾ (1..^𝐾)):(1..^𝐾)–1-1𝑉 ↔ ((𝐹 ↾ (1..^𝐾)):(1..^𝐾)⟶𝑉 ∧ ∀𝑣 ∈ (1..^𝐾)∀𝑤 ∈ (1..^𝐾)(((𝐹 ↾ (1..^𝐾))‘𝑣) = ((𝐹 ↾ (1..^𝐾))‘𝑤) → 𝑣 = 𝑤)))
13 fveq2 6153 . . . . . . . . . . . . . . . . . . . . . . . . . 26 (𝑣 = 𝑥 → ((𝐹 ↾ (1..^𝐾))‘𝑣) = ((𝐹 ↾ (1..^𝐾))‘𝑥))
1413eqeq1d 2623 . . . . . . . . . . . . . . . . . . . . . . . . 25 (𝑣 = 𝑥 → (((𝐹 ↾ (1..^𝐾))‘𝑣) = ((𝐹 ↾ (1..^𝐾))‘𝑤) ↔ ((𝐹 ↾ (1..^𝐾))‘𝑥) = ((𝐹 ↾ (1..^𝐾))‘𝑤)))
15 equequ1 1949 . . . . . . . . . . . . . . . . . . . . . . . . 25 (𝑣 = 𝑥 → (𝑣 = 𝑤𝑥 = 𝑤))
1614, 15imbi12d 334 . . . . . . . . . . . . . . . . . . . . . . . 24 (𝑣 = 𝑥 → ((((𝐹 ↾ (1..^𝐾))‘𝑣) = ((𝐹 ↾ (1..^𝐾))‘𝑤) → 𝑣 = 𝑤) ↔ (((𝐹 ↾ (1..^𝐾))‘𝑥) = ((𝐹 ↾ (1..^𝐾))‘𝑤) → 𝑥 = 𝑤)))
17 fveq2 6153 . . . . . . . . . . . . . . . . . . . . . . . . . 26 (𝑤 = 𝑦 → ((𝐹 ↾ (1..^𝐾))‘𝑤) = ((𝐹 ↾ (1..^𝐾))‘𝑦))
1817eqeq2d 2631 . . . . . . . . . . . . . . . . . . . . . . . . 25 (𝑤 = 𝑦 → (((𝐹 ↾ (1..^𝐾))‘𝑥) = ((𝐹 ↾ (1..^𝐾))‘𝑤) ↔ ((𝐹 ↾ (1..^𝐾))‘𝑥) = ((𝐹 ↾ (1..^𝐾))‘𝑦)))
19 equequ2 1950 . . . . . . . . . . . . . . . . . . . . . . . . 25 (𝑤 = 𝑦 → (𝑥 = 𝑤𝑥 = 𝑦))
2018, 19imbi12d 334 . . . . . . . . . . . . . . . . . . . . . . . 24 (𝑤 = 𝑦 → ((((𝐹 ↾ (1..^𝐾))‘𝑥) = ((𝐹 ↾ (1..^𝐾))‘𝑤) → 𝑥 = 𝑤) ↔ (((𝐹 ↾ (1..^𝐾))‘𝑥) = ((𝐹 ↾ (1..^𝐾))‘𝑦) → 𝑥 = 𝑦)))
2116, 20rspc2va 3311 . . . . . . . . . . . . . . . . . . . . . . 23 (((𝑥 ∈ (1..^𝐾) ∧ 𝑦 ∈ (1..^𝐾)) ∧ ∀𝑣 ∈ (1..^𝐾)∀𝑤 ∈ (1..^𝐾)(((𝐹 ↾ (1..^𝐾))‘𝑣) = ((𝐹 ↾ (1..^𝐾))‘𝑤) → 𝑣 = 𝑤)) → (((𝐹 ↾ (1..^𝐾))‘𝑥) = ((𝐹 ↾ (1..^𝐾))‘𝑦) → 𝑥 = 𝑦))
22 fvres 6169 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 (𝑥 ∈ (1..^𝐾) → ((𝐹 ↾ (1..^𝐾))‘𝑥) = (𝐹𝑥))
2322eqcomd 2627 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 (𝑥 ∈ (1..^𝐾) → (𝐹𝑥) = ((𝐹 ↾ (1..^𝐾))‘𝑥))
24 fvres 6169 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 (𝑦 ∈ (1..^𝐾) → ((𝐹 ↾ (1..^𝐾))‘𝑦) = (𝐹𝑦))
2524eqcomd 2627 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 (𝑦 ∈ (1..^𝐾) → (𝐹𝑦) = ((𝐹 ↾ (1..^𝐾))‘𝑦))
2623, 25eqeqan12d 2637 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 ((𝑥 ∈ (1..^𝐾) ∧ 𝑦 ∈ (1..^𝐾)) → ((𝐹𝑥) = (𝐹𝑦) ↔ ((𝐹 ↾ (1..^𝐾))‘𝑥) = ((𝐹 ↾ (1..^𝐾))‘𝑦)))
2726biimpd 219 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 ((𝑥 ∈ (1..^𝐾) ∧ 𝑦 ∈ (1..^𝐾)) → ((𝐹𝑥) = (𝐹𝑦) → ((𝐹 ↾ (1..^𝐾))‘𝑥) = ((𝐹 ↾ (1..^𝐾))‘𝑦)))
2827imim1d 82 . . . . . . . . . . . . . . . . . . . . . . . . . . 27 ((𝑥 ∈ (1..^𝐾) ∧ 𝑦 ∈ (1..^𝐾)) → ((((𝐹 ↾ (1..^𝐾))‘𝑥) = ((𝐹 ↾ (1..^𝐾))‘𝑦) → 𝑥 = 𝑦) → ((𝐹𝑥) = (𝐹𝑦) → 𝑥 = 𝑦)))
2928imp 445 . . . . . . . . . . . . . . . . . . . . . . . . . 26 (((𝑥 ∈ (1..^𝐾) ∧ 𝑦 ∈ (1..^𝐾)) ∧ (((𝐹 ↾ (1..^𝐾))‘𝑥) = ((𝐹 ↾ (1..^𝐾))‘𝑦) → 𝑥 = 𝑦)) → ((𝐹𝑥) = (𝐹𝑦) → 𝑥 = 𝑦))
30292a1d 26 . . . . . . . . . . . . . . . . . . . . . . . . 25 (((𝑥 ∈ (1..^𝐾) ∧ 𝑦 ∈ (1..^𝐾)) ∧ (((𝐹 ↾ (1..^𝐾))‘𝑥) = ((𝐹 ↾ (1..^𝐾))‘𝑦) → 𝑥 = 𝑦)) → (((𝐹 “ {0, 𝐾}) ∩ (𝐹 “ (1..^𝐾))) = ∅ → ((𝑥 ∈ (0...𝐾) ∧ 𝑦 ∈ (0...𝐾)) → ((𝐹𝑥) = (𝐹𝑦) → 𝑥 = 𝑦))))
31302a1d 26 . . . . . . . . . . . . . . . . . . . . . . . 24 (((𝑥 ∈ (1..^𝐾) ∧ 𝑦 ∈ (1..^𝐾)) ∧ (((𝐹 ↾ (1..^𝐾))‘𝑥) = ((𝐹 ↾ (1..^𝐾))‘𝑦) → 𝑥 = 𝑦)) → ((𝐹‘0) ≠ (𝐹𝐾) → ((𝐹:(0...𝐾)⟶𝑉𝐾 ∈ ℕ0) → (((𝐹 “ {0, 𝐾}) ∩ (𝐹 “ (1..^𝐾))) = ∅ → ((𝑥 ∈ (0...𝐾) ∧ 𝑦 ∈ (0...𝐾)) → ((𝐹𝑥) = (𝐹𝑦) → 𝑥 = 𝑦))))))
3231expcom 451 . . . . . . . . . . . . . . . . . . . . . . 23 ((((𝐹 ↾ (1..^𝐾))‘𝑥) = ((𝐹 ↾ (1..^𝐾))‘𝑦) → 𝑥 = 𝑦) → ((𝑥 ∈ (1..^𝐾) ∧ 𝑦 ∈ (1..^𝐾)) → ((𝐹‘0) ≠ (𝐹𝐾) → ((𝐹:(0...𝐾)⟶𝑉𝐾 ∈ ℕ0) → (((𝐹 “ {0, 𝐾}) ∩ (𝐹 “ (1..^𝐾))) = ∅ → ((𝑥 ∈ (0...𝐾) ∧ 𝑦 ∈ (0...𝐾)) → ((𝐹𝑥) = (𝐹𝑦) → 𝑥 = 𝑦)))))))
3321, 32syl 17 . . . . . . . . . . . . . . . . . . . . . 22 (((𝑥 ∈ (1..^𝐾) ∧ 𝑦 ∈ (1..^𝐾)) ∧ ∀𝑣 ∈ (1..^𝐾)∀𝑤 ∈ (1..^𝐾)(((𝐹 ↾ (1..^𝐾))‘𝑣) = ((𝐹 ↾ (1..^𝐾))‘𝑤) → 𝑣 = 𝑤)) → ((𝑥 ∈ (1..^𝐾) ∧ 𝑦 ∈ (1..^𝐾)) → ((𝐹‘0) ≠ (𝐹𝐾) → ((𝐹:(0...𝐾)⟶𝑉𝐾 ∈ ℕ0) → (((𝐹 “ {0, 𝐾}) ∩ (𝐹 “ (1..^𝐾))) = ∅ → ((𝑥 ∈ (0...𝐾) ∧ 𝑦 ∈ (0...𝐾)) → ((𝐹𝑥) = (𝐹𝑦) → 𝑥 = 𝑦)))))))
3433ex 450 . . . . . . . . . . . . . . . . . . . . 21 ((𝑥 ∈ (1..^𝐾) ∧ 𝑦 ∈ (1..^𝐾)) → (∀𝑣 ∈ (1..^𝐾)∀𝑤 ∈ (1..^𝐾)(((𝐹 ↾ (1..^𝐾))‘𝑣) = ((𝐹 ↾ (1..^𝐾))‘𝑤) → 𝑣 = 𝑤) → ((𝑥 ∈ (1..^𝐾) ∧ 𝑦 ∈ (1..^𝐾)) → ((𝐹‘0) ≠ (𝐹𝐾) → ((𝐹:(0...𝐾)⟶𝑉𝐾 ∈ ℕ0) → (((𝐹 “ {0, 𝐾}) ∩ (𝐹 “ (1..^𝐾))) = ∅ → ((𝑥 ∈ (0...𝐾) ∧ 𝑦 ∈ (0...𝐾)) → ((𝐹𝑥) = (𝐹𝑦) → 𝑥 = 𝑦))))))))
3534pm2.43a 54 . . . . . . . . . . . . . . . . . . . 20 ((𝑥 ∈ (1..^𝐾) ∧ 𝑦 ∈ (1..^𝐾)) → (∀𝑣 ∈ (1..^𝐾)∀𝑤 ∈ (1..^𝐾)(((𝐹 ↾ (1..^𝐾))‘𝑣) = ((𝐹 ↾ (1..^𝐾))‘𝑤) → 𝑣 = 𝑤) → ((𝐹‘0) ≠ (𝐹𝐾) → ((𝐹:(0...𝐾)⟶𝑉𝐾 ∈ ℕ0) → (((𝐹 “ {0, 𝐾}) ∩ (𝐹 “ (1..^𝐾))) = ∅ → ((𝑥 ∈ (0...𝐾) ∧ 𝑦 ∈ (0...𝐾)) → ((𝐹𝑥) = (𝐹𝑦) → 𝑥 = 𝑦)))))))
36 ianor 509 . . . . . . . . . . . . . . . . . . . . 21 (¬ (𝑥 ∈ (1..^𝐾) ∧ 𝑦 ∈ (1..^𝐾)) ↔ (¬ 𝑥 ∈ (1..^𝐾) ∨ ¬ 𝑦 ∈ (1..^𝐾)))
37 eqcom 2628 . . . . . . . . . . . . . . . . . . . . . . . . . . 27 ((𝐹𝑥) = (𝐹𝑦) ↔ (𝐹𝑦) = (𝐹𝑥))
38 injresinjlem 12535 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 𝑥 ∈ (1..^𝐾) → ((𝐹‘0) ≠ (𝐹𝐾) → ((𝐹:(0...𝐾)⟶𝑉𝐾 ∈ ℕ0) → (((𝐹 “ {0, 𝐾}) ∩ (𝐹 “ (1..^𝐾))) = ∅ → ((𝑦 ∈ (0...𝐾) ∧ 𝑥 ∈ (0...𝐾)) → ((𝐹𝑦) = (𝐹𝑥) → 𝑦 = 𝑥))))))
3938imp 445 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 ((¬ 𝑥 ∈ (1..^𝐾) ∧ (𝐹‘0) ≠ (𝐹𝐾)) → ((𝐹:(0...𝐾)⟶𝑉𝐾 ∈ ℕ0) → (((𝐹 “ {0, 𝐾}) ∩ (𝐹 “ (1..^𝐾))) = ∅ → ((𝑦 ∈ (0...𝐾) ∧ 𝑥 ∈ (0...𝐾)) → ((𝐹𝑦) = (𝐹𝑥) → 𝑦 = 𝑥)))))
4039imp41 618 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 (((((¬ 𝑥 ∈ (1..^𝐾) ∧ (𝐹‘0) ≠ (𝐹𝐾)) ∧ (𝐹:(0...𝐾)⟶𝑉𝐾 ∈ ℕ0)) ∧ ((𝐹 “ {0, 𝐾}) ∩ (𝐹 “ (1..^𝐾))) = ∅) ∧ (𝑦 ∈ (0...𝐾) ∧ 𝑥 ∈ (0...𝐾))) → ((𝐹𝑦) = (𝐹𝑥) → 𝑦 = 𝑥))
41 eqcom 2628 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 (𝑦 = 𝑥𝑥 = 𝑦)
4240, 41syl6ib 241 . . . . . . . . . . . . . . . . . . . . . . . . . . 27 (((((¬ 𝑥 ∈ (1..^𝐾) ∧ (𝐹‘0) ≠ (𝐹𝐾)) ∧ (𝐹:(0...𝐾)⟶𝑉𝐾 ∈ ℕ0)) ∧ ((𝐹 “ {0, 𝐾}) ∩ (𝐹 “ (1..^𝐾))) = ∅) ∧ (𝑦 ∈ (0...𝐾) ∧ 𝑥 ∈ (0...𝐾))) → ((𝐹𝑦) = (𝐹𝑥) → 𝑥 = 𝑦))
4337, 42syl5bi 232 . . . . . . . . . . . . . . . . . . . . . . . . . 26 (((((¬ 𝑥 ∈ (1..^𝐾) ∧ (𝐹‘0) ≠ (𝐹𝐾)) ∧ (𝐹:(0...𝐾)⟶𝑉𝐾 ∈ ℕ0)) ∧ ((𝐹 “ {0, 𝐾}) ∩ (𝐹 “ (1..^𝐾))) = ∅) ∧ (𝑦 ∈ (0...𝐾) ∧ 𝑥 ∈ (0...𝐾))) → ((𝐹𝑥) = (𝐹𝑦) → 𝑥 = 𝑦))
4443ex 450 . . . . . . . . . . . . . . . . . . . . . . . . 25 ((((¬ 𝑥 ∈ (1..^𝐾) ∧ (𝐹‘0) ≠ (𝐹𝐾)) ∧ (𝐹:(0...𝐾)⟶𝑉𝐾 ∈ ℕ0)) ∧ ((𝐹 “ {0, 𝐾}) ∩ (𝐹 “ (1..^𝐾))) = ∅) → ((𝑦 ∈ (0...𝐾) ∧ 𝑥 ∈ (0...𝐾)) → ((𝐹𝑥) = (𝐹𝑦) → 𝑥 = 𝑦)))
4544ancomsd 470 . . . . . . . . . . . . . . . . . . . . . . . 24 ((((¬ 𝑥 ∈ (1..^𝐾) ∧ (𝐹‘0) ≠ (𝐹𝐾)) ∧ (𝐹:(0...𝐾)⟶𝑉𝐾 ∈ ℕ0)) ∧ ((𝐹 “ {0, 𝐾}) ∩ (𝐹 “ (1..^𝐾))) = ∅) → ((𝑥 ∈ (0...𝐾) ∧ 𝑦 ∈ (0...𝐾)) → ((𝐹𝑥) = (𝐹𝑦) → 𝑥 = 𝑦)))
4645exp41 637 . . . . . . . . . . . . . . . . . . . . . . 23 𝑥 ∈ (1..^𝐾) → ((𝐹‘0) ≠ (𝐹𝐾) → ((𝐹:(0...𝐾)⟶𝑉𝐾 ∈ ℕ0) → (((𝐹 “ {0, 𝐾}) ∩ (𝐹 “ (1..^𝐾))) = ∅ → ((𝑥 ∈ (0...𝐾) ∧ 𝑦 ∈ (0...𝐾)) → ((𝐹𝑥) = (𝐹𝑦) → 𝑥 = 𝑦))))))
47 injresinjlem 12535 . . . . . . . . . . . . . . . . . . . . . . 23 𝑦 ∈ (1..^𝐾) → ((𝐹‘0) ≠ (𝐹𝐾) → ((𝐹:(0...𝐾)⟶𝑉𝐾 ∈ ℕ0) → (((𝐹 “ {0, 𝐾}) ∩ (𝐹 “ (1..^𝐾))) = ∅ → ((𝑥 ∈ (0...𝐾) ∧ 𝑦 ∈ (0...𝐾)) → ((𝐹𝑥) = (𝐹𝑦) → 𝑥 = 𝑦))))))
4846, 47jaoi 394 . . . . . . . . . . . . . . . . . . . . . 22 ((¬ 𝑥 ∈ (1..^𝐾) ∨ ¬ 𝑦 ∈ (1..^𝐾)) → ((𝐹‘0) ≠ (𝐹𝐾) → ((𝐹:(0...𝐾)⟶𝑉𝐾 ∈ ℕ0) → (((𝐹 “ {0, 𝐾}) ∩ (𝐹 “ (1..^𝐾))) = ∅ → ((𝑥 ∈ (0...𝐾) ∧ 𝑦 ∈ (0...𝐾)) → ((𝐹𝑥) = (𝐹𝑦) → 𝑥 = 𝑦))))))
4948a1d 25 . . . . . . . . . . . . . . . . . . . . 21 ((¬ 𝑥 ∈ (1..^𝐾) ∨ ¬ 𝑦 ∈ (1..^𝐾)) → (∀𝑣 ∈ (1..^𝐾)∀𝑤 ∈ (1..^𝐾)(((𝐹 ↾ (1..^𝐾))‘𝑣) = ((𝐹 ↾ (1..^𝐾))‘𝑤) → 𝑣 = 𝑤) → ((𝐹‘0) ≠ (𝐹𝐾) → ((𝐹:(0...𝐾)⟶𝑉𝐾 ∈ ℕ0) → (((𝐹 “ {0, 𝐾}) ∩ (𝐹 “ (1..^𝐾))) = ∅ → ((𝑥 ∈ (0...𝐾) ∧ 𝑦 ∈ (0...𝐾)) → ((𝐹𝑥) = (𝐹𝑦) → 𝑥 = 𝑦)))))))
5036, 49sylbi 207 . . . . . . . . . . . . . . . . . . . 20 (¬ (𝑥 ∈ (1..^𝐾) ∧ 𝑦 ∈ (1..^𝐾)) → (∀𝑣 ∈ (1..^𝐾)∀𝑤 ∈ (1..^𝐾)(((𝐹 ↾ (1..^𝐾))‘𝑣) = ((𝐹 ↾ (1..^𝐾))‘𝑤) → 𝑣 = 𝑤) → ((𝐹‘0) ≠ (𝐹𝐾) → ((𝐹:(0...𝐾)⟶𝑉𝐾 ∈ ℕ0) → (((𝐹 “ {0, 𝐾}) ∩ (𝐹 “ (1..^𝐾))) = ∅ → ((𝑥 ∈ (0...𝐾) ∧ 𝑦 ∈ (0...𝐾)) → ((𝐹𝑥) = (𝐹𝑦) → 𝑥 = 𝑦)))))))
5135, 50pm2.61i 176 . . . . . . . . . . . . . . . . . . 19 (∀𝑣 ∈ (1..^𝐾)∀𝑤 ∈ (1..^𝐾)(((𝐹 ↾ (1..^𝐾))‘𝑣) = ((𝐹 ↾ (1..^𝐾))‘𝑤) → 𝑣 = 𝑤) → ((𝐹‘0) ≠ (𝐹𝐾) → ((𝐹:(0...𝐾)⟶𝑉𝐾 ∈ ℕ0) → (((𝐹 “ {0, 𝐾}) ∩ (𝐹 “ (1..^𝐾))) = ∅ → ((𝑥 ∈ (0...𝐾) ∧ 𝑦 ∈ (0...𝐾)) → ((𝐹𝑥) = (𝐹𝑦) → 𝑥 = 𝑦))))))
5251imp41 618 . . . . . . . . . . . . . . . . . 18 ((((∀𝑣 ∈ (1..^𝐾)∀𝑤 ∈ (1..^𝐾)(((𝐹 ↾ (1..^𝐾))‘𝑣) = ((𝐹 ↾ (1..^𝐾))‘𝑤) → 𝑣 = 𝑤) ∧ (𝐹‘0) ≠ (𝐹𝐾)) ∧ (𝐹:(0...𝐾)⟶𝑉𝐾 ∈ ℕ0)) ∧ ((𝐹 “ {0, 𝐾}) ∩ (𝐹 “ (1..^𝐾))) = ∅) → ((𝑥 ∈ (0...𝐾) ∧ 𝑦 ∈ (0...𝐾)) → ((𝐹𝑥) = (𝐹𝑦) → 𝑥 = 𝑦)))
5352ralrimivv 2965 . . . . . . . . . . . . . . . . 17 ((((∀𝑣 ∈ (1..^𝐾)∀𝑤 ∈ (1..^𝐾)(((𝐹 ↾ (1..^𝐾))‘𝑣) = ((𝐹 ↾ (1..^𝐾))‘𝑤) → 𝑣 = 𝑤) ∧ (𝐹‘0) ≠ (𝐹𝐾)) ∧ (𝐹:(0...𝐾)⟶𝑉𝐾 ∈ ℕ0)) ∧ ((𝐹 “ {0, 𝐾}) ∩ (𝐹 “ (1..^𝐾))) = ∅) → ∀𝑥 ∈ (0...𝐾)∀𝑦 ∈ (0...𝐾)((𝐹𝑥) = (𝐹𝑦) → 𝑥 = 𝑦))
5453exp41 637 . . . . . . . . . . . . . . . 16 (∀𝑣 ∈ (1..^𝐾)∀𝑤 ∈ (1..^𝐾)(((𝐹 ↾ (1..^𝐾))‘𝑣) = ((𝐹 ↾ (1..^𝐾))‘𝑤) → 𝑣 = 𝑤) → ((𝐹‘0) ≠ (𝐹𝐾) → ((𝐹:(0...𝐾)⟶𝑉𝐾 ∈ ℕ0) → (((𝐹 “ {0, 𝐾}) ∩ (𝐹 “ (1..^𝐾))) = ∅ → ∀𝑥 ∈ (0...𝐾)∀𝑦 ∈ (0...𝐾)((𝐹𝑥) = (𝐹𝑦) → 𝑥 = 𝑦)))))
5554adantl 482 . . . . . . . . . . . . . . 15 (((𝐹 ↾ (1..^𝐾)):(1..^𝐾)⟶𝑉 ∧ ∀𝑣 ∈ (1..^𝐾)∀𝑤 ∈ (1..^𝐾)(((𝐹 ↾ (1..^𝐾))‘𝑣) = ((𝐹 ↾ (1..^𝐾))‘𝑤) → 𝑣 = 𝑤)) → ((𝐹‘0) ≠ (𝐹𝐾) → ((𝐹:(0...𝐾)⟶𝑉𝐾 ∈ ℕ0) → (((𝐹 “ {0, 𝐾}) ∩ (𝐹 “ (1..^𝐾))) = ∅ → ∀𝑥 ∈ (0...𝐾)∀𝑦 ∈ (0...𝐾)((𝐹𝑥) = (𝐹𝑦) → 𝑥 = 𝑦)))))
5612, 55sylbi 207 . . . . . . . . . . . . . 14 ((𝐹 ↾ (1..^𝐾)):(1..^𝐾)–1-1𝑉 → ((𝐹‘0) ≠ (𝐹𝐾) → ((𝐹:(0...𝐾)⟶𝑉𝐾 ∈ ℕ0) → (((𝐹 “ {0, 𝐾}) ∩ (𝐹 “ (1..^𝐾))) = ∅ → ∀𝑥 ∈ (0...𝐾)∀𝑦 ∈ (0...𝐾)((𝐹𝑥) = (𝐹𝑦) → 𝑥 = 𝑦)))))
5756com13 88 . . . . . . . . . . . . 13 ((𝐹:(0...𝐾)⟶𝑉𝐾 ∈ ℕ0) → ((𝐹‘0) ≠ (𝐹𝐾) → ((𝐹 ↾ (1..^𝐾)):(1..^𝐾)–1-1𝑉 → (((𝐹 “ {0, 𝐾}) ∩ (𝐹 “ (1..^𝐾))) = ∅ → ∀𝑥 ∈ (0...𝐾)∀𝑦 ∈ (0...𝐾)((𝐹𝑥) = (𝐹𝑦) → 𝑥 = 𝑦)))))
5857ex 450 . . . . . . . . . . . 12 (𝐹:(0...𝐾)⟶𝑉 → (𝐾 ∈ ℕ0 → ((𝐹‘0) ≠ (𝐹𝐾) → ((𝐹 ↾ (1..^𝐾)):(1..^𝐾)–1-1𝑉 → (((𝐹 “ {0, 𝐾}) ∩ (𝐹 “ (1..^𝐾))) = ∅ → ∀𝑥 ∈ (0...𝐾)∀𝑦 ∈ (0...𝐾)((𝐹𝑥) = (𝐹𝑦) → 𝑥 = 𝑦))))))
5958com24 95 . . . . . . . . . . 11 (𝐹:(0...𝐾)⟶𝑉 → ((𝐹 ↾ (1..^𝐾)):(1..^𝐾)–1-1𝑉 → ((𝐹‘0) ≠ (𝐹𝐾) → (𝐾 ∈ ℕ0 → (((𝐹 “ {0, 𝐾}) ∩ (𝐹 “ (1..^𝐾))) = ∅ → ∀𝑥 ∈ (0...𝐾)∀𝑦 ∈ (0...𝐾)((𝐹𝑥) = (𝐹𝑦) → 𝑥 = 𝑦))))))
6059impcom 446 . . . . . . . . . 10 (((𝐹 ↾ (1..^𝐾)):(1..^𝐾)–1-1𝑉𝐹:(0...𝐾)⟶𝑉) → ((𝐹‘0) ≠ (𝐹𝐾) → (𝐾 ∈ ℕ0 → (((𝐹 “ {0, 𝐾}) ∩ (𝐹 “ (1..^𝐾))) = ∅ → ∀𝑥 ∈ (0...𝐾)∀𝑦 ∈ (0...𝐾)((𝐹𝑥) = (𝐹𝑦) → 𝑥 = 𝑦)))))
6160imp41 618 . . . . . . . . 9 ((((((𝐹 ↾ (1..^𝐾)):(1..^𝐾)–1-1𝑉𝐹:(0...𝐾)⟶𝑉) ∧ (𝐹‘0) ≠ (𝐹𝐾)) ∧ 𝐾 ∈ ℕ0) ∧ ((𝐹 “ {0, 𝐾}) ∩ (𝐹 “ (1..^𝐾))) = ∅) → ∀𝑥 ∈ (0...𝐾)∀𝑦 ∈ (0...𝐾)((𝐹𝑥) = (𝐹𝑦) → 𝑥 = 𝑦))
62 dff13 6472 . . . . . . . . 9 (𝐹:(0...𝐾)–1-1𝑉 ↔ (𝐹:(0...𝐾)⟶𝑉 ∧ ∀𝑥 ∈ (0...𝐾)∀𝑦 ∈ (0...𝐾)((𝐹𝑥) = (𝐹𝑦) → 𝑥 = 𝑦)))
6311, 61, 62sylanbrc 697 . . . . . . . 8 ((((((𝐹 ↾ (1..^𝐾)):(1..^𝐾)–1-1𝑉𝐹:(0...𝐾)⟶𝑉) ∧ (𝐹‘0) ≠ (𝐹𝐾)) ∧ 𝐾 ∈ ℕ0) ∧ ((𝐹 “ {0, 𝐾}) ∩ (𝐹 “ (1..^𝐾))) = ∅) → 𝐹:(0...𝐾)–1-1𝑉)
6411biantrurd 529 . . . . . . . . 9 ((((((𝐹 ↾ (1..^𝐾)):(1..^𝐾)–1-1𝑉𝐹:(0...𝐾)⟶𝑉) ∧ (𝐹‘0) ≠ (𝐹𝐾)) ∧ 𝐾 ∈ ℕ0) ∧ ((𝐹 “ {0, 𝐾}) ∩ (𝐹 “ (1..^𝐾))) = ∅) → (Fun 𝐹 ↔ (𝐹:(0...𝐾)⟶𝑉 ∧ Fun 𝐹)))
65 df-f1 5857 . . . . . . . . 9 (𝐹:(0...𝐾)–1-1𝑉 ↔ (𝐹:(0...𝐾)⟶𝑉 ∧ Fun 𝐹))
6664, 65syl6bbr 278 . . . . . . . 8 ((((((𝐹 ↾ (1..^𝐾)):(1..^𝐾)–1-1𝑉𝐹:(0...𝐾)⟶𝑉) ∧ (𝐹‘0) ≠ (𝐹𝐾)) ∧ 𝐾 ∈ ℕ0) ∧ ((𝐹 “ {0, 𝐾}) ∩ (𝐹 “ (1..^𝐾))) = ∅) → (Fun 𝐹𝐹:(0...𝐾)–1-1𝑉))
6763, 66mpbird 247 . . . . . . 7 ((((((𝐹 ↾ (1..^𝐾)):(1..^𝐾)–1-1𝑉𝐹:(0...𝐾)⟶𝑉) ∧ (𝐹‘0) ≠ (𝐹𝐾)) ∧ 𝐾 ∈ ℕ0) ∧ ((𝐹 “ {0, 𝐾}) ∩ (𝐹 “ (1..^𝐾))) = ∅) → Fun 𝐹)
6867ex 450 . . . . . 6 (((((𝐹 ↾ (1..^𝐾)):(1..^𝐾)–1-1𝑉𝐹:(0...𝐾)⟶𝑉) ∧ (𝐹‘0) ≠ (𝐹𝐾)) ∧ 𝐾 ∈ ℕ0) → (((𝐹 “ {0, 𝐾}) ∩ (𝐹 “ (1..^𝐾))) = ∅ → Fun 𝐹))
6968exp41 637 . . . . 5 ((𝐹 ↾ (1..^𝐾)):(1..^𝐾)–1-1𝑉 → (𝐹:(0...𝐾)⟶𝑉 → ((𝐹‘0) ≠ (𝐹𝐾) → (𝐾 ∈ ℕ0 → (((𝐹 “ {0, 𝐾}) ∩ (𝐹 “ (1..^𝐾))) = ∅ → Fun 𝐹)))))
7010, 69syl6bi 243 . . . 4 (𝐹:(0...𝐾)⟶𝑉 → (Fun (𝐹 ↾ (1..^𝐾)) → (𝐹:(0...𝐾)⟶𝑉 → ((𝐹‘0) ≠ (𝐹𝐾) → (𝐾 ∈ ℕ0 → (((𝐹 “ {0, 𝐾}) ∩ (𝐹 “ (1..^𝐾))) = ∅ → Fun 𝐹))))))
7170pm2.43a 54 . . 3 (𝐹:(0...𝐾)⟶𝑉 → (Fun (𝐹 ↾ (1..^𝐾)) → ((𝐹‘0) ≠ (𝐹𝐾) → (𝐾 ∈ ℕ0 → (((𝐹 “ {0, 𝐾}) ∩ (𝐹 “ (1..^𝐾))) = ∅ → Fun 𝐹)))))
72713imp 1254 . 2 ((𝐹:(0...𝐾)⟶𝑉 ∧ Fun (𝐹 ↾ (1..^𝐾)) ∧ (𝐹‘0) ≠ (𝐹𝐾)) → (𝐾 ∈ ℕ0 → (((𝐹 “ {0, 𝐾}) ∩ (𝐹 “ (1..^𝐾))) = ∅ → Fun 𝐹)))
7372com12 32 1 (𝐾 ∈ ℕ0 → ((𝐹:(0...𝐾)⟶𝑉 ∧ Fun (𝐹 ↾ (1..^𝐾)) ∧ (𝐹‘0) ≠ (𝐹𝐾)) → (((𝐹 “ {0, 𝐾}) ∩ (𝐹 “ (1..^𝐾))) = ∅ → Fun 𝐹)))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wo 383  wa 384  w3a 1036   = wceq 1480  wcel 1987  wne 2790  wral 2907  cin 3558  wss 3559  c0 3896  {cpr 4155  ccnv 5078  cres 5081  cima 5082  Fun wfun 5846  wf 5848  1-1wf1 5849  cfv 5852  (class class class)co 6610  0cc0 9887  1c1 9888  0cn0 11243  ...cfz 12275  ..^cfzo 12413
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1719  ax-4 1734  ax-5 1836  ax-6 1885  ax-7 1932  ax-8 1989  ax-9 1996  ax-10 2016  ax-11 2031  ax-12 2044  ax-13 2245  ax-ext 2601  ax-sep 4746  ax-nul 4754  ax-pow 4808  ax-pr 4872  ax-un 6909  ax-cnex 9943  ax-resscn 9944  ax-1cn 9945  ax-icn 9946  ax-addcl 9947  ax-addrcl 9948  ax-mulcl 9949  ax-mulrcl 9950  ax-mulcom 9951  ax-addass 9952  ax-mulass 9953  ax-distr 9954  ax-i2m1 9955  ax-1ne0 9956  ax-1rid 9957  ax-rnegex 9958  ax-rrecex 9959  ax-cnre 9960  ax-pre-lttri 9961  ax-pre-lttrn 9962  ax-pre-ltadd 9963  ax-pre-mulgt0 9964
This theorem depends on definitions:  df-bi 197  df-or 385  df-an 386  df-3or 1037  df-3an 1038  df-tru 1483  df-ex 1702  df-nf 1707  df-sb 1878  df-eu 2473  df-mo 2474  df-clab 2608  df-cleq 2614  df-clel 2617  df-nfc 2750  df-ne 2791  df-nel 2894  df-ral 2912  df-rex 2913  df-reu 2914  df-rab 2916  df-v 3191  df-sbc 3422  df-csb 3519  df-dif 3562  df-un 3564  df-in 3566  df-ss 3573  df-pss 3575  df-nul 3897  df-if 4064  df-pw 4137  df-sn 4154  df-pr 4156  df-tp 4158  df-op 4160  df-uni 4408  df-iun 4492  df-br 4619  df-opab 4679  df-mpt 4680  df-tr 4718  df-eprel 4990  df-id 4994  df-po 5000  df-so 5001  df-fr 5038  df-we 5040  df-xp 5085  df-rel 5086  df-cnv 5087  df-co 5088  df-dm 5089  df-rn 5090  df-res 5091  df-ima 5092  df-pred 5644  df-ord 5690  df-on 5691  df-lim 5692  df-suc 5693  df-iota 5815  df-fun 5854  df-fn 5855  df-f 5856  df-f1 5857  df-fo 5858  df-f1o 5859  df-fv 5860  df-riota 6571  df-ov 6613  df-oprab 6614  df-mpt2 6615  df-om 7020  df-1st 7120  df-2nd 7121  df-wrecs 7359  df-recs 7420  df-rdg 7458  df-er 7694  df-en 7907  df-dom 7908  df-sdom 7909  df-pnf 10027  df-mnf 10028  df-xr 10029  df-ltxr 10030  df-le 10031  df-sub 10219  df-neg 10220  df-nn 10972  df-n0 11244  df-z 11329  df-uz 11639  df-fz 12276  df-fzo 12414
This theorem is referenced by:  pthdepisspth  26513
  Copyright terms: Public domain W3C validator