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

Theorem fvinim0ffz 9316
 Description: The function values for the borders of a finite interval of integers, which is the domain of the function, are not in the image of the interior of the interval iff the intersection of the images of the interior and the borders is empty. (Contributed by Alexander van der Vekens, 31-Oct-2017.) (Revised by AV, 5-Feb-2021.)
Assertion
Ref Expression
fvinim0ffz ((𝐹:(0...𝐾)⟶𝑉𝐾 ∈ ℕ0) → (((𝐹 “ {0, 𝐾}) ∩ (𝐹 “ (1..^𝐾))) = ∅ ↔ ((𝐹‘0) ∉ (𝐹 “ (1..^𝐾)) ∧ (𝐹𝐾) ∉ (𝐹 “ (1..^𝐾)))))

Proof of Theorem fvinim0ffz
Dummy variable 𝑣 is distinct from all other variables.
StepHypRef Expression
1 ffn 5071 . . . . . 6 (𝐹:(0...𝐾)⟶𝑉𝐹 Fn (0...𝐾))
21adantr 270 . . . . 5 ((𝐹:(0...𝐾)⟶𝑉𝐾 ∈ ℕ0) → 𝐹 Fn (0...𝐾))
3 0nn0 8359 . . . . . . 7 0 ∈ ℕ0
43a1i 9 . . . . . 6 ((𝐹:(0...𝐾)⟶𝑉𝐾 ∈ ℕ0) → 0 ∈ ℕ0)
5 simpr 108 . . . . . 6 ((𝐹:(0...𝐾)⟶𝑉𝐾 ∈ ℕ0) → 𝐾 ∈ ℕ0)
6 nn0ge0 8369 . . . . . . 7 (𝐾 ∈ ℕ0 → 0 ≤ 𝐾)
76adantl 271 . . . . . 6 ((𝐹:(0...𝐾)⟶𝑉𝐾 ∈ ℕ0) → 0 ≤ 𝐾)
8 elfz2nn0 9194 . . . . . 6 (0 ∈ (0...𝐾) ↔ (0 ∈ ℕ0𝐾 ∈ ℕ0 ∧ 0 ≤ 𝐾))
94, 5, 7, 8syl3anbrc 1123 . . . . 5 ((𝐹:(0...𝐾)⟶𝑉𝐾 ∈ ℕ0) → 0 ∈ (0...𝐾))
10 id 19 . . . . . . 7 (𝐾 ∈ ℕ0𝐾 ∈ ℕ0)
11 nn0re 8353 . . . . . . . 8 (𝐾 ∈ ℕ0𝐾 ∈ ℝ)
1211leidd 7671 . . . . . . 7 (𝐾 ∈ ℕ0𝐾𝐾)
13 elfz2nn0 9194 . . . . . . 7 (𝐾 ∈ (0...𝐾) ↔ (𝐾 ∈ ℕ0𝐾 ∈ ℕ0𝐾𝐾))
1410, 10, 12, 13syl3anbrc 1123 . . . . . 6 (𝐾 ∈ ℕ0𝐾 ∈ (0...𝐾))
1514adantl 271 . . . . 5 ((𝐹:(0...𝐾)⟶𝑉𝐾 ∈ ℕ0) → 𝐾 ∈ (0...𝐾))
16 fnimapr 5259 . . . . 5 ((𝐹 Fn (0...𝐾) ∧ 0 ∈ (0...𝐾) ∧ 𝐾 ∈ (0...𝐾)) → (𝐹 “ {0, 𝐾}) = {(𝐹‘0), (𝐹𝐾)})
172, 9, 15, 16syl3anc 1170 . . . 4 ((𝐹:(0...𝐾)⟶𝑉𝐾 ∈ ℕ0) → (𝐹 “ {0, 𝐾}) = {(𝐹‘0), (𝐹𝐾)})
1817ineq1d 3167 . . 3 ((𝐹:(0...𝐾)⟶𝑉𝐾 ∈ ℕ0) → ((𝐹 “ {0, 𝐾}) ∩ (𝐹 “ (1..^𝐾))) = ({(𝐹‘0), (𝐹𝐾)} ∩ (𝐹 “ (1..^𝐾))))
1918eqeq1d 2090 . 2 ((𝐹:(0...𝐾)⟶𝑉𝐾 ∈ ℕ0) → (((𝐹 “ {0, 𝐾}) ∩ (𝐹 “ (1..^𝐾))) = ∅ ↔ ({(𝐹‘0), (𝐹𝐾)} ∩ (𝐹 “ (1..^𝐾))) = ∅))
20 disj 3293 . . 3 (({(𝐹‘0), (𝐹𝐾)} ∩ (𝐹 “ (1..^𝐾))) = ∅ ↔ ∀𝑣 ∈ {(𝐹‘0), (𝐹𝐾)} ¬ 𝑣 ∈ (𝐹 “ (1..^𝐾)))
21 simpl 107 . . . . 5 ((𝐹:(0...𝐾)⟶𝑉𝐾 ∈ ℕ0) → 𝐹:(0...𝐾)⟶𝑉)
2221, 9ffvelrnd 5329 . . . 4 ((𝐹:(0...𝐾)⟶𝑉𝐾 ∈ ℕ0) → (𝐹‘0) ∈ 𝑉)
2321, 15ffvelrnd 5329 . . . 4 ((𝐹:(0...𝐾)⟶𝑉𝐾 ∈ ℕ0) → (𝐹𝐾) ∈ 𝑉)
24 eleq1 2142 . . . . . . 7 (𝑣 = (𝐹‘0) → (𝑣 ∈ (𝐹 “ (1..^𝐾)) ↔ (𝐹‘0) ∈ (𝐹 “ (1..^𝐾))))
2524notbid 625 . . . . . 6 (𝑣 = (𝐹‘0) → (¬ 𝑣 ∈ (𝐹 “ (1..^𝐾)) ↔ ¬ (𝐹‘0) ∈ (𝐹 “ (1..^𝐾))))
26 df-nel 2341 . . . . . 6 ((𝐹‘0) ∉ (𝐹 “ (1..^𝐾)) ↔ ¬ (𝐹‘0) ∈ (𝐹 “ (1..^𝐾)))
2725, 26syl6bbr 196 . . . . 5 (𝑣 = (𝐹‘0) → (¬ 𝑣 ∈ (𝐹 “ (1..^𝐾)) ↔ (𝐹‘0) ∉ (𝐹 “ (1..^𝐾))))
28 eleq1 2142 . . . . . . 7 (𝑣 = (𝐹𝐾) → (𝑣 ∈ (𝐹 “ (1..^𝐾)) ↔ (𝐹𝐾) ∈ (𝐹 “ (1..^𝐾))))
2928notbid 625 . . . . . 6 (𝑣 = (𝐹𝐾) → (¬ 𝑣 ∈ (𝐹 “ (1..^𝐾)) ↔ ¬ (𝐹𝐾) ∈ (𝐹 “ (1..^𝐾))))
30 df-nel 2341 . . . . . 6 ((𝐹𝐾) ∉ (𝐹 “ (1..^𝐾)) ↔ ¬ (𝐹𝐾) ∈ (𝐹 “ (1..^𝐾)))
3129, 30syl6bbr 196 . . . . 5 (𝑣 = (𝐹𝐾) → (¬ 𝑣 ∈ (𝐹 “ (1..^𝐾)) ↔ (𝐹𝐾) ∉ (𝐹 “ (1..^𝐾))))
3227, 31ralprg 3445 . . . 4 (((𝐹‘0) ∈ 𝑉 ∧ (𝐹𝐾) ∈ 𝑉) → (∀𝑣 ∈ {(𝐹‘0), (𝐹𝐾)} ¬ 𝑣 ∈ (𝐹 “ (1..^𝐾)) ↔ ((𝐹‘0) ∉ (𝐹 “ (1..^𝐾)) ∧ (𝐹𝐾) ∉ (𝐹 “ (1..^𝐾)))))
3322, 23, 32syl2anc 403 . . 3 ((𝐹:(0...𝐾)⟶𝑉𝐾 ∈ ℕ0) → (∀𝑣 ∈ {(𝐹‘0), (𝐹𝐾)} ¬ 𝑣 ∈ (𝐹 “ (1..^𝐾)) ↔ ((𝐹‘0) ∉ (𝐹 “ (1..^𝐾)) ∧ (𝐹𝐾) ∉ (𝐹 “ (1..^𝐾)))))
3420, 33syl5bb 190 . 2 ((𝐹:(0...𝐾)⟶𝑉𝐾 ∈ ℕ0) → (({(𝐹‘0), (𝐹𝐾)} ∩ (𝐹 “ (1..^𝐾))) = ∅ ↔ ((𝐹‘0) ∉ (𝐹 “ (1..^𝐾)) ∧ (𝐹𝐾) ∉ (𝐹 “ (1..^𝐾)))))
3519, 34bitrd 186 1 ((𝐹:(0...𝐾)⟶𝑉𝐾 ∈ ℕ0) → (((𝐹 “ {0, 𝐾}) ∩ (𝐹 “ (1..^𝐾))) = ∅ ↔ ((𝐹‘0) ∉ (𝐹 “ (1..^𝐾)) ∧ (𝐹𝐾) ∉ (𝐹 “ (1..^𝐾)))))
 Colors of variables: wff set class Syntax hints:  ¬ wn 3   → wi 4   ∧ wa 102   ↔ wb 103   = wceq 1285   ∈ wcel 1434   ∉ wnel 2340  ∀wral 2349   ∩ cin 2973  ∅c0 3252  {cpr 3401   class class class wbr 3787   “ cima 4368   Fn wfn 4921  ⟶wf 4922  ‘cfv 4926  (class class class)co 5537  0cc0 7032  1c1 7033   ≤ cle 7205  ℕ0cn0 8344  ...cfz 9094  ..^cfzo 9218 This theorem was proved from axioms:  ax-1 5  ax-2 6  ax-mp 7  ax-ia1 104  ax-ia2 105  ax-ia3 106  ax-in1 577  ax-in2 578  ax-io 663  ax-5 1377  ax-7 1378  ax-gen 1379  ax-ie1 1423  ax-ie2 1424  ax-8 1436  ax-10 1437  ax-11 1438  ax-i12 1439  ax-bndl 1440  ax-4 1441  ax-13 1445  ax-14 1446  ax-17 1460  ax-i9 1464  ax-ial 1468  ax-i5r 1469  ax-ext 2064  ax-sep 3898  ax-pow 3950  ax-pr 3966  ax-un 4190  ax-setind 4282  ax-cnex 7118  ax-resscn 7119  ax-1cn 7120  ax-1re 7121  ax-icn 7122  ax-addcl 7123  ax-addrcl 7124  ax-mulcl 7125  ax-addcom 7127  ax-addass 7129  ax-distr 7131  ax-i2m1 7132  ax-0lt1 7133  ax-0id 7135  ax-rnegex 7136  ax-cnre 7138  ax-pre-ltirr 7139  ax-pre-ltwlin 7140  ax-pre-lttrn 7141  ax-pre-ltadd 7143 This theorem depends on definitions:  df-bi 115  df-3or 921  df-3an 922  df-tru 1288  df-fal 1291  df-nf 1391  df-sb 1687  df-eu 1945  df-mo 1946  df-clab 2069  df-cleq 2075  df-clel 2078  df-nfc 2209  df-ne 2247  df-nel 2341  df-ral 2354  df-rex 2355  df-reu 2356  df-rab 2358  df-v 2604  df-sbc 2817  df-dif 2976  df-un 2978  df-in 2980  df-ss 2987  df-nul 3253  df-pw 3386  df-sn 3406  df-pr 3407  df-op 3409  df-uni 3604  df-int 3639  df-br 3788  df-opab 3842  df-mpt 3843  df-id 4050  df-xp 4371  df-rel 4372  df-cnv 4373  df-co 4374  df-dm 4375  df-rn 4376  df-res 4377  df-ima 4378  df-iota 4891  df-fun 4928  df-fn 4929  df-f 4930  df-fv 4934  df-riota 5493  df-ov 5540  df-oprab 5541  df-mpt2 5542  df-pnf 7206  df-mnf 7207  df-xr 7208  df-ltxr 7209  df-le 7210  df-sub 7337  df-neg 7338  df-inn 8096  df-n0 8345  df-z 8422  df-uz 8690  df-fz 9095 This theorem is referenced by: (None)
 Copyright terms: Public domain W3C validator