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

Theorem dyaddisj 24200
Description: Two closed dyadic rational intervals are either in a subset relationship or are almost disjoint (the interiors are disjoint). (Contributed by Mario Carneiro, 26-Mar-2015.)
Hypothesis
Ref Expression
dyadmbl.1 𝐹 = (𝑥 ∈ ℤ, 𝑦 ∈ ℕ0 ↦ ⟨(𝑥 / (2↑𝑦)), ((𝑥 + 1) / (2↑𝑦))⟩)
Assertion
Ref Expression
dyaddisj ((𝐴 ∈ ran 𝐹𝐵 ∈ ran 𝐹) → (([,]‘𝐴) ⊆ ([,]‘𝐵) ∨ ([,]‘𝐵) ⊆ ([,]‘𝐴) ∨ (((,)‘𝐴) ∩ ((,)‘𝐵)) = ∅))
Distinct variable groups:   𝑥,𝑦,𝐵   𝑥,𝐴,𝑦   𝑥,𝐹,𝑦

Proof of Theorem dyaddisj
Dummy variables 𝑐 𝑑 𝑎 𝑏 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 dyadmbl.1 . . . . 5 𝐹 = (𝑥 ∈ ℤ, 𝑦 ∈ ℕ0 ↦ ⟨(𝑥 / (2↑𝑦)), ((𝑥 + 1) / (2↑𝑦))⟩)
21dyadf 24195 . . . 4 𝐹:(ℤ × ℕ0)⟶( ≤ ∩ (ℝ × ℝ))
3 ffn 6487 . . . 4 (𝐹:(ℤ × ℕ0)⟶( ≤ ∩ (ℝ × ℝ)) → 𝐹 Fn (ℤ × ℕ0))
4 ovelrn 7304 . . . . 5 (𝐹 Fn (ℤ × ℕ0) → (𝐴 ∈ ran 𝐹 ↔ ∃𝑎 ∈ ℤ ∃𝑐 ∈ ℕ0 𝐴 = (𝑎𝐹𝑐)))
5 ovelrn 7304 . . . . 5 (𝐹 Fn (ℤ × ℕ0) → (𝐵 ∈ ran 𝐹 ↔ ∃𝑏 ∈ ℤ ∃𝑑 ∈ ℕ0 𝐵 = (𝑏𝐹𝑑)))
64, 5anbi12d 633 . . . 4 (𝐹 Fn (ℤ × ℕ0) → ((𝐴 ∈ ran 𝐹𝐵 ∈ ran 𝐹) ↔ (∃𝑎 ∈ ℤ ∃𝑐 ∈ ℕ0 𝐴 = (𝑎𝐹𝑐) ∧ ∃𝑏 ∈ ℤ ∃𝑑 ∈ ℕ0 𝐵 = (𝑏𝐹𝑑))))
72, 3, 6mp2b 10 . . 3 ((𝐴 ∈ ran 𝐹𝐵 ∈ ran 𝐹) ↔ (∃𝑎 ∈ ℤ ∃𝑐 ∈ ℕ0 𝐴 = (𝑎𝐹𝑐) ∧ ∃𝑏 ∈ ℤ ∃𝑑 ∈ ℕ0 𝐵 = (𝑏𝐹𝑑)))
8 reeanv 3320 . . 3 (∃𝑎 ∈ ℤ ∃𝑏 ∈ ℤ (∃𝑐 ∈ ℕ0 𝐴 = (𝑎𝐹𝑐) ∧ ∃𝑑 ∈ ℕ0 𝐵 = (𝑏𝐹𝑑)) ↔ (∃𝑎 ∈ ℤ ∃𝑐 ∈ ℕ0 𝐴 = (𝑎𝐹𝑐) ∧ ∃𝑏 ∈ ℤ ∃𝑑 ∈ ℕ0 𝐵 = (𝑏𝐹𝑑)))
97, 8bitr4i 281 . 2 ((𝐴 ∈ ran 𝐹𝐵 ∈ ran 𝐹) ↔ ∃𝑎 ∈ ℤ ∃𝑏 ∈ ℤ (∃𝑐 ∈ ℕ0 𝐴 = (𝑎𝐹𝑐) ∧ ∃𝑑 ∈ ℕ0 𝐵 = (𝑏𝐹𝑑)))
10 reeanv 3320 . . . 4 (∃𝑐 ∈ ℕ0𝑑 ∈ ℕ0 (𝐴 = (𝑎𝐹𝑐) ∧ 𝐵 = (𝑏𝐹𝑑)) ↔ (∃𝑐 ∈ ℕ0 𝐴 = (𝑎𝐹𝑐) ∧ ∃𝑑 ∈ ℕ0 𝐵 = (𝑏𝐹𝑑)))
11 nn0re 11894 . . . . . . . 8 (𝑐 ∈ ℕ0𝑐 ∈ ℝ)
1211ad2antrl 727 . . . . . . 7 (((𝑎 ∈ ℤ ∧ 𝑏 ∈ ℤ) ∧ (𝑐 ∈ ℕ0𝑑 ∈ ℕ0)) → 𝑐 ∈ ℝ)
13 nn0re 11894 . . . . . . . 8 (𝑑 ∈ ℕ0𝑑 ∈ ℝ)
1413ad2antll 728 . . . . . . 7 (((𝑎 ∈ ℤ ∧ 𝑏 ∈ ℤ) ∧ (𝑐 ∈ ℕ0𝑑 ∈ ℕ0)) → 𝑑 ∈ ℝ)
151dyaddisjlem 24199 . . . . . . 7 ((((𝑎 ∈ ℤ ∧ 𝑏 ∈ ℤ) ∧ (𝑐 ∈ ℕ0𝑑 ∈ ℕ0)) ∧ 𝑐𝑑) → (([,]‘(𝑎𝐹𝑐)) ⊆ ([,]‘(𝑏𝐹𝑑)) ∨ ([,]‘(𝑏𝐹𝑑)) ⊆ ([,]‘(𝑎𝐹𝑐)) ∨ (((,)‘(𝑎𝐹𝑐)) ∩ ((,)‘(𝑏𝐹𝑑))) = ∅))
16 ancom 464 . . . . . . . . . 10 ((𝑎 ∈ ℤ ∧ 𝑏 ∈ ℤ) ↔ (𝑏 ∈ ℤ ∧ 𝑎 ∈ ℤ))
17 ancom 464 . . . . . . . . . 10 ((𝑐 ∈ ℕ0𝑑 ∈ ℕ0) ↔ (𝑑 ∈ ℕ0𝑐 ∈ ℕ0))
1816, 17anbi12i 629 . . . . . . . . 9 (((𝑎 ∈ ℤ ∧ 𝑏 ∈ ℤ) ∧ (𝑐 ∈ ℕ0𝑑 ∈ ℕ0)) ↔ ((𝑏 ∈ ℤ ∧ 𝑎 ∈ ℤ) ∧ (𝑑 ∈ ℕ0𝑐 ∈ ℕ0)))
191dyaddisjlem 24199 . . . . . . . . 9 ((((𝑏 ∈ ℤ ∧ 𝑎 ∈ ℤ) ∧ (𝑑 ∈ ℕ0𝑐 ∈ ℕ0)) ∧ 𝑑𝑐) → (([,]‘(𝑏𝐹𝑑)) ⊆ ([,]‘(𝑎𝐹𝑐)) ∨ ([,]‘(𝑎𝐹𝑐)) ⊆ ([,]‘(𝑏𝐹𝑑)) ∨ (((,)‘(𝑏𝐹𝑑)) ∩ ((,)‘(𝑎𝐹𝑐))) = ∅))
2018, 19sylanb 584 . . . . . . . 8 ((((𝑎 ∈ ℤ ∧ 𝑏 ∈ ℤ) ∧ (𝑐 ∈ ℕ0𝑑 ∈ ℕ0)) ∧ 𝑑𝑐) → (([,]‘(𝑏𝐹𝑑)) ⊆ ([,]‘(𝑎𝐹𝑐)) ∨ ([,]‘(𝑎𝐹𝑐)) ⊆ ([,]‘(𝑏𝐹𝑑)) ∨ (((,)‘(𝑏𝐹𝑑)) ∩ ((,)‘(𝑎𝐹𝑐))) = ∅))
21 orcom 867 . . . . . . . . . 10 ((([,]‘(𝑏𝐹𝑑)) ⊆ ([,]‘(𝑎𝐹𝑐)) ∨ ([,]‘(𝑎𝐹𝑐)) ⊆ ([,]‘(𝑏𝐹𝑑))) ↔ (([,]‘(𝑎𝐹𝑐)) ⊆ ([,]‘(𝑏𝐹𝑑)) ∨ ([,]‘(𝑏𝐹𝑑)) ⊆ ([,]‘(𝑎𝐹𝑐))))
22 incom 4128 . . . . . . . . . . 11 (((,)‘(𝑏𝐹𝑑)) ∩ ((,)‘(𝑎𝐹𝑐))) = (((,)‘(𝑎𝐹𝑐)) ∩ ((,)‘(𝑏𝐹𝑑)))
2322eqeq1i 2803 . . . . . . . . . 10 ((((,)‘(𝑏𝐹𝑑)) ∩ ((,)‘(𝑎𝐹𝑐))) = ∅ ↔ (((,)‘(𝑎𝐹𝑐)) ∩ ((,)‘(𝑏𝐹𝑑))) = ∅)
2421, 23orbi12i 912 . . . . . . . . 9 (((([,]‘(𝑏𝐹𝑑)) ⊆ ([,]‘(𝑎𝐹𝑐)) ∨ ([,]‘(𝑎𝐹𝑐)) ⊆ ([,]‘(𝑏𝐹𝑑))) ∨ (((,)‘(𝑏𝐹𝑑)) ∩ ((,)‘(𝑎𝐹𝑐))) = ∅) ↔ ((([,]‘(𝑎𝐹𝑐)) ⊆ ([,]‘(𝑏𝐹𝑑)) ∨ ([,]‘(𝑏𝐹𝑑)) ⊆ ([,]‘(𝑎𝐹𝑐))) ∨ (((,)‘(𝑎𝐹𝑐)) ∩ ((,)‘(𝑏𝐹𝑑))) = ∅))
25 df-3or 1085 . . . . . . . . 9 ((([,]‘(𝑏𝐹𝑑)) ⊆ ([,]‘(𝑎𝐹𝑐)) ∨ ([,]‘(𝑎𝐹𝑐)) ⊆ ([,]‘(𝑏𝐹𝑑)) ∨ (((,)‘(𝑏𝐹𝑑)) ∩ ((,)‘(𝑎𝐹𝑐))) = ∅) ↔ ((([,]‘(𝑏𝐹𝑑)) ⊆ ([,]‘(𝑎𝐹𝑐)) ∨ ([,]‘(𝑎𝐹𝑐)) ⊆ ([,]‘(𝑏𝐹𝑑))) ∨ (((,)‘(𝑏𝐹𝑑)) ∩ ((,)‘(𝑎𝐹𝑐))) = ∅))
26 df-3or 1085 . . . . . . . . 9 ((([,]‘(𝑎𝐹𝑐)) ⊆ ([,]‘(𝑏𝐹𝑑)) ∨ ([,]‘(𝑏𝐹𝑑)) ⊆ ([,]‘(𝑎𝐹𝑐)) ∨ (((,)‘(𝑎𝐹𝑐)) ∩ ((,)‘(𝑏𝐹𝑑))) = ∅) ↔ ((([,]‘(𝑎𝐹𝑐)) ⊆ ([,]‘(𝑏𝐹𝑑)) ∨ ([,]‘(𝑏𝐹𝑑)) ⊆ ([,]‘(𝑎𝐹𝑐))) ∨ (((,)‘(𝑎𝐹𝑐)) ∩ ((,)‘(𝑏𝐹𝑑))) = ∅))
2724, 25, 263bitr4i 306 . . . . . . . 8 ((([,]‘(𝑏𝐹𝑑)) ⊆ ([,]‘(𝑎𝐹𝑐)) ∨ ([,]‘(𝑎𝐹𝑐)) ⊆ ([,]‘(𝑏𝐹𝑑)) ∨ (((,)‘(𝑏𝐹𝑑)) ∩ ((,)‘(𝑎𝐹𝑐))) = ∅) ↔ (([,]‘(𝑎𝐹𝑐)) ⊆ ([,]‘(𝑏𝐹𝑑)) ∨ ([,]‘(𝑏𝐹𝑑)) ⊆ ([,]‘(𝑎𝐹𝑐)) ∨ (((,)‘(𝑎𝐹𝑐)) ∩ ((,)‘(𝑏𝐹𝑑))) = ∅))
2820, 27sylib 221 . . . . . . 7 ((((𝑎 ∈ ℤ ∧ 𝑏 ∈ ℤ) ∧ (𝑐 ∈ ℕ0𝑑 ∈ ℕ0)) ∧ 𝑑𝑐) → (([,]‘(𝑎𝐹𝑐)) ⊆ ([,]‘(𝑏𝐹𝑑)) ∨ ([,]‘(𝑏𝐹𝑑)) ⊆ ([,]‘(𝑎𝐹𝑐)) ∨ (((,)‘(𝑎𝐹𝑐)) ∩ ((,)‘(𝑏𝐹𝑑))) = ∅))
2912, 14, 15, 28lecasei 10735 . . . . . 6 (((𝑎 ∈ ℤ ∧ 𝑏 ∈ ℤ) ∧ (𝑐 ∈ ℕ0𝑑 ∈ ℕ0)) → (([,]‘(𝑎𝐹𝑐)) ⊆ ([,]‘(𝑏𝐹𝑑)) ∨ ([,]‘(𝑏𝐹𝑑)) ⊆ ([,]‘(𝑎𝐹𝑐)) ∨ (((,)‘(𝑎𝐹𝑐)) ∩ ((,)‘(𝑏𝐹𝑑))) = ∅))
30 simpl 486 . . . . . . . . 9 ((𝐴 = (𝑎𝐹𝑐) ∧ 𝐵 = (𝑏𝐹𝑑)) → 𝐴 = (𝑎𝐹𝑐))
3130fveq2d 6649 . . . . . . . 8 ((𝐴 = (𝑎𝐹𝑐) ∧ 𝐵 = (𝑏𝐹𝑑)) → ([,]‘𝐴) = ([,]‘(𝑎𝐹𝑐)))
32 simpr 488 . . . . . . . . 9 ((𝐴 = (𝑎𝐹𝑐) ∧ 𝐵 = (𝑏𝐹𝑑)) → 𝐵 = (𝑏𝐹𝑑))
3332fveq2d 6649 . . . . . . . 8 ((𝐴 = (𝑎𝐹𝑐) ∧ 𝐵 = (𝑏𝐹𝑑)) → ([,]‘𝐵) = ([,]‘(𝑏𝐹𝑑)))
3431, 33sseq12d 3948 . . . . . . 7 ((𝐴 = (𝑎𝐹𝑐) ∧ 𝐵 = (𝑏𝐹𝑑)) → (([,]‘𝐴) ⊆ ([,]‘𝐵) ↔ ([,]‘(𝑎𝐹𝑐)) ⊆ ([,]‘(𝑏𝐹𝑑))))
3533, 31sseq12d 3948 . . . . . . 7 ((𝐴 = (𝑎𝐹𝑐) ∧ 𝐵 = (𝑏𝐹𝑑)) → (([,]‘𝐵) ⊆ ([,]‘𝐴) ↔ ([,]‘(𝑏𝐹𝑑)) ⊆ ([,]‘(𝑎𝐹𝑐))))
3630fveq2d 6649 . . . . . . . . 9 ((𝐴 = (𝑎𝐹𝑐) ∧ 𝐵 = (𝑏𝐹𝑑)) → ((,)‘𝐴) = ((,)‘(𝑎𝐹𝑐)))
3732fveq2d 6649 . . . . . . . . 9 ((𝐴 = (𝑎𝐹𝑐) ∧ 𝐵 = (𝑏𝐹𝑑)) → ((,)‘𝐵) = ((,)‘(𝑏𝐹𝑑)))
3836, 37ineq12d 4140 . . . . . . . 8 ((𝐴 = (𝑎𝐹𝑐) ∧ 𝐵 = (𝑏𝐹𝑑)) → (((,)‘𝐴) ∩ ((,)‘𝐵)) = (((,)‘(𝑎𝐹𝑐)) ∩ ((,)‘(𝑏𝐹𝑑))))
3938eqeq1d 2800 . . . . . . 7 ((𝐴 = (𝑎𝐹𝑐) ∧ 𝐵 = (𝑏𝐹𝑑)) → ((((,)‘𝐴) ∩ ((,)‘𝐵)) = ∅ ↔ (((,)‘(𝑎𝐹𝑐)) ∩ ((,)‘(𝑏𝐹𝑑))) = ∅))
4034, 35, 393orbi123d 1432 . . . . . 6 ((𝐴 = (𝑎𝐹𝑐) ∧ 𝐵 = (𝑏𝐹𝑑)) → ((([,]‘𝐴) ⊆ ([,]‘𝐵) ∨ ([,]‘𝐵) ⊆ ([,]‘𝐴) ∨ (((,)‘𝐴) ∩ ((,)‘𝐵)) = ∅) ↔ (([,]‘(𝑎𝐹𝑐)) ⊆ ([,]‘(𝑏𝐹𝑑)) ∨ ([,]‘(𝑏𝐹𝑑)) ⊆ ([,]‘(𝑎𝐹𝑐)) ∨ (((,)‘(𝑎𝐹𝑐)) ∩ ((,)‘(𝑏𝐹𝑑))) = ∅)))
4129, 40syl5ibrcom 250 . . . . 5 (((𝑎 ∈ ℤ ∧ 𝑏 ∈ ℤ) ∧ (𝑐 ∈ ℕ0𝑑 ∈ ℕ0)) → ((𝐴 = (𝑎𝐹𝑐) ∧ 𝐵 = (𝑏𝐹𝑑)) → (([,]‘𝐴) ⊆ ([,]‘𝐵) ∨ ([,]‘𝐵) ⊆ ([,]‘𝐴) ∨ (((,)‘𝐴) ∩ ((,)‘𝐵)) = ∅)))
4241rexlimdvva 3253 . . . 4 ((𝑎 ∈ ℤ ∧ 𝑏 ∈ ℤ) → (∃𝑐 ∈ ℕ0𝑑 ∈ ℕ0 (𝐴 = (𝑎𝐹𝑐) ∧ 𝐵 = (𝑏𝐹𝑑)) → (([,]‘𝐴) ⊆ ([,]‘𝐵) ∨ ([,]‘𝐵) ⊆ ([,]‘𝐴) ∨ (((,)‘𝐴) ∩ ((,)‘𝐵)) = ∅)))
4310, 42syl5bir 246 . . 3 ((𝑎 ∈ ℤ ∧ 𝑏 ∈ ℤ) → ((∃𝑐 ∈ ℕ0 𝐴 = (𝑎𝐹𝑐) ∧ ∃𝑑 ∈ ℕ0 𝐵 = (𝑏𝐹𝑑)) → (([,]‘𝐴) ⊆ ([,]‘𝐵) ∨ ([,]‘𝐵) ⊆ ([,]‘𝐴) ∨ (((,)‘𝐴) ∩ ((,)‘𝐵)) = ∅)))
4443rexlimivv 3251 . 2 (∃𝑎 ∈ ℤ ∃𝑏 ∈ ℤ (∃𝑐 ∈ ℕ0 𝐴 = (𝑎𝐹𝑐) ∧ ∃𝑑 ∈ ℕ0 𝐵 = (𝑏𝐹𝑑)) → (([,]‘𝐴) ⊆ ([,]‘𝐵) ∨ ([,]‘𝐵) ⊆ ([,]‘𝐴) ∨ (((,)‘𝐴) ∩ ((,)‘𝐵)) = ∅))
459, 44sylbi 220 1 ((𝐴 ∈ ran 𝐹𝐵 ∈ ran 𝐹) → (([,]‘𝐴) ⊆ ([,]‘𝐵) ∨ ([,]‘𝐵) ⊆ ([,]‘𝐴) ∨ (((,)‘𝐴) ∩ ((,)‘𝐵)) = ∅))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 209  wa 399  wo 844  w3o 1083   = wceq 1538  wcel 2111  wrex 3107  cin 3880  wss 3881  c0 4243  cop 4531   class class class wbr 5030   × cxp 5517  ran crn 5520   Fn wfn 6319  wf 6320  cfv 6324  (class class class)co 7135  cmpo 7137  cr 10525  1c1 10527   + caddc 10529  cle 10665   / cdiv 11286  2c2 11680  0cn0 11885  cz 11969  (,)cioo 12726  [,]cicc 12729  cexp 13425
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1797  ax-4 1811  ax-5 1911  ax-6 1970  ax-7 2015  ax-8 2113  ax-9 2121  ax-10 2142  ax-11 2158  ax-12 2175  ax-ext 2770  ax-sep 5167  ax-nul 5174  ax-pow 5231  ax-pr 5295  ax-un 7441  ax-cnex 10582  ax-resscn 10583  ax-1cn 10584  ax-icn 10585  ax-addcl 10586  ax-addrcl 10587  ax-mulcl 10588  ax-mulrcl 10589  ax-mulcom 10590  ax-addass 10591  ax-mulass 10592  ax-distr 10593  ax-i2m1 10594  ax-1ne0 10595  ax-1rid 10596  ax-rnegex 10597  ax-rrecex 10598  ax-cnre 10599  ax-pre-lttri 10600  ax-pre-lttrn 10601  ax-pre-ltadd 10602  ax-pre-mulgt0 10603
This theorem depends on definitions:  df-bi 210  df-an 400  df-or 845  df-3or 1085  df-3an 1086  df-tru 1541  df-ex 1782  df-nf 1786  df-sb 2070  df-mo 2598  df-eu 2629  df-clab 2777  df-cleq 2791  df-clel 2870  df-nfc 2938  df-ne 2988  df-nel 3092  df-ral 3111  df-rex 3112  df-reu 3113  df-rmo 3114  df-rab 3115  df-v 3443  df-sbc 3721  df-csb 3829  df-dif 3884  df-un 3886  df-in 3888  df-ss 3898  df-pss 3900  df-nul 4244  df-if 4426  df-pw 4499  df-sn 4526  df-pr 4528  df-tp 4530  df-op 4532  df-uni 4801  df-iun 4883  df-br 5031  df-opab 5093  df-mpt 5111  df-tr 5137  df-id 5425  df-eprel 5430  df-po 5438  df-so 5439  df-fr 5478  df-we 5480  df-xp 5525  df-rel 5526  df-cnv 5527  df-co 5528  df-dm 5529  df-rn 5530  df-res 5531  df-ima 5532  df-pred 6116  df-ord 6162  df-on 6163  df-lim 6164  df-suc 6165  df-iota 6283  df-fun 6326  df-fn 6327  df-f 6328  df-f1 6329  df-fo 6330  df-f1o 6331  df-fv 6332  df-riota 7093  df-ov 7138  df-oprab 7139  df-mpo 7140  df-om 7561  df-1st 7671  df-2nd 7672  df-wrecs 7930  df-recs 7991  df-rdg 8029  df-er 8272  df-en 8493  df-dom 8494  df-sdom 8495  df-pnf 10666  df-mnf 10667  df-xr 10668  df-ltxr 10669  df-le 10670  df-sub 10861  df-neg 10862  df-div 11287  df-nn 11626  df-2 11688  df-n0 11886  df-z 11970  df-uz 12232  df-ioo 12730  df-icc 12733  df-seq 13365  df-exp 13426
This theorem is referenced by:  dyadmbl  24204  mblfinlem2  35095
  Copyright terms: Public domain W3C validator