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 29450
Description: Extracting the minimum positive integer for which a property 𝜒 does not hold. This uses substitutions similar to nn0ind 11432. (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 1840 . . . . . . . . . 10 𝑚𝜑
4 nfra1 2937 . . . . . . . . . 10 𝑚𝑚 ∈ ℕ0𝜃 → ¬ 𝜏)
53, 4nfan 1825 . . . . . . . . 9 𝑚(𝜑 ∧ ∀𝑚 ∈ ℕ0𝜃 → ¬ 𝜏))
6 nfv 1840 . . . . . . . . 9 𝑚 ¬ [𝑘 / 𝑛]𝜓
75, 6nfim 1822 . . . . . . . 8 𝑚((𝜑 ∧ ∀𝑚 ∈ ℕ0𝜃 → ¬ 𝜏)) → ¬ [𝑘 / 𝑛]𝜓)
8 dfsbcq2 3425 . . . . . . . . . 10 (𝑘 = 1 → ([𝑘 / 𝑛]𝜓[1 / 𝑛]𝜓))
98notbid 308 . . . . . . . . 9 (𝑘 = 1 → (¬ [𝑘 / 𝑛]𝜓 ↔ ¬ [1 / 𝑛]𝜓))
109imbi2d 330 . . . . . . . 8 (𝑘 = 1 → (((𝜑 ∧ ∀𝑚 ∈ ℕ0𝜃 → ¬ 𝜏)) → ¬ [𝑘 / 𝑛]𝜓) ↔ ((𝜑 ∧ ∀𝑚 ∈ ℕ0𝜃 → ¬ 𝜏)) → ¬ [1 / 𝑛]𝜓)))
11 nfv 1840 . . . . . . . . . . 11 𝑛𝜃
12 nn0min.1 . . . . . . . . . . 11 (𝑛 = 𝑚 → (𝜓𝜃))
1311, 12sbhypf 3243 . . . . . . . . . 10 (𝑘 = 𝑚 → ([𝑘 / 𝑛]𝜓𝜃))
1413notbid 308 . . . . . . . . 9 (𝑘 = 𝑚 → (¬ [𝑘 / 𝑛]𝜓 ↔ ¬ 𝜃))
1514imbi2d 330 . . . . . . . 8 (𝑘 = 𝑚 → (((𝜑 ∧ ∀𝑚 ∈ ℕ0𝜃 → ¬ 𝜏)) → ¬ [𝑘 / 𝑛]𝜓) ↔ ((𝜑 ∧ ∀𝑚 ∈ ℕ0𝜃 → ¬ 𝜏)) → ¬ 𝜃)))
16 nfv 1840 . . . . . . . . . . 11 𝑛𝜏
17 nn0min.2 . . . . . . . . . . 11 (𝑛 = (𝑚 + 1) → (𝜓𝜏))
1816, 17sbhypf 3243 . . . . . . . . . 10 (𝑘 = (𝑚 + 1) → ([𝑘 / 𝑛]𝜓𝜏))
1918notbid 308 . . . . . . . . 9 (𝑘 = (𝑚 + 1) → (¬ [𝑘 / 𝑛]𝜓 ↔ ¬ 𝜏))
2019imbi2d 330 . . . . . . . 8 (𝑘 = (𝑚 + 1) → (((𝜑 ∧ ∀𝑚 ∈ ℕ0𝜃 → ¬ 𝜏)) → ¬ [𝑘 / 𝑛]𝜓) ↔ ((𝜑 ∧ ∀𝑚 ∈ ℕ0𝜃 → ¬ 𝜏)) → ¬ 𝜏)))
21 sbequ12r 2109 . . . . . . . . . 10 (𝑘 = 𝑛 → ([𝑘 / 𝑛]𝜓𝜓))
2221notbid 308 . . . . . . . . 9 (𝑘 = 𝑛 → (¬ [𝑘 / 𝑛]𝜓 ↔ ¬ 𝜓))
2322imbi2d 330 . . . . . . . 8 (𝑘 = 𝑛 → (((𝜑 ∧ ∀𝑚 ∈ ℕ0𝜃 → ¬ 𝜏)) → ¬ [𝑘 / 𝑛]𝜓) ↔ ((𝜑 ∧ ∀𝑚 ∈ ℕ0𝜃 → ¬ 𝜏)) → ¬ 𝜓)))
24 nn0min.3 . . . . . . . . 9 (𝜑 → ¬ 𝜒)
25 0nn0 11267 . . . . . . . . . 10 0 ∈ ℕ0
2611, 12sbie 2407 . . . . . . . . . . . . . 14 ([𝑚 / 𝑛]𝜓𝜃)
27 nfv 1840 . . . . . . . . . . . . . . 15 𝑛𝜒
28 nn0min.0 . . . . . . . . . . . . . . 15 (𝑛 = 0 → (𝜓𝜒))
2927, 28sbhypf 3243 . . . . . . . . . . . . . 14 (𝑚 = 0 → ([𝑚 / 𝑛]𝜓𝜒))
3026, 29syl5bbr 274 . . . . . . . . . . . . 13 (𝑚 = 0 → (𝜃𝜒))
3130notbid 308 . . . . . . . . . . . 12 (𝑚 = 0 → (¬ 𝜃 ↔ ¬ 𝜒))
32 oveq1 6622 . . . . . . . . . . . . . . . 16 (𝑚 = 0 → (𝑚 + 1) = (0 + 1))
33 0p1e1 11092 . . . . . . . . . . . . . . . 16 (0 + 1) = 1
3432, 33syl6eq 2671 . . . . . . . . . . . . . . 15 (𝑚 = 0 → (𝑚 + 1) = 1)
35 1nn 10991 . . . . . . . . . . . . . . . 16 1 ∈ ℕ
36 eleq1 2686 . . . . . . . . . . . . . . . 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 3295 . . . . . . . . . 10 (0 ∈ ℕ0 → (∀𝑚 ∈ ℕ0𝜃 → ¬ 𝜏) → (¬ 𝜒 → ¬ [1 / 𝑛]𝜓)))
4525, 44ax-mp 5 . . . . . . . . 9 (∀𝑚 ∈ ℕ0𝜃 → ¬ 𝜏) → (¬ 𝜒 → ¬ [1 / 𝑛]𝜓))
4624, 45mpan9 486 . . . . . . . 8 ((𝜑 ∧ ∀𝑚 ∈ ℕ0𝜃 → ¬ 𝜏)) → ¬ [1 / 𝑛]𝜓)
47 cbvralsv 3174 . . . . . . . . . . 11 (∀𝑚 ∈ ℕ0𝜃 → ¬ 𝜏) ↔ ∀𝑘 ∈ ℕ0 [𝑘 / 𝑚](¬ 𝜃 → ¬ 𝜏))
48 nnnn0 11259 . . . . . . . . . . . 12 (𝑚 ∈ ℕ → 𝑚 ∈ ℕ0)
49 sbequ12r 2109 . . . . . . . . . . . . 13 (𝑘 = 𝑚 → ([𝑘 / 𝑚](¬ 𝜃 → ¬ 𝜏) ↔ (¬ 𝜃 → ¬ 𝜏)))
5049rspcv 3295 . . . . . . . . . . . 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 29448 . . . . . . 7 (𝑛 ∈ ℕ → ((𝜑 ∧ ∀𝑚 ∈ ℕ0𝜃 → ¬ 𝜏)) → ¬ 𝜓))
5655rgen 2918 . . . . . 6 𝑛 ∈ ℕ ((𝜑 ∧ ∀𝑚 ∈ ℕ0𝜃 → ¬ 𝜏)) → ¬ 𝜓)
57 r19.21v 2956 . . . . . 6 (∀𝑛 ∈ ℕ ((𝜑 ∧ ∀𝑚 ∈ ℕ0𝜃 → ¬ 𝜏)) → ¬ 𝜓) ↔ ((𝜑 ∧ ∀𝑚 ∈ ℕ0𝜃 → ¬ 𝜏)) → ∀𝑛 ∈ ℕ ¬ 𝜓))
5856, 57mpbi 220 . . . . 5 ((𝜑 ∧ ∀𝑚 ∈ ℕ0𝜃 → ¬ 𝜏)) → ∀𝑛 ∈ ℕ ¬ 𝜓)
59 ralnex 2988 . . . . 5 (∀𝑛 ∈ ℕ ¬ 𝜓 ↔ ¬ ∃𝑛 ∈ ℕ 𝜓)
6058, 59sylib 208 . . . 4 ((𝜑 ∧ ∀𝑚 ∈ ℕ0𝜃 → ¬ 𝜏)) → ¬ ∃𝑛 ∈ ℕ 𝜓)
612, 60pm2.65da 599 . . 3 (𝜑 → ¬ ∀𝑚 ∈ ℕ0𝜃 → ¬ 𝜏))
62 imnan 438 . . . 4 ((¬ 𝜃 → ¬ 𝜏) ↔ ¬ (¬ 𝜃𝜏))
6362ralbii 2976 . . 3 (∀𝑚 ∈ ℕ0𝜃 → ¬ 𝜏) ↔ ∀𝑚 ∈ ℕ0 ¬ (¬ 𝜃𝜏))
6461, 63sylnib 318 . 2 (𝜑 → ¬ ∀𝑚 ∈ ℕ0 ¬ (¬ 𝜃𝜏))
65 dfrex2 2992 . 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 1877  wcel 1987  wral 2908  wrex 2909  [wsbc 3422  (class class class)co 6615  0cc0 9896  1c1 9897   + caddc 9899  cn 10980  0cn0 11252
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 1836  ax-6 1885  ax-7 1932  ax-8 1989  ax-9 1996  ax-10 2016  ax-11 2031  ax-12 2044  ax-13 2245  ax-ext 2601  ax-sep 4751  ax-nul 4759  ax-pow 4813  ax-pr 4877  ax-un 6914  ax-resscn 9953  ax-1cn 9954  ax-icn 9955  ax-addcl 9956  ax-addrcl 9957  ax-mulcl 9958  ax-mulrcl 9959  ax-mulcom 9960  ax-addass 9961  ax-mulass 9962  ax-distr 9963  ax-i2m1 9964  ax-1ne0 9965  ax-1rid 9966  ax-rnegex 9967  ax-rrecex 9968  ax-cnre 9969  ax-pre-lttri 9970  ax-pre-lttrn 9971  ax-pre-ltadd 9972
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 1878  df-eu 2473  df-mo 2474  df-clab 2608  df-cleq 2614  df-clel 2617  df-nfc 2750  df-ne 2791  df-nel 2894  df-ral 2913  df-rex 2914  df-reu 2915  df-rab 2917  df-v 3192  df-sbc 3423  df-csb 3520  df-dif 3563  df-un 3565  df-in 3567  df-ss 3574  df-pss 3576  df-nul 3898  df-if 4065  df-pw 4138  df-sn 4156  df-pr 4158  df-tp 4160  df-op 4162  df-uni 4410  df-iun 4494  df-br 4624  df-opab 4684  df-mpt 4685  df-tr 4723  df-eprel 4995  df-id 4999  df-po 5005  df-so 5006  df-fr 5043  df-we 5045  df-xp 5090  df-rel 5091  df-cnv 5092  df-co 5093  df-dm 5094  df-rn 5095  df-res 5096  df-ima 5097  df-pred 5649  df-ord 5695  df-on 5696  df-lim 5697  df-suc 5698  df-iota 5820  df-fun 5859  df-fn 5860  df-f 5861  df-f1 5862  df-fo 5863  df-f1o 5864  df-fv 5865  df-ov 6618  df-om 7028  df-wrecs 7367  df-recs 7428  df-rdg 7466  df-er 7702  df-en 7916  df-dom 7917  df-sdom 7918  df-pnf 10036  df-mnf 10037  df-ltxr 10039  df-nn 10981  df-n0 11253
This theorem is referenced by:  archirng  29569
  Copyright terms: Public domain W3C validator