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 43197
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 6894 . . . . . 6 (𝑎 = ran 𝑧 → ((♯‘𝑎) = 𝐾 ↔ (♯‘ran 𝑧) = 𝐾))
2 fzfid 14116 . . . . . . 7 ((𝜑 ∧ 𝑧 ∈ 𝐴) → (1...𝑁) ∈ Fin)
3 eleq1w 2844 . . . . . . . . . . . 12 (𝑓 = 𝑧 → (𝑓 ∈ 𝐴 ↔ 𝑧 ∈ 𝐴))
4 feq1 6687 . . . . . . . . . . . . 13 (𝑓 = 𝑧 → (𝑓:(1...𝐾)⟶(1...𝑁) ↔ 𝑧:(1...𝐾)⟶(1...𝑁)))
5 fveq1 6884 . . . . . . . . . . . . . . . . 17 (𝑓 = 𝑧 → (𝑓‘𝑥) = (𝑧‘𝑥))
6 fveq1 6884 . . . . . . . . . . . . . . . . 17 (𝑓 = 𝑧 → (𝑓‘𝑦) = (𝑧‘𝑦))
75, 6breq12d 5116 . . . . . . . . . . . . . . . 16 (𝑓 = 𝑧 → ((𝑓‘𝑥) < (𝑓‘𝑦) ↔ (𝑧‘𝑥) < (𝑧‘𝑦)))
87imbi2d 343 . . . . . . . . . . . . . . 15 (𝑓 = 𝑧 → ((𝑥 < 𝑦 → (𝑓‘𝑥) < (𝑓‘𝑦)) ↔ (𝑥 < 𝑦 → (𝑧‘𝑥) < (𝑧‘𝑦))))
98ralbidv 3186 . . . . . . . . . . . . . 14 (𝑓 = 𝑧 → (∀𝑦 ∈ (1...𝐾)(𝑥 < 𝑦 → (𝑓‘𝑥) < (𝑓‘𝑦)) ↔ ∀𝑦 ∈ (1...𝐾)(𝑥 < 𝑦 → (𝑧‘𝑥) < (𝑧‘𝑦))))
109ralbidv 3186 . . . . . . . . . . . . 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 2900 . . . . . . . . . . . . 13 (𝐴 = {𝑓 ∣ (𝑓:(1...𝐾)⟶(1...𝑁) ∧ ∀𝑥 ∈ (1...𝐾)∀𝑦 ∈ (1...𝐾)(𝑥 < 𝑦 → (𝑓‘𝑥) < (𝑓‘𝑦)))} ↔ ∀𝑓(𝑓 ∈ 𝐴 ↔ (𝑓:(1...𝐾)⟶(1...𝑁) ∧ ∀𝑥 ∈ (1...𝐾)∀𝑦 ∈ (1...𝐾)(𝑥 < 𝑦 → (𝑓‘𝑥) < (𝑓‘𝑦)))))
1513, 14mpbi 233 . . . . . . . . . . . 12 ∀𝑓(𝑓 ∈ 𝐴 ↔ (𝑓:(1...𝐾)⟶(1...𝑁) ∧ ∀𝑥 ∈ (1...𝐾)∀𝑦 ∈ (1...𝐾)(𝑥 < 𝑦 → (𝑓‘𝑥) < (𝑓‘𝑦))))
1615spi 2221 . . . . . . . . . . 11 (𝑓 ∈ 𝐴 ↔ (𝑓:(1...𝐾)⟶(1...𝑁) ∧ ∀𝑥 ∈ (1...𝐾)∀𝑦 ∈ (1...𝐾)(𝑥 < 𝑦 → (𝑓‘𝑥) < (𝑓‘𝑦))))
1712, 16chvarvv 2022 . . . . . . . . . 10 (𝑧 ∈ 𝐴 ↔ (𝑧:(1...𝐾)⟶(1...𝑁) ∧ ∀𝑥 ∈ (1...𝐾)∀𝑦 ∈ (1...𝐾)(𝑥 < 𝑦 → (𝑧‘𝑥) < (𝑧‘𝑦))))
1817bilani 510 . . . . . . . . 9 ((𝜑 ∧ 𝑧 ∈ 𝐴) → (𝑧:(1...𝐾)⟶(1...𝑁) ∧ ∀𝑥 ∈ (1...𝐾)∀𝑦 ∈ (1...𝐾)(𝑥 < 𝑦 → (𝑧‘𝑥) < (𝑧‘𝑦))))
1918simpld 500 . . . . . . . 8 ((𝜑 ∧ 𝑧 ∈ 𝐴) → 𝑧:(1...𝐾)⟶(1...𝑁))
2019frnd 6718 . . . . . . 7 ((𝜑 ∧ 𝑧 ∈ 𝐴) → ran 𝑧 ⊆ (1...𝑁))
212, 20sselpwd 5290 . . . . . 6 ((𝜑 ∧ 𝑧 ∈ 𝐴) → ran 𝑧 ∈ 𝒫 (1...𝑁))
2219ffnd 6710 . . . . . . . . . . 11 ((𝜑 ∧ 𝑧 ∈ 𝐴) → 𝑧 Fn (1...𝐾))
23 hashfn 14519 . . . . . . . . . . 11 (𝑧 Fn (1...𝐾) → (♯‘𝑧) = (♯‘(1...𝐾)))
2422, 23syl 18 . . . . . . . . . 10 ((𝜑 ∧ 𝑧 ∈ 𝐴) → (♯‘𝑧) = (♯‘(1...𝐾)))
25 sticksstones2.2 . . . . . . . . . . . 12 (𝜑 → 𝐾 ∈ ℕ0)
2625adantr 486 . . . . . . . . . . 11 ((𝜑 ∧ 𝑧 ∈ 𝐴) → 𝐾 ∈ ℕ0)
27 hashfz1 14490 . . . . . . . . . . 11 (𝐾 ∈ ℕ0 → (♯‘(1...𝐾)) = 𝐾)
2826, 27syl 18 . . . . . . . . . 10 ((𝜑 ∧ 𝑧 ∈ 𝐴) → (♯‘(1...𝐾)) = 𝐾)
2924, 28eqtrd 2796 . . . . . . . . 9 ((𝜑 ∧ 𝑧 ∈ 𝐴) → (♯‘𝑧) = 𝐾)
3029eqcomd 2767 . . . . . . . 8 ((𝜑 ∧ 𝑧 ∈ 𝐴) → 𝐾 = (♯‘𝑧))
31 fzfid 14116 . . . . . . . . 9 ((𝜑 ∧ 𝑧 ∈ 𝐴) → (1...𝐾) ∈ Fin)
32 elfznn 13687 . . . . . . . . . . . . . . . . . . . 20 (𝑎 ∈ (1...𝐾) → 𝑎 ∈ ℕ)
33323ad2ant3 1153 . . . . . . . . . . . . . . . . . . 19 ((𝜑 ∧ 𝑧 ∈ 𝐴 ∧ 𝑎 ∈ (1...𝐾)) → 𝑎 ∈ ℕ)
3433nnred 12350 . . . . . . . . . . . . . . . . . 18 ((𝜑 ∧ 𝑧 ∈ 𝐴 ∧ 𝑎 ∈ (1...𝐾)) → 𝑎 ∈ ℝ)
3534adantr 486 . . . . . . . . . . . . . . . . 17 (((𝜑 ∧ 𝑧 ∈ 𝐴 ∧ 𝑎 ∈ (1...𝐾)) ∧ 𝑏 ∈ (1...𝐾)) → 𝑎 ∈ ℝ)
36 elfznn 13687 . . . . . . . . . . . . . . . . . . 19 (𝑏 ∈ (1...𝐾) → 𝑏 ∈ ℕ)
3736nnred 12350 . . . . . . . . . . . . . . . . . 18 (𝑏 ∈ (1...𝐾) → 𝑏 ∈ ℝ)
3837adantl 487 . . . . . . . . . . . . . . . . 17 (((𝜑 ∧ 𝑧 ∈ 𝐴 ∧ 𝑎 ∈ (1...𝐾)) ∧ 𝑏 ∈ (1...𝐾)) → 𝑏 ∈ ℝ)
39 lttri2 11392 . . . . . . . . . . . . . . . . 17 ((𝑎 ∈ ℝ ∧ 𝑏 ∈ ℝ) → (𝑎 ≠ 𝑏 ↔ (𝑎 < 𝑏 ∨ 𝑏 < 𝑎)))
4035, 38, 39syl2anc 596 . . . . . . . . . . . . . . . 16 (((𝜑 ∧ 𝑧 ∈ 𝐴 ∧ 𝑎 ∈ (1...𝐾)) ∧ 𝑏 ∈ (1...𝐾)) → (𝑎 ≠ 𝑏 ↔ (𝑎 < 𝑏 ∨ 𝑏 < 𝑎)))
41193adant3 1150 . . . . . . . . . . . . . . . . . . . . . . . 24 ((𝜑 ∧ 𝑧 ∈ 𝐴 ∧ 𝑎 ∈ (1...𝐾)) → 𝑧:(1...𝐾)⟶(1...𝑁))
42 simp3 1156 . . . . . . . . . . . . . . . . . . . . . . . 24 ((𝜑 ∧ 𝑧 ∈ 𝐴 ∧ 𝑎 ∈ (1...𝐾)) → 𝑎 ∈ (1...𝐾))
4341, 42ffvelcdmd 7085 . . . . . . . . . . . . . . . . . . . . . . 23 ((𝜑 ∧ 𝑧 ∈ 𝐴 ∧ 𝑎 ∈ (1...𝐾)) → (𝑧‘𝑎) ∈ (1...𝑁))
4443adantr 486 . . . . . . . . . . . . . . . . . . . . . 22 (((𝜑 ∧ 𝑧 ∈ 𝐴 ∧ 𝑎 ∈ (1...𝐾)) ∧ 𝑏 ∈ (1...𝐾)) → (𝑧‘𝑎) ∈ (1...𝑁))
4544adantr 486 . . . . . . . . . . . . . . . . . . . . 21 ((((𝜑 ∧ 𝑧 ∈ 𝐴 ∧ 𝑎 ∈ (1...𝐾)) ∧ 𝑏 ∈ (1...𝐾)) ∧ 𝑎 < 𝑏) → (𝑧‘𝑎) ∈ (1...𝑁))
46 elfznn 13687 . . . . . . . . . . . . . . . . . . . . 21 ((𝑧‘𝑎) ∈ (1...𝑁) → (𝑧‘𝑎) ∈ ℕ)
4745, 46syl 18 . . . . . . . . . . . . . . . . . . . 20 ((((𝜑 ∧ 𝑧 ∈ 𝐴 ∧ 𝑎 ∈ (1...𝐾)) ∧ 𝑏 ∈ (1...𝐾)) ∧ 𝑎 < 𝑏) → (𝑧‘𝑎) ∈ ℕ)
4847nnred 12350 . . . . . . . . . . . . . . . . . . 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 5106 . . . . . . . . . . . . . . . . . . . . . . . 24 (𝑥 = 𝑎 → (𝑥 < 𝑦 ↔ 𝑎 < 𝑦))
55 fveq2 6885 . . . . . . . . . . . . . . . . . . . . . . . . 25 (𝑥 = 𝑎 → (𝑧‘𝑥) = (𝑧‘𝑎))
5655breq1d 5113 . . . . . . . . . . . . . . . . . . . . . . . 24 (𝑥 = 𝑎 → ((𝑧‘𝑥) < (𝑧‘𝑦) ↔ (𝑧‘𝑎) < (𝑧‘𝑦)))
5754, 56imbi12d 347 . . . . . . . . . . . . . . . . . . . . . . 23 (𝑥 = 𝑎 → ((𝑥 < 𝑦 → (𝑧‘𝑥) < (𝑧‘𝑦)) ↔ (𝑎 < 𝑦 → (𝑧‘𝑎) < (𝑧‘𝑦))))
58 breq2 5107 . . . . . . . . . . . . . . . . . . . . . . . 24 (𝑦 = 𝑏 → (𝑎 < 𝑦 ↔ 𝑎 < 𝑏))
59 fveq2 6885 . . . . . . . . . . . . . . . . . . . . . . . . 25 (𝑦 = 𝑏 → (𝑧‘𝑦) = (𝑧‘𝑏))
6059breq2d 5115 . . . . . . . . . . . . . . . . . . . . . . . 24 (𝑦 = 𝑏 → ((𝑧‘𝑎) < (𝑧‘𝑦) ↔ (𝑧‘𝑎) < (𝑧‘𝑏)))
6158, 60imbi12d 347 . . . . . . . . . . . . . . . . . . . . . . 23 (𝑦 = 𝑏 → ((𝑎 < 𝑦 → (𝑧‘𝑎) < (𝑧‘𝑦)) ↔ (𝑎 < 𝑏 → (𝑧‘𝑎) < (𝑧‘𝑏))))
6257, 61rspc2v 3587 . . . . . . . . . . . . . . . . . . . . . 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 11446 . . . . . . . . . . . . . . . . . 18 ((((𝜑 ∧ 𝑧 ∈ 𝐴 ∧ 𝑎 ∈ (1...𝐾)) ∧ 𝑏 ∈ (1...𝐾)) ∧ 𝑎 < 𝑏) → (𝑧‘𝑎) ≠ (𝑧‘𝑏))
6741ffvelcdmda 7084 . . . . . . . . . . . . . . . . . . . . . . 23 (((𝜑 ∧ 𝑧 ∈ 𝐴 ∧ 𝑎 ∈ (1...𝐾)) ∧ 𝑏 ∈ (1...𝐾)) → (𝑧‘𝑏) ∈ (1...𝑁))
68 elfznn 13687 . . . . . . . . . . . . . . . . . . . . . . 23 ((𝑧‘𝑏) ∈ (1...𝑁) → (𝑧‘𝑏) ∈ ℕ)
6967, 68syl 18 . . . . . . . . . . . . . . . . . . . . . 22 (((𝜑 ∧ 𝑧 ∈ 𝐴 ∧ 𝑎 ∈ (1...𝐾)) ∧ 𝑏 ∈ (1...𝐾)) → (𝑧‘𝑏) ∈ ℕ)
7069nnred 12350 . . . . . . . . . . . . . . . . . . . . 21 (((𝜑 ∧ 𝑧 ∈ 𝐴 ∧ 𝑎 ∈ (1...𝐾)) ∧ 𝑏 ∈ (1...𝐾)) → (𝑧‘𝑏) ∈ ℝ)
7170adantr 486 . . . . . . . . . . . . . . . . . . . 20 ((((𝜑 ∧ 𝑧 ∈ 𝐴 ∧ 𝑎 ∈ (1...𝐾)) ∧ 𝑏 ∈ (1...𝐾)) ∧ 𝑏 < 𝑎) → (𝑧‘𝑏) ∈ ℝ)
72 breq1 5106 . . . . . . . . . . . . . . . . . . . . . . . . 25 (𝑥 = 𝑏 → (𝑥 < 𝑦 ↔ 𝑏 < 𝑦))
73 fveq2 6885 . . . . . . . . . . . . . . . . . . . . . . . . . 26 (𝑥 = 𝑏 → (𝑧‘𝑥) = (𝑧‘𝑏))
7473breq1d 5113 . . . . . . . . . . . . . . . . . . . . . . . . 25 (𝑥 = 𝑏 → ((𝑧‘𝑥) < (𝑧‘𝑦) ↔ (𝑧‘𝑏) < (𝑧‘𝑦)))
7572, 74imbi12d 347 . . . . . . . . . . . . . . . . . . . . . . . 24 (𝑥 = 𝑏 → ((𝑥 < 𝑦 → (𝑧‘𝑥) < (𝑧‘𝑦)) ↔ (𝑏 < 𝑦 → (𝑧‘𝑏) < (𝑧‘𝑦))))
76 breq2 5107 . . . . . . . . . . . . . . . . . . . . . . . . 25 (𝑦 = 𝑎 → (𝑏 < 𝑦 ↔ 𝑏 < 𝑎))
77 fveq2 6885 . . . . . . . . . . . . . . . . . . . . . . . . . 26 (𝑦 = 𝑎 → (𝑧‘𝑦) = (𝑧‘𝑎))
7877breq2d 5115 . . . . . . . . . . . . . . . . . . . . . . . . 25 (𝑦 = 𝑎 → ((𝑧‘𝑏) < (𝑧‘𝑦) ↔ (𝑧‘𝑏) < (𝑧‘𝑎)))
7976, 78imbi12d 347 . . . . . . . . . . . . . . . . . . . . . . . 24 (𝑦 = 𝑎 → ((𝑏 < 𝑦 → (𝑧‘𝑏) < (𝑧‘𝑦)) ↔ (𝑏 < 𝑎 → (𝑧‘𝑏) < (𝑧‘𝑎))))
8075, 79rspc2v 3587 . . . . . . . . . . . . . . . . . . . . . . 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 11446 . . . . . . . . . . . . . . . . . . 19 ((((𝜑 ∧ 𝑧 ∈ 𝐴 ∧ 𝑎 ∈ (1...𝐾)) ∧ 𝑏 ∈ (1...𝐾)) ∧ 𝑏 < 𝑎) → (𝑧‘𝑏) ≠ (𝑧‘𝑎))
8584necomd 3011 . . . . . . . . . . . . . . . . . 18 ((((𝜑 ∧ 𝑧 ∈ 𝐴 ∧ 𝑎 ∈ (1...𝐾)) ∧ 𝑏 ∈ (1...𝐾)) ∧ 𝑏 < 𝑎) → (𝑧‘𝑎) ≠ (𝑧‘𝑏))
8666, 85jaodan 972 . . . . . . . . . . . . . . . . 17 ((((𝜑 ∧ 𝑧 ∈ 𝐴 ∧ 𝑎 ∈ (1...𝐾)) ∧ 𝑏 ∈ (1...𝐾)) ∧ (𝑎 < 𝑏 ∨ 𝑏 < 𝑎)) → (𝑧‘𝑎) ≠ (𝑧‘𝑏))
8786ex 418 . . . . . . . . . . . . . . . 16 (((𝜑 ∧ 𝑧 ∈ 𝐴 ∧ 𝑎 ∈ (1...𝐾)) ∧ 𝑏 ∈ (1...𝐾)) → ((𝑎 < 𝑏 ∨ 𝑏 < 𝑎) → (𝑧‘𝑎) ≠ (𝑧‘𝑏)))
8840, 87sylbid 243 . . . . . . . . . . . . . . 15 (((𝜑 ∧ 𝑧 ∈ 𝐴 ∧ 𝑎 ∈ (1...𝐾)) ∧ 𝑏 ∈ (1...𝐾)) → (𝑎 ≠ 𝑏 → (𝑧‘𝑎) ≠ (𝑧‘𝑏)))
8988necon4d 2980 . . . . . . . . . . . . . 14 (((𝜑 ∧ 𝑧 ∈ 𝐴 ∧ 𝑎 ∈ (1...𝐾)) ∧ 𝑏 ∈ (1...𝐾)) → ((𝑧‘𝑎) = (𝑧‘𝑏) → 𝑎 = 𝑏))
9089ralrimiva 3155 . . . . . . . . . . . . 13 ((𝜑 ∧ 𝑧 ∈ 𝐴 ∧ 𝑎 ∈ (1...𝐾)) → ∀𝑏 ∈ (1...𝐾)((𝑧‘𝑎) = (𝑧‘𝑏) → 𝑎 = 𝑏))
91903expa 1136 . . . . . . . . . . . 12 (((𝜑 ∧ 𝑧 ∈ 𝐴) ∧ 𝑎 ∈ (1...𝐾)) → ∀𝑏 ∈ (1...𝐾)((𝑧‘𝑎) = (𝑧‘𝑏) → 𝑎 = 𝑏))
9291ralrimiva 3155 . . . . . . . . . . 11 ((𝜑 ∧ 𝑧 ∈ 𝐴) → ∀𝑎 ∈ (1...𝐾)∀𝑏 ∈ (1...𝐾)((𝑧‘𝑎) = (𝑧‘𝑏) → 𝑎 = 𝑏))
9319, 92jca 521 . . . . . . . . . 10 ((𝜑 ∧ 𝑧 ∈ 𝐴) → (𝑧:(1...𝐾)⟶(1...𝑁) ∧ ∀𝑎 ∈ (1...𝐾)∀𝑏 ∈ (1...𝐾)((𝑧‘𝑎) = (𝑧‘𝑏) → 𝑎 = 𝑏)))
94 dff13 7258 . . . . . . . . . 10 (𝑧:(1...𝐾)–1-1→(1...𝑁) ↔ (𝑧:(1...𝐾)⟶(1...𝑁) ∧ ∀𝑎 ∈ (1...𝐾)∀𝑏 ∈ (1...𝐾)((𝑧‘𝑎) = (𝑧‘𝑏) → 𝑎 = 𝑏)))
9593, 94sylibr 237 . . . . . . . . 9 ((𝜑 ∧ 𝑧 ∈ 𝐴) → 𝑧:(1...𝐾)–1-1→(1...𝑁))
96 hashf1rn 14496 . . . . . . . . 9 (((1...𝐾) ∈ Fin ∧ 𝑧:(1...𝐾)–1-1→(1...𝑁)) → (♯‘𝑧) = (♯‘ran 𝑧))
9731, 95, 96syl2anc 596 . . . . . . . 8 ((𝜑 ∧ 𝑧 ∈ 𝐴) → (♯‘𝑧) = (♯‘ran 𝑧))
9830, 97eqtrd 2796 . . . . . . 7 ((𝜑 ∧ 𝑧 ∈ 𝐴) → 𝐾 = (♯‘ran 𝑧))
9998eqcomd 2767 . . . . . 6 ((𝜑 ∧ 𝑧 ∈ 𝐴) → (♯‘ran 𝑧) = 𝐾)
1001, 21, 99elrabd 3647 . . . . 5 ((𝜑 ∧ 𝑧 ∈ 𝐴) → ran 𝑧 ∈ {𝑎 ∈ 𝒫 (1...𝑁) ∣ (♯‘𝑎) = 𝐾})
101 sticksstones2.3 . . . . . . 7 𝐵 = {𝑎 ∈ 𝒫 (1...𝑁) ∣ (♯‘𝑎) = 𝐾}
102101eleq2i 2853 . . . . . 6 (ran 𝑧 ∈ 𝐵 ↔ ran 𝑧 ∈ {𝑎 ∈ 𝒫 (1...𝑁) ∣ (♯‘𝑎) = 𝐾})
103102a1i 11 . . . . 5 ((𝜑 ∧ 𝑧 ∈ 𝐴) → (ran 𝑧 ∈ 𝐵 ↔ ran 𝑧 ∈ {𝑎 ∈ 𝒫 (1...𝑁) ∣ (♯‘𝑎) = 𝐾}))
104100, 103mpbird 260 . . . 4 ((𝜑 ∧ 𝑧 ∈ 𝐴) → ran 𝑧 ∈ 𝐵)
105 sticksstones2.5 . . . 4 𝐹 = (𝑧 ∈ 𝐴 ↦ ran 𝑧)
106104, 105fmptd 7114 . . 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 6885 . . . . . . . . . . . . 13 (𝑟 = 𝑠 → (𝑖‘𝑟) = (𝑖‘𝑠))
116 fveq2 6885 . . . . . . . . . . . . 13 (𝑟 = 𝑠 → (𝑗‘𝑟) = (𝑗‘𝑠))
117115, 116neeq12d 3017 . . . . . . . . . . . 12 (𝑟 = 𝑠 → ((𝑖‘𝑟) ≠ (𝑗‘𝑟) ↔ (𝑖‘𝑠) ≠ (𝑗‘𝑠)))
118117cbvrabv 3423 . . . . . . . . . . 11 {𝑟 ∈ (1...𝐾) ∣ (𝑖‘𝑟) ≠ (𝑗‘𝑟)} = {𝑠 ∈ (1...𝐾) ∣ (𝑖‘𝑠) ≠ (𝑗‘𝑠)}
119118infeq1i 9471 . . . . . . . . . 10 inf({𝑟 ∈ (1...𝐾) ∣ (𝑖‘𝑟) ≠ (𝑗‘𝑟)}, ℝ, < ) = inf({𝑠 ∈ (1...𝐾) ∣ (𝑖‘𝑠) ≠ (𝑗‘𝑠)}, ℝ, < )
120109, 111, 13, 112, 113, 114, 119sticksstones1 43196 . . . . . . . . 9 (((𝜑 ∧ 𝑖 ∈ 𝐴 ∧ 𝑗 ∈ 𝐴) ∧ 𝑖 ≠ 𝑗) → ran 𝑖 ≠ ran 𝑗)
121105a1i 11 . . . . . . . . . 10 (((𝜑 ∧ 𝑖 ∈ 𝐴 ∧ 𝑗 ∈ 𝐴) ∧ 𝑖 ≠ 𝑗) → 𝐹 = (𝑧 ∈ 𝐴 ↦ ran 𝑧))
122 simpr 490 . . . . . . . . . . 11 ((((𝜑 ∧ 𝑖 ∈ 𝐴 ∧ 𝑗 ∈ 𝐴) ∧ 𝑖 ≠ 𝑗) ∧ 𝑧 = 𝑖) → 𝑧 = 𝑖)
123122rneqd 5920 . . . . . . . . . 10 ((((𝜑 ∧ 𝑖 ∈ 𝐴 ∧ 𝑗 ∈ 𝐴) ∧ 𝑖 ≠ 𝑗) ∧ 𝑧 = 𝑖) → ran 𝑧 = ran 𝑖)
124 fzfid 14116 . . . . . . . . . . 11 (((𝜑 ∧ 𝑖 ∈ 𝐴 ∧ 𝑗 ∈ 𝐴) ∧ 𝑖 ≠ 𝑗) → (1...𝑁) ∈ Fin)
125 eleq1w 2844 . . . . . . . . . . . . . . . . . 18 (𝑓 = 𝑖 → (𝑓 ∈ 𝐴 ↔ 𝑖 ∈ 𝐴))
126 feq1 6687 . . . . . . . . . . . . . . . . . . 19 (𝑓 = 𝑖 → (𝑓:(1...𝐾)⟶(1...𝑁) ↔ 𝑖:(1...𝐾)⟶(1...𝑁)))
127 fveq1 6884 . . . . . . . . . . . . . . . . . . . . . 22 (𝑓 = 𝑖 → (𝑓‘𝑥) = (𝑖‘𝑥))
128 fveq1 6884 . . . . . . . . . . . . . . . . . . . . . 22 (𝑓 = 𝑖 → (𝑓‘𝑦) = (𝑖‘𝑦))
129127, 128breq12d 5116 . . . . . . . . . . . . . . . . . . . . 21 (𝑓 = 𝑖 → ((𝑓‘𝑥) < (𝑓‘𝑦) ↔ (𝑖‘𝑥) < (𝑖‘𝑦)))
130129imbi2d 343 . . . . . . . . . . . . . . . . . . . 20 (𝑓 = 𝑖 → ((𝑥 < 𝑦 → (𝑓‘𝑥) < (𝑓‘𝑦)) ↔ (𝑥 < 𝑦 → (𝑖‘𝑥) < (𝑖‘𝑦))))
1311302ralbidv 3227 . . . . . . . . . . . . . . . . . . 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 2022 . . . . . . . . . . . . . . . 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 6718 . . . . . . . . . . 11 (((𝜑 ∧ 𝑖 ∈ 𝐴 ∧ 𝑗 ∈ 𝐴) ∧ 𝑖 ≠ 𝑗) → ran 𝑖 ⊆ (1...𝑁))
140124, 139sselpwd 5290 . . . . . . . . . 10 (((𝜑 ∧ 𝑖 ∈ 𝐴 ∧ 𝑗 ∈ 𝐴) ∧ 𝑖 ≠ 𝑗) → ran 𝑖 ∈ 𝒫 (1...𝑁))
141121, 123, 112, 140fvmptd 7001 . . . . . . . . 9 (((𝜑 ∧ 𝑖 ∈ 𝐴 ∧ 𝑗 ∈ 𝐴) ∧ 𝑖 ≠ 𝑗) → (𝐹‘𝑖) = ran 𝑖)
142 simpr 490 . . . . . . . . . . 11 ((((𝜑 ∧ 𝑖 ∈ 𝐴 ∧ 𝑗 ∈ 𝐴) ∧ 𝑖 ≠ 𝑗) ∧ 𝑧 = 𝑗) → 𝑧 = 𝑗)
143142rneqd 5920 . . . . . . . . . 10 ((((𝜑 ∧ 𝑖 ∈ 𝐴 ∧ 𝑗 ∈ 𝐴) ∧ 𝑖 ≠ 𝑗) ∧ 𝑧 = 𝑗) → ran 𝑧 = ran 𝑗)
144 fzfid 14116 . . . . . . . . . . . . 13 (𝜑 → (1...𝑁) ∈ Fin)
1451443ad2ant1 1151 . . . . . . . . . . . 12 ((𝜑 ∧ 𝑖 ∈ 𝐴 ∧ 𝑗 ∈ 𝐴) → (1...𝑁) ∈ Fin)
146 eleq1w 2844 . . . . . . . . . . . . . . . . . 18 (𝑓 = 𝑗 → (𝑓 ∈ 𝐴 ↔ 𝑗 ∈ 𝐴))
147 feq1 6687 . . . . . . . . . . . . . . . . . . 19 (𝑓 = 𝑗 → (𝑓:(1...𝐾)⟶(1...𝑁) ↔ 𝑗:(1...𝐾)⟶(1...𝑁)))
148 fveq1 6884 . . . . . . . . . . . . . . . . . . . . . 22 (𝑓 = 𝑗 → (𝑓‘𝑥) = (𝑗‘𝑥))
149 fveq1 6884 . . . . . . . . . . . . . . . . . . . . . 22 (𝑓 = 𝑗 → (𝑓‘𝑦) = (𝑗‘𝑦))
150148, 149breq12d 5116 . . . . . . . . . . . . . . . . . . . . 21 (𝑓 = 𝑗 → ((𝑓‘𝑥) < (𝑓‘𝑦) ↔ (𝑗‘𝑥) < (𝑗‘𝑦)))
151150imbi2d 343 . . . . . . . . . . . . . . . . . . . 20 (𝑓 = 𝑗 → ((𝑥 < 𝑦 → (𝑓‘𝑥) < (𝑓‘𝑦)) ↔ (𝑥 < 𝑦 → (𝑗‘𝑥) < (𝑗‘𝑦))))
1521512ralbidv 3227 . . . . . . . . . . . . . . . . . . 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 2022 . . . . . . . . . . . . . . . 16 (𝑗 ∈ 𝐴 ↔ (𝑗:(1...𝐾)⟶(1...𝑁) ∧ ∀𝑥 ∈ (1...𝐾)∀𝑦 ∈ (1...𝐾)(𝑥 < 𝑦 → (𝑗‘𝑥) < (𝑗‘𝑦))))
156155bilani 510 . . . . . . . . . . . . . . 15 ((𝜑 ∧ 𝑗 ∈ 𝐴) → (𝑗:(1...𝐾)⟶(1...𝑁) ∧ ∀𝑥 ∈ (1...𝐾)∀𝑦 ∈ (1...𝐾)(𝑥 < 𝑦 → (𝑗‘𝑥) < (𝑗‘𝑦))))
157156simpld 500 . . . . . . . . . . . . . 14 ((𝜑 ∧ 𝑗 ∈ 𝐴) → 𝑗:(1...𝐾)⟶(1...𝑁))
1581573adant2 1149 . . . . . . . . . . . . 13 ((𝜑 ∧ 𝑖 ∈ 𝐴 ∧ 𝑗 ∈ 𝐴) → 𝑗:(1...𝐾)⟶(1...𝑁))
159158frnd 6718 . . . . . . . . . . . 12 ((𝜑 ∧ 𝑖 ∈ 𝐴 ∧ 𝑗 ∈ 𝐴) → ran 𝑗 ⊆ (1...𝑁))
160145, 159sselpwd 5290 . . . . . . . . . . 11 ((𝜑 ∧ 𝑖 ∈ 𝐴 ∧ 𝑗 ∈ 𝐴) → ran 𝑗 ∈ 𝒫 (1...𝑁))
161160adantr 486 . . . . . . . . . 10 (((𝜑 ∧ 𝑖 ∈ 𝐴 ∧ 𝑗 ∈ 𝐴) ∧ 𝑖 ≠ 𝑗) → ran 𝑗 ∈ 𝒫 (1...𝑁))
162121, 143, 113, 161fvmptd 7001 . . . . . . . . 9 (((𝜑 ∧ 𝑖 ∈ 𝐴 ∧ 𝑗 ∈ 𝐴) ∧ 𝑖 ≠ 𝑗) → (𝐹‘𝑗) = ran 𝑗)
163120, 141, 1623netr4d 3033 . . . . . . . 8 (((𝜑 ∧ 𝑖 ∈ 𝐴 ∧ 𝑗 ∈ 𝐴) ∧ 𝑖 ≠ 𝑗) → (𝐹‘𝑖) ≠ (𝐹‘𝑗))
164163ex 418 . . . . . . 7 ((𝜑 ∧ 𝑖 ∈ 𝐴 ∧ 𝑗 ∈ 𝐴) → (𝑖 ≠ 𝑗 → (𝐹‘𝑖) ≠ (𝐹‘𝑗)))
165164necon4d 2980 . . . . . 6 ((𝜑 ∧ 𝑖 ∈ 𝐴 ∧ 𝑗 ∈ 𝐴) → ((𝐹‘𝑖) = (𝐹‘𝑗) → 𝑖 = 𝑗))
1661653expa 1136 . . . . 5 (((𝜑 ∧ 𝑖 ∈ 𝐴) ∧ 𝑗 ∈ 𝐴) → ((𝐹‘𝑖) = (𝐹‘𝑗) → 𝑖 = 𝑗))
167166ralrimiva 3155 . . . 4 ((𝜑 ∧ 𝑖 ∈ 𝐴) → ∀𝑗 ∈ 𝐴 ((𝐹‘𝑖) = (𝐹‘𝑗) → 𝑖 = 𝑗))
168167ralrimiva 3155 . . 3 (𝜑 → ∀𝑖 ∈ 𝐴 ∀𝑗 ∈ 𝐴 ((𝐹‘𝑖) = (𝐹‘𝑗) → 𝑖 = 𝑗))
169106, 168jca 521 . 2 (𝜑 → (𝐹:𝐴⟶𝐵 ∧ ∀𝑖 ∈ 𝐴 ∀𝑗 ∈ 𝐴 ((𝐹‘𝑖) = (𝐹‘𝑗) → 𝑖 = 𝑗)))
170 dff13 7258 . 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 1568   = wceq 1570   ∈ wcel 2145  {cab 2739   ≠ wne 2956  ∀wral 3077  {crab 3413  𝒫 cpw 4557   class class class wbr 5103   ↦ cmpt 5186  ran crn 5652   Fn wfn 6533  ⟶wf 6534  –1-1→wf1 6535  ‘cfv 6538  (class class class)co 7420  Fincfn 8973  infcinf 9433  ℝcr 11199  1c1 11201   < clt 11343  ℕcn 12335  ℕ0cn0 12606  ...cfz 13639  ♯chash 14474
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1828  ax-4 1842  ax-5 1943  ax-6 2000  ax-7 2041  ax-8 2147  ax-9 2155  ax-10 2178  ax-11 2194  ax-12 2213  ax-ext 2733  ax-rep 5232  ax-sep 5249  ax-nul 5260  ax-pow 5327  ax-pr 5391  ax-un 7751  ax-cnex 11256  ax-resscn 11257  ax-1cn 11258  ax-icn 11259  ax-addcl 11260  ax-addrcl 11261  ax-mulcl 11262  ax-mulrcl 11263  ax-mulcom 11264  ax-addass 11265  ax-mulass 11266  ax-distr 11267  ax-i2m1 11268  ax-1ne0 11269  ax-1rid 11270  ax-rnegex 11271  ax-rrecex 11272  ax-cnre 11273  ax-pre-lttri 11274  ax-pre-lttrn 11275  ax-pre-ltadd 11276  ax-pre-mulgt0 11277  ax-pre-sup 11278
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3or 1104  df-3an 1105  df-tru 1573  df-fal 1583  df-ex 1813  df-nf 1817  df-sb 2100  df-mo 2565  df-eu 2595  df-clab 2740  df-cleq 2753  df-clel 2836  df-nfc 2910  df-ne 2957  df-nel 3063  df-ral 3078  df-rex 3088  df-rmo 3366  df-reu 3367  df-rab 3414  df-v 3453  df-sbc 3740  df-csb 3848  df-dif 3902  df-un 3904  df-in 3906  df-ss 3916  df-pss 3919  df-nul 4280  df-if 4483  df-pw 4559  df-sn 4585  df-pr 4587  df-op 4591  df-uni 4868  df-int 4908  df-iun 4953  df-br 5104  df-opab 5168  df-mpt 5187  df-tr 5213  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 6304  df-ord 6365  df-on 6366  df-lim 6367  df-suc 6368  df-iota 6494  df-fun 6540  df-fn 6541  df-f 6542  df-f1 6543  df-fo 6544  df-f1o 6545  df-fv 6546  df-riota 7377  df-ov 7423  df-oprab 7424  df-mpo 7425  df-om 7878  df-1st 8001  df-2nd 8002  df-frecs 8299  df-wrecs 8330  df-recs 8379  df-rdg 8418  df-1o 8476  df-er 8717  df-en 8974  df-dom 8975  df-sdom 8976  df-fin 8977  df-sup 9434  df-inf 9435  df-card 10020  df-pnf 11345  df-mnf 11346  df-xr 11347  df-ltxr 11348  df-le 11349  df-sub 11543  df-neg 11544  df-nn 12336  df-n0 12607  df-z 12694  df-uz 12966  df-fz 13640  df-hash 14475
This theorem is used by:  sticksstones3  43198  sticksstones4  43199
  Copyright terms: Public domain W3C validator