ILE Home Intuitionistic Logic Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  ILE Home  >  Th. List  >  sqrt2irrlem GIF version

Theorem sqrt2irrlem 12527
Description: Lemma for sqrt2irr 12528. This is the core of the proof: - if 𝐴 / 𝐵 = √(2), then 𝐴 and 𝐵 are even, so 𝐴 / 2 and 𝐵 / 2 are smaller representatives, which is absurd by the method of infinite descent (here implemented by strong induction). (Contributed by NM, 20-Aug-2001.) (Revised by Mario Carneiro, 12-Sep-2015.)
Hypotheses
Ref Expression
sqrt2irrlem.1 (𝜑𝐴 ∈ ℤ)
sqrt2irrlem.2 (𝜑𝐵 ∈ ℕ)
sqrt2irrlem.3 (𝜑 → (√‘2) = (𝐴 / 𝐵))
Assertion
Ref Expression
sqrt2irrlem (𝜑 → ((𝐴 / 2) ∈ ℤ ∧ (𝐵 / 2) ∈ ℕ))

Proof of Theorem sqrt2irrlem
StepHypRef Expression
1 2re 9113 . . . . . . . . . . . 12 2 ∈ ℝ
2 0le2 9133 . . . . . . . . . . . 12 0 ≤ 2
3 resqrtth 11386 . . . . . . . . . . . 12 ((2 ∈ ℝ ∧ 0 ≤ 2) → ((√‘2)↑2) = 2)
41, 2, 3mp2an 426 . . . . . . . . . . 11 ((√‘2)↑2) = 2
5 sqrt2irrlem.3 . . . . . . . . . . . 12 (𝜑 → (√‘2) = (𝐴 / 𝐵))
65oveq1d 5966 . . . . . . . . . . 11 (𝜑 → ((√‘2)↑2) = ((𝐴 / 𝐵)↑2))
74, 6eqtr3id 2253 . . . . . . . . . 10 (𝜑 → 2 = ((𝐴 / 𝐵)↑2))
8 sqrt2irrlem.1 . . . . . . . . . . . 12 (𝜑𝐴 ∈ ℤ)
98zcnd 9503 . . . . . . . . . . 11 (𝜑𝐴 ∈ ℂ)
10 sqrt2irrlem.2 . . . . . . . . . . . 12 (𝜑𝐵 ∈ ℕ)
1110nncnd 9057 . . . . . . . . . . 11 (𝜑𝐵 ∈ ℂ)
1210nnap0d 9089 . . . . . . . . . . 11 (𝜑𝐵 # 0)
139, 11, 12sqdivapd 10838 . . . . . . . . . 10 (𝜑 → ((𝐴 / 𝐵)↑2) = ((𝐴↑2) / (𝐵↑2)))
147, 13eqtrd 2239 . . . . . . . . 9 (𝜑 → 2 = ((𝐴↑2) / (𝐵↑2)))
1514oveq1d 5966 . . . . . . . 8 (𝜑 → (2 · (𝐵↑2)) = (((𝐴↑2) / (𝐵↑2)) · (𝐵↑2)))
169sqcld 10823 . . . . . . . . 9 (𝜑 → (𝐴↑2) ∈ ℂ)
1710nnsqcld 10846 . . . . . . . . . 10 (𝜑 → (𝐵↑2) ∈ ℕ)
1817nncnd 9057 . . . . . . . . 9 (𝜑 → (𝐵↑2) ∈ ℂ)
1917nnap0d 9089 . . . . . . . . 9 (𝜑 → (𝐵↑2) # 0)
2016, 18, 19divcanap1d 8871 . . . . . . . 8 (𝜑 → (((𝐴↑2) / (𝐵↑2)) · (𝐵↑2)) = (𝐴↑2))
2115, 20eqtrd 2239 . . . . . . 7 (𝜑 → (2 · (𝐵↑2)) = (𝐴↑2))
2221oveq1d 5966 . . . . . 6 (𝜑 → ((2 · (𝐵↑2)) / 2) = ((𝐴↑2) / 2))
23 2cnd 9116 . . . . . . 7 (𝜑 → 2 ∈ ℂ)
24 2ap0 9136 . . . . . . . 8 2 # 0
2524a1i 9 . . . . . . 7 (𝜑 → 2 # 0)
2618, 23, 25divcanap3d 8875 . . . . . 6 (𝜑 → ((2 · (𝐵↑2)) / 2) = (𝐵↑2))
2722, 26eqtr3d 2241 . . . . 5 (𝜑 → ((𝐴↑2) / 2) = (𝐵↑2))
2827, 17eqeltrd 2283 . . . 4 (𝜑 → ((𝐴↑2) / 2) ∈ ℕ)
2928nnzd 9501 . . 3 (𝜑 → ((𝐴↑2) / 2) ∈ ℤ)
30 zesq 10810 . . . 4 (𝐴 ∈ ℤ → ((𝐴 / 2) ∈ ℤ ↔ ((𝐴↑2) / 2) ∈ ℤ))
318, 30syl 14 . . 3 (𝜑 → ((𝐴 / 2) ∈ ℤ ↔ ((𝐴↑2) / 2) ∈ ℤ))
3229, 31mpbird 167 . 2 (𝜑 → (𝐴 / 2) ∈ ℤ)
33 2cn 9114 . . . . . . . . 9 2 ∈ ℂ
3433sqvali 10771 . . . . . . . 8 (2↑2) = (2 · 2)
3534oveq2i 5962 . . . . . . 7 ((𝐴↑2) / (2↑2)) = ((𝐴↑2) / (2 · 2))
369, 23, 25sqdivapd 10838 . . . . . . 7 (𝜑 → ((𝐴 / 2)↑2) = ((𝐴↑2) / (2↑2)))
3716, 23, 23, 25, 25divdivap1d 8902 . . . . . . 7 (𝜑 → (((𝐴↑2) / 2) / 2) = ((𝐴↑2) / (2 · 2)))
3835, 36, 373eqtr4a 2265 . . . . . 6 (𝜑 → ((𝐴 / 2)↑2) = (((𝐴↑2) / 2) / 2))
3927oveq1d 5966 . . . . . 6 (𝜑 → (((𝐴↑2) / 2) / 2) = ((𝐵↑2) / 2))
4038, 39eqtrd 2239 . . . . 5 (𝜑 → ((𝐴 / 2)↑2) = ((𝐵↑2) / 2))
41 zsqcl 10762 . . . . . 6 ((𝐴 / 2) ∈ ℤ → ((𝐴 / 2)↑2) ∈ ℤ)
4232, 41syl 14 . . . . 5 (𝜑 → ((𝐴 / 2)↑2) ∈ ℤ)
4340, 42eqeltrrd 2284 . . . 4 (𝜑 → ((𝐵↑2) / 2) ∈ ℤ)
4417nnrpd 9823 . . . . . 6 (𝜑 → (𝐵↑2) ∈ ℝ+)
4544rphalfcld 9838 . . . . 5 (𝜑 → ((𝐵↑2) / 2) ∈ ℝ+)
4645rpgt0d 9828 . . . 4 (𝜑 → 0 < ((𝐵↑2) / 2))
47 elnnz 9389 . . . 4 (((𝐵↑2) / 2) ∈ ℕ ↔ (((𝐵↑2) / 2) ∈ ℤ ∧ 0 < ((𝐵↑2) / 2)))
4843, 46, 47sylanbrc 417 . . 3 (𝜑 → ((𝐵↑2) / 2) ∈ ℕ)
49 nnesq 10811 . . . 4 (𝐵 ∈ ℕ → ((𝐵 / 2) ∈ ℕ ↔ ((𝐵↑2) / 2) ∈ ℕ))
5010, 49syl 14 . . 3 (𝜑 → ((𝐵 / 2) ∈ ℕ ↔ ((𝐵↑2) / 2) ∈ ℕ))
5148, 50mpbird 167 . 2 (𝜑 → (𝐵 / 2) ∈ ℕ)
5232, 51jca 306 1 (𝜑 → ((𝐴 / 2) ∈ ℤ ∧ (𝐵 / 2) ∈ ℕ))
Colors of variables: wff set class
Syntax hints:  wi 4  wa 104  wb 105   = wceq 1373  wcel 2177   class class class wbr 4047  cfv 5276  (class class class)co 5951  cr 7931  0cc0 7932   · cmul 7937   < clt 8114  cle 8115   # cap 8661   / cdiv 8752  cn 9043  2c2 9094  cz 9379  cexp 10690  csqrt 11351
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-ia1 106  ax-ia2 107  ax-ia3 108  ax-in1 615  ax-in2 616  ax-io 711  ax-5 1471  ax-7 1472  ax-gen 1473  ax-ie1 1517  ax-ie2 1518  ax-8 1528  ax-10 1529  ax-11 1530  ax-i12 1531  ax-bndl 1533  ax-4 1534  ax-17 1550  ax-i9 1554  ax-ial 1558  ax-i5r 1559  ax-13 2179  ax-14 2180  ax-ext 2188  ax-coll 4163  ax-sep 4166  ax-nul 4174  ax-pow 4222  ax-pr 4257  ax-un 4484  ax-setind 4589  ax-iinf 4640  ax-cnex 8023  ax-resscn 8024  ax-1cn 8025  ax-1re 8026  ax-icn 8027  ax-addcl 8028  ax-addrcl 8029  ax-mulcl 8030  ax-mulrcl 8031  ax-addcom 8032  ax-mulcom 8033  ax-addass 8034  ax-mulass 8035  ax-distr 8036  ax-i2m1 8037  ax-0lt1 8038  ax-1rid 8039  ax-0id 8040  ax-rnegex 8041  ax-precex 8042  ax-cnre 8043  ax-pre-ltirr 8044  ax-pre-ltwlin 8045  ax-pre-lttrn 8046  ax-pre-apti 8047  ax-pre-ltadd 8048  ax-pre-mulgt0 8049  ax-pre-mulext 8050  ax-arch 8051  ax-caucvg 8052
This theorem depends on definitions:  df-bi 117  df-dc 837  df-3or 982  df-3an 983  df-tru 1376  df-fal 1379  df-nf 1485  df-sb 1787  df-eu 2058  df-mo 2059  df-clab 2193  df-cleq 2199  df-clel 2202  df-nfc 2338  df-ne 2378  df-nel 2473  df-ral 2490  df-rex 2491  df-reu 2492  df-rmo 2493  df-rab 2494  df-v 2775  df-sbc 3000  df-csb 3095  df-dif 3169  df-un 3171  df-in 3173  df-ss 3180  df-nul 3462  df-if 3573  df-pw 3619  df-sn 3640  df-pr 3641  df-op 3643  df-uni 3853  df-int 3888  df-iun 3931  df-br 4048  df-opab 4110  df-mpt 4111  df-tr 4147  df-id 4344  df-po 4347  df-iso 4348  df-iord 4417  df-on 4419  df-ilim 4420  df-suc 4422  df-iom 4643  df-xp 4685  df-rel 4686  df-cnv 4687  df-co 4688  df-dm 4689  df-rn 4690  df-res 4691  df-ima 4692  df-iota 5237  df-fun 5278  df-fn 5279  df-f 5280  df-f1 5281  df-fo 5282  df-f1o 5283  df-fv 5284  df-riota 5906  df-ov 5954  df-oprab 5955  df-mpo 5956  df-1st 6233  df-2nd 6234  df-recs 6398  df-frec 6484  df-pnf 8116  df-mnf 8117  df-xr 8118  df-ltxr 8119  df-le 8120  df-sub 8252  df-neg 8253  df-reap 8655  df-ap 8662  df-div 8753  df-inn 9044  df-2 9102  df-3 9103  df-4 9104  df-n0 9303  df-z 9380  df-uz 9656  df-rp 9783  df-seqfrec 10600  df-exp 10691  df-rsqrt 11353
This theorem is referenced by:  sqrt2irr  12528
  Copyright terms: Public domain W3C validator