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

Theorem indpreima 33414
Description: A function with range {0, 1} as an indicator of the preimage of {1}. (Contributed by Thierry Arnoux, 23-Aug-2017.)
Assertion
Ref Expression
indpreima ((𝑂 ∈ 𝑉 ∧ 𝐹:𝑂⟶{0, 1}) → 𝐹 = ((𝟭‘𝑂)‘(◡𝐹 “ {1})))

Proof of Theorem indpreima
Dummy variable 𝑥 is distinct from all other variables.
StepHypRef Expression
1 ffn 6701 . . 3 (𝐹:𝑂⟶{0, 1} → 𝐹 Fn 𝑂)
21adantl 487 . 2 ((𝑂 ∈ 𝑉 ∧ 𝐹:𝑂⟶{0, 1}) → 𝐹 Fn 𝑂)
3 cnvimass 6076 . . . . 5 (◡𝐹 “ {1}) ⊆ dom 𝐹
4 fdm 6711 . . . . . 6 (𝐹:𝑂⟶{0, 1} → dom 𝐹 = 𝑂)
54adantl 487 . . . . 5 ((𝑂 ∈ 𝑉 ∧ 𝐹:𝑂⟶{0, 1}) → dom 𝐹 = 𝑂)
63, 5sseqtrid 3973 . . . 4 ((𝑂 ∈ 𝑉 ∧ 𝐹:𝑂⟶{0, 1}) → (◡𝐹 “ {1}) ⊆ 𝑂)
7 indf 12307 . . . 4 ((𝑂 ∈ 𝑉 ∧ (◡𝐹 “ {1}) ⊆ 𝑂) → ((𝟭‘𝑂)‘(◡𝐹 “ {1})):𝑂⟶{0, 1})
86, 7syldan 603 . . 3 ((𝑂 ∈ 𝑉 ∧ 𝐹:𝑂⟶{0, 1}) → ((𝟭‘𝑂)‘(◡𝐹 “ {1})):𝑂⟶{0, 1})
98ffnd 6702 . 2 ((𝑂 ∈ 𝑉 ∧ 𝐹:𝑂⟶{0, 1}) → ((𝟭‘𝑂)‘(◡𝐹 “ {1})) Fn 𝑂)
10 simpr 490 . . . . 5 ((𝑂 ∈ 𝑉 ∧ 𝐹:𝑂⟶{0, 1}) → 𝐹:𝑂⟶{0, 1})
1110ffvelcdmda 7076 . . . 4 (((𝑂 ∈ 𝑉 ∧ 𝐹:𝑂⟶{0, 1}) ∧ 𝑥 ∈ 𝑂) → (𝐹‘𝑥) ∈ {0, 1})
12 prcom 4693 . . . 4 {0, 1} = {1, 0}
1311, 12eleqtrdi 2871 . . 3 (((𝑂 ∈ 𝑉 ∧ 𝐹:𝑂⟶{0, 1}) ∧ 𝑥 ∈ 𝑂) → (𝐹‘𝑥) ∈ {1, 0})
148ffvelcdmda 7076 . . . 4 (((𝑂 ∈ 𝑉 ∧ 𝐹:𝑂⟶{0, 1}) ∧ 𝑥 ∈ 𝑂) → (((𝟭‘𝑂)‘(◡𝐹 “ {1}))‘𝑥) ∈ {0, 1})
1514, 12eleqtrdi 2871 . . 3 (((𝑂 ∈ 𝑉 ∧ 𝐹:𝑂⟶{0, 1}) ∧ 𝑥 ∈ 𝑂) → (((𝟭‘𝑂)‘(◡𝐹 “ {1}))‘𝑥) ∈ {1, 0})
16 simpll 779 . . . . 5 (((𝑂 ∈ 𝑉 ∧ 𝐹:𝑂⟶{0, 1}) ∧ 𝑥 ∈ 𝑂) → 𝑂 ∈ 𝑉)
176adantr 486 . . . . 5 (((𝑂 ∈ 𝑉 ∧ 𝐹:𝑂⟶{0, 1}) ∧ 𝑥 ∈ 𝑂) → (◡𝐹 “ {1}) ⊆ 𝑂)
18 simpr 490 . . . . 5 (((𝑂 ∈ 𝑉 ∧ 𝐹:𝑂⟶{0, 1}) ∧ 𝑥 ∈ 𝑂) → 𝑥 ∈ 𝑂)
19 ind1a 12312 . . . . 5 ((𝑂 ∈ 𝑉 ∧ (◡𝐹 “ {1}) ⊆ 𝑂 ∧ 𝑥 ∈ 𝑂) → ((((𝟭‘𝑂)‘(◡𝐹 “ {1}))‘𝑥) = 1 ↔ 𝑥 ∈ (◡𝐹 “ {1})))
2016, 17, 18, 19syl3anc 1398 . . . 4 (((𝑂 ∈ 𝑉 ∧ 𝐹:𝑂⟶{0, 1}) ∧ 𝑥 ∈ 𝑂) → ((((𝟭‘𝑂)‘(◡𝐹 “ {1}))‘𝑥) = 1 ↔ 𝑥 ∈ (◡𝐹 “ {1})))
21 fniniseg 7051 . . . . . 6 (𝐹 Fn 𝑂 → (𝑥 ∈ (◡𝐹 “ {1}) ↔ (𝑥 ∈ 𝑂 ∧ (𝐹‘𝑥) = 1)))
222, 21syl 18 . . . . 5 ((𝑂 ∈ 𝑉 ∧ 𝐹:𝑂⟶{0, 1}) → (𝑥 ∈ (◡𝐹 “ {1}) ↔ (𝑥 ∈ 𝑂 ∧ (𝐹‘𝑥) = 1)))
2322baibd 549 . . . 4 (((𝑂 ∈ 𝑉 ∧ 𝐹:𝑂⟶{0, 1}) ∧ 𝑥 ∈ 𝑂) → (𝑥 ∈ (◡𝐹 “ {1}) ↔ (𝐹‘𝑥) = 1))
2420, 23bitr2d 283 . . 3 (((𝑂 ∈ 𝑉 ∧ 𝐹:𝑂⟶{0, 1}) ∧ 𝑥 ∈ 𝑂) → ((𝐹‘𝑥) = 1 ↔ (((𝟭‘𝑂)‘(◡𝐹 “ {1}))‘𝑥) = 1))
2513, 15, 24elpreq 33106 . 2 (((𝑂 ∈ 𝑉 ∧ 𝐹:𝑂⟶{0, 1}) ∧ 𝑥 ∈ 𝑂) → (𝐹‘𝑥) = (((𝟭‘𝑂)‘(◡𝐹 “ {1}))‘𝑥))
262, 9, 25eqfnfvd 7024 1 ((𝑂 ∈ 𝑉 ∧ 𝐹:𝑂⟶{0, 1}) → 𝐹 = ((𝟭‘𝑂)‘(◡𝐹 “ {1})))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   → wi 4   ↔ wb 209   ∧ wa 401   = wceq 1570   ∈ wcel 2145   ⊆ wss 3899  {csn 4584  {cpr 4586  ◡ccnv 5650  dom cdm 5651   “ cima 5654   Fn wfn 6526  ⟶wf 6527  ‘cfv 6531  0cc0 11181  1c1 11182  𝟭cind 12301
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-1cn 11239  ax-icn 11240  ax-addcl 11241  ax-addrcl 11242  ax-mulcl 11243  ax-mulrcl 11244  ax-i2m1 11249  ax-1ne0 11250  ax-rnegex 11252  ax-rrecex 11253  ax-cnre 11254
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  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-ral 3078  df-rex 3088  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-nul 4280  df-if 4483  df-pw 4559  df-sn 4585  df-pr 4587  df-op 4591  df-uni 4868  df-iun 4953  df-br 5104  df-opab 5168  df-mpt 5187  df-id 5546  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-iota 6487  df-fun 6533  df-fn 6534  df-f 6535  df-f1 6536  df-fo 6537  df-f1o 6538  df-fv 6539  df-ov 7415  df-ind 12302
This theorem is used by:  indf1ofs  33415  indfsid  33418
  Copyright terms: Public domain W3C validator