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

Theorem reprdifc 32656
Description: Express the representations as a sum of integers in a difference of sets using conditions on each of the indices. (Contributed by Thierry Arnoux, 27-Dec-2021.)
Hypotheses
Ref Expression
reprdifc.c 𝐶 = {𝑐 ∈ (𝐴(repr‘𝑆)𝑀) ∣ ¬ (𝑐𝑥) ∈ 𝐵}
reprdifc.a (𝜑𝐴 ⊆ ℕ)
reprdifc.b (𝜑𝐵 ⊆ ℕ)
reprdifc.m (𝜑𝑀 ∈ ℕ0)
reprdifc.s (𝜑𝑆 ∈ ℕ0)
Assertion
Ref Expression
reprdifc (𝜑 → ((𝐴(repr‘𝑆)𝑀) ∖ (𝐵(repr‘𝑆)𝑀)) = 𝑥 ∈ (0..^𝑆)𝐶)
Distinct variable groups:   𝐴,𝑐,𝑥   𝐵,𝑐,𝑥   𝑀,𝑐,𝑥   𝑆,𝑐,𝑥   𝜑,𝑥
Allowed substitution hints:   𝜑(𝑐)   𝐶(𝑥,𝑐)

Proof of Theorem reprdifc
Dummy variables 𝑑 𝑎 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 nfv 1915 . . 3 𝑑𝜑
2 nfrab1 3336 . . 3 𝑑{𝑑 ∈ ((𝐴m (0..^𝑆)) ∖ (𝐵m (0..^𝑆))) ∣ Σ𝑎 ∈ (0..^𝑆)(𝑑𝑎) = 𝑀}
3 nfcv 2905 . . 3 𝑑 𝑥 ∈ (0..^𝑆){𝑐 ∈ (𝐴(repr‘𝑆)𝑀) ∣ ¬ (𝑐𝑥) ∈ 𝐵}
4 reprdifc.a . . . . . . . . . . 11 (𝜑𝐴 ⊆ ℕ)
5 reprdifc.m . . . . . . . . . . . 12 (𝜑𝑀 ∈ ℕ0)
65nn0zd 12474 . . . . . . . . . . 11 (𝜑𝑀 ∈ ℤ)
7 reprdifc.s . . . . . . . . . . 11 (𝜑𝑆 ∈ ℕ0)
84, 6, 7reprval 32639 . . . . . . . . . 10 (𝜑 → (𝐴(repr‘𝑆)𝑀) = {𝑑 ∈ (𝐴m (0..^𝑆)) ∣ Σ𝑎 ∈ (0..^𝑆)(𝑑𝑎) = 𝑀})
98eleq2d 2822 . . . . . . . . 9 (𝜑 → (𝑑 ∈ (𝐴(repr‘𝑆)𝑀) ↔ 𝑑 ∈ {𝑑 ∈ (𝐴m (0..^𝑆)) ∣ Σ𝑎 ∈ (0..^𝑆)(𝑑𝑎) = 𝑀}))
10 rabid 3329 . . . . . . . . 9 (𝑑 ∈ {𝑑 ∈ (𝐴m (0..^𝑆)) ∣ Σ𝑎 ∈ (0..^𝑆)(𝑑𝑎) = 𝑀} ↔ (𝑑 ∈ (𝐴m (0..^𝑆)) ∧ Σ𝑎 ∈ (0..^𝑆)(𝑑𝑎) = 𝑀))
119, 10bitrdi 287 . . . . . . . 8 (𝜑 → (𝑑 ∈ (𝐴(repr‘𝑆)𝑀) ↔ (𝑑 ∈ (𝐴m (0..^𝑆)) ∧ Σ𝑎 ∈ (0..^𝑆)(𝑑𝑎) = 𝑀)))
1211anbi1d 631 . . . . . . 7 (𝜑 → ((𝑑 ∈ (𝐴(repr‘𝑆)𝑀) ∧ ¬ 𝑑 ∈ (𝐵m (0..^𝑆))) ↔ ((𝑑 ∈ (𝐴m (0..^𝑆)) ∧ Σ𝑎 ∈ (0..^𝑆)(𝑑𝑎) = 𝑀) ∧ ¬ 𝑑 ∈ (𝐵m (0..^𝑆)))))
13 eldif 3902 . . . . . . . . . 10 (𝑑 ∈ ((𝐴m (0..^𝑆)) ∖ (𝐵m (0..^𝑆))) ↔ (𝑑 ∈ (𝐴m (0..^𝑆)) ∧ ¬ 𝑑 ∈ (𝐵m (0..^𝑆))))
1413anbi1i 625 . . . . . . . . 9 ((𝑑 ∈ ((𝐴m (0..^𝑆)) ∖ (𝐵m (0..^𝑆))) ∧ Σ𝑎 ∈ (0..^𝑆)(𝑑𝑎) = 𝑀) ↔ ((𝑑 ∈ (𝐴m (0..^𝑆)) ∧ ¬ 𝑑 ∈ (𝐵m (0..^𝑆))) ∧ Σ𝑎 ∈ (0..^𝑆)(𝑑𝑎) = 𝑀))
15 an32 644 . . . . . . . . 9 (((𝑑 ∈ (𝐴m (0..^𝑆)) ∧ ¬ 𝑑 ∈ (𝐵m (0..^𝑆))) ∧ Σ𝑎 ∈ (0..^𝑆)(𝑑𝑎) = 𝑀) ↔ ((𝑑 ∈ (𝐴m (0..^𝑆)) ∧ Σ𝑎 ∈ (0..^𝑆)(𝑑𝑎) = 𝑀) ∧ ¬ 𝑑 ∈ (𝐵m (0..^𝑆))))
1614, 15bitri 275 . . . . . . . 8 ((𝑑 ∈ ((𝐴m (0..^𝑆)) ∖ (𝐵m (0..^𝑆))) ∧ Σ𝑎 ∈ (0..^𝑆)(𝑑𝑎) = 𝑀) ↔ ((𝑑 ∈ (𝐴m (0..^𝑆)) ∧ Σ𝑎 ∈ (0..^𝑆)(𝑑𝑎) = 𝑀) ∧ ¬ 𝑑 ∈ (𝐵m (0..^𝑆))))
1716a1i 11 . . . . . . 7 (𝜑 → ((𝑑 ∈ ((𝐴m (0..^𝑆)) ∖ (𝐵m (0..^𝑆))) ∧ Σ𝑎 ∈ (0..^𝑆)(𝑑𝑎) = 𝑀) ↔ ((𝑑 ∈ (𝐴m (0..^𝑆)) ∧ Σ𝑎 ∈ (0..^𝑆)(𝑑𝑎) = 𝑀) ∧ ¬ 𝑑 ∈ (𝐵m (0..^𝑆)))))
1812, 17bitr4d 282 . . . . . 6 (𝜑 → ((𝑑 ∈ (𝐴(repr‘𝑆)𝑀) ∧ ¬ 𝑑 ∈ (𝐵m (0..^𝑆))) ↔ (𝑑 ∈ ((𝐴m (0..^𝑆)) ∖ (𝐵m (0..^𝑆))) ∧ Σ𝑎 ∈ (0..^𝑆)(𝑑𝑎) = 𝑀)))
19 nnex 12029 . . . . . . . . . . . . . 14 ℕ ∈ V
2019a1i 11 . . . . . . . . . . . . 13 (𝜑 → ℕ ∈ V)
21 reprdifc.b . . . . . . . . . . . . 13 (𝜑𝐵 ⊆ ℕ)
2220, 21ssexd 5257 . . . . . . . . . . . 12 (𝜑𝐵 ∈ V)
23 ovexd 7342 . . . . . . . . . . . 12 (𝜑 → (0..^𝑆) ∈ V)
24 elmapg 8659 . . . . . . . . . . . 12 ((𝐵 ∈ V ∧ (0..^𝑆) ∈ V) → (𝑑 ∈ (𝐵m (0..^𝑆)) ↔ 𝑑:(0..^𝑆)⟶𝐵))
2522, 23, 24syl2anc 585 . . . . . . . . . . 11 (𝜑 → (𝑑 ∈ (𝐵m (0..^𝑆)) ↔ 𝑑:(0..^𝑆)⟶𝐵))
2625adantr 482 . . . . . . . . . 10 ((𝜑𝑑 ∈ (𝐴(repr‘𝑆)𝑀)) → (𝑑 ∈ (𝐵m (0..^𝑆)) ↔ 𝑑:(0..^𝑆)⟶𝐵))
27 ffnfv 7024 . . . . . . . . . . 11 (𝑑:(0..^𝑆)⟶𝐵 ↔ (𝑑 Fn (0..^𝑆) ∧ ∀𝑥 ∈ (0..^𝑆)(𝑑𝑥) ∈ 𝐵))
284adantr 482 . . . . . . . . . . . . . 14 ((𝜑𝑑 ∈ (𝐴(repr‘𝑆)𝑀)) → 𝐴 ⊆ ℕ)
296adantr 482 . . . . . . . . . . . . . 14 ((𝜑𝑑 ∈ (𝐴(repr‘𝑆)𝑀)) → 𝑀 ∈ ℤ)
307adantr 482 . . . . . . . . . . . . . 14 ((𝜑𝑑 ∈ (𝐴(repr‘𝑆)𝑀)) → 𝑆 ∈ ℕ0)
31 simpr 486 . . . . . . . . . . . . . 14 ((𝜑𝑑 ∈ (𝐴(repr‘𝑆)𝑀)) → 𝑑 ∈ (𝐴(repr‘𝑆)𝑀))
3228, 29, 30, 31reprf 32641 . . . . . . . . . . . . 13 ((𝜑𝑑 ∈ (𝐴(repr‘𝑆)𝑀)) → 𝑑:(0..^𝑆)⟶𝐴)
3332ffnd 6631 . . . . . . . . . . . 12 ((𝜑𝑑 ∈ (𝐴(repr‘𝑆)𝑀)) → 𝑑 Fn (0..^𝑆))
3433biantrurd 534 . . . . . . . . . . 11 ((𝜑𝑑 ∈ (𝐴(repr‘𝑆)𝑀)) → (∀𝑥 ∈ (0..^𝑆)(𝑑𝑥) ∈ 𝐵 ↔ (𝑑 Fn (0..^𝑆) ∧ ∀𝑥 ∈ (0..^𝑆)(𝑑𝑥) ∈ 𝐵)))
3527, 34bitr4id 290 . . . . . . . . . 10 ((𝜑𝑑 ∈ (𝐴(repr‘𝑆)𝑀)) → (𝑑:(0..^𝑆)⟶𝐵 ↔ ∀𝑥 ∈ (0..^𝑆)(𝑑𝑥) ∈ 𝐵))
3626, 35bitrd 279 . . . . . . . . 9 ((𝜑𝑑 ∈ (𝐴(repr‘𝑆)𝑀)) → (𝑑 ∈ (𝐵m (0..^𝑆)) ↔ ∀𝑥 ∈ (0..^𝑆)(𝑑𝑥) ∈ 𝐵))
3736notbid 318 . . . . . . . 8 ((𝜑𝑑 ∈ (𝐴(repr‘𝑆)𝑀)) → (¬ 𝑑 ∈ (𝐵m (0..^𝑆)) ↔ ¬ ∀𝑥 ∈ (0..^𝑆)(𝑑𝑥) ∈ 𝐵))
38 rexnal 3100 . . . . . . . 8 (∃𝑥 ∈ (0..^𝑆) ¬ (𝑑𝑥) ∈ 𝐵 ↔ ¬ ∀𝑥 ∈ (0..^𝑆)(𝑑𝑥) ∈ 𝐵)
3937, 38bitr4di 289 . . . . . . 7 ((𝜑𝑑 ∈ (𝐴(repr‘𝑆)𝑀)) → (¬ 𝑑 ∈ (𝐵m (0..^𝑆)) ↔ ∃𝑥 ∈ (0..^𝑆) ¬ (𝑑𝑥) ∈ 𝐵))
4039pm5.32da 580 . . . . . 6 (𝜑 → ((𝑑 ∈ (𝐴(repr‘𝑆)𝑀) ∧ ¬ 𝑑 ∈ (𝐵m (0..^𝑆))) ↔ (𝑑 ∈ (𝐴(repr‘𝑆)𝑀) ∧ ∃𝑥 ∈ (0..^𝑆) ¬ (𝑑𝑥) ∈ 𝐵)))
4118, 40bitr3d 281 . . . . 5 (𝜑 → ((𝑑 ∈ ((𝐴m (0..^𝑆)) ∖ (𝐵m (0..^𝑆))) ∧ Σ𝑎 ∈ (0..^𝑆)(𝑑𝑎) = 𝑀) ↔ (𝑑 ∈ (𝐴(repr‘𝑆)𝑀) ∧ ∃𝑥 ∈ (0..^𝑆) ¬ (𝑑𝑥) ∈ 𝐵)))
42 fveq1 6803 . . . . . . . . . 10 (𝑐 = 𝑑 → (𝑐𝑥) = (𝑑𝑥))
4342eleq1d 2821 . . . . . . . . 9 (𝑐 = 𝑑 → ((𝑐𝑥) ∈ 𝐵 ↔ (𝑑𝑥) ∈ 𝐵))
4443notbid 318 . . . . . . . 8 (𝑐 = 𝑑 → (¬ (𝑐𝑥) ∈ 𝐵 ↔ ¬ (𝑑𝑥) ∈ 𝐵))
4544elrab 3629 . . . . . . 7 (𝑑 ∈ {𝑐 ∈ (𝐴(repr‘𝑆)𝑀) ∣ ¬ (𝑐𝑥) ∈ 𝐵} ↔ (𝑑 ∈ (𝐴(repr‘𝑆)𝑀) ∧ ¬ (𝑑𝑥) ∈ 𝐵))
4645rexbii 3094 . . . . . 6 (∃𝑥 ∈ (0..^𝑆)𝑑 ∈ {𝑐 ∈ (𝐴(repr‘𝑆)𝑀) ∣ ¬ (𝑐𝑥) ∈ 𝐵} ↔ ∃𝑥 ∈ (0..^𝑆)(𝑑 ∈ (𝐴(repr‘𝑆)𝑀) ∧ ¬ (𝑑𝑥) ∈ 𝐵))
47 r19.42v 3184 . . . . . 6 (∃𝑥 ∈ (0..^𝑆)(𝑑 ∈ (𝐴(repr‘𝑆)𝑀) ∧ ¬ (𝑑𝑥) ∈ 𝐵) ↔ (𝑑 ∈ (𝐴(repr‘𝑆)𝑀) ∧ ∃𝑥 ∈ (0..^𝑆) ¬ (𝑑𝑥) ∈ 𝐵))
4846, 47bitri 275 . . . . 5 (∃𝑥 ∈ (0..^𝑆)𝑑 ∈ {𝑐 ∈ (𝐴(repr‘𝑆)𝑀) ∣ ¬ (𝑐𝑥) ∈ 𝐵} ↔ (𝑑 ∈ (𝐴(repr‘𝑆)𝑀) ∧ ∃𝑥 ∈ (0..^𝑆) ¬ (𝑑𝑥) ∈ 𝐵))
4941, 48bitr4di 289 . . . 4 (𝜑 → ((𝑑 ∈ ((𝐴m (0..^𝑆)) ∖ (𝐵m (0..^𝑆))) ∧ Σ𝑎 ∈ (0..^𝑆)(𝑑𝑎) = 𝑀) ↔ ∃𝑥 ∈ (0..^𝑆)𝑑 ∈ {𝑐 ∈ (𝐴(repr‘𝑆)𝑀) ∣ ¬ (𝑐𝑥) ∈ 𝐵}))
50 rabid 3329 . . . 4 (𝑑 ∈ {𝑑 ∈ ((𝐴m (0..^𝑆)) ∖ (𝐵m (0..^𝑆))) ∣ Σ𝑎 ∈ (0..^𝑆)(𝑑𝑎) = 𝑀} ↔ (𝑑 ∈ ((𝐴m (0..^𝑆)) ∖ (𝐵m (0..^𝑆))) ∧ Σ𝑎 ∈ (0..^𝑆)(𝑑𝑎) = 𝑀))
51 eliun 4935 . . . 4 (𝑑 𝑥 ∈ (0..^𝑆){𝑐 ∈ (𝐴(repr‘𝑆)𝑀) ∣ ¬ (𝑐𝑥) ∈ 𝐵} ↔ ∃𝑥 ∈ (0..^𝑆)𝑑 ∈ {𝑐 ∈ (𝐴(repr‘𝑆)𝑀) ∣ ¬ (𝑐𝑥) ∈ 𝐵})
5249, 50, 513bitr4g 314 . . 3 (𝜑 → (𝑑 ∈ {𝑑 ∈ ((𝐴m (0..^𝑆)) ∖ (𝐵m (0..^𝑆))) ∣ Σ𝑎 ∈ (0..^𝑆)(𝑑𝑎) = 𝑀} ↔ 𝑑 𝑥 ∈ (0..^𝑆){𝑐 ∈ (𝐴(repr‘𝑆)𝑀) ∣ ¬ (𝑐𝑥) ∈ 𝐵}))
531, 2, 3, 52eqrd 3945 . 2 (𝜑 → {𝑑 ∈ ((𝐴m (0..^𝑆)) ∖ (𝐵m (0..^𝑆))) ∣ Σ𝑎 ∈ (0..^𝑆)(𝑑𝑎) = 𝑀} = 𝑥 ∈ (0..^𝑆){𝑐 ∈ (𝐴(repr‘𝑆)𝑀) ∣ ¬ (𝑐𝑥) ∈ 𝐵})
5421, 6, 7reprval 32639 . . . 4 (𝜑 → (𝐵(repr‘𝑆)𝑀) = {𝑑 ∈ (𝐵m (0..^𝑆)) ∣ Σ𝑎 ∈ (0..^𝑆)(𝑑𝑎) = 𝑀})
558, 54difeq12d 4064 . . 3 (𝜑 → ((𝐴(repr‘𝑆)𝑀) ∖ (𝐵(repr‘𝑆)𝑀)) = ({𝑑 ∈ (𝐴m (0..^𝑆)) ∣ Σ𝑎 ∈ (0..^𝑆)(𝑑𝑎) = 𝑀} ∖ {𝑑 ∈ (𝐵m (0..^𝑆)) ∣ Σ𝑎 ∈ (0..^𝑆)(𝑑𝑎) = 𝑀}))
56 difrab2 30894 . . 3 ({𝑑 ∈ (𝐴m (0..^𝑆)) ∣ Σ𝑎 ∈ (0..^𝑆)(𝑑𝑎) = 𝑀} ∖ {𝑑 ∈ (𝐵m (0..^𝑆)) ∣ Σ𝑎 ∈ (0..^𝑆)(𝑑𝑎) = 𝑀}) = {𝑑 ∈ ((𝐴m (0..^𝑆)) ∖ (𝐵m (0..^𝑆))) ∣ Σ𝑎 ∈ (0..^𝑆)(𝑑𝑎) = 𝑀}
5755, 56eqtrdi 2792 . 2 (𝜑 → ((𝐴(repr‘𝑆)𝑀) ∖ (𝐵(repr‘𝑆)𝑀)) = {𝑑 ∈ ((𝐴m (0..^𝑆)) ∖ (𝐵m (0..^𝑆))) ∣ Σ𝑎 ∈ (0..^𝑆)(𝑑𝑎) = 𝑀})
58 reprdifc.c . . . 4 𝐶 = {𝑐 ∈ (𝐴(repr‘𝑆)𝑀) ∣ ¬ (𝑐𝑥) ∈ 𝐵}
5958a1i 11 . . 3 (𝜑𝐶 = {𝑐 ∈ (𝐴(repr‘𝑆)𝑀) ∣ ¬ (𝑐𝑥) ∈ 𝐵})
6059iuneq2d 4960 . 2 (𝜑 𝑥 ∈ (0..^𝑆)𝐶 = 𝑥 ∈ (0..^𝑆){𝑐 ∈ (𝐴(repr‘𝑆)𝑀) ∣ ¬ (𝑐𝑥) ∈ 𝐵})
6153, 57, 603eqtr4d 2786 1 (𝜑 → ((𝐴(repr‘𝑆)𝑀) ∖ (𝐵(repr‘𝑆)𝑀)) = 𝑥 ∈ (0..^𝑆)𝐶)
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 205  wa 397   = wceq 1539  wcel 2104  wral 3062  wrex 3071  {crab 3303  Vcvv 3437  cdif 3889  wss 3892   ciun 4931   Fn wfn 6453  wf 6454  cfv 6458  (class class class)co 7307  m cmap 8646  0cc0 10921  cn 12023  0cn0 12283  cz 12369  ..^cfzo 13432  Σcsu 15446  reprcrepr 32637
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1795  ax-4 1809  ax-5 1911  ax-6 1969  ax-7 2009  ax-8 2106  ax-9 2114  ax-10 2135  ax-11 2152  ax-12 2169  ax-ext 2707  ax-rep 5218  ax-sep 5232  ax-nul 5239  ax-pow 5297  ax-pr 5361  ax-un 7620  ax-cnex 10977  ax-resscn 10978  ax-1cn 10979  ax-icn 10980  ax-addcl 10981  ax-addrcl 10982  ax-mulcl 10983  ax-mulrcl 10984  ax-i2m1 10989  ax-1ne0 10990  ax-rnegex 10992  ax-rrecex 10993  ax-cnre 10994
This theorem depends on definitions:  df-bi 206  df-an 398  df-or 846  df-3or 1088  df-3an 1089  df-tru 1542  df-fal 1552  df-ex 1780  df-nf 1784  df-sb 2066  df-mo 2538  df-eu 2567  df-clab 2714  df-cleq 2728  df-clel 2814  df-nfc 2887  df-ne 2942  df-ral 3063  df-rex 3072  df-reu 3305  df-rab 3306  df-v 3439  df-sbc 3722  df-csb 3838  df-dif 3895  df-un 3897  df-in 3899  df-ss 3909  df-pss 3911  df-nul 4263  df-if 4466  df-pw 4541  df-sn 4566  df-pr 4568  df-op 4572  df-uni 4845  df-iun 4933  df-br 5082  df-opab 5144  df-mpt 5165  df-tr 5199  df-id 5500  df-eprel 5506  df-po 5514  df-so 5515  df-fr 5555  df-we 5557  df-xp 5606  df-rel 5607  df-cnv 5608  df-co 5609  df-dm 5610  df-rn 5611  df-res 5612  df-ima 5613  df-pred 6217  df-ord 6284  df-on 6285  df-lim 6286  df-suc 6287  df-iota 6410  df-fun 6460  df-fn 6461  df-f 6462  df-f1 6463  df-fo 6464  df-f1o 6465  df-fv 6466  df-ov 7310  df-oprab 7311  df-mpo 7312  df-om 7745  df-1st 7863  df-2nd 7864  df-frecs 8128  df-wrecs 8159  df-recs 8233  df-rdg 8272  df-map 8648  df-neg 11258  df-nn 12024  df-n0 12284  df-z 12370  df-seq 13772  df-sum 15447  df-repr 32638
This theorem is referenced by:  hgt750lema  32686
  Copyright terms: Public domain W3C validator