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

Theorem 2ffzeq 9099
 Description: Two functions over 0 based finite set of sequential integers are equal if and only if their domains have the same length and the function values are the same at each position. (Contributed by Alexander van der Vekens, 30-Jun-2018.)
Assertion
Ref Expression
2ffzeq ((𝑀 ∈ ℕ0𝐹:(0...𝑀)⟶𝑋𝑃:(0...𝑁)⟶𝑌) → (𝐹 = 𝑃 ↔ (𝑀 = 𝑁 ∧ ∀𝑖 ∈ (0...𝑀)(𝐹𝑖) = (𝑃𝑖))))
Distinct variable groups:   𝑖,𝐹   𝑖,𝑀   𝑃,𝑖
Allowed substitution hints:   𝑁(𝑖)   𝑋(𝑖)   𝑌(𝑖)

Proof of Theorem 2ffzeq
StepHypRef Expression
1 ffn 5073 . . . . 5 (𝐹:(0...𝑀)⟶𝑋𝐹 Fn (0...𝑀))
2 ffn 5073 . . . . 5 (𝑃:(0...𝑁)⟶𝑌𝑃 Fn (0...𝑁))
31, 2anim12i 325 . . . 4 ((𝐹:(0...𝑀)⟶𝑋𝑃:(0...𝑁)⟶𝑌) → (𝐹 Fn (0...𝑀) ∧ 𝑃 Fn (0...𝑁)))
433adant1 933 . . 3 ((𝑀 ∈ ℕ0𝐹:(0...𝑀)⟶𝑋𝑃:(0...𝑁)⟶𝑌) → (𝐹 Fn (0...𝑀) ∧ 𝑃 Fn (0...𝑁)))
5 eqfnfv2 5293 . . 3 ((𝐹 Fn (0...𝑀) ∧ 𝑃 Fn (0...𝑁)) → (𝐹 = 𝑃 ↔ ((0...𝑀) = (0...𝑁) ∧ ∀𝑖 ∈ (0...𝑀)(𝐹𝑖) = (𝑃𝑖))))
64, 5syl 14 . 2 ((𝑀 ∈ ℕ0𝐹:(0...𝑀)⟶𝑋𝑃:(0...𝑁)⟶𝑌) → (𝐹 = 𝑃 ↔ ((0...𝑀) = (0...𝑁) ∧ ∀𝑖 ∈ (0...𝑀)(𝐹𝑖) = (𝑃𝑖))))
7 elnn0uz 8605 . . . . . . 7 (𝑀 ∈ ℕ0𝑀 ∈ (ℤ‘0))
8 fzopth 9025 . . . . . . 7 (𝑀 ∈ (ℤ‘0) → ((0...𝑀) = (0...𝑁) ↔ (0 = 0 ∧ 𝑀 = 𝑁)))
97, 8sylbi 118 . . . . . 6 (𝑀 ∈ ℕ0 → ((0...𝑀) = (0...𝑁) ↔ (0 = 0 ∧ 𝑀 = 𝑁)))
10 simpr 107 . . . . . 6 ((0 = 0 ∧ 𝑀 = 𝑁) → 𝑀 = 𝑁)
119, 10syl6bi 156 . . . . 5 (𝑀 ∈ ℕ0 → ((0...𝑀) = (0...𝑁) → 𝑀 = 𝑁))
1211anim1d 323 . . . 4 (𝑀 ∈ ℕ0 → (((0...𝑀) = (0...𝑁) ∧ ∀𝑖 ∈ (0...𝑀)(𝐹𝑖) = (𝑃𝑖)) → (𝑀 = 𝑁 ∧ ∀𝑖 ∈ (0...𝑀)(𝐹𝑖) = (𝑃𝑖))))
13 oveq2 5547 . . . . 5 (𝑀 = 𝑁 → (0...𝑀) = (0...𝑁))
1413anim1i 327 . . . 4 ((𝑀 = 𝑁 ∧ ∀𝑖 ∈ (0...𝑀)(𝐹𝑖) = (𝑃𝑖)) → ((0...𝑀) = (0...𝑁) ∧ ∀𝑖 ∈ (0...𝑀)(𝐹𝑖) = (𝑃𝑖)))
1512, 14impbid1 134 . . 3 (𝑀 ∈ ℕ0 → (((0...𝑀) = (0...𝑁) ∧ ∀𝑖 ∈ (0...𝑀)(𝐹𝑖) = (𝑃𝑖)) ↔ (𝑀 = 𝑁 ∧ ∀𝑖 ∈ (0...𝑀)(𝐹𝑖) = (𝑃𝑖))))
16153ad2ant1 936 . 2 ((𝑀 ∈ ℕ0𝐹:(0...𝑀)⟶𝑋𝑃:(0...𝑁)⟶𝑌) → (((0...𝑀) = (0...𝑁) ∧ ∀𝑖 ∈ (0...𝑀)(𝐹𝑖) = (𝑃𝑖)) ↔ (𝑀 = 𝑁 ∧ ∀𝑖 ∈ (0...𝑀)(𝐹𝑖) = (𝑃𝑖))))
176, 16bitrd 181 1 ((𝑀 ∈ ℕ0𝐹:(0...𝑀)⟶𝑋𝑃:(0...𝑁)⟶𝑌) → (𝐹 = 𝑃 ↔ (𝑀 = 𝑁 ∧ ∀𝑖 ∈ (0...𝑀)(𝐹𝑖) = (𝑃𝑖))))
 Colors of variables: wff set class Syntax hints:   → wi 4   ∧ wa 101   ↔ wb 102   ∧ w3a 896   = wceq 1259   ∈ wcel 1409  ∀wral 2323   Fn wfn 4924  ⟶wf 4925  ‘cfv 4929  (class class class)co 5539  0cc0 6946  ℕ0cn0 8238  ℤ≥cuz 8568  ...cfz 8975 This theorem was proved from axioms:  ax-1 5  ax-2 6  ax-mp 7  ax-ia1 103  ax-ia2 104  ax-ia3 105  ax-in1 554  ax-in2 555  ax-io 640  ax-5 1352  ax-7 1353  ax-gen 1354  ax-ie1 1398  ax-ie2 1399  ax-8 1411  ax-10 1412  ax-11 1413  ax-i12 1414  ax-bndl 1415  ax-4 1416  ax-13 1420  ax-14 1421  ax-17 1435  ax-i9 1439  ax-ial 1443  ax-i5r 1444  ax-ext 2038  ax-coll 3899  ax-sep 3902  ax-nul 3910  ax-pow 3954  ax-pr 3971  ax-un 4197  ax-setind 4289  ax-iinf 4338  ax-cnex 7032  ax-resscn 7033  ax-1cn 7034  ax-1re 7035  ax-icn 7036  ax-addcl 7037  ax-addrcl 7038  ax-mulcl 7039  ax-addcom 7041  ax-addass 7043  ax-distr 7045  ax-i2m1 7046  ax-0id 7049  ax-rnegex 7050  ax-cnre 7052  ax-pre-ltirr 7053  ax-pre-ltwlin 7054  ax-pre-lttrn 7055  ax-pre-apti 7056  ax-pre-ltadd 7057 This theorem depends on definitions:  df-bi 114  df-dc 754  df-3or 897  df-3an 898  df-tru 1262  df-fal 1265  df-nf 1366  df-sb 1662  df-eu 1919  df-mo 1920  df-clab 2043  df-cleq 2049  df-clel 2052  df-nfc 2183  df-ne 2221  df-nel 2315  df-ral 2328  df-rex 2329  df-reu 2330  df-rab 2332  df-v 2576  df-sbc 2787  df-csb 2880  df-dif 2947  df-un 2949  df-in 2951  df-ss 2958  df-nul 3252  df-pw 3388  df-sn 3408  df-pr 3409  df-op 3411  df-uni 3608  df-int 3643  df-iun 3686  df-br 3792  df-opab 3846  df-mpt 3847  df-tr 3882  df-eprel 4053  df-id 4057  df-po 4060  df-iso 4061  df-iord 4130  df-on 4132  df-suc 4135  df-iom 4341  df-xp 4378  df-rel 4379  df-cnv 4380  df-co 4381  df-dm 4382  df-rn 4383  df-res 4384  df-ima 4385  df-iota 4894  df-fun 4931  df-fn 4932  df-f 4933  df-f1 4934  df-fo 4935  df-f1o 4936  df-fv 4937  df-riota 5495  df-ov 5542  df-oprab 5543  df-mpt2 5544  df-1st 5794  df-2nd 5795  df-recs 5950  df-irdg 5987  df-1o 6031  df-2o 6032  df-oadd 6035  df-omul 6036  df-er 6136  df-ec 6138  df-qs 6142  df-ni 6459  df-pli 6460  df-mi 6461  df-lti 6462  df-plpq 6499  df-mpq 6500  df-enq 6502  df-nqqs 6503  df-plqqs 6504  df-mqqs 6505  df-1nqqs 6506  df-rq 6507  df-ltnqqs 6508  df-enq0 6579  df-nq0 6580  df-0nq0 6581  df-plq0 6582  df-mq0 6583  df-inp 6621  df-i1p 6622  df-iplp 6623  df-iltp 6625  df-enr 6868  df-nr 6869  df-ltr 6872  df-0r 6873  df-1r 6874  df-0 6953  df-1 6954  df-r 6956  df-lt 6959  df-pnf 7120  df-mnf 7121  df-xr 7122  df-ltxr 7123  df-le 7124  df-sub 7246  df-neg 7247  df-inn 7990  df-n0 8239  df-z 8302  df-uz 8569  df-fz 8976 This theorem is referenced by: (None)
 Copyright terms: Public domain W3C validator