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 33318
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 6718 . . 3 (𝐹:𝑂⟶{0, 1} → 𝐹 Fn 𝑂)
21adantl 481 . 2 ((𝑂𝑉𝐹:𝑂⟶{0, 1}) → 𝐹 Fn 𝑂)
3 cnvimass 6081 . . . . 5 (𝐹 “ {1}) ⊆ dom 𝐹
4 fdm 6727 . . . . . 6 (𝐹:𝑂⟶{0, 1} → dom 𝐹 = 𝑂)
54adantl 481 . . . . 5 ((𝑂𝑉𝐹:𝑂⟶{0, 1}) → dom 𝐹 = 𝑂)
63, 5sseqtrid 4035 . . . 4 ((𝑂𝑉𝐹:𝑂⟶{0, 1}) → (𝐹 “ {1}) ⊆ 𝑂)
7 indf 33308 . . . 4 ((𝑂𝑉 ∧ (𝐹 “ {1}) ⊆ 𝑂) → ((𝟭‘𝑂)‘(𝐹 “ {1})):𝑂⟶{0, 1})
86, 7syldan 590 . . 3 ((𝑂𝑉𝐹:𝑂⟶{0, 1}) → ((𝟭‘𝑂)‘(𝐹 “ {1})):𝑂⟶{0, 1})
98ffnd 6719 . 2 ((𝑂𝑉𝐹:𝑂⟶{0, 1}) → ((𝟭‘𝑂)‘(𝐹 “ {1})) Fn 𝑂)
10 simpr 484 . . . . 5 ((𝑂𝑉𝐹:𝑂⟶{0, 1}) → 𝐹:𝑂⟶{0, 1})
1110ffvelcdmda 7087 . . . 4 (((𝑂𝑉𝐹:𝑂⟶{0, 1}) ∧ 𝑥𝑂) → (𝐹𝑥) ∈ {0, 1})
12 prcom 4737 . . . 4 {0, 1} = {1, 0}
1311, 12eleqtrdi 2842 . . 3 (((𝑂𝑉𝐹:𝑂⟶{0, 1}) ∧ 𝑥𝑂) → (𝐹𝑥) ∈ {1, 0})
148ffvelcdmda 7087 . . . 4 (((𝑂𝑉𝐹:𝑂⟶{0, 1}) ∧ 𝑥𝑂) → (((𝟭‘𝑂)‘(𝐹 “ {1}))‘𝑥) ∈ {0, 1})
1514, 12eleqtrdi 2842 . . 3 (((𝑂𝑉𝐹:𝑂⟶{0, 1}) ∧ 𝑥𝑂) → (((𝟭‘𝑂)‘(𝐹 “ {1}))‘𝑥) ∈ {1, 0})
16 simpll 764 . . . . 5 (((𝑂𝑉𝐹:𝑂⟶{0, 1}) ∧ 𝑥𝑂) → 𝑂𝑉)
176adantr 480 . . . . 5 (((𝑂𝑉𝐹:𝑂⟶{0, 1}) ∧ 𝑥𝑂) → (𝐹 “ {1}) ⊆ 𝑂)
18 simpr 484 . . . . 5 (((𝑂𝑉𝐹:𝑂⟶{0, 1}) ∧ 𝑥𝑂) → 𝑥𝑂)
19 ind1a 33312 . . . . 5 ((𝑂𝑉 ∧ (𝐹 “ {1}) ⊆ 𝑂𝑥𝑂) → ((((𝟭‘𝑂)‘(𝐹 “ {1}))‘𝑥) = 1 ↔ 𝑥 ∈ (𝐹 “ {1})))
2016, 17, 18, 19syl3anc 1370 . . . 4 (((𝑂𝑉𝐹:𝑂⟶{0, 1}) ∧ 𝑥𝑂) → ((((𝟭‘𝑂)‘(𝐹 “ {1}))‘𝑥) = 1 ↔ 𝑥 ∈ (𝐹 “ {1})))
21 fniniseg 7062 . . . . . 6 (𝐹 Fn 𝑂 → (𝑥 ∈ (𝐹 “ {1}) ↔ (𝑥𝑂 ∧ (𝐹𝑥) = 1)))
222, 21syl 17 . . . . 5 ((𝑂𝑉𝐹:𝑂⟶{0, 1}) → (𝑥 ∈ (𝐹 “ {1}) ↔ (𝑥𝑂 ∧ (𝐹𝑥) = 1)))
2322baibd 539 . . . 4 (((𝑂𝑉𝐹:𝑂⟶{0, 1}) ∧ 𝑥𝑂) → (𝑥 ∈ (𝐹 “ {1}) ↔ (𝐹𝑥) = 1))
2420, 23bitr2d 279 . . 3 (((𝑂𝑉𝐹:𝑂⟶{0, 1}) ∧ 𝑥𝑂) → ((𝐹𝑥) = 1 ↔ (((𝟭‘𝑂)‘(𝐹 “ {1}))‘𝑥) = 1))
2513, 15, 24elpreq 32031 . 2 (((𝑂𝑉𝐹:𝑂⟶{0, 1}) ∧ 𝑥𝑂) → (𝐹𝑥) = (((𝟭‘𝑂)‘(𝐹 “ {1}))‘𝑥))
262, 9, 25eqfnfvd 7036 1 ((𝑂𝑉𝐹:𝑂⟶{0, 1}) → 𝐹 = ((𝟭‘𝑂)‘(𝐹 “ {1})))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 205  wa 395   = wceq 1540  wcel 2105  wss 3949  {csn 4629  {cpr 4631  ccnv 5676  dom cdm 5677  cima 5680   Fn wfn 6539  wf 6540  cfv 6544  0cc0 11113  1c1 11114  𝟭cind 33303
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1796  ax-4 1810  ax-5 1912  ax-6 1970  ax-7 2010  ax-8 2107  ax-9 2115  ax-10 2136  ax-11 2153  ax-12 2170  ax-ext 2702  ax-rep 5286  ax-sep 5300  ax-nul 5307  ax-pow 5364  ax-pr 5428  ax-1cn 11171  ax-icn 11172  ax-addcl 11173  ax-addrcl 11174  ax-mulcl 11175  ax-mulrcl 11176  ax-i2m1 11181  ax-1ne0 11182  ax-rnegex 11184  ax-rrecex 11185  ax-cnre 11186
This theorem depends on definitions:  df-bi 206  df-an 396  df-or 845  df-3an 1088  df-tru 1543  df-fal 1553  df-ex 1781  df-nf 1785  df-sb 2067  df-mo 2533  df-eu 2562  df-clab 2709  df-cleq 2723  df-clel 2809  df-nfc 2884  df-ne 2940  df-ral 3061  df-rex 3070  df-reu 3376  df-rab 3432  df-v 3475  df-sbc 3779  df-csb 3895  df-dif 3952  df-un 3954  df-in 3956  df-ss 3966  df-nul 4324  df-if 4530  df-pw 4605  df-sn 4630  df-pr 4632  df-op 4636  df-uni 4910  df-iun 5000  df-br 5150  df-opab 5212  df-mpt 5233  df-id 5575  df-xp 5683  df-rel 5684  df-cnv 5685  df-co 5686  df-dm 5687  df-rn 5688  df-res 5689  df-ima 5690  df-iota 6496  df-fun 6546  df-fn 6547  df-f 6548  df-f1 6549  df-fo 6550  df-f1o 6551  df-fv 6552  df-ov 7415  df-ind 33304
This theorem is referenced by:  indf1ofs  33319
  Copyright terms: Public domain W3C validator