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

Theorem nn0min 29400
Description: Extracting the minimum positive integer for which a property 𝜒 does not hold. This uses substitutions similar to nn0ind 11416. (Contributed by Thierry Arnoux, 6-May-2018.)
Hypotheses
Ref Expression
nn0min.0 (𝑛 = 0 → (𝜓𝜒))
nn0min.1 (𝑛 = 𝑚 → (𝜓𝜃))
nn0min.2 (𝑛 = (𝑚 + 1) → (𝜓𝜏))
nn0min.3 (𝜑 → ¬ 𝜒)
nn0min.4 (𝜑 → ∃𝑛 ∈ ℕ 𝜓)
Assertion
Ref Expression
nn0min (𝜑 → ∃𝑚 ∈ ℕ0𝜃𝜏))
Distinct variable groups:   𝑚,𝑛,𝜑   𝜓,𝑚   𝜏,𝑛   𝜃,𝑛   𝜒,𝑚,𝑛
Allowed substitution hints:   𝜓(𝑛)   𝜃(𝑚)   𝜏(𝑚)

Proof of Theorem nn0min
Dummy variable 𝑘 is distinct from all other variables.
StepHypRef Expression
1 nn0min.4 . . . . 5 (𝜑 → ∃𝑛 ∈ ℕ 𝜓)
21adantr 481 . . . 4 ((𝜑 ∧ ∀𝑚 ∈ ℕ0𝜃 → ¬ 𝜏)) → ∃𝑛 ∈ ℕ 𝜓)
3 nfv 1845 . . . . . . . . . 10 𝑚𝜑
4 nfra1 2941 . . . . . . . . . 10 𝑚𝑚 ∈ ℕ0𝜃 → ¬ 𝜏)
53, 4nfan 1830 . . . . . . . . 9 𝑚(𝜑 ∧ ∀𝑚 ∈ ℕ0𝜃 → ¬ 𝜏))
6 nfv 1845 . . . . . . . . 9 𝑚 ¬ [𝑘 / 𝑛]𝜓
75, 6nfim 1827 . . . . . . . 8 𝑚((𝜑 ∧ ∀𝑚 ∈ ℕ0𝜃 → ¬ 𝜏)) → ¬ [𝑘 / 𝑛]𝜓)
8 dfsbcq2 3425 . . . . . . . . . 10 (𝑘 = 1 → ([𝑘 / 𝑛]𝜓[1 / 𝑛]𝜓))
98notbid 308 . . . . . . . . 9 (𝑘 = 1 → (¬ [𝑘 / 𝑛]𝜓 ↔ ¬ [1 / 𝑛]𝜓))
109imbi2d 330 . . . . . . . 8 (𝑘 = 1 → (((𝜑 ∧ ∀𝑚 ∈ ℕ0𝜃 → ¬ 𝜏)) → ¬ [𝑘 / 𝑛]𝜓) ↔ ((𝜑 ∧ ∀𝑚 ∈ ℕ0𝜃 → ¬ 𝜏)) → ¬ [1 / 𝑛]𝜓)))
11 nfv 1845 . . . . . . . . . . 11 𝑛𝜃
12 nn0min.1 . . . . . . . . . . 11 (𝑛 = 𝑚 → (𝜓𝜃))
1311, 12sbhypf 3244 . . . . . . . . . 10 (𝑘 = 𝑚 → ([𝑘 / 𝑛]𝜓𝜃))
1413notbid 308 . . . . . . . . 9 (𝑘 = 𝑚 → (¬ [𝑘 / 𝑛]𝜓 ↔ ¬ 𝜃))
1514imbi2d 330 . . . . . . . 8 (𝑘 = 𝑚 → (((𝜑 ∧ ∀𝑚 ∈ ℕ0𝜃 → ¬ 𝜏)) → ¬ [𝑘 / 𝑛]𝜓) ↔ ((𝜑 ∧ ∀𝑚 ∈ ℕ0𝜃 → ¬ 𝜏)) → ¬ 𝜃)))
16 nfv 1845 . . . . . . . . . . 11 𝑛𝜏
17 nn0min.2 . . . . . . . . . . 11 (𝑛 = (𝑚 + 1) → (𝜓𝜏))
1816, 17sbhypf 3244 . . . . . . . . . 10 (𝑘 = (𝑚 + 1) → ([𝑘 / 𝑛]𝜓𝜏))
1918notbid 308 . . . . . . . . 9 (𝑘 = (𝑚 + 1) → (¬ [𝑘 / 𝑛]𝜓 ↔ ¬ 𝜏))
2019imbi2d 330 . . . . . . . 8 (𝑘 = (𝑚 + 1) → (((𝜑 ∧ ∀𝑚 ∈ ℕ0𝜃 → ¬ 𝜏)) → ¬ [𝑘 / 𝑛]𝜓) ↔ ((𝜑 ∧ ∀𝑚 ∈ ℕ0𝜃 → ¬ 𝜏)) → ¬ 𝜏)))
21 sbequ12r 2114 . . . . . . . . . 10 (𝑘 = 𝑛 → ([𝑘 / 𝑛]𝜓𝜓))
2221notbid 308 . . . . . . . . 9 (𝑘 = 𝑛 → (¬ [𝑘 / 𝑛]𝜓 ↔ ¬ 𝜓))
2322imbi2d 330 . . . . . . . 8 (𝑘 = 𝑛 → (((𝜑 ∧ ∀𝑚 ∈ ℕ0𝜃 → ¬ 𝜏)) → ¬ [𝑘 / 𝑛]𝜓) ↔ ((𝜑 ∧ ∀𝑚 ∈ ℕ0𝜃 → ¬ 𝜏)) → ¬ 𝜓)))
24 nn0min.3 . . . . . . . . 9 (𝜑 → ¬ 𝜒)
25 0nn0 11252 . . . . . . . . . 10 0 ∈ ℕ0
2611, 12sbie 2412 . . . . . . . . . . . . . 14 ([𝑚 / 𝑛]𝜓𝜃)
27 nfv 1845 . . . . . . . . . . . . . . 15 𝑛𝜒
28 nn0min.0 . . . . . . . . . . . . . . 15 (𝑛 = 0 → (𝜓𝜒))
2927, 28sbhypf 3244 . . . . . . . . . . . . . 14 (𝑚 = 0 → ([𝑚 / 𝑛]𝜓𝜒))
3026, 29syl5bbr 274 . . . . . . . . . . . . 13 (𝑚 = 0 → (𝜃𝜒))
3130notbid 308 . . . . . . . . . . . 12 (𝑚 = 0 → (¬ 𝜃 ↔ ¬ 𝜒))
32 oveq1 6612 . . . . . . . . . . . . . . . 16 (𝑚 = 0 → (𝑚 + 1) = (0 + 1))
33 0p1e1 11077 . . . . . . . . . . . . . . . 16 (0 + 1) = 1
3432, 33syl6eq 2676 . . . . . . . . . . . . . . 15 (𝑚 = 0 → (𝑚 + 1) = 1)
35 1nn 10976 . . . . . . . . . . . . . . . 16 1 ∈ ℕ
36 eleq1 2692 . . . . . . . . . . . . . . . 16 ((𝑚 + 1) = 1 → ((𝑚 + 1) ∈ ℕ ↔ 1 ∈ ℕ))
3735, 36mpbiri 248 . . . . . . . . . . . . . . 15 ((𝑚 + 1) = 1 → (𝑚 + 1) ∈ ℕ)
3817sbcieg 3455 . . . . . . . . . . . . . . 15 ((𝑚 + 1) ∈ ℕ → ([(𝑚 + 1) / 𝑛]𝜓𝜏))
3934, 37, 383syl 18 . . . . . . . . . . . . . 14 (𝑚 = 0 → ([(𝑚 + 1) / 𝑛]𝜓𝜏))
4034sbceq1d 3427 . . . . . . . . . . . . . 14 (𝑚 = 0 → ([(𝑚 + 1) / 𝑛]𝜓[1 / 𝑛]𝜓))
4139, 40bitr3d 270 . . . . . . . . . . . . 13 (𝑚 = 0 → (𝜏[1 / 𝑛]𝜓))
4241notbid 308 . . . . . . . . . . . 12 (𝑚 = 0 → (¬ 𝜏 ↔ ¬ [1 / 𝑛]𝜓))
4331, 42imbi12d 334 . . . . . . . . . . 11 (𝑚 = 0 → ((¬ 𝜃 → ¬ 𝜏) ↔ (¬ 𝜒 → ¬ [1 / 𝑛]𝜓)))
4443rspcv 3296 . . . . . . . . . 10 (0 ∈ ℕ0 → (∀𝑚 ∈ ℕ0𝜃 → ¬ 𝜏) → (¬ 𝜒 → ¬ [1 / 𝑛]𝜓)))
4525, 44ax-mp 5 . . . . . . . . 9 (∀𝑚 ∈ ℕ0𝜃 → ¬ 𝜏) → (¬ 𝜒 → ¬ [1 / 𝑛]𝜓))
4624, 45mpan9 486 . . . . . . . 8 ((𝜑 ∧ ∀𝑚 ∈ ℕ0𝜃 → ¬ 𝜏)) → ¬ [1 / 𝑛]𝜓)
47 cbvralsv 3175 . . . . . . . . . . 11 (∀𝑚 ∈ ℕ0𝜃 → ¬ 𝜏) ↔ ∀𝑘 ∈ ℕ0 [𝑘 / 𝑚](¬ 𝜃 → ¬ 𝜏))
48 nnnn0 11244 . . . . . . . . . . . 12 (𝑚 ∈ ℕ → 𝑚 ∈ ℕ0)
49 sbequ12r 2114 . . . . . . . . . . . . 13 (𝑘 = 𝑚 → ([𝑘 / 𝑚](¬ 𝜃 → ¬ 𝜏) ↔ (¬ 𝜃 → ¬ 𝜏)))
5049rspcv 3296 . . . . . . . . . . . 12 (𝑚 ∈ ℕ0 → (∀𝑘 ∈ ℕ0 [𝑘 / 𝑚](¬ 𝜃 → ¬ 𝜏) → (¬ 𝜃 → ¬ 𝜏)))
5148, 50syl 17 . . . . . . . . . . 11 (𝑚 ∈ ℕ → (∀𝑘 ∈ ℕ0 [𝑘 / 𝑚](¬ 𝜃 → ¬ 𝜏) → (¬ 𝜃 → ¬ 𝜏)))
5247, 51syl5bi 232 . . . . . . . . . 10 (𝑚 ∈ ℕ → (∀𝑚 ∈ ℕ0𝜃 → ¬ 𝜏) → (¬ 𝜃 → ¬ 𝜏)))
5352adantld 483 . . . . . . . . 9 (𝑚 ∈ ℕ → ((𝜑 ∧ ∀𝑚 ∈ ℕ0𝜃 → ¬ 𝜏)) → (¬ 𝜃 → ¬ 𝜏)))
5453a2d 29 . . . . . . . 8 (𝑚 ∈ ℕ → (((𝜑 ∧ ∀𝑚 ∈ ℕ0𝜃 → ¬ 𝜏)) → ¬ 𝜃) → ((𝜑 ∧ ∀𝑚 ∈ ℕ0𝜃 → ¬ 𝜏)) → ¬ 𝜏)))
557, 10, 15, 20, 23, 46, 54nnindf 29398 . . . . . . 7 (𝑛 ∈ ℕ → ((𝜑 ∧ ∀𝑚 ∈ ℕ0𝜃 → ¬ 𝜏)) → ¬ 𝜓))
5655rgen 2922 . . . . . 6 𝑛 ∈ ℕ ((𝜑 ∧ ∀𝑚 ∈ ℕ0𝜃 → ¬ 𝜏)) → ¬ 𝜓)
57 r19.21v 2959 . . . . . 6 (∀𝑛 ∈ ℕ ((𝜑 ∧ ∀𝑚 ∈ ℕ0𝜃 → ¬ 𝜏)) → ¬ 𝜓) ↔ ((𝜑 ∧ ∀𝑚 ∈ ℕ0𝜃 → ¬ 𝜏)) → ∀𝑛 ∈ ℕ ¬ 𝜓))
5856, 57mpbi 220 . . . . 5 ((𝜑 ∧ ∀𝑚 ∈ ℕ0𝜃 → ¬ 𝜏)) → ∀𝑛 ∈ ℕ ¬ 𝜓)
59 ralnex 2991 . . . . 5 (∀𝑛 ∈ ℕ ¬ 𝜓 ↔ ¬ ∃𝑛 ∈ ℕ 𝜓)
6058, 59sylib 208 . . . 4 ((𝜑 ∧ ∀𝑚 ∈ ℕ0𝜃 → ¬ 𝜏)) → ¬ ∃𝑛 ∈ ℕ 𝜓)
612, 60pm2.65da 599 . . 3 (𝜑 → ¬ ∀𝑚 ∈ ℕ0𝜃 → ¬ 𝜏))
62 imnan 438 . . . 4 ((¬ 𝜃 → ¬ 𝜏) ↔ ¬ (¬ 𝜃𝜏))
6362ralbii 2979 . . 3 (∀𝑚 ∈ ℕ0𝜃 → ¬ 𝜏) ↔ ∀𝑚 ∈ ℕ0 ¬ (¬ 𝜃𝜏))
6461, 63sylnib 318 . 2 (𝜑 → ¬ ∀𝑚 ∈ ℕ0 ¬ (¬ 𝜃𝜏))
65 dfrex2 2995 . 2 (∃𝑚 ∈ ℕ0𝜃𝜏) ↔ ¬ ∀𝑚 ∈ ℕ0 ¬ (¬ 𝜃𝜏))
6664, 65sylibr 224 1 (𝜑 → ∃𝑚 ∈ ℕ0𝜃𝜏))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 196  wa 384   = wceq 1480  [wsb 1882  wcel 1992  wral 2912  wrex 2913  [wsbc 3422  (class class class)co 6605  0cc0 9881  1c1 9882   + caddc 9884  cn 10965  0cn0 11237
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1719  ax-4 1734  ax-5 1841  ax-6 1890  ax-7 1937  ax-8 1994  ax-9 2001  ax-10 2021  ax-11 2036  ax-12 2049  ax-13 2250  ax-ext 2606  ax-sep 4746  ax-nul 4754  ax-pow 4808  ax-pr 4872  ax-un 6903  ax-resscn 9938  ax-1cn 9939  ax-icn 9940  ax-addcl 9941  ax-addrcl 9942  ax-mulcl 9943  ax-mulrcl 9944  ax-mulcom 9945  ax-addass 9946  ax-mulass 9947  ax-distr 9948  ax-i2m1 9949  ax-1ne0 9950  ax-1rid 9951  ax-rnegex 9952  ax-rrecex 9953  ax-cnre 9954  ax-pre-lttri 9955  ax-pre-lttrn 9956  ax-pre-ltadd 9957
This theorem depends on definitions:  df-bi 197  df-or 385  df-an 386  df-3or 1037  df-3an 1038  df-tru 1483  df-ex 1702  df-nf 1707  df-sb 1883  df-eu 2478  df-mo 2479  df-clab 2613  df-cleq 2619  df-clel 2622  df-nfc 2756  df-ne 2797  df-nel 2900  df-ral 2917  df-rex 2918  df-reu 2919  df-rab 2921  df-v 3193  df-sbc 3423  df-csb 3520  df-dif 3563  df-un 3565  df-in 3567  df-ss 3574  df-pss 3576  df-nul 3897  df-if 4064  df-pw 4137  df-sn 4154  df-pr 4156  df-tp 4158  df-op 4160  df-uni 4408  df-iun 4492  df-br 4619  df-opab 4679  df-mpt 4680  df-tr 4718  df-eprel 4990  df-id 4994  df-po 5000  df-so 5001  df-fr 5038  df-we 5040  df-xp 5085  df-rel 5086  df-cnv 5087  df-co 5088  df-dm 5089  df-rn 5090  df-res 5091  df-ima 5092  df-pred 5642  df-ord 5688  df-on 5689  df-lim 5690  df-suc 5691  df-iota 5813  df-fun 5852  df-fn 5853  df-f 5854  df-f1 5855  df-fo 5856  df-f1o 5857  df-fv 5858  df-ov 6608  df-om 7014  df-wrecs 7353  df-recs 7414  df-rdg 7452  df-er 7688  df-en 7901  df-dom 7902  df-sdom 7903  df-pnf 10021  df-mnf 10022  df-ltxr 10024  df-nn 10966  df-n0 11238
This theorem is referenced by:  archirng  29519
  Copyright terms: Public domain W3C validator