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

Theorem iocinif 30436
Description: Relate intersection of two open-below, closed-above intervals with the same upper bound with a conditional construct. (Contributed by Thierry Arnoux, 7-Aug-2017.)
Assertion
Ref Expression
iocinif ((𝐴 ∈ ℝ*𝐵 ∈ ℝ*𝐶 ∈ ℝ*) → ((𝐴(,]𝐶) ∩ (𝐵(,]𝐶)) = if(𝐴 < 𝐵, (𝐵(,]𝐶), (𝐴(,]𝐶)))

Proof of Theorem iocinif
StepHypRef Expression
1 exmid 890 . . 3 (𝐴 < 𝐵 ∨ ¬ 𝐴 < 𝐵)
2 xrltle 12537 . . . . . . . . 9 ((𝐴 ∈ ℝ*𝐵 ∈ ℝ*) → (𝐴 < 𝐵𝐴𝐵))
32imp 407 . . . . . . . 8 (((𝐴 ∈ ℝ*𝐵 ∈ ℝ*) ∧ 𝐴 < 𝐵) → 𝐴𝐵)
433adantl3 1162 . . . . . . 7 (((𝐴 ∈ ℝ*𝐵 ∈ ℝ*𝐶 ∈ ℝ*) ∧ 𝐴 < 𝐵) → 𝐴𝐵)
5 iocinioc2 30434 . . . . . . 7 (((𝐴 ∈ ℝ*𝐵 ∈ ℝ*𝐶 ∈ ℝ*) ∧ 𝐴𝐵) → ((𝐴(,]𝐶) ∩ (𝐵(,]𝐶)) = (𝐵(,]𝐶))
64, 5syldan 591 . . . . . 6 (((𝐴 ∈ ℝ*𝐵 ∈ ℝ*𝐶 ∈ ℝ*) ∧ 𝐴 < 𝐵) → ((𝐴(,]𝐶) ∩ (𝐵(,]𝐶)) = (𝐵(,]𝐶))
76ex 413 . . . . 5 ((𝐴 ∈ ℝ*𝐵 ∈ ℝ*𝐶 ∈ ℝ*) → (𝐴 < 𝐵 → ((𝐴(,]𝐶) ∩ (𝐵(,]𝐶)) = (𝐵(,]𝐶)))
87ancld 551 . . . 4 ((𝐴 ∈ ℝ*𝐵 ∈ ℝ*𝐶 ∈ ℝ*) → (𝐴 < 𝐵 → (𝐴 < 𝐵 ∧ ((𝐴(,]𝐶) ∩ (𝐵(,]𝐶)) = (𝐵(,]𝐶))))
9 simpl2 1186 . . . . . . . 8 (((𝐴 ∈ ℝ*𝐵 ∈ ℝ*𝐶 ∈ ℝ*) ∧ ¬ 𝐴 < 𝐵) → 𝐵 ∈ ℝ*)
10 simpl1 1185 . . . . . . . 8 (((𝐴 ∈ ℝ*𝐵 ∈ ℝ*𝐶 ∈ ℝ*) ∧ ¬ 𝐴 < 𝐵) → 𝐴 ∈ ℝ*)
11 simpr 485 . . . . . . . 8 (((𝐴 ∈ ℝ*𝐵 ∈ ℝ*𝐶 ∈ ℝ*) ∧ ¬ 𝐴 < 𝐵) → ¬ 𝐴 < 𝐵)
12 xrlenlt 10700 . . . . . . . . 9 ((𝐵 ∈ ℝ*𝐴 ∈ ℝ*) → (𝐵𝐴 ↔ ¬ 𝐴 < 𝐵))
1312biimpar 478 . . . . . . . 8 (((𝐵 ∈ ℝ*𝐴 ∈ ℝ*) ∧ ¬ 𝐴 < 𝐵) → 𝐵𝐴)
149, 10, 11, 13syl21anc 835 . . . . . . 7 (((𝐴 ∈ ℝ*𝐵 ∈ ℝ*𝐶 ∈ ℝ*) ∧ ¬ 𝐴 < 𝐵) → 𝐵𝐴)
15 3ancoma 1092 . . . . . . . 8 ((𝐵 ∈ ℝ*𝐴 ∈ ℝ*𝐶 ∈ ℝ*) ↔ (𝐴 ∈ ℝ*𝐵 ∈ ℝ*𝐶 ∈ ℝ*))
16 incom 4182 . . . . . . . . 9 ((𝐵(,]𝐶) ∩ (𝐴(,]𝐶)) = ((𝐴(,]𝐶) ∩ (𝐵(,]𝐶))
17 iocinioc2 30434 . . . . . . . . 9 (((𝐵 ∈ ℝ*𝐴 ∈ ℝ*𝐶 ∈ ℝ*) ∧ 𝐵𝐴) → ((𝐵(,]𝐶) ∩ (𝐴(,]𝐶)) = (𝐴(,]𝐶))
1816, 17syl5eqr 2875 . . . . . . . 8 (((𝐵 ∈ ℝ*𝐴 ∈ ℝ*𝐶 ∈ ℝ*) ∧ 𝐵𝐴) → ((𝐴(,]𝐶) ∩ (𝐵(,]𝐶)) = (𝐴(,]𝐶))
1915, 18sylanbr 582 . . . . . . 7 (((𝐴 ∈ ℝ*𝐵 ∈ ℝ*𝐶 ∈ ℝ*) ∧ 𝐵𝐴) → ((𝐴(,]𝐶) ∩ (𝐵(,]𝐶)) = (𝐴(,]𝐶))
2014, 19syldan 591 . . . . . 6 (((𝐴 ∈ ℝ*𝐵 ∈ ℝ*𝐶 ∈ ℝ*) ∧ ¬ 𝐴 < 𝐵) → ((𝐴(,]𝐶) ∩ (𝐵(,]𝐶)) = (𝐴(,]𝐶))
2120ex 413 . . . . 5 ((𝐴 ∈ ℝ*𝐵 ∈ ℝ*𝐶 ∈ ℝ*) → (¬ 𝐴 < 𝐵 → ((𝐴(,]𝐶) ∩ (𝐵(,]𝐶)) = (𝐴(,]𝐶)))
2221ancld 551 . . . 4 ((𝐴 ∈ ℝ*𝐵 ∈ ℝ*𝐶 ∈ ℝ*) → (¬ 𝐴 < 𝐵 → (¬ 𝐴 < 𝐵 ∧ ((𝐴(,]𝐶) ∩ (𝐵(,]𝐶)) = (𝐴(,]𝐶))))
238, 22orim12d 960 . . 3 ((𝐴 ∈ ℝ*𝐵 ∈ ℝ*𝐶 ∈ ℝ*) → ((𝐴 < 𝐵 ∨ ¬ 𝐴 < 𝐵) → ((𝐴 < 𝐵 ∧ ((𝐴(,]𝐶) ∩ (𝐵(,]𝐶)) = (𝐵(,]𝐶)) ∨ (¬ 𝐴 < 𝐵 ∧ ((𝐴(,]𝐶) ∩ (𝐵(,]𝐶)) = (𝐴(,]𝐶)))))
241, 23mpi 20 . 2 ((𝐴 ∈ ℝ*𝐵 ∈ ℝ*𝐶 ∈ ℝ*) → ((𝐴 < 𝐵 ∧ ((𝐴(,]𝐶) ∩ (𝐵(,]𝐶)) = (𝐵(,]𝐶)) ∨ (¬ 𝐴 < 𝐵 ∧ ((𝐴(,]𝐶) ∩ (𝐵(,]𝐶)) = (𝐴(,]𝐶))))
25 eqif 4510 . 2 (((𝐴(,]𝐶) ∩ (𝐵(,]𝐶)) = if(𝐴 < 𝐵, (𝐵(,]𝐶), (𝐴(,]𝐶)) ↔ ((𝐴 < 𝐵 ∧ ((𝐴(,]𝐶) ∩ (𝐵(,]𝐶)) = (𝐵(,]𝐶)) ∨ (¬ 𝐴 < 𝐵 ∧ ((𝐴(,]𝐶) ∩ (𝐵(,]𝐶)) = (𝐴(,]𝐶))))
2624, 25sylibr 235 1 ((𝐴 ∈ ℝ*𝐵 ∈ ℝ*𝐶 ∈ ℝ*) → ((𝐴(,]𝐶) ∩ (𝐵(,]𝐶)) = if(𝐴 < 𝐵, (𝐵(,]𝐶), (𝐴(,]𝐶)))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wa 396  wo 843  w3a 1081   = wceq 1530  wcel 2107  cin 3939  ifcif 4470   class class class wbr 5063  (class class class)co 7150  *cxr 10668   < clt 10669  cle 10670  (,]cioc 12734
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1789  ax-4 1803  ax-5 1904  ax-6 1963  ax-7 2008  ax-8 2109  ax-9 2117  ax-10 2138  ax-11 2153  ax-12 2169  ax-ext 2798  ax-sep 5200  ax-nul 5207  ax-pow 5263  ax-pr 5326  ax-un 7455  ax-cnex 10587  ax-resscn 10588  ax-pre-lttri 10605  ax-pre-lttrn 10606
This theorem depends on definitions:  df-bi 208  df-an 397  df-or 844  df-3or 1082  df-3an 1083  df-tru 1533  df-ex 1774  df-nf 1778  df-sb 2063  df-mo 2620  df-eu 2652  df-clab 2805  df-cleq 2819  df-clel 2898  df-nfc 2968  df-ne 3022  df-nel 3129  df-ral 3148  df-rex 3149  df-rab 3152  df-v 3502  df-sbc 3777  df-csb 3888  df-dif 3943  df-un 3945  df-in 3947  df-ss 3956  df-nul 4296  df-if 4471  df-pw 4544  df-sn 4565  df-pr 4567  df-op 4571  df-uni 4838  df-br 5064  df-opab 5126  df-mpt 5144  df-id 5459  df-po 5473  df-so 5474  df-xp 5560  df-rel 5561  df-cnv 5562  df-co 5563  df-dm 5564  df-rn 5565  df-res 5566  df-ima 5567  df-iota 6313  df-fun 6356  df-fn 6357  df-f 6358  df-f1 6359  df-fo 6360  df-f1o 6361  df-fv 6362  df-ov 7153  df-oprab 7154  df-mpo 7155  df-er 8284  df-en 8504  df-dom 8505  df-sdom 8506  df-pnf 10671  df-mnf 10672  df-xr 10673  df-ltxr 10674  df-le 10675  df-ioc 12738
This theorem is referenced by:  pnfneige0  31099
  Copyright terms: Public domain W3C validator