MPE Home Metamath Proof Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >  fvmptnn04if Structured version   Visualization version   GIF version

Theorem fvmptnn04if 20397
Description: The function values of a mapping from the nonnegative integers with four distinct cases. (Contributed by AV, 10-Nov-2019.)
Hypotheses
Ref Expression
fvmptnn04if.g 𝐺 = (𝑛 ∈ ℕ0 ↦ if(𝑛 = 0, 𝐴, if(𝑛 = 𝑆, 𝐶, if(𝑆 < 𝑛, 𝐷, 𝐵))))
fvmptnn04if.s (𝜑𝑆 ∈ ℕ)
fvmptnn04if.n (𝜑𝑁 ∈ ℕ0)
fvmptnn04if.y (𝜑𝑌𝑉)
fvmptnn04if.a ((𝜑𝑁 = 0) → 𝑌 = 𝑁 / 𝑛𝐴)
fvmptnn04if.b ((𝜑 ∧ 0 < 𝑁𝑁 < 𝑆) → 𝑌 = 𝑁 / 𝑛𝐵)
fvmptnn04if.c ((𝜑𝑁 = 𝑆) → 𝑌 = 𝑁 / 𝑛𝐶)
fvmptnn04if.d ((𝜑𝑆 < 𝑁) → 𝑌 = 𝑁 / 𝑛𝐷)
Assertion
Ref Expression
fvmptnn04if (𝜑 → (𝐺𝑁) = 𝑌)
Distinct variable groups:   𝑛,𝑁   𝑆,𝑛
Allowed substitution hints:   𝜑(𝑛)   𝐴(𝑛)   𝐵(𝑛)   𝐶(𝑛)   𝐷(𝑛)   𝐺(𝑛)   𝑉(𝑛)   𝑌(𝑛)

Proof of Theorem fvmptnn04if
StepHypRef Expression
1 fvmptnn04if.n . . 3 (𝜑𝑁 ∈ ℕ0)
2 csbif 3991 . . . . 5 𝑁 / 𝑛if(𝑛 = 0, 𝐴, if(𝑛 = 𝑆, 𝐶, if(𝑆 < 𝑛, 𝐷, 𝐵))) = if([𝑁 / 𝑛]𝑛 = 0, 𝑁 / 𝑛𝐴, 𝑁 / 𝑛if(𝑛 = 𝑆, 𝐶, if(𝑆 < 𝑛, 𝐷, 𝐵)))
3 eqsbc3 3346 . . . . . . 7 (𝑁 ∈ ℕ0 → ([𝑁 / 𝑛]𝑛 = 0 ↔ 𝑁 = 0))
41, 3syl 17 . . . . . 6 (𝜑 → ([𝑁 / 𝑛]𝑛 = 0 ↔ 𝑁 = 0))
5 csbif 3991 . . . . . . 7 𝑁 / 𝑛if(𝑛 = 𝑆, 𝐶, if(𝑆 < 𝑛, 𝐷, 𝐵)) = if([𝑁 / 𝑛]𝑛 = 𝑆, 𝑁 / 𝑛𝐶, 𝑁 / 𝑛if(𝑆 < 𝑛, 𝐷, 𝐵))
6 eqsbc3 3346 . . . . . . . . 9 (𝑁 ∈ ℕ0 → ([𝑁 / 𝑛]𝑛 = 𝑆𝑁 = 𝑆))
71, 6syl 17 . . . . . . . 8 (𝜑 → ([𝑁 / 𝑛]𝑛 = 𝑆𝑁 = 𝑆))
8 csbif 3991 . . . . . . . . 9 𝑁 / 𝑛if(𝑆 < 𝑛, 𝐷, 𝐵) = if([𝑁 / 𝑛]𝑆 < 𝑛, 𝑁 / 𝑛𝐷, 𝑁 / 𝑛𝐵)
9 sbcbr2g 4538 . . . . . . . . . . . 12 (𝑁 ∈ ℕ0 → ([𝑁 / 𝑛]𝑆 < 𝑛𝑆 < 𝑁 / 𝑛𝑛))
101, 9syl 17 . . . . . . . . . . 11 (𝜑 → ([𝑁 / 𝑛]𝑆 < 𝑛𝑆 < 𝑁 / 𝑛𝑛))
11 csbvarg 3858 . . . . . . . . . . . . 13 (𝑁 ∈ ℕ0𝑁 / 𝑛𝑛 = 𝑁)
121, 11syl 17 . . . . . . . . . . . 12 (𝜑𝑁 / 𝑛𝑛 = 𝑁)
1312breq2d 4493 . . . . . . . . . . 11 (𝜑 → (𝑆 < 𝑁 / 𝑛𝑛𝑆 < 𝑁))
1410, 13bitrd 266 . . . . . . . . . 10 (𝜑 → ([𝑁 / 𝑛]𝑆 < 𝑛𝑆 < 𝑁))
1514ifbid 3961 . . . . . . . . 9 (𝜑 → if([𝑁 / 𝑛]𝑆 < 𝑛, 𝑁 / 𝑛𝐷, 𝑁 / 𝑛𝐵) = if(𝑆 < 𝑁, 𝑁 / 𝑛𝐷, 𝑁 / 𝑛𝐵))
168, 15syl5eq 2560 . . . . . . . 8 (𝜑𝑁 / 𝑛if(𝑆 < 𝑛, 𝐷, 𝐵) = if(𝑆 < 𝑁, 𝑁 / 𝑛𝐷, 𝑁 / 𝑛𝐵))
177, 16ifbieq2d 3964 . . . . . . 7 (𝜑 → if([𝑁 / 𝑛]𝑛 = 𝑆, 𝑁 / 𝑛𝐶, 𝑁 / 𝑛if(𝑆 < 𝑛, 𝐷, 𝐵)) = if(𝑁 = 𝑆, 𝑁 / 𝑛𝐶, if(𝑆 < 𝑁, 𝑁 / 𝑛𝐷, 𝑁 / 𝑛𝐵)))
185, 17syl5eq 2560 . . . . . 6 (𝜑𝑁 / 𝑛if(𝑛 = 𝑆, 𝐶, if(𝑆 < 𝑛, 𝐷, 𝐵)) = if(𝑁 = 𝑆, 𝑁 / 𝑛𝐶, if(𝑆 < 𝑁, 𝑁 / 𝑛𝐷, 𝑁 / 𝑛𝐵)))
194, 18ifbieq2d 3964 . . . . 5 (𝜑 → if([𝑁 / 𝑛]𝑛 = 0, 𝑁 / 𝑛𝐴, 𝑁 / 𝑛if(𝑛 = 𝑆, 𝐶, if(𝑆 < 𝑛, 𝐷, 𝐵))) = if(𝑁 = 0, 𝑁 / 𝑛𝐴, if(𝑁 = 𝑆, 𝑁 / 𝑛𝐶, if(𝑆 < 𝑁, 𝑁 / 𝑛𝐷, 𝑁 / 𝑛𝐵))))
202, 19syl5eq 2560 . . . 4 (𝜑𝑁 / 𝑛if(𝑛 = 0, 𝐴, if(𝑛 = 𝑆, 𝐶, if(𝑆 < 𝑛, 𝐷, 𝐵))) = if(𝑁 = 0, 𝑁 / 𝑛𝐴, if(𝑁 = 𝑆, 𝑁 / 𝑛𝐶, if(𝑆 < 𝑁, 𝑁 / 𝑛𝐷, 𝑁 / 𝑛𝐵))))
21 fvmptnn04if.a . . . . . 6 ((𝜑𝑁 = 0) → 𝑌 = 𝑁 / 𝑛𝐴)
22 fvmptnn04if.y . . . . . . 7 (𝜑𝑌𝑉)
2322adantr 479 . . . . . 6 ((𝜑𝑁 = 0) → 𝑌𝑉)
2421, 23eqeltrrd 2593 . . . . 5 ((𝜑𝑁 = 0) → 𝑁 / 𝑛𝐴𝑉)
25 fvmptnn04if.c . . . . . . . . 9 ((𝜑𝑁 = 𝑆) → 𝑌 = 𝑁 / 𝑛𝐶)
2625eqcomd 2520 . . . . . . . 8 ((𝜑𝑁 = 𝑆) → 𝑁 / 𝑛𝐶 = 𝑌)
2726adantlr 746 . . . . . . 7 (((𝜑 ∧ ¬ 𝑁 = 0) ∧ 𝑁 = 𝑆) → 𝑁 / 𝑛𝐶 = 𝑌)
2822ad2antrr 757 . . . . . . 7 (((𝜑 ∧ ¬ 𝑁 = 0) ∧ 𝑁 = 𝑆) → 𝑌𝑉)
2927, 28eqeltrd 2592 . . . . . 6 (((𝜑 ∧ ¬ 𝑁 = 0) ∧ 𝑁 = 𝑆) → 𝑁 / 𝑛𝐶𝑉)
30 fvmptnn04if.d . . . . . . . . . . . 12 ((𝜑𝑆 < 𝑁) → 𝑌 = 𝑁 / 𝑛𝐷)
3130eqcomd 2520 . . . . . . . . . . 11 ((𝜑𝑆 < 𝑁) → 𝑁 / 𝑛𝐷 = 𝑌)
3231ex 448 . . . . . . . . . 10 (𝜑 → (𝑆 < 𝑁𝑁 / 𝑛𝐷 = 𝑌))
3332ad2antrr 757 . . . . . . . . 9 (((𝜑 ∧ ¬ 𝑁 = 0) ∧ ¬ 𝑁 = 𝑆) → (𝑆 < 𝑁𝑁 / 𝑛𝐷 = 𝑌))
3433imp 443 . . . . . . . 8 ((((𝜑 ∧ ¬ 𝑁 = 0) ∧ ¬ 𝑁 = 𝑆) ∧ 𝑆 < 𝑁) → 𝑁 / 𝑛𝐷 = 𝑌)
3522ad3antrrr 761 . . . . . . . 8 ((((𝜑 ∧ ¬ 𝑁 = 0) ∧ ¬ 𝑁 = 𝑆) ∧ 𝑆 < 𝑁) → 𝑌𝑉)
3634, 35eqeltrd 2592 . . . . . . 7 ((((𝜑 ∧ ¬ 𝑁 = 0) ∧ ¬ 𝑁 = 𝑆) ∧ 𝑆 < 𝑁) → 𝑁 / 𝑛𝐷𝑉)
37 simplll 793 . . . . . . . . 9 ((((𝜑 ∧ ¬ 𝑁 = 0) ∧ ¬ 𝑁 = 𝑆) ∧ ¬ 𝑆 < 𝑁) → 𝜑)
38 ancom 464 . . . . . . . . . . . . 13 ((¬ 𝑆 < 𝑁𝜑) ↔ (𝜑 ∧ ¬ 𝑆 < 𝑁))
3938anbi2i 725 . . . . . . . . . . . 12 (((¬ 𝑁 = 0 ∧ ¬ 𝑁 = 𝑆) ∧ (¬ 𝑆 < 𝑁𝜑)) ↔ ((¬ 𝑁 = 0 ∧ ¬ 𝑁 = 𝑆) ∧ (𝜑 ∧ ¬ 𝑆 < 𝑁)))
40 ancom 464 . . . . . . . . . . . . 13 ((𝜑 ∧ (¬ 𝑁 = 0 ∧ (¬ 𝑁 = 𝑆 ∧ ¬ 𝑆 < 𝑁))) ↔ ((¬ 𝑁 = 0 ∧ (¬ 𝑁 = 𝑆 ∧ ¬ 𝑆 < 𝑁)) ∧ 𝜑))
41 anass 678 . . . . . . . . . . . . . . 15 (((¬ 𝑁 = 0 ∧ ¬ 𝑁 = 𝑆) ∧ ¬ 𝑆 < 𝑁) ↔ (¬ 𝑁 = 0 ∧ (¬ 𝑁 = 𝑆 ∧ ¬ 𝑆 < 𝑁)))
4241bicomi 212 . . . . . . . . . . . . . 14 ((¬ 𝑁 = 0 ∧ (¬ 𝑁 = 𝑆 ∧ ¬ 𝑆 < 𝑁)) ↔ ((¬ 𝑁 = 0 ∧ ¬ 𝑁 = 𝑆) ∧ ¬ 𝑆 < 𝑁))
4342anbi1i 726 . . . . . . . . . . . . 13 (((¬ 𝑁 = 0 ∧ (¬ 𝑁 = 𝑆 ∧ ¬ 𝑆 < 𝑁)) ∧ 𝜑) ↔ (((¬ 𝑁 = 0 ∧ ¬ 𝑁 = 𝑆) ∧ ¬ 𝑆 < 𝑁) ∧ 𝜑))
44 anass 678 . . . . . . . . . . . . 13 ((((¬ 𝑁 = 0 ∧ ¬ 𝑁 = 𝑆) ∧ ¬ 𝑆 < 𝑁) ∧ 𝜑) ↔ ((¬ 𝑁 = 0 ∧ ¬ 𝑁 = 𝑆) ∧ (¬ 𝑆 < 𝑁𝜑)))
4540, 43, 443bitri 284 . . . . . . . . . . . 12 ((𝜑 ∧ (¬ 𝑁 = 0 ∧ (¬ 𝑁 = 𝑆 ∧ ¬ 𝑆 < 𝑁))) ↔ ((¬ 𝑁 = 0 ∧ ¬ 𝑁 = 𝑆) ∧ (¬ 𝑆 < 𝑁𝜑)))
46 anass 678 . . . . . . . . . . . 12 ((((¬ 𝑁 = 0 ∧ ¬ 𝑁 = 𝑆) ∧ 𝜑) ∧ ¬ 𝑆 < 𝑁) ↔ ((¬ 𝑁 = 0 ∧ ¬ 𝑁 = 𝑆) ∧ (𝜑 ∧ ¬ 𝑆 < 𝑁)))
4739, 45, 463bitr4i 290 . . . . . . . . . . 11 ((𝜑 ∧ (¬ 𝑁 = 0 ∧ (¬ 𝑁 = 𝑆 ∧ ¬ 𝑆 < 𝑁))) ↔ (((¬ 𝑁 = 0 ∧ ¬ 𝑁 = 𝑆) ∧ 𝜑) ∧ ¬ 𝑆 < 𝑁))
48 an32 834 . . . . . . . . . . . . 13 (((¬ 𝑁 = 0 ∧ ¬ 𝑁 = 𝑆) ∧ 𝜑) ↔ ((¬ 𝑁 = 0 ∧ 𝜑) ∧ ¬ 𝑁 = 𝑆))
49 ancom 464 . . . . . . . . . . . . . 14 ((¬ 𝑁 = 0 ∧ 𝜑) ↔ (𝜑 ∧ ¬ 𝑁 = 0))
5049anbi1i 726 . . . . . . . . . . . . 13 (((¬ 𝑁 = 0 ∧ 𝜑) ∧ ¬ 𝑁 = 𝑆) ↔ ((𝜑 ∧ ¬ 𝑁 = 0) ∧ ¬ 𝑁 = 𝑆))
5148, 50bitri 262 . . . . . . . . . . . 12 (((¬ 𝑁 = 0 ∧ ¬ 𝑁 = 𝑆) ∧ 𝜑) ↔ ((𝜑 ∧ ¬ 𝑁 = 0) ∧ ¬ 𝑁 = 𝑆))
5251anbi1i 726 . . . . . . . . . . 11 ((((¬ 𝑁 = 0 ∧ ¬ 𝑁 = 𝑆) ∧ 𝜑) ∧ ¬ 𝑆 < 𝑁) ↔ (((𝜑 ∧ ¬ 𝑁 = 0) ∧ ¬ 𝑁 = 𝑆) ∧ ¬ 𝑆 < 𝑁))
5347, 52bitri 262 . . . . . . . . . 10 ((𝜑 ∧ (¬ 𝑁 = 0 ∧ (¬ 𝑁 = 𝑆 ∧ ¬ 𝑆 < 𝑁))) ↔ (((𝜑 ∧ ¬ 𝑁 = 0) ∧ ¬ 𝑁 = 𝑆) ∧ ¬ 𝑆 < 𝑁))
54 df-ne 2686 . . . . . . . . . . . . 13 (𝑁 ≠ 0 ↔ ¬ 𝑁 = 0)
55 elnnne0 11059 . . . . . . . . . . . . . . 15 (𝑁 ∈ ℕ ↔ (𝑁 ∈ ℕ0𝑁 ≠ 0))
56 nngt0 10802 . . . . . . . . . . . . . . 15 (𝑁 ∈ ℕ → 0 < 𝑁)
5755, 56sylbir 223 . . . . . . . . . . . . . 14 ((𝑁 ∈ ℕ0𝑁 ≠ 0) → 0 < 𝑁)
5857expcom 449 . . . . . . . . . . . . 13 (𝑁 ≠ 0 → (𝑁 ∈ ℕ0 → 0 < 𝑁))
5954, 58sylbir 223 . . . . . . . . . . . 12 𝑁 = 0 → (𝑁 ∈ ℕ0 → 0 < 𝑁))
6059adantr 479 . . . . . . . . . . 11 ((¬ 𝑁 = 0 ∧ (¬ 𝑁 = 𝑆 ∧ ¬ 𝑆 < 𝑁)) → (𝑁 ∈ ℕ0 → 0 < 𝑁))
611, 60mpan9 484 . . . . . . . . . 10 ((𝜑 ∧ (¬ 𝑁 = 0 ∧ (¬ 𝑁 = 𝑆 ∧ ¬ 𝑆 < 𝑁))) → 0 < 𝑁)
6253, 61sylbir 223 . . . . . . . . 9 ((((𝜑 ∧ ¬ 𝑁 = 0) ∧ ¬ 𝑁 = 𝑆) ∧ ¬ 𝑆 < 𝑁) → 0 < 𝑁)
631nn0red 11105 . . . . . . . . . . . . . . . 16 (𝜑𝑁 ∈ ℝ)
64 fvmptnn04if.s . . . . . . . . . . . . . . . . 17 (𝜑𝑆 ∈ ℕ)
6564nnred 10788 . . . . . . . . . . . . . . . 16 (𝜑𝑆 ∈ ℝ)
6663, 65lenltd 9932 . . . . . . . . . . . . . . 15 (𝜑 → (𝑁𝑆 ↔ ¬ 𝑆 < 𝑁))
6766biimprd 236 . . . . . . . . . . . . . 14 (𝜑 → (¬ 𝑆 < 𝑁𝑁𝑆))
6867adantld 481 . . . . . . . . . . . . 13 (𝜑 → ((¬ 𝑁 = 𝑆 ∧ ¬ 𝑆 < 𝑁) → 𝑁𝑆))
6968adantld 481 . . . . . . . . . . . 12 (𝜑 → ((¬ 𝑁 = 0 ∧ (¬ 𝑁 = 𝑆 ∧ ¬ 𝑆 < 𝑁)) → 𝑁𝑆))
7069imp 443 . . . . . . . . . . 11 ((𝜑 ∧ (¬ 𝑁 = 0 ∧ (¬ 𝑁 = 𝑆 ∧ ¬ 𝑆 < 𝑁))) → 𝑁𝑆)
71 nesym 2742 . . . . . . . . . . . . . 14 (𝑆𝑁 ↔ ¬ 𝑁 = 𝑆)
7271biimpri 216 . . . . . . . . . . . . 13 𝑁 = 𝑆𝑆𝑁)
7372adantr 479 . . . . . . . . . . . 12 ((¬ 𝑁 = 𝑆 ∧ ¬ 𝑆 < 𝑁) → 𝑆𝑁)
7473ad2antll 760 . . . . . . . . . . 11 ((𝜑 ∧ (¬ 𝑁 = 0 ∧ (¬ 𝑁 = 𝑆 ∧ ¬ 𝑆 < 𝑁))) → 𝑆𝑁)
7563adantr 479 . . . . . . . . . . . 12 ((𝜑 ∧ (¬ 𝑁 = 0 ∧ (¬ 𝑁 = 𝑆 ∧ ¬ 𝑆 < 𝑁))) → 𝑁 ∈ ℝ)
7665adantr 479 . . . . . . . . . . . 12 ((𝜑 ∧ (¬ 𝑁 = 0 ∧ (¬ 𝑁 = 𝑆 ∧ ¬ 𝑆 < 𝑁))) → 𝑆 ∈ ℝ)
7775, 76ltlend 9931 . . . . . . . . . . 11 ((𝜑 ∧ (¬ 𝑁 = 0 ∧ (¬ 𝑁 = 𝑆 ∧ ¬ 𝑆 < 𝑁))) → (𝑁 < 𝑆 ↔ (𝑁𝑆𝑆𝑁)))
7870, 74, 77mpbir2and 958 . . . . . . . . . 10 ((𝜑 ∧ (¬ 𝑁 = 0 ∧ (¬ 𝑁 = 𝑆 ∧ ¬ 𝑆 < 𝑁))) → 𝑁 < 𝑆)
7953, 78sylbir 223 . . . . . . . . 9 ((((𝜑 ∧ ¬ 𝑁 = 0) ∧ ¬ 𝑁 = 𝑆) ∧ ¬ 𝑆 < 𝑁) → 𝑁 < 𝑆)
80 fvmptnn04if.b . . . . . . . . . 10 ((𝜑 ∧ 0 < 𝑁𝑁 < 𝑆) → 𝑌 = 𝑁 / 𝑛𝐵)
8180eqcomd 2520 . . . . . . . . 9 ((𝜑 ∧ 0 < 𝑁𝑁 < 𝑆) → 𝑁 / 𝑛𝐵 = 𝑌)
8237, 62, 79, 81syl3anc 1317 . . . . . . . 8 ((((𝜑 ∧ ¬ 𝑁 = 0) ∧ ¬ 𝑁 = 𝑆) ∧ ¬ 𝑆 < 𝑁) → 𝑁 / 𝑛𝐵 = 𝑌)
8322ad3antrrr 761 . . . . . . . 8 ((((𝜑 ∧ ¬ 𝑁 = 0) ∧ ¬ 𝑁 = 𝑆) ∧ ¬ 𝑆 < 𝑁) → 𝑌𝑉)
8482, 83eqeltrd 2592 . . . . . . 7 ((((𝜑 ∧ ¬ 𝑁 = 0) ∧ ¬ 𝑁 = 𝑆) ∧ ¬ 𝑆 < 𝑁) → 𝑁 / 𝑛𝐵𝑉)
8536, 84ifclda 3973 . . . . . 6 (((𝜑 ∧ ¬ 𝑁 = 0) ∧ ¬ 𝑁 = 𝑆) → if(𝑆 < 𝑁, 𝑁 / 𝑛𝐷, 𝑁 / 𝑛𝐵) ∈ 𝑉)
8629, 85ifclda 3973 . . . . 5 ((𝜑 ∧ ¬ 𝑁 = 0) → if(𝑁 = 𝑆, 𝑁 / 𝑛𝐶, if(𝑆 < 𝑁, 𝑁 / 𝑛𝐷, 𝑁 / 𝑛𝐵)) ∈ 𝑉)
8724, 86ifclda 3973 . . . 4 (𝜑 → if(𝑁 = 0, 𝑁 / 𝑛𝐴, if(𝑁 = 𝑆, 𝑁 / 𝑛𝐶, if(𝑆 < 𝑁, 𝑁 / 𝑛𝐷, 𝑁 / 𝑛𝐵))) ∈ 𝑉)
8820, 87eqeltrd 2592 . . 3 (𝜑𝑁 / 𝑛if(𝑛 = 0, 𝐴, if(𝑛 = 𝑆, 𝐶, if(𝑆 < 𝑛, 𝐷, 𝐵))) ∈ 𝑉)
89 fvmptnn04if.g . . . 4 𝐺 = (𝑛 ∈ ℕ0 ↦ if(𝑛 = 0, 𝐴, if(𝑛 = 𝑆, 𝐶, if(𝑆 < 𝑛, 𝐷, 𝐵))))
9089fvmpts 6077 . . 3 ((𝑁 ∈ ℕ0𝑁 / 𝑛if(𝑛 = 0, 𝐴, if(𝑛 = 𝑆, 𝐶, if(𝑆 < 𝑛, 𝐷, 𝐵))) ∈ 𝑉) → (𝐺𝑁) = 𝑁 / 𝑛if(𝑛 = 0, 𝐴, if(𝑛 = 𝑆, 𝐶, if(𝑆 < 𝑛, 𝐷, 𝐵))))
911, 88, 90syl2anc 690 . 2 (𝜑 → (𝐺𝑁) = 𝑁 / 𝑛if(𝑛 = 0, 𝐴, if(𝑛 = 𝑆, 𝐶, if(𝑆 < 𝑛, 𝐷, 𝐵))))
9221eqcomd 2520 . . 3 ((𝜑𝑁 = 0) → 𝑁 / 𝑛𝐴 = 𝑌)
9334, 82ifeqda 3974 . . . 4 (((𝜑 ∧ ¬ 𝑁 = 0) ∧ ¬ 𝑁 = 𝑆) → if(𝑆 < 𝑁, 𝑁 / 𝑛𝐷, 𝑁 / 𝑛𝐵) = 𝑌)
9427, 93ifeqda 3974 . . 3 ((𝜑 ∧ ¬ 𝑁 = 0) → if(𝑁 = 𝑆, 𝑁 / 𝑛𝐶, if(𝑆 < 𝑁, 𝑁 / 𝑛𝐷, 𝑁 / 𝑛𝐵)) = 𝑌)
9592, 94ifeqda 3974 . 2 (𝜑 → if(𝑁 = 0, 𝑁 / 𝑛𝐴, if(𝑁 = 𝑆, 𝑁 / 𝑛𝐶, if(𝑆 < 𝑁, 𝑁 / 𝑛𝐷, 𝑁 / 𝑛𝐵))) = 𝑌)
9691, 20, 953eqtrd 2552 1 (𝜑 → (𝐺𝑁) = 𝑌)
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 194  wa 382  w3a 1030   = wceq 1474  wcel 1938  wne 2684  [wsbc 3306  csb 3403  ifcif 3939   class class class wbr 4481  cmpt 4541  cfv 5689  cr 9688  0cc0 9689   < clt 9827  cle 9828  cn 10773  0cn0 11045
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1700  ax-4 1713  ax-5 1793  ax-6 1838  ax-7 1885  ax-8 1940  ax-9 1947  ax-10 1966  ax-11 1971  ax-12 1983  ax-13 2137  ax-ext 2494  ax-sep 4607  ax-nul 4616  ax-pow 4668  ax-pr 4732  ax-un 6721  ax-resscn 9746  ax-1cn 9747  ax-icn 9748  ax-addcl 9749  ax-addrcl 9750  ax-mulcl 9751  ax-mulrcl 9752  ax-mulcom 9753  ax-addass 9754  ax-mulass 9755  ax-distr 9756  ax-i2m1 9757  ax-1ne0 9758  ax-1rid 9759  ax-rnegex 9760  ax-rrecex 9761  ax-cnre 9762  ax-pre-lttri 9763  ax-pre-lttrn 9764  ax-pre-ltadd 9765  ax-pre-mulgt0 9766
This theorem depends on definitions:  df-bi 195  df-or 383  df-an 384  df-3or 1031  df-3an 1032  df-tru 1477  df-fal 1480  df-ex 1695  df-nf 1699  df-sb 1831  df-eu 2366  df-mo 2367  df-clab 2501  df-cleq 2507  df-clel 2510  df-nfc 2644  df-ne 2686  df-nel 2687  df-ral 2805  df-rex 2806  df-reu 2807  df-rab 2809  df-v 3079  df-sbc 3307  df-csb 3404  df-dif 3447  df-un 3449  df-in 3451  df-ss 3458  df-pss 3460  df-nul 3778  df-if 3940  df-pw 4013  df-sn 4029  df-pr 4031  df-tp 4033  df-op 4035  df-uni 4271  df-iun 4355  df-br 4482  df-opab 4542  df-mpt 4543  df-tr 4579  df-eprel 4843  df-id 4847  df-po 4853  df-so 4854  df-fr 4891  df-we 4893  df-xp 4938  df-rel 4939  df-cnv 4940  df-co 4941  df-dm 4942  df-rn 4943  df-res 4944  df-ima 4945  df-pred 5487  df-ord 5533  df-on 5534  df-lim 5535  df-suc 5536  df-iota 5653  df-fun 5691  df-fn 5692  df-f 5693  df-f1 5694  df-fo 5695  df-f1o 5696  df-fv 5697  df-riota 6387  df-ov 6428  df-oprab 6429  df-mpt2 6430  df-om 6832  df-wrecs 7167  df-recs 7229  df-rdg 7267  df-er 7503  df-en 7716  df-dom 7717  df-sdom 7718  df-pnf 9829  df-mnf 9830  df-xr 9831  df-ltxr 9832  df-le 9833  df-sub 10017  df-neg 10018  df-nn 10774  df-n0 11046
This theorem is referenced by:  fvmptnn04ifa  20398  fvmptnn04ifb  20399  fvmptnn04ifc  20400  fvmptnn04ifd  20401
  Copyright terms: Public domain W3C validator