Users' Mathboxes Mathbox for metakunt < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >   Mathboxes  >  sticksstones2 Structured version   Visualization version   GIF version

Theorem sticksstones2 43334
Description: The range function on strictly monotone functions with finite domain and codomain is an injective mapping onto 𝐾-elemental sets. (Contributed by metakunt, 27-Sep-2024.)
Hypotheses
Ref Expression
sticksstones2.1 (𝜑 → 𝑁 ∈ ℕ0)
sticksstones2.2 (𝜑 → 𝐾 ∈ ℕ0)
sticksstones2.3 𝐵 = {𝑎 ∈ 𝒫 (1...𝑁) ∣ (♯‘𝑎) = 𝐾}
sticksstones2.4 𝐴 = {𝑓 ∣ (𝑓:(1...𝐾)⟶(1...𝑁) ∧ ∀𝑥 ∈ (1...𝐾)∀𝑦 ∈ (1...𝐾)(𝑥 < 𝑦 → (𝑓‘𝑥) < (𝑓‘𝑦)))}
sticksstones2.5 𝐹 = (𝑧 ∈ 𝐴 ↦ ran 𝑧)
Assertion
Ref Expression
sticksstones2 (𝜑 → 𝐹:𝐴–1-1→𝐵)
Distinct variable groups:   𝐴,𝑎,𝑧   𝐴,𝑓,𝑧   𝑧,𝐵   𝐾,𝑎,𝑥,𝑦   𝑓,𝐾,𝑥,𝑦   𝑁,𝑎   𝑓,𝑁   𝜑,𝑎,𝑧   𝜑,𝑓   𝑥,𝑧,𝑦
Allowed substitution hints:   𝜑(𝑥, 𝑦)   𝐴(𝑥, 𝑦)   𝐵(𝑥, 𝑦, 𝑓, 𝑎)   𝐹(𝑥, 𝑦, 𝑧, 𝑓, 𝑎)   𝐾(𝑧)   𝑁(𝑥, 𝑦, 𝑧)

Proof of Theorem sticksstones2
Dummy variables 𝑏 𝑖 𝑗 𝑟 𝑠 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 fveqeq2 6899 . . . . . 6 (𝑎 = ran 𝑧 → ((♯‘𝑎) = 𝐾 ↔ (♯‘ran 𝑧) = 𝐾))
2 fzfid 14123 . . . . . . 7 ((𝜑 ∧ 𝑧 ∈ 𝐴) → (1...𝑁) ∈ Fin)
3 eleq1w 2843 . . . . . . . . . . . 12 (𝑓 = 𝑧 → (𝑓 ∈ 𝐴 ↔ 𝑧 ∈ 𝐴))
4 feq1 6692 . . . . . . . . . . . . 13 (𝑓 = 𝑧 → (𝑓:(1...𝐾)⟶(1...𝑁) ↔ 𝑧:(1...𝐾)⟶(1...𝑁)))
5 fveq1 6889 . . . . . . . . . . . . . . . . 17 (𝑓 = 𝑧 → (𝑓‘𝑥) = (𝑧‘𝑥))
6 fveq1 6889 . . . . . . . . . . . . . . . . 17 (𝑓 = 𝑧 → (𝑓‘𝑦) = (𝑧‘𝑦))
75, 6breq12d 5115 . . . . . . . . . . . . . . . 16 (𝑓 = 𝑧 → ((𝑓‘𝑥) < (𝑓‘𝑦) ↔ (𝑧‘𝑥) < (𝑧‘𝑦)))
87imbi2d 343 . . . . . . . . . . . . . . 15 (𝑓 = 𝑧 → ((𝑥 < 𝑦 → (𝑓‘𝑥) < (𝑓‘𝑦)) ↔ (𝑥 < 𝑦 → (𝑧‘𝑥) < (𝑧‘𝑦))))
98ralbidv 3185 . . . . . . . . . . . . . 14 (𝑓 = 𝑧 → (∀𝑦 ∈ (1...𝐾)(𝑥 < 𝑦 → (𝑓‘𝑥) < (𝑓‘𝑦)) ↔ ∀𝑦 ∈ (1...𝐾)(𝑥 < 𝑦 → (𝑧‘𝑥) < (𝑧‘𝑦))))
109ralbidv 3185 . . . . . . . . . . . . 13 (𝑓 = 𝑧 → (∀𝑥 ∈ (1...𝐾)∀𝑦 ∈ (1...𝐾)(𝑥 < 𝑦 → (𝑓‘𝑥) < (𝑓‘𝑦)) ↔ ∀𝑥 ∈ (1...𝐾)∀𝑦 ∈ (1...𝐾)(𝑥 < 𝑦 → (𝑧‘𝑥) < (𝑧‘𝑦))))
114, 10anbi12d 644 . . . . . . . . . . . 12 (𝑓 = 𝑧 → ((𝑓:(1...𝐾)⟶(1...𝑁) ∧ ∀𝑥 ∈ (1...𝐾)∀𝑦 ∈ (1...𝐾)(𝑥 < 𝑦 → (𝑓‘𝑥) < (𝑓‘𝑦))) ↔ (𝑧:(1...𝐾)⟶(1...𝑁) ∧ ∀𝑥 ∈ (1...𝐾)∀𝑦 ∈ (1...𝐾)(𝑥 < 𝑦 → (𝑧‘𝑥) < (𝑧‘𝑦)))))
123, 11bibi12d 348 . . . . . . . . . . 11 (𝑓 = 𝑧 → ((𝑓 ∈ 𝐴 ↔ (𝑓:(1...𝐾)⟶(1...𝑁) ∧ ∀𝑥 ∈ (1...𝐾)∀𝑦 ∈ (1...𝐾)(𝑥 < 𝑦 → (𝑓‘𝑥) < (𝑓‘𝑦)))) ↔ (𝑧 ∈ 𝐴 ↔ (𝑧:(1...𝐾)⟶(1...𝑁) ∧ ∀𝑥 ∈ (1...𝐾)∀𝑦 ∈ (1...𝐾)(𝑥 < 𝑦 → (𝑧‘𝑥) < (𝑧‘𝑦))))))
13 sticksstones2.4 . . . . . . . . . . . . 13 𝐴 = {𝑓 ∣ (𝑓:(1...𝐾)⟶(1...𝑁) ∧ ∀𝑥 ∈ (1...𝐾)∀𝑦 ∈ (1...𝐾)(𝑥 < 𝑦 → (𝑓‘𝑥) < (𝑓‘𝑦)))}
14 eqabb 2899 . . . . . . . . . . . . 13 (𝐴 = {𝑓 ∣ (𝑓:(1...𝐾)⟶(1...𝑁) ∧ ∀𝑥 ∈ (1...𝐾)∀𝑦 ∈ (1...𝐾)(𝑥 < 𝑦 → (𝑓‘𝑥) < (𝑓‘𝑦)))} ↔ ∀𝑓(𝑓 ∈ 𝐴 ↔ (𝑓:(1...𝐾)⟶(1...𝑁) ∧ ∀𝑥 ∈ (1...𝐾)∀𝑦 ∈ (1...𝐾)(𝑥 < 𝑦 → (𝑓‘𝑥) < (𝑓‘𝑦)))))
1513, 14mpbi 233 . . . . . . . . . . . 12 ∀𝑓(𝑓 ∈ 𝐴 ↔ (𝑓:(1...𝐾)⟶(1...𝑁) ∧ ∀𝑥 ∈ (1...𝐾)∀𝑦 ∈ (1...𝐾)(𝑥 < 𝑦 → (𝑓‘𝑥) < (𝑓‘𝑦))))
1615spi 2220 . . . . . . . . . . 11 (𝑓 ∈ 𝐴 ↔ (𝑓:(1...𝐾)⟶(1...𝑁) ∧ ∀𝑥 ∈ (1...𝐾)∀𝑦 ∈ (1...𝐾)(𝑥 < 𝑦 → (𝑓‘𝑥) < (𝑓‘𝑦))))
1712, 16chvarvv 2021 . . . . . . . . . 10 (𝑧 ∈ 𝐴 ↔ (𝑧:(1...𝐾)⟶(1...𝑁) ∧ ∀𝑥 ∈ (1...𝐾)∀𝑦 ∈ (1...𝐾)(𝑥 < 𝑦 → (𝑧‘𝑥) < (𝑧‘𝑦))))
1817bilani 510 . . . . . . . . 9 ((𝜑 ∧ 𝑧 ∈ 𝐴) → (𝑧:(1...𝐾)⟶(1...𝑁) ∧ ∀𝑥 ∈ (1...𝐾)∀𝑦 ∈ (1...𝐾)(𝑥 < 𝑦 → (𝑧‘𝑥) < (𝑧‘𝑦))))
1918simpld 500 . . . . . . . 8 ((𝜑 ∧ 𝑧 ∈ 𝐴) → 𝑧:(1...𝐾)⟶(1...𝑁))
2019frnd 6723 . . . . . . 7 ((𝜑 ∧ 𝑧 ∈ 𝐴) → ran 𝑧 ⊆ (1...𝑁))
212, 20sselpwd 5290 . . . . . 6 ((𝜑 ∧ 𝑧 ∈ 𝐴) → ran 𝑧 ∈ 𝒫 (1...𝑁))
2219ffnd 6715 . . . . . . . . . . 11 ((𝜑 ∧ 𝑧 ∈ 𝐴) → 𝑧 Fn (1...𝐾))
23 hashfn 14526 . . . . . . . . . . 11 (𝑧 Fn (1...𝐾) → (♯‘𝑧) = (♯‘(1...𝐾)))
2422, 23syl 18 . . . . . . . . . 10 ((𝜑 ∧ 𝑧 ∈ 𝐴) → (♯‘𝑧) = (♯‘(1...𝐾)))
25 sticksstones2.2 . . . . . . . . . . . 12 (𝜑 → 𝐾 ∈ ℕ0)
2625adantr 486 . . . . . . . . . . 11 ((𝜑 ∧ 𝑧 ∈ 𝐴) → 𝐾 ∈ ℕ0)
27 hashfz1 14497 . . . . . . . . . . 11 (𝐾 ∈ ℕ0 → (♯‘(1...𝐾)) = 𝐾)
2826, 27syl 18 . . . . . . . . . 10 ((𝜑 ∧ 𝑧 ∈ 𝐴) → (♯‘(1...𝐾)) = 𝐾)
2924, 28eqtrd 2795 . . . . . . . . 9 ((𝜑 ∧ 𝑧 ∈ 𝐴) → (♯‘𝑧) = 𝐾)
3029eqcomd 2766 . . . . . . . 8 ((𝜑 ∧ 𝑧 ∈ 𝐴) → 𝐾 = (♯‘𝑧))
31 fzfid 14123 . . . . . . . . 9 ((𝜑 ∧ 𝑧 ∈ 𝐴) → (1...𝐾) ∈ Fin)
32 elfznn 13694 . . . . . . . . . . . . . . . . . . . 20 (𝑎 ∈ (1...𝐾) → 𝑎 ∈ ℕ)
33323ad2ant3 1153 . . . . . . . . . . . . . . . . . . 19 ((𝜑 ∧ 𝑧 ∈ 𝐴 ∧ 𝑎 ∈ (1...𝐾)) → 𝑎 ∈ ℕ)
3433nnred 12357 . . . . . . . . . . . . . . . . . 18 ((𝜑 ∧ 𝑧 ∈ 𝐴 ∧ 𝑎 ∈ (1...𝐾)) → 𝑎 ∈ ℝ)
3534adantr 486 . . . . . . . . . . . . . . . . 17 (((𝜑 ∧ 𝑧 ∈ 𝐴 ∧ 𝑎 ∈ (1...𝐾)) ∧ 𝑏 ∈ (1...𝐾)) → 𝑎 ∈ ℝ)
36 elfznn 13694 . . . . . . . . . . . . . . . . . . 19 (𝑏 ∈ (1...𝐾) → 𝑏 ∈ ℕ)
3736nnred 12357 . . . . . . . . . . . . . . . . . 18 (𝑏 ∈ (1...𝐾) → 𝑏 ∈ ℝ)
3837adantl 487 . . . . . . . . . . . . . . . . 17 (((𝜑 ∧ 𝑧 ∈ 𝐴 ∧ 𝑎 ∈ (1...𝐾)) ∧ 𝑏 ∈ (1...𝐾)) → 𝑏 ∈ ℝ)
39 lttri2 11399 . . . . . . . . . . . . . . . . 17 ((𝑎 ∈ ℝ ∧ 𝑏 ∈ ℝ) → (𝑎 ≠ 𝑏 ↔ (𝑎 < 𝑏 ∨ 𝑏 < 𝑎)))
4035, 38, 39syl2anc 596 . . . . . . . . . . . . . . . 16 (((𝜑 ∧ 𝑧 ∈ 𝐴 ∧ 𝑎 ∈ (1...𝐾)) ∧ 𝑏 ∈ (1...𝐾)) → (𝑎 ≠ 𝑏 ↔ (𝑎 < 𝑏 ∨ 𝑏 < 𝑎)))
41193adant3 1150 . . . . . . . . . . . . . . . . . . . . . . . 24 ((𝜑 ∧ 𝑧 ∈ 𝐴 ∧ 𝑎 ∈ (1...𝐾)) → 𝑧:(1...𝐾)⟶(1...𝑁))
42 simp3 1156 . . . . . . . . . . . . . . . . . . . . . . . 24 ((𝜑 ∧ 𝑧 ∈ 𝐴 ∧ 𝑎 ∈ (1...𝐾)) → 𝑎 ∈ (1...𝐾))
4341, 42ffvelcdmd 7090 . . . . . . . . . . . . . . . . . . . . . . 23 ((𝜑 ∧ 𝑧 ∈ 𝐴 ∧ 𝑎 ∈ (1...𝐾)) → (𝑧‘𝑎) ∈ (1...𝑁))
4443adantr 486 . . . . . . . . . . . . . . . . . . . . . 22 (((𝜑 ∧ 𝑧 ∈ 𝐴 ∧ 𝑎 ∈ (1...𝐾)) ∧ 𝑏 ∈ (1...𝐾)) → (𝑧‘𝑎) ∈ (1...𝑁))
4544adantr 486 . . . . . . . . . . . . . . . . . . . . 21 ((((𝜑 ∧ 𝑧 ∈ 𝐴 ∧ 𝑎 ∈ (1...𝐾)) ∧ 𝑏 ∈ (1...𝐾)) ∧ 𝑎 < 𝑏) → (𝑧‘𝑎) ∈ (1...𝑁))
46 elfznn 13694 . . . . . . . . . . . . . . . . . . . . 21 ((𝑧‘𝑎) ∈ (1...𝑁) → (𝑧‘𝑎) ∈ ℕ)
4745, 46syl 18 . . . . . . . . . . . . . . . . . . . 20 ((((𝜑 ∧ 𝑧 ∈ 𝐴 ∧ 𝑎 ∈ (1...𝐾)) ∧ 𝑏 ∈ (1...𝐾)) ∧ 𝑎 < 𝑏) → (𝑧‘𝑎) ∈ ℕ)
4847nnred 12357 . . . . . . . . . . . . . . . . . . 19 ((((𝜑 ∧ 𝑧 ∈ 𝐴 ∧ 𝑎 ∈ (1...𝐾)) ∧ 𝑏 ∈ (1...𝐾)) ∧ 𝑎 < 𝑏) → (𝑧‘𝑎) ∈ ℝ)
4918simprd 501 . . . . . . . . . . . . . . . . . . . . . . 23 ((𝜑 ∧ 𝑧 ∈ 𝐴) → ∀𝑥 ∈ (1...𝐾)∀𝑦 ∈ (1...𝐾)(𝑥 < 𝑦 → (𝑧‘𝑥) < (𝑧‘𝑦)))
50493adant3 1150 . . . . . . . . . . . . . . . . . . . . . 22 ((𝜑 ∧ 𝑧 ∈ 𝐴 ∧ 𝑎 ∈ (1...𝐾)) → ∀𝑥 ∈ (1...𝐾)∀𝑦 ∈ (1...𝐾)(𝑥 < 𝑦 → (𝑧‘𝑥) < (𝑧‘𝑦)))
5150adantr 486 . . . . . . . . . . . . . . . . . . . . 21 (((𝜑 ∧ 𝑧 ∈ 𝐴 ∧ 𝑎 ∈ (1...𝐾)) ∧ 𝑏 ∈ (1...𝐾)) → ∀𝑥 ∈ (1...𝐾)∀𝑦 ∈ (1...𝐾)(𝑥 < 𝑦 → (𝑧‘𝑥) < (𝑧‘𝑦)))
5242adantr 486 . . . . . . . . . . . . . . . . . . . . . 22 (((𝜑 ∧ 𝑧 ∈ 𝐴 ∧ 𝑎 ∈ (1...𝐾)) ∧ 𝑏 ∈ (1...𝐾)) → 𝑎 ∈ (1...𝐾))
53 simpr 490 . . . . . . . . . . . . . . . . . . . . . 22 (((𝜑 ∧ 𝑧 ∈ 𝐴 ∧ 𝑎 ∈ (1...𝐾)) ∧ 𝑏 ∈ (1...𝐾)) → 𝑏 ∈ (1...𝐾))
54 breq1 5105 . . . . . . . . . . . . . . . . . . . . . . . 24 (𝑥 = 𝑎 → (𝑥 < 𝑦 ↔ 𝑎 < 𝑦))
55 fveq2 6890 . . . . . . . . . . . . . . . . . . . . . . . . 25 (𝑥 = 𝑎 → (𝑧‘𝑥) = (𝑧‘𝑎))
5655breq1d 5112 . . . . . . . . . . . . . . . . . . . . . . . 24 (𝑥 = 𝑎 → ((𝑧‘𝑥) < (𝑧‘𝑦) ↔ (𝑧‘𝑎) < (𝑧‘𝑦)))
5754, 56imbi12d 347 . . . . . . . . . . . . . . . . . . . . . . 23 (𝑥 = 𝑎 → ((𝑥 < 𝑦 → (𝑧‘𝑥) < (𝑧‘𝑦)) ↔ (𝑎 < 𝑦 → (𝑧‘𝑎) < (𝑧‘𝑦))))
58 breq2 5106 . . . . . . . . . . . . . . . . . . . . . . . 24 (𝑦 = 𝑏 → (𝑎 < 𝑦 ↔ 𝑎 < 𝑏))
59 fveq2 6890 . . . . . . . . . . . . . . . . . . . . . . . . 25 (𝑦 = 𝑏 → (𝑧‘𝑦) = (𝑧‘𝑏))
6059breq2d 5114 . . . . . . . . . . . . . . . . . . . . . . . 24 (𝑦 = 𝑏 → ((𝑧‘𝑎) < (𝑧‘𝑦) ↔ (𝑧‘𝑎) < (𝑧‘𝑏)))
6158, 60imbi12d 347 . . . . . . . . . . . . . . . . . . . . . . 23 (𝑦 = 𝑏 → ((𝑎 < 𝑦 → (𝑧‘𝑎) < (𝑧‘𝑦)) ↔ (𝑎 < 𝑏 → (𝑧‘𝑎) < (𝑧‘𝑏))))
6257, 61rspc2v 3586 . . . . . . . . . . . . . . . . . . . . . 22 ((𝑎 ∈ (1...𝐾) ∧ 𝑏 ∈ (1...𝐾)) → (∀𝑥 ∈ (1...𝐾)∀𝑦 ∈ (1...𝐾)(𝑥 < 𝑦 → (𝑧‘𝑥) < (𝑧‘𝑦)) → (𝑎 < 𝑏 → (𝑧‘𝑎) < (𝑧‘𝑏))))
6352, 53, 62syl2anc 596 . . . . . . . . . . . . . . . . . . . . 21 (((𝜑 ∧ 𝑧 ∈ 𝐴 ∧ 𝑎 ∈ (1...𝐾)) ∧ 𝑏 ∈ (1...𝐾)) → (∀𝑥 ∈ (1...𝐾)∀𝑦 ∈ (1...𝐾)(𝑥 < 𝑦 → (𝑧‘𝑥) < (𝑧‘𝑦)) → (𝑎 < 𝑏 → (𝑧‘𝑎) < (𝑧‘𝑏))))
6451, 63mpd 16 . . . . . . . . . . . . . . . . . . . 20 (((𝜑 ∧ 𝑧 ∈ 𝐴 ∧ 𝑎 ∈ (1...𝐾)) ∧ 𝑏 ∈ (1...𝐾)) → (𝑎 < 𝑏 → (𝑧‘𝑎) < (𝑧‘𝑏)))
6564imp 412 . . . . . . . . . . . . . . . . . . 19 ((((𝜑 ∧ 𝑧 ∈ 𝐴 ∧ 𝑎 ∈ (1...𝐾)) ∧ 𝑏 ∈ (1...𝐾)) ∧ 𝑎 < 𝑏) → (𝑧‘𝑎) < (𝑧‘𝑏))
6648, 65ltned 11453 . . . . . . . . . . . . . . . . . 18 ((((𝜑 ∧ 𝑧 ∈ 𝐴 ∧ 𝑎 ∈ (1...𝐾)) ∧ 𝑏 ∈ (1...𝐾)) ∧ 𝑎 < 𝑏) → (𝑧‘𝑎) ≠ (𝑧‘𝑏))
6741ffvelcdmda 7089 . . . . . . . . . . . . . . . . . . . . . . 23 (((𝜑 ∧ 𝑧 ∈ 𝐴 ∧ 𝑎 ∈ (1...𝐾)) ∧ 𝑏 ∈ (1...𝐾)) → (𝑧‘𝑏) ∈ (1...𝑁))
68 elfznn 13694 . . . . . . . . . . . . . . . . . . . . . . 23 ((𝑧‘𝑏) ∈ (1...𝑁) → (𝑧‘𝑏) ∈ ℕ)
6967, 68syl 18 . . . . . . . . . . . . . . . . . . . . . 22 (((𝜑 ∧ 𝑧 ∈ 𝐴 ∧ 𝑎 ∈ (1...𝐾)) ∧ 𝑏 ∈ (1...𝐾)) → (𝑧‘𝑏) ∈ ℕ)
7069nnred 12357 . . . . . . . . . . . . . . . . . . . . 21 (((𝜑 ∧ 𝑧 ∈ 𝐴 ∧ 𝑎 ∈ (1...𝐾)) ∧ 𝑏 ∈ (1...𝐾)) → (𝑧‘𝑏) ∈ ℝ)
7170adantr 486 . . . . . . . . . . . . . . . . . . . 20 ((((𝜑 ∧ 𝑧 ∈ 𝐴 ∧ 𝑎 ∈ (1...𝐾)) ∧ 𝑏 ∈ (1...𝐾)) ∧ 𝑏 < 𝑎) → (𝑧‘𝑏) ∈ ℝ)
72 breq1 5105 . . . . . . . . . . . . . . . . . . . . . . . . 25 (𝑥 = 𝑏 → (𝑥 < 𝑦 ↔ 𝑏 < 𝑦))
73 fveq2 6890 . . . . . . . . . . . . . . . . . . . . . . . . . 26 (𝑥 = 𝑏 → (𝑧‘𝑥) = (𝑧‘𝑏))
7473breq1d 5112 . . . . . . . . . . . . . . . . . . . . . . . . 25 (𝑥 = 𝑏 → ((𝑧‘𝑥) < (𝑧‘𝑦) ↔ (𝑧‘𝑏) < (𝑧‘𝑦)))
7572, 74imbi12d 347 . . . . . . . . . . . . . . . . . . . . . . . 24 (𝑥 = 𝑏 → ((𝑥 < 𝑦 → (𝑧‘𝑥) < (𝑧‘𝑦)) ↔ (𝑏 < 𝑦 → (𝑧‘𝑏) < (𝑧‘𝑦))))
76 breq2 5106 . . . . . . . . . . . . . . . . . . . . . . . . 25 (𝑦 = 𝑎 → (𝑏 < 𝑦 ↔ 𝑏 < 𝑎))
77 fveq2 6890 . . . . . . . . . . . . . . . . . . . . . . . . . 26 (𝑦 = 𝑎 → (𝑧‘𝑦) = (𝑧‘𝑎))
7877breq2d 5114 . . . . . . . . . . . . . . . . . . . . . . . . 25 (𝑦 = 𝑎 → ((𝑧‘𝑏) < (𝑧‘𝑦) ↔ (𝑧‘𝑏) < (𝑧‘𝑎)))
7976, 78imbi12d 347 . . . . . . . . . . . . . . . . . . . . . . . 24 (𝑦 = 𝑎 → ((𝑏 < 𝑦 → (𝑧‘𝑏) < (𝑧‘𝑦)) ↔ (𝑏 < 𝑎 → (𝑧‘𝑏) < (𝑧‘𝑎))))
8075, 79rspc2v 3586 . . . . . . . . . . . . . . . . . . . . . . 23 ((𝑏 ∈ (1...𝐾) ∧ 𝑎 ∈ (1...𝐾)) → (∀𝑥 ∈ (1...𝐾)∀𝑦 ∈ (1...𝐾)(𝑥 < 𝑦 → (𝑧‘𝑥) < (𝑧‘𝑦)) → (𝑏 < 𝑎 → (𝑧‘𝑏) < (𝑧‘𝑎))))
8153, 52, 80syl2anc 596 . . . . . . . . . . . . . . . . . . . . . 22 (((𝜑 ∧ 𝑧 ∈ 𝐴 ∧ 𝑎 ∈ (1...𝐾)) ∧ 𝑏 ∈ (1...𝐾)) → (∀𝑥 ∈ (1...𝐾)∀𝑦 ∈ (1...𝐾)(𝑥 < 𝑦 → (𝑧‘𝑥) < (𝑧‘𝑦)) → (𝑏 < 𝑎 → (𝑧‘𝑏) < (𝑧‘𝑎))))
8251, 81mpd 16 . . . . . . . . . . . . . . . . . . . . 21 (((𝜑 ∧ 𝑧 ∈ 𝐴 ∧ 𝑎 ∈ (1...𝐾)) ∧ 𝑏 ∈ (1...𝐾)) → (𝑏 < 𝑎 → (𝑧‘𝑏) < (𝑧‘𝑎)))
8382imp 412 . . . . . . . . . . . . . . . . . . . 20 ((((𝜑 ∧ 𝑧 ∈ 𝐴 ∧ 𝑎 ∈ (1...𝐾)) ∧ 𝑏 ∈ (1...𝐾)) ∧ 𝑏 < 𝑎) → (𝑧‘𝑏) < (𝑧‘𝑎))
8471, 83ltned 11453 . . . . . . . . . . . . . . . . . . 19 ((((𝜑 ∧ 𝑧 ∈ 𝐴 ∧ 𝑎 ∈ (1...𝐾)) ∧ 𝑏 ∈ (1...𝐾)) ∧ 𝑏 < 𝑎) → (𝑧‘𝑏) ≠ (𝑧‘𝑎))
8584necomd 3010 . . . . . . . . . . . . . . . . . 18 ((((𝜑 ∧ 𝑧 ∈ 𝐴 ∧ 𝑎 ∈ (1...𝐾)) ∧ 𝑏 ∈ (1...𝐾)) ∧ 𝑏 < 𝑎) → (𝑧‘𝑎) ≠ (𝑧‘𝑏))
8666, 85jaodan 972 . . . . . . . . . . . . . . . . 17 ((((𝜑 ∧ 𝑧 ∈ 𝐴 ∧ 𝑎 ∈ (1...𝐾)) ∧ 𝑏 ∈ (1...𝐾)) ∧ (𝑎 < 𝑏 ∨ 𝑏 < 𝑎)) → (𝑧‘𝑎) ≠ (𝑧‘𝑏))
8786ex 418 . . . . . . . . . . . . . . . 16 (((𝜑 ∧ 𝑧 ∈ 𝐴 ∧ 𝑎 ∈ (1...𝐾)) ∧ 𝑏 ∈ (1...𝐾)) → ((𝑎 < 𝑏 ∨ 𝑏 < 𝑎) → (𝑧‘𝑎) ≠ (𝑧‘𝑏)))
8840, 87sylbid 243 . . . . . . . . . . . . . . 15 (((𝜑 ∧ 𝑧 ∈ 𝐴 ∧ 𝑎 ∈ (1...𝐾)) ∧ 𝑏 ∈ (1...𝐾)) → (𝑎 ≠ 𝑏 → (𝑧‘𝑎) ≠ (𝑧‘𝑏)))
8988necon4d 2979 . . . . . . . . . . . . . 14 (((𝜑 ∧ 𝑧 ∈ 𝐴 ∧ 𝑎 ∈ (1...𝐾)) ∧ 𝑏 ∈ (1...𝐾)) → ((𝑧‘𝑎) = (𝑧‘𝑏) → 𝑎 = 𝑏))
9089ralrimiva 3154 . . . . . . . . . . . . 13 ((𝜑 ∧ 𝑧 ∈ 𝐴 ∧ 𝑎 ∈ (1...𝐾)) → ∀𝑏 ∈ (1...𝐾)((𝑧‘𝑎) = (𝑧‘𝑏) → 𝑎 = 𝑏))
91903expa 1136 . . . . . . . . . . . 12 (((𝜑 ∧ 𝑧 ∈ 𝐴) ∧ 𝑎 ∈ (1...𝐾)) → ∀𝑏 ∈ (1...𝐾)((𝑧‘𝑎) = (𝑧‘𝑏) → 𝑎 = 𝑏))
9291ralrimiva 3154 . . . . . . . . . . 11 ((𝜑 ∧ 𝑧 ∈ 𝐴) → ∀𝑎 ∈ (1...𝐾)∀𝑏 ∈ (1...𝐾)((𝑧‘𝑎) = (𝑧‘𝑏) → 𝑎 = 𝑏))
9319, 92jca 521 . . . . . . . . . 10 ((𝜑 ∧ 𝑧 ∈ 𝐴) → (𝑧:(1...𝐾)⟶(1...𝑁) ∧ ∀𝑎 ∈ (1...𝐾)∀𝑏 ∈ (1...𝐾)((𝑧‘𝑎) = (𝑧‘𝑏) → 𝑎 = 𝑏)))
94 dff13 7262 . . . . . . . . . 10 (𝑧:(1...𝐾)–1-1→(1...𝑁) ↔ (𝑧:(1...𝐾)⟶(1...𝑁) ∧ ∀𝑎 ∈ (1...𝐾)∀𝑏 ∈ (1...𝐾)((𝑧‘𝑎) = (𝑧‘𝑏) → 𝑎 = 𝑏)))
9593, 94sylibr 237 . . . . . . . . 9 ((𝜑 ∧ 𝑧 ∈ 𝐴) → 𝑧:(1...𝐾)–1-1→(1...𝑁))
96 hashf1rn 14503 . . . . . . . . 9 (((1...𝐾) ∈ Fin ∧ 𝑧:(1...𝐾)–1-1→(1...𝑁)) → (♯‘𝑧) = (♯‘ran 𝑧))
9731, 95, 96syl2anc 596 . . . . . . . 8 ((𝜑 ∧ 𝑧 ∈ 𝐴) → (♯‘𝑧) = (♯‘ran 𝑧))
9830, 97eqtrd 2795 . . . . . . 7 ((𝜑 ∧ 𝑧 ∈ 𝐴) → 𝐾 = (♯‘ran 𝑧))
9998eqcomd 2766 . . . . . 6 ((𝜑 ∧ 𝑧 ∈ 𝐴) → (♯‘ran 𝑧) = 𝐾)
1001, 21, 99elrabd 3646 . . . . 5 ((𝜑 ∧ 𝑧 ∈ 𝐴) → ran 𝑧 ∈ {𝑎 ∈ 𝒫 (1...𝑁) ∣ (♯‘𝑎) = 𝐾})
101 sticksstones2.3 . . . . . . 7 𝐵 = {𝑎 ∈ 𝒫 (1...𝑁) ∣ (♯‘𝑎) = 𝐾}
102101eleq2i 2852 . . . . . 6 (ran 𝑧 ∈ 𝐵 ↔ ran 𝑧 ∈ {𝑎 ∈ 𝒫 (1...𝑁) ∣ (♯‘𝑎) = 𝐾})
103102a1i 11 . . . . 5 ((𝜑 ∧ 𝑧 ∈ 𝐴) → (ran 𝑧 ∈ 𝐵 ↔ ran 𝑧 ∈ {𝑎 ∈ 𝒫 (1...𝑁) ∣ (♯‘𝑎) = 𝐾}))
104100, 103mpbird 260 . . . 4 ((𝜑 ∧ 𝑧 ∈ 𝐴) → ran 𝑧 ∈ 𝐵)
105 sticksstones2.5 . . . 4 𝐹 = (𝑧 ∈ 𝐴 ↦ ran 𝑧)
106104, 105fmptd 7119 . . 3 (𝜑 → 𝐹:𝐴⟶𝐵)
107 sticksstones2.1 . . . . . . . . . . . 12 (𝜑 → 𝑁 ∈ ℕ0)
1081073ad2ant1 1151 . . . . . . . . . . 11 ((𝜑 ∧ 𝑖 ∈ 𝐴 ∧ 𝑗 ∈ 𝐴) → 𝑁 ∈ ℕ0)
109108adantr 486 . . . . . . . . . 10 (((𝜑 ∧ 𝑖 ∈ 𝐴 ∧ 𝑗 ∈ 𝐴) ∧ 𝑖 ≠ 𝑗) → 𝑁 ∈ ℕ0)
110253ad2ant1 1151 . . . . . . . . . . 11 ((𝜑 ∧ 𝑖 ∈ 𝐴 ∧ 𝑗 ∈ 𝐴) → 𝐾 ∈ ℕ0)
111110adantr 486 . . . . . . . . . 10 (((𝜑 ∧ 𝑖 ∈ 𝐴 ∧ 𝑗 ∈ 𝐴) ∧ 𝑖 ≠ 𝑗) → 𝐾 ∈ ℕ0)
112 simpl2 1211 . . . . . . . . . 10 (((𝜑 ∧ 𝑖 ∈ 𝐴 ∧ 𝑗 ∈ 𝐴) ∧ 𝑖 ≠ 𝑗) → 𝑖 ∈ 𝐴)
113 simpl3 1212 . . . . . . . . . 10 (((𝜑 ∧ 𝑖 ∈ 𝐴 ∧ 𝑗 ∈ 𝐴) ∧ 𝑖 ≠ 𝑗) → 𝑗 ∈ 𝐴)
114 simpr 490 . . . . . . . . . 10 (((𝜑 ∧ 𝑖 ∈ 𝐴 ∧ 𝑗 ∈ 𝐴) ∧ 𝑖 ≠ 𝑗) → 𝑖 ≠ 𝑗)
115 fveq2 6890 . . . . . . . . . . . . 13 (𝑟 = 𝑠 → (𝑖‘𝑟) = (𝑖‘𝑠))
116 fveq2 6890 . . . . . . . . . . . . 13 (𝑟 = 𝑠 → (𝑗‘𝑟) = (𝑗‘𝑠))
117115, 116neeq12d 3016 . . . . . . . . . . . 12 (𝑟 = 𝑠 → ((𝑖‘𝑟) ≠ (𝑗‘𝑟) ↔ (𝑖‘𝑠) ≠ (𝑗‘𝑠)))
118117cbvrabv 3422 . . . . . . . . . . 11 {𝑟 ∈ (1...𝐾) ∣ (𝑖‘𝑟) ≠ (𝑗‘𝑟)} = {𝑠 ∈ (1...𝐾) ∣ (𝑖‘𝑠) ≠ (𝑗‘𝑠)}
119118infeq1i 9478 . . . . . . . . . 10 inf({𝑟 ∈ (1...𝐾) ∣ (𝑖‘𝑟) ≠ (𝑗‘𝑟)}, ℝ, < ) = inf({𝑠 ∈ (1...𝐾) ∣ (𝑖‘𝑠) ≠ (𝑗‘𝑠)}, ℝ, < )
120109, 111, 13, 112, 113, 114, 119sticksstones1 43333 . . . . . . . . 9 (((𝜑 ∧ 𝑖 ∈ 𝐴 ∧ 𝑗 ∈ 𝐴) ∧ 𝑖 ≠ 𝑗) → ran 𝑖 ≠ ran 𝑗)
121105a1i 11 . . . . . . . . . 10 (((𝜑 ∧ 𝑖 ∈ 𝐴 ∧ 𝑗 ∈ 𝐴) ∧ 𝑖 ≠ 𝑗) → 𝐹 = (𝑧 ∈ 𝐴 ↦ ran 𝑧))
122 simpr 490 . . . . . . . . . . 11 ((((𝜑 ∧ 𝑖 ∈ 𝐴 ∧ 𝑗 ∈ 𝐴) ∧ 𝑖 ≠ 𝑗) ∧ 𝑧 = 𝑖) → 𝑧 = 𝑖)
123122rneqd 5921 . . . . . . . . . 10 ((((𝜑 ∧ 𝑖 ∈ 𝐴 ∧ 𝑗 ∈ 𝐴) ∧ 𝑖 ≠ 𝑗) ∧ 𝑧 = 𝑖) → ran 𝑧 = ran 𝑖)
124 fzfid 14123 . . . . . . . . . . 11 (((𝜑 ∧ 𝑖 ∈ 𝐴 ∧ 𝑗 ∈ 𝐴) ∧ 𝑖 ≠ 𝑗) → (1...𝑁) ∈ Fin)
125 eleq1w 2843 . . . . . . . . . . . . . . . . . 18 (𝑓 = 𝑖 → (𝑓 ∈ 𝐴 ↔ 𝑖 ∈ 𝐴))
126 feq1 6692 . . . . . . . . . . . . . . . . . . 19 (𝑓 = 𝑖 → (𝑓:(1...𝐾)⟶(1...𝑁) ↔ 𝑖:(1...𝐾)⟶(1...𝑁)))
127 fveq1 6889 . . . . . . . . . . . . . . . . . . . . . 22 (𝑓 = 𝑖 → (𝑓‘𝑥) = (𝑖‘𝑥))
128 fveq1 6889 . . . . . . . . . . . . . . . . . . . . . 22 (𝑓 = 𝑖 → (𝑓‘𝑦) = (𝑖‘𝑦))
129127, 128breq12d 5115 . . . . . . . . . . . . . . . . . . . . 21 (𝑓 = 𝑖 → ((𝑓‘𝑥) < (𝑓‘𝑦) ↔ (𝑖‘𝑥) < (𝑖‘𝑦)))
130129imbi2d 343 . . . . . . . . . . . . . . . . . . . 20 (𝑓 = 𝑖 → ((𝑥 < 𝑦 → (𝑓‘𝑥) < (𝑓‘𝑦)) ↔ (𝑥 < 𝑦 → (𝑖‘𝑥) < (𝑖‘𝑦))))
1311302ralbidv 3226 . . . . . . . . . . . . . . . . . . 19 (𝑓 = 𝑖 → (∀𝑥 ∈ (1...𝐾)∀𝑦 ∈ (1...𝐾)(𝑥 < 𝑦 → (𝑓‘𝑥) < (𝑓‘𝑦)) ↔ ∀𝑥 ∈ (1...𝐾)∀𝑦 ∈ (1...𝐾)(𝑥 < 𝑦 → (𝑖‘𝑥) < (𝑖‘𝑦))))
132126, 131anbi12d 644 . . . . . . . . . . . . . . . . . 18 (𝑓 = 𝑖 → ((𝑓:(1...𝐾)⟶(1...𝑁) ∧ ∀𝑥 ∈ (1...𝐾)∀𝑦 ∈ (1...𝐾)(𝑥 < 𝑦 → (𝑓‘𝑥) < (𝑓‘𝑦))) ↔ (𝑖:(1...𝐾)⟶(1...𝑁) ∧ ∀𝑥 ∈ (1...𝐾)∀𝑦 ∈ (1...𝐾)(𝑥 < 𝑦 → (𝑖‘𝑥) < (𝑖‘𝑦)))))
133125, 132bibi12d 348 . . . . . . . . . . . . . . . . 17 (𝑓 = 𝑖 → ((𝑓 ∈ 𝐴 ↔ (𝑓:(1...𝐾)⟶(1...𝑁) ∧ ∀𝑥 ∈ (1...𝐾)∀𝑦 ∈ (1...𝐾)(𝑥 < 𝑦 → (𝑓‘𝑥) < (𝑓‘𝑦)))) ↔ (𝑖 ∈ 𝐴 ↔ (𝑖:(1...𝐾)⟶(1...𝑁) ∧ ∀𝑥 ∈ (1...𝐾)∀𝑦 ∈ (1...𝐾)(𝑥 < 𝑦 → (𝑖‘𝑥) < (𝑖‘𝑦))))))
134133, 16chvarvv 2021 . . . . . . . . . . . . . . . 16 (𝑖 ∈ 𝐴 ↔ (𝑖:(1...𝐾)⟶(1...𝑁) ∧ ∀𝑥 ∈ (1...𝐾)∀𝑦 ∈ (1...𝐾)(𝑥 < 𝑦 → (𝑖‘𝑥) < (𝑖‘𝑦))))
135134bilani 510 . . . . . . . . . . . . . . 15 ((𝜑 ∧ 𝑖 ∈ 𝐴) → (𝑖:(1...𝐾)⟶(1...𝑁) ∧ ∀𝑥 ∈ (1...𝐾)∀𝑦 ∈ (1...𝐾)(𝑥 < 𝑦 → (𝑖‘𝑥) < (𝑖‘𝑦))))
136135simpld 500 . . . . . . . . . . . . . 14 ((𝜑 ∧ 𝑖 ∈ 𝐴) → 𝑖:(1...𝐾)⟶(1...𝑁))
1371363adant3 1150 . . . . . . . . . . . . 13 ((𝜑 ∧ 𝑖 ∈ 𝐴 ∧ 𝑗 ∈ 𝐴) → 𝑖:(1...𝐾)⟶(1...𝑁))
138137adantr 486 . . . . . . . . . . . 12 (((𝜑 ∧ 𝑖 ∈ 𝐴 ∧ 𝑗 ∈ 𝐴) ∧ 𝑖 ≠ 𝑗) → 𝑖:(1...𝐾)⟶(1...𝑁))
139138frnd 6723 . . . . . . . . . . 11 (((𝜑 ∧ 𝑖 ∈ 𝐴 ∧ 𝑗 ∈ 𝐴) ∧ 𝑖 ≠ 𝑗) → ran 𝑖 ⊆ (1...𝑁))
140124, 139sselpwd 5290 . . . . . . . . . 10 (((𝜑 ∧ 𝑖 ∈ 𝐴 ∧ 𝑗 ∈ 𝐴) ∧ 𝑖 ≠ 𝑗) → ran 𝑖 ∈ 𝒫 (1...𝑁))
141121, 123, 112, 140fvmptd 7006 . . . . . . . . 9 (((𝜑 ∧ 𝑖 ∈ 𝐴 ∧ 𝑗 ∈ 𝐴) ∧ 𝑖 ≠ 𝑗) → (𝐹‘𝑖) = ran 𝑖)
142 simpr 490 . . . . . . . . . . 11 ((((𝜑 ∧ 𝑖 ∈ 𝐴 ∧ 𝑗 ∈ 𝐴) ∧ 𝑖 ≠ 𝑗) ∧ 𝑧 = 𝑗) → 𝑧 = 𝑗)
143142rneqd 5921 . . . . . . . . . 10 ((((𝜑 ∧ 𝑖 ∈ 𝐴 ∧ 𝑗 ∈ 𝐴) ∧ 𝑖 ≠ 𝑗) ∧ 𝑧 = 𝑗) → ran 𝑧 = ran 𝑗)
144 fzfid 14123 . . . . . . . . . . . . 13 (𝜑 → (1...𝑁) ∈ Fin)
1451443ad2ant1 1151 . . . . . . . . . . . 12 ((𝜑 ∧ 𝑖 ∈ 𝐴 ∧ 𝑗 ∈ 𝐴) → (1...𝑁) ∈ Fin)
146 eleq1w 2843 . . . . . . . . . . . . . . . . . 18 (𝑓 = 𝑗 → (𝑓 ∈ 𝐴 ↔ 𝑗 ∈ 𝐴))
147 feq1 6692 . . . . . . . . . . . . . . . . . . 19 (𝑓 = 𝑗 → (𝑓:(1...𝐾)⟶(1...𝑁) ↔ 𝑗:(1...𝐾)⟶(1...𝑁)))
148 fveq1 6889 . . . . . . . . . . . . . . . . . . . . . 22 (𝑓 = 𝑗 → (𝑓‘𝑥) = (𝑗‘𝑥))
149 fveq1 6889 . . . . . . . . . . . . . . . . . . . . . 22 (𝑓 = 𝑗 → (𝑓‘𝑦) = (𝑗‘𝑦))
150148, 149breq12d 5115 . . . . . . . . . . . . . . . . . . . . 21 (𝑓 = 𝑗 → ((𝑓‘𝑥) < (𝑓‘𝑦) ↔ (𝑗‘𝑥) < (𝑗‘𝑦)))
151150imbi2d 343 . . . . . . . . . . . . . . . . . . . 20 (𝑓 = 𝑗 → ((𝑥 < 𝑦 → (𝑓‘𝑥) < (𝑓‘𝑦)) ↔ (𝑥 < 𝑦 → (𝑗‘𝑥) < (𝑗‘𝑦))))
1521512ralbidv 3226 . . . . . . . . . . . . . . . . . . 19 (𝑓 = 𝑗 → (∀𝑥 ∈ (1...𝐾)∀𝑦 ∈ (1...𝐾)(𝑥 < 𝑦 → (𝑓‘𝑥) < (𝑓‘𝑦)) ↔ ∀𝑥 ∈ (1...𝐾)∀𝑦 ∈ (1...𝐾)(𝑥 < 𝑦 → (𝑗‘𝑥) < (𝑗‘𝑦))))
153147, 152anbi12d 644 . . . . . . . . . . . . . . . . . 18 (𝑓 = 𝑗 → ((𝑓:(1...𝐾)⟶(1...𝑁) ∧ ∀𝑥 ∈ (1...𝐾)∀𝑦 ∈ (1...𝐾)(𝑥 < 𝑦 → (𝑓‘𝑥) < (𝑓‘𝑦))) ↔ (𝑗:(1...𝐾)⟶(1...𝑁) ∧ ∀𝑥 ∈ (1...𝐾)∀𝑦 ∈ (1...𝐾)(𝑥 < 𝑦 → (𝑗‘𝑥) < (𝑗‘𝑦)))))
154146, 153bibi12d 348 . . . . . . . . . . . . . . . . 17 (𝑓 = 𝑗 → ((𝑓 ∈ 𝐴 ↔ (𝑓:(1...𝐾)⟶(1...𝑁) ∧ ∀𝑥 ∈ (1...𝐾)∀𝑦 ∈ (1...𝐾)(𝑥 < 𝑦 → (𝑓‘𝑥) < (𝑓‘𝑦)))) ↔ (𝑗 ∈ 𝐴 ↔ (𝑗:(1...𝐾)⟶(1...𝑁) ∧ ∀𝑥 ∈ (1...𝐾)∀𝑦 ∈ (1...𝐾)(𝑥 < 𝑦 → (𝑗‘𝑥) < (𝑗‘𝑦))))))
155154, 16chvarvv 2021 . . . . . . . . . . . . . . . 16 (𝑗 ∈ 𝐴 ↔ (𝑗:(1...𝐾)⟶(1...𝑁) ∧ ∀𝑥 ∈ (1...𝐾)∀𝑦 ∈ (1...𝐾)(𝑥 < 𝑦 → (𝑗‘𝑥) < (𝑗‘𝑦))))
156155bilani 510 . . . . . . . . . . . . . . 15 ((𝜑 ∧ 𝑗 ∈ 𝐴) → (𝑗:(1...𝐾)⟶(1...𝑁) ∧ ∀𝑥 ∈ (1...𝐾)∀𝑦 ∈ (1...𝐾)(𝑥 < 𝑦 → (𝑗‘𝑥) < (𝑗‘𝑦))))
157156simpld 500 . . . . . . . . . . . . . 14 ((𝜑 ∧ 𝑗 ∈ 𝐴) → 𝑗:(1...𝐾)⟶(1...𝑁))
1581573adant2 1149 . . . . . . . . . . . . 13 ((𝜑 ∧ 𝑖 ∈ 𝐴 ∧ 𝑗 ∈ 𝐴) → 𝑗:(1...𝐾)⟶(1...𝑁))
159158frnd 6723 . . . . . . . . . . . 12 ((𝜑 ∧ 𝑖 ∈ 𝐴 ∧ 𝑗 ∈ 𝐴) → ran 𝑗 ⊆ (1...𝑁))
160145, 159sselpwd 5290 . . . . . . . . . . 11 ((𝜑 ∧ 𝑖 ∈ 𝐴 ∧ 𝑗 ∈ 𝐴) → ran 𝑗 ∈ 𝒫 (1...𝑁))
161160adantr 486 . . . . . . . . . 10 (((𝜑 ∧ 𝑖 ∈ 𝐴 ∧ 𝑗 ∈ 𝐴) ∧ 𝑖 ≠ 𝑗) → ran 𝑗 ∈ 𝒫 (1...𝑁))
162121, 143, 113, 161fvmptd 7006 . . . . . . . . 9 (((𝜑 ∧ 𝑖 ∈ 𝐴 ∧ 𝑗 ∈ 𝐴) ∧ 𝑖 ≠ 𝑗) → (𝐹‘𝑗) = ran 𝑗)
163120, 141, 1623netr4d 3032 . . . . . . . 8 (((𝜑 ∧ 𝑖 ∈ 𝐴 ∧ 𝑗 ∈ 𝐴) ∧ 𝑖 ≠ 𝑗) → (𝐹‘𝑖) ≠ (𝐹‘𝑗))
164163ex 418 . . . . . . 7 ((𝜑 ∧ 𝑖 ∈ 𝐴 ∧ 𝑗 ∈ 𝐴) → (𝑖 ≠ 𝑗 → (𝐹‘𝑖) ≠ (𝐹‘𝑗)))
165164necon4d 2979 . . . . . 6 ((𝜑 ∧ 𝑖 ∈ 𝐴 ∧ 𝑗 ∈ 𝐴) → ((𝐹‘𝑖) = (𝐹‘𝑗) → 𝑖 = 𝑗))
1661653expa 1136 . . . . 5 (((𝜑 ∧ 𝑖 ∈ 𝐴) ∧ 𝑗 ∈ 𝐴) → ((𝐹‘𝑖) = (𝐹‘𝑗) → 𝑖 = 𝑗))
167166ralrimiva 3154 . . . 4 ((𝜑 ∧ 𝑖 ∈ 𝐴) → ∀𝑗 ∈ 𝐴 ((𝐹‘𝑖) = (𝐹‘𝑗) → 𝑖 = 𝑗))
168167ralrimiva 3154 . . 3 (𝜑 → ∀𝑖 ∈ 𝐴 ∀𝑗 ∈ 𝐴 ((𝐹‘𝑖) = (𝐹‘𝑗) → 𝑖 = 𝑗))
169106, 168jca 521 . 2 (𝜑 → (𝐹:𝐴⟶𝐵 ∧ ∀𝑖 ∈ 𝐴 ∀𝑗 ∈ 𝐴 ((𝐹‘𝑖) = (𝐹‘𝑗) → 𝑖 = 𝑗)))
170 dff13 7262 . 2 (𝐹:𝐴–1-1→𝐵 ↔ (𝐹:𝐴⟶𝐵 ∧ ∀𝑖 ∈ 𝐴 ∀𝑗 ∈ 𝐴 ((𝐹‘𝑖) = (𝐹‘𝑗) → 𝑖 = 𝑗)))
171169, 170sylibr 237 1 (𝜑 → 𝐹:𝐴–1-1→𝐵)
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   → wi 4   ↔ wb 209   ∧ wa 401   ∨ wo 861   ∧ w3a 1103  ∀wal 1567   = wceq 1569   ∈ wcel 2144  {cab 2738   ≠ wne 2955  ∀wral 3076  {crab 3412  𝒫 cpw 4556   class class class wbr 5102   ↦ cmpt 5185  ran crn 5652   Fn wfn 6538  ⟶wf 6539  –1-1→wf1 6540  ‘cfv 6543  (class class class)co 7424  Fincfn 8981  infcinf 9440  ℝcr 11206  1c1 11208   < clt 11350  ℕcn 12342  ℕ0cn0 12613  ...cfz 13646  ♯chash 14481
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1827  ax-4 1841  ax-5 1942  ax-6 1999  ax-7 2040  ax-8 2146  ax-9 2154  ax-10 2177  ax-11 2193  ax-12 2212  ax-ext 2732  ax-rep 5231  ax-sep 5248  ax-nul 5259  ax-pow 5327  ax-pr 5391  ax-un 7755  ax-cnex 11263  ax-resscn 11264  ax-1cn 11265  ax-icn 11266  ax-addcl 11267  ax-addrcl 11268  ax-mulcl 11269  ax-mulrcl 11270  ax-mulcom 11271  ax-addass 11272  ax-mulass 11273  ax-distr 11274  ax-i2m1 11275  ax-1ne0 11276  ax-1rid 11277  ax-rnegex 11278  ax-rrecex 11279  ax-cnre 11280  ax-pre-lttri 11281  ax-pre-lttrn 11282  ax-pre-ltadd 11283  ax-pre-mulgt0 11284  ax-pre-sup 11285
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3or 1104  df-3an 1105  df-tru 1572  df-fal 1582  df-ex 1812  df-nf 1816  df-sb 2099  df-mo 2564  df-eu 2594  df-clab 2739  df-cleq 2752  df-clel 2835  df-nfc 2909  df-ne 2956  df-nel 3062  df-ral 3077  df-rex 3087  df-rmo 3365  df-reu 3366  df-rab 3413  df-v 3452  df-sbc 3739  df-csb 3848  df-ss 3897  df-pss 4013  df-dif 4046  df-in 4090  df-un 4150  df-nul 4278  df-if 4482  df-pw 4558  df-sn 4585  df-pr 4587  df-op 4835  df-uni 4867  df-int 4907  df-iun 4952  df-br 5103  df-opab 5167  df-mpt 5186  df-tr 5212  df-id 5546  df-eprel 5551  df-po 5559  df-so 5560  df-fr 5604  df-we 5606  df-xp 5657  df-rel 5658  df-cnv 5659  df-co 5660  df-dm 5661  df-rn 5662  df-res 5663  df-ima 5664  df-pred 6307  df-ord 6368  df-on 6369  df-lim 6370  df-suc 6371  df-iota 6497  df-fun 6545  df-fn 6546  df-f 6547  df-f1 6548  df-fo 6549  df-f1o 6550  df-fv 6551  df-riota 7381  df-ov 7427  df-oprab 7428  df-mpo 7429  df-om 7882  df-1st 8005  df-2nd 8006  df-frecs 8307  df-wrecs 8338  df-recs 8387  df-rdg 8426  df-1o 8484  df-er 8725  df-en 8982  df-dom 8983  df-sdom 8984  df-fin 8985  df-sup 9441  df-inf 9442  df-card 10027  df-pnf 11352  df-mnf 11353  df-xr 11354  df-ltxr 11355  df-le 11356  df-sub 11550  df-neg 11551  df-nn 12343  df-n0 12614  df-z 12701  df-uz 12973  df-fz 13647  df-hash 14482
This theorem is used by:  sticksstones3  43335  sticksstones4  43336
  Copyright terms: Public domain W3C validator