Users' Mathboxes Mathbox for BJ < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  ILE Home  >  Th. List  >   Mathboxes  >  bj-charfundc GIF version

Theorem bj-charfundc 15454
Description: Properties of the characteristic function on the class 𝑋 of the class 𝐴, provided membership in 𝐴 is decidable in 𝑋. (Contributed by BJ, 6-Aug-2024.)
Hypotheses
Ref Expression
bj-charfundc.1 (𝜑𝐹 = (𝑥𝑋 ↦ if(𝑥𝐴, 1o, ∅)))
bj-charfundc.dc (𝜑 → ∀𝑥𝑋 DECID 𝑥𝐴)
Assertion
Ref Expression
bj-charfundc (𝜑 → (𝐹:𝑋⟶2o ∧ (∀𝑥 ∈ (𝑋𝐴)(𝐹𝑥) = 1o ∧ ∀𝑥 ∈ (𝑋𝐴)(𝐹𝑥) = ∅)))
Distinct variable groups:   𝜑,𝑥   𝑥,𝑋
Allowed substitution hints:   𝐴(𝑥)   𝐹(𝑥)

Proof of Theorem bj-charfundc
StepHypRef Expression
1 bj-charfundc.1 . . 3 (𝜑𝐹 = (𝑥𝑋 ↦ if(𝑥𝐴, 1o, ∅)))
2 1lt2o 6500 . . . . 5 1o ∈ 2o
32a1i 9 . . . 4 ((𝜑𝑥𝑋) → 1o ∈ 2o)
4 0lt2o 6499 . . . . 5 ∅ ∈ 2o
54a1i 9 . . . 4 ((𝜑𝑥𝑋) → ∅ ∈ 2o)
6 bj-charfundc.dc . . . . 5 (𝜑 → ∀𝑥𝑋 DECID 𝑥𝐴)
76r19.21bi 2585 . . . 4 ((𝜑𝑥𝑋) → DECID 𝑥𝐴)
83, 5, 7ifcldcd 3597 . . 3 ((𝜑𝑥𝑋) → if(𝑥𝐴, 1o, ∅) ∈ 2o)
91, 8fmpt3d 5718 . 2 (𝜑𝐹:𝑋⟶2o)
10 inss1 3383 . . . . . . . 8 (𝑋𝐴) ⊆ 𝑋
1110a1i 9 . . . . . . 7 (𝜑 → (𝑋𝐴) ⊆ 𝑋)
1211sseld 3182 . . . . . 6 (𝜑 → (𝑥 ∈ (𝑋𝐴) → 𝑥𝑋))
1312imdistani 445 . . . . 5 ((𝜑𝑥 ∈ (𝑋𝐴)) → (𝜑𝑥𝑋))
141, 8fvmpt2d 5648 . . . . 5 ((𝜑𝑥𝑋) → (𝐹𝑥) = if(𝑥𝐴, 1o, ∅))
1513, 14syl 14 . . . 4 ((𝜑𝑥 ∈ (𝑋𝐴)) → (𝐹𝑥) = if(𝑥𝐴, 1o, ∅))
16 simpr 110 . . . . . 6 ((𝜑𝑥 ∈ (𝑋𝐴)) → 𝑥 ∈ (𝑋𝐴))
1716elin2d 3353 . . . . 5 ((𝜑𝑥 ∈ (𝑋𝐴)) → 𝑥𝐴)
1817iftrued 3568 . . . 4 ((𝜑𝑥 ∈ (𝑋𝐴)) → if(𝑥𝐴, 1o, ∅) = 1o)
1915, 18eqtrd 2229 . . 3 ((𝜑𝑥 ∈ (𝑋𝐴)) → (𝐹𝑥) = 1o)
2019ralrimiva 2570 . 2 (𝜑 → ∀𝑥 ∈ (𝑋𝐴)(𝐹𝑥) = 1o)
21 difssd 3290 . . . . . . 7 (𝜑 → (𝑋𝐴) ⊆ 𝑋)
2221sseld 3182 . . . . . 6 (𝜑 → (𝑥 ∈ (𝑋𝐴) → 𝑥𝑋))
2322imdistani 445 . . . . 5 ((𝜑𝑥 ∈ (𝑋𝐴)) → (𝜑𝑥𝑋))
2423, 14syl 14 . . . 4 ((𝜑𝑥 ∈ (𝑋𝐴)) → (𝐹𝑥) = if(𝑥𝐴, 1o, ∅))
25 simpr 110 . . . . . 6 ((𝜑𝑥 ∈ (𝑋𝐴)) → 𝑥 ∈ (𝑋𝐴))
2625eldifbd 3169 . . . . 5 ((𝜑𝑥 ∈ (𝑋𝐴)) → ¬ 𝑥𝐴)
2726iffalsed 3571 . . . 4 ((𝜑𝑥 ∈ (𝑋𝐴)) → if(𝑥𝐴, 1o, ∅) = ∅)
2824, 27eqtrd 2229 . . 3 ((𝜑𝑥 ∈ (𝑋𝐴)) → (𝐹𝑥) = ∅)
2928ralrimiva 2570 . 2 (𝜑 → ∀𝑥 ∈ (𝑋𝐴)(𝐹𝑥) = ∅)
309, 20, 29jca32 310 1 (𝜑 → (𝐹:𝑋⟶2o ∧ (∀𝑥 ∈ (𝑋𝐴)(𝐹𝑥) = 1o ∧ ∀𝑥 ∈ (𝑋𝐴)(𝐹𝑥) = ∅)))
Colors of variables: wff set class
Syntax hints:  wi 4  wa 104  DECID wdc 835   = wceq 1364  wcel 2167  wral 2475  cdif 3154  cin 3156  wss 3157  c0 3450  ifcif 3561  cmpt 4094  wf 5254  cfv 5258  1oc1o 6467  2oc2o 6468
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-ia1 106  ax-ia2 107  ax-ia3 108  ax-in1 615  ax-in2 616  ax-io 710  ax-5 1461  ax-7 1462  ax-gen 1463  ax-ie1 1507  ax-ie2 1508  ax-8 1518  ax-10 1519  ax-11 1520  ax-i12 1521  ax-bndl 1523  ax-4 1524  ax-17 1540  ax-i9 1544  ax-ial 1548  ax-i5r 1549  ax-13 2169  ax-14 2170  ax-ext 2178  ax-sep 4151  ax-nul 4159  ax-pow 4207  ax-pr 4242  ax-un 4468
This theorem depends on definitions:  df-bi 117  df-dc 836  df-3an 982  df-tru 1367  df-nf 1475  df-sb 1777  df-eu 2048  df-mo 2049  df-clab 2183  df-cleq 2189  df-clel 2192  df-nfc 2328  df-ral 2480  df-rex 2481  df-rab 2484  df-v 2765  df-sbc 2990  df-csb 3085  df-dif 3159  df-un 3161  df-in 3163  df-ss 3170  df-nul 3451  df-if 3562  df-pw 3607  df-sn 3628  df-pr 3629  df-op 3631  df-uni 3840  df-br 4034  df-opab 4095  df-mpt 4096  df-tr 4132  df-id 4328  df-iord 4401  df-on 4403  df-suc 4406  df-xp 4669  df-rel 4670  df-cnv 4671  df-co 4672  df-dm 4673  df-rn 4674  df-res 4675  df-ima 4676  df-iota 5219  df-fun 5260  df-fn 5261  df-f 5262  df-fv 5266  df-1o 6474  df-2o 6475
This theorem is referenced by:  bj-charfunbi  15457
  Copyright terms: Public domain W3C validator