| Mathbox for Paul Chapman |
< Previous
Next >
Related theorems Unicode version |
| Description: Euclid's Algorithm
computes the greatest common divisor of two
nonnegative integers by repeatedly replacing the larger of them with
its remainder modulo the smaller until the remainder is
The value of the step function |
| Ref | Expression |
|---|---|
| eucalgval.1 |
|
| Ref | Expression |
|---|---|
| eucalgval |
|
| Step | Hyp | Ref | Expression |
|---|---|---|---|
| 1 | opex 3527 |
. . 3
| |
| 2 | ifexg 13599 |
. . 3
| |
| 3 | 1, 2 | mpan2 760 |
. 2
|
| 4 | fveq2 4681 |
. . . . 5
| |
| 5 | 4 | eqeq1d 1892 |
. . . 4
|
| 6 | id 73 |
. . . 4
| |
| 7 | fveq2 4681 |
. . . . 5
| |
| 8 | 4, 7 | opeq12d 3166 |
. . . 4
|
| 9 | 5, 6, 8 | ifbieq12d 2998 |
. . 3
|
| 10 | eucalgval.1 |
. . . 4
| |
| 11 | eleq1 1957 |
. . . . . . 7
| |
| 12 | 11 | adantr 425 |
. . . . . 6
|
| 13 | simpr 350 |
. . . . . . 7
| |
| 14 | fveq2 4681 |
. . . . . . . . . 10
| |
| 15 | 14 | eqeq1d 1892 |
. . . . . . . . 9
|
| 16 | id 73 |
. . . . . . . . 9
| |
| 17 | fveq2 4681 |
. . . . . . . . . 10
| |
| 18 | 14, 17 | opeq12d 3166 |
. . . . . . . . 9
|
| 19 | 15, 16, 18 | ifbieq12d 2998 |
. . . . . . . 8
|
| 20 | 19 | adantr 425 |
. . . . . . 7
|
| 21 | 13, 20 | eqeq12d 1899 |
. . . . . 6
|
| 22 | 12, 21 | anbi12d 690 |
. . . . 5
|
| 23 | 22 | cbvopabv 3404 |
. . . 4
|
| 24 | 10, 23 | eqtri 1908 |
. . 3
|
| 25 | 9, 24 | fvopab4g 4742 |
. 2
|
| 26 | 3, 25 | mpdan 768 |
1
|
| Colors of variables: wff set class |
| Syntax hints: |
| This theorem is referenced by: eucalgval2 13750 mulgcdlem2 13757 mulgcdlem5 13760 |
| This theorem was proved from axioms: ax-1 4 ax-2 5 ax-3 6 ax-mp 7 ax-7 1304 ax-gen 1305 ax-8 1306 ax-9 1307 ax-10 1308 ax-11 1309 ax-12 1310 ax-14 1312 ax-17 1317 ax-4 1319 ax-5o 1321 ax-6o 1324 ax-9o 1481 ax-10o 1500 ax-16 1580 ax-11o 1588 ax-ext 1865 ax-sep 3438 ax-nul 3445 ax-pow 3481 ax-pr 3524 |
| This theorem depends on definitions: df-bi 164 df-or 241 df-an 242 df-ex 1327 df-sb 1536 df-eu 1775 df-mo 1776 df-clab 1872 df-cleq 1877 df-clel 1880 df-ne 2019 df-ral 2109 df-rex 2110 df-v 2294 df-dif 2597 df-un 2600 df-in 2603 df-ss 2605 df-nul 2876 df-if 2983 df-pw 3035 df-sn 3049 df-pr 3050 df-op 3053 df-uni 3178 df-br 3339 df-opab 3396 df-id 3586 df-xp 4000 df-rel 4001 df-cnv 4002 df-co 4003 df-dm 4004 df-rn 4005 df-res 4006 df-ima 4007 df-fun 4008 df-fv 4014 |