Explore related knowledge and questions →

Question 18875: Gcd Preservation and Termination Have Different Obligations

On this page
  1. Original question and givens
  2. Definition and scope
  3. Step-by-step derivation
  4. Reverse checks
  5. Result
  6. This question review and source binding

Return to catalogue page 95

← Question derivation index · Original question batch

R0036-18875 · q-20261014-advance-20261105-r03-euclidean-algorithm-0050

Original question and givens

Use original integers a=1888, b=121. Execute the Euclidean chain on their absolute values; each row [left, right, quotient, remainder] satisfies left=right*quotient+remainder with 0≤remainder<right. Stop before a zero divisor. Restore original signs for Bezout coefficients; use the explicit gcd(0,0)=0 convention only in its boundary family. Give (gcd_pairs, gcd, invariant, certificate).

  • G001 — Use original integers a=1888, b=121. Execute the Euclidean chain on their absolute values; each row [left, right, quotient, remainder] satisfies left=right*quotient+remainder with 0≤remainder<right. Stop before a zero divisor. Restore original signs for Bezout coefficients; use the explicit gcd(0,0)=0 convention only in its boundary family. Give (gcd_pairs, gcd, invariant, certificate).

Definition and scope

Use the original question domain, assumptions and cited MKO definitions. This item has second-context mathematical and bilingual review, with the model, answer and every arithmetic step independently recomputed from the original parameters; the source question remains a candidate.

Step-by-step derivation

S001 · implies

Before

source operation=euclid-gcd-invariant;original snapshot and mathematics retained

After

explicit ordered source output fields=[gcd_pairs, gcd, invariant, certificate]

Conditions: none

Keep the historical interface marker in the original snapshot while listing the original ordered fields here.No JavaScript or external table is needed for the main text,and field labels are not mathematical evidence.

Step identifiers and dependencies

Rule: source_ordered_interface_explicit_without_javascript · Uses: G001

S002 · implies

Before

original signed inputs a=1888,b=121

After

initial nonnegative chain values=[1888, 121];gcd(a,b)=gcd(abs(a),abs(b));never divide by a zero right input

Conditions: none

Divisibility is unaffected by input signs,and the gcd is nonnegative.Ordinary chain/invariant families require b≠0;the zero boundary separately retains its(0,0)convention.

Step identifiers and dependencies

Rule: euclid_signed_inputs_absolute_chain_scope · Uses: G001, S001

S003 · calculation

Before

Euclid step0 exact ratio := div(1888, 121)

After

Euclid step0 exact ratio = 1888/121

Conditions: none

Substitute original data and established intermediates exactly,retaining indices,signs and the relevant space.

Step identifiers and dependencies

Rule: exact_rational_arithmetic · Uses: G001, S002

S004 · calculation

Before

Euclid step0 quotient times divisor := mul(15, 121)

After

Euclid step0 quotient times divisor = 1815

Conditions: none

Substitute original data and established intermediates exactly,retaining indices,signs and the relevant space.

Step identifiers and dependencies

Rule: exact_rational_arithmetic · Uses: G001, S003

S005 · calculation

Before

Euclid step0 remainder := sub(1888, 1815)

After

Euclid step0 remainder = 73

Conditions: none

Substitute original data and established intermediates exactly,retaining indices,signs and the relevant space.

Step identifiers and dependencies

Rule: exact_rational_arithmetic · Uses: G001, S004

S006 · implies

Before

step=0;left=1888;positive right=121;exact ratio=1888/121;floor quotient=15

After

left=right*q+r with r=73 in[0,121);gcd pair=[1, 1]

Conditions: none

An integer d divides both left and right iff it divides right and left−q*right,so the gcd is unchanged.The next nonnegative right is the strictly smaller remainder,so infinite descent is impossible;termination is separate from invariance.

Step identifiers and dependencies

Rule: euclid_each_division_common_divisors_and_strict_descent · Uses: G001, S005

S007 · calculation

Before

Euclid step1 exact ratio := div(121, 73)

After

Euclid step1 exact ratio = 121/73

Conditions: none

Substitute original data and established intermediates exactly,retaining indices,signs and the relevant space.

Step identifiers and dependencies

Rule: exact_rational_arithmetic · Uses: G001, S006

S008 · calculation

Before

Euclid step1 quotient times divisor := mul(1, 73)

After

Euclid step1 quotient times divisor = 73

Conditions: none

Substitute original data and established intermediates exactly,retaining indices,signs and the relevant space.

Step identifiers and dependencies

Rule: exact_rational_arithmetic · Uses: G001, S007

S009 · calculation

Before

Euclid step1 remainder := sub(121, 73)

After

Euclid step1 remainder = 48

Conditions: none

Substitute original data and established intermediates exactly,retaining indices,signs and the relevant space.

Step identifiers and dependencies

Rule: exact_rational_arithmetic · Uses: G001, S008

S010 · implies

Before

step=1;left=121;positive right=73;exact ratio=121/73;floor quotient=1

After

left=right*q+r with r=48 in[0,73);gcd pair=[1, 1]

Conditions: none

An integer d divides both left and right iff it divides right and left−q*right,so the gcd is unchanged.The next nonnegative right is the strictly smaller remainder,so infinite descent is impossible;termination is separate from invariance.

Step identifiers and dependencies

Rule: euclid_each_division_common_divisors_and_strict_descent · Uses: G001, S009

S011 · calculation

Before

Euclid step2 exact ratio := div(73, 48)

After

Euclid step2 exact ratio = 73/48

Conditions: none

Substitute original data and established intermediates exactly,retaining indices,signs and the relevant space.

Step identifiers and dependencies

Rule: exact_rational_arithmetic · Uses: G001, S010

S012 · calculation

Before

Euclid step2 quotient times divisor := mul(1, 48)

After

Euclid step2 quotient times divisor = 48

Conditions: none

Substitute original data and established intermediates exactly,retaining indices,signs and the relevant space.

Step identifiers and dependencies

Rule: exact_rational_arithmetic · Uses: G001, S011

S013 · calculation

Before

Euclid step2 remainder := sub(73, 48)

After

Euclid step2 remainder = 25

Conditions: none

Substitute original data and established intermediates exactly,retaining indices,signs and the relevant space.

Step identifiers and dependencies

Rule: exact_rational_arithmetic · Uses: G001, S012

S014 · implies

Before

step=2;left=73;positive right=48;exact ratio=73/48;floor quotient=1

After

left=right*q+r with r=25 in[0,48);gcd pair=[1, 1]

Conditions: none

An integer d divides both left and right iff it divides right and left−q*right,so the gcd is unchanged.The next nonnegative right is the strictly smaller remainder,so infinite descent is impossible;termination is separate from invariance.

Step identifiers and dependencies

Rule: euclid_each_division_common_divisors_and_strict_descent · Uses: G001, S013

S015 · calculation

Before

Euclid step3 exact ratio := div(48, 25)

After

Euclid step3 exact ratio = 48/25

Conditions: none

Substitute original data and established intermediates exactly,retaining indices,signs and the relevant space.

Step identifiers and dependencies

Rule: exact_rational_arithmetic · Uses: G001, S014

S016 · calculation

Before

Euclid step3 quotient times divisor := mul(1, 25)

After

Euclid step3 quotient times divisor = 25

Conditions: none

Substitute original data and established intermediates exactly,retaining indices,signs and the relevant space.

Step identifiers and dependencies

Rule: exact_rational_arithmetic · Uses: G001, S015

S017 · calculation

Before

Euclid step3 remainder := sub(48, 25)

After

Euclid step3 remainder = 23

Conditions: none

Substitute original data and established intermediates exactly,retaining indices,signs and the relevant space.

Step identifiers and dependencies

Rule: exact_rational_arithmetic · Uses: G001, S016

S018 · implies

Before

step=3;left=48;positive right=25;exact ratio=48/25;floor quotient=1

After

left=right*q+r with r=23 in[0,25);gcd pair=[1, 1]

Conditions: none

An integer d divides both left and right iff it divides right and left−q*right,so the gcd is unchanged.The next nonnegative right is the strictly smaller remainder,so infinite descent is impossible;termination is separate from invariance.

Step identifiers and dependencies

Rule: euclid_each_division_common_divisors_and_strict_descent · Uses: G001, S017

S019 · calculation

Before

Euclid step4 exact ratio := div(25, 23)

After

Euclid step4 exact ratio = 25/23

Conditions: none

Substitute original data and established intermediates exactly,retaining indices,signs and the relevant space.

Step identifiers and dependencies

Rule: exact_rational_arithmetic · Uses: G001, S018

S020 · calculation

Before

Euclid step4 quotient times divisor := mul(1, 23)

After

Euclid step4 quotient times divisor = 23

Conditions: none

Substitute original data and established intermediates exactly,retaining indices,signs and the relevant space.

Step identifiers and dependencies

Rule: exact_rational_arithmetic · Uses: G001, S019

S021 · calculation

Before

Euclid step4 remainder := sub(25, 23)

After

Euclid step4 remainder = 2

Conditions: none

Substitute original data and established intermediates exactly,retaining indices,signs and the relevant space.

Step identifiers and dependencies

Rule: exact_rational_arithmetic · Uses: G001, S020

S022 · implies

Before

step=4;left=25;positive right=23;exact ratio=25/23;floor quotient=1

After

left=right*q+r with r=2 in[0,23);gcd pair=[1, 1]

Conditions: none

An integer d divides both left and right iff it divides right and left−q*right,so the gcd is unchanged.The next nonnegative right is the strictly smaller remainder,so infinite descent is impossible;termination is separate from invariance.

Step identifiers and dependencies

Rule: euclid_each_division_common_divisors_and_strict_descent · Uses: G001, S021

S023 · calculation

Before

Euclid step5 exact ratio := div(23, 2)

After

Euclid step5 exact ratio = 23/2

Conditions: none

Substitute original data and established intermediates exactly,retaining indices,signs and the relevant space.

Step identifiers and dependencies

Rule: exact_rational_arithmetic · Uses: G001, S022

S024 · calculation

Before

Euclid step5 quotient times divisor := mul(11, 2)

After

Euclid step5 quotient times divisor = 22

Conditions: none

Substitute original data and established intermediates exactly,retaining indices,signs and the relevant space.

Step identifiers and dependencies

Rule: exact_rational_arithmetic · Uses: G001, S023

S025 · calculation

Before

Euclid step5 remainder := sub(23, 22)

After

Euclid step5 remainder = 1

Conditions: none

Substitute original data and established intermediates exactly,retaining indices,signs and the relevant space.

Step identifiers and dependencies

Rule: exact_rational_arithmetic · Uses: G001, S024

S026 · implies

Before

step=5;left=23;positive right=2;exact ratio=23/2;floor quotient=11

After

left=right*q+r with r=1 in[0,2);gcd pair=[1, 1]

Conditions: none

An integer d divides both left and right iff it divides right and left−q*right,so the gcd is unchanged.The next nonnegative right is the strictly smaller remainder,so infinite descent is impossible;termination is separate from invariance.

Step identifiers and dependencies

Rule: euclid_each_division_common_divisors_and_strict_descent · Uses: G001, S025

S027 · calculation

Before

Euclid step6 exact ratio := div(2, 1)

After

Euclid step6 exact ratio = 2

Conditions: none

Substitute original data and established intermediates exactly,retaining indices,signs and the relevant space.

Step identifiers and dependencies

Rule: exact_rational_arithmetic · Uses: G001, S026

S028 · calculation

Before

Euclid step6 quotient times divisor := mul(2, 1)

After

Euclid step6 quotient times divisor = 2

Conditions: none

Substitute original data and established intermediates exactly,retaining indices,signs and the relevant space.

Step identifiers and dependencies

Rule: exact_rational_arithmetic · Uses: G001, S027

S029 · calculation

Before

Euclid step6 remainder := sub(2, 2)

After

Euclid step6 remainder = 0

Conditions: none

Substitute original data and established intermediates exactly,retaining indices,signs and the relevant space.

Step identifiers and dependencies

Rule: exact_rational_arithmetic · Uses: G001, S028

S030 · implies

Before

step=6;left=2;positive right=1;exact ratio=2;floor quotient=2

After

left=right*q+r with r=0 in[0,1);gcd pair=[1, 1]

Conditions: none

An integer d divides both left and right iff it divides right and left−q*right,so the gcd is unchanged.The next nonnegative right is the strictly smaller remainder,so infinite descent is impossible;termination is separate from invariance.

Step identifiers and dependencies

Rule: euclid_each_division_common_divisors_and_strict_descent · Uses: G001, S029

S031 · implies

Before

complete division rows=[[1888, 121, 15, 73], [121, 73, 1, 48], [73, 48, 1, 25], [48, 25, 1, 23], [25, 23, 1, 2], [23, 2, 11, 1], [2, 1, 2, 0]];terminal pair=[1, 0]

After

gcd(a,b)=gcd(1,0)=1;all divisions used positive divisors;nonnegative gcd convention

Conditions: none

At termination common divisors are those of the terminal left value,giving its nonnegative gcd.The(0,0)value0 is an explicit separate convention.Do not append a fictitious division by zero.

Step identifiers and dependencies

Rule: euclid_terminal_gcd_not_extra_zero_division · Uses: G001, S030

Reverse checks

  • S031 · premise_and_result_audit — Check against the original data and this step's premises; a one-way implication is not an equivalence.
  • S030 · premise_and_result_audit — Check against the original data and this step's premises; a one-way implication is not an equivalence.
  • S029 · premise_and_result_audit — Recompute Euclid step6 remainder with exact rational arithmetic, not rounded decimals.
  • S028 · premise_and_result_audit — Recompute Euclid step6 quotient times divisor with exact rational arithmetic, not rounded decimals.
  • S027 · premise_and_result_audit — Recompute Euclid step6 exact ratio with exact rational arithmetic, not rounded decimals.
  • S026 · premise_and_result_audit — Check against the original data and this step's premises; a one-way implication is not an equivalence.
  • S025 · premise_and_result_audit — Recompute Euclid step5 remainder with exact rational arithmetic, not rounded decimals.
  • S024 · premise_and_result_audit — Recompute Euclid step5 quotient times divisor with exact rational arithmetic, not rounded decimals.
  • S023 · premise_and_result_audit — Recompute Euclid step5 exact ratio with exact rational arithmetic, not rounded decimals.
  • S022 · premise_and_result_audit — Check against the original data and this step's premises; a one-way implication is not an equivalence.
  • S021 · premise_and_result_audit — Recompute Euclid step4 remainder with exact rational arithmetic, not rounded decimals.
  • S020 · premise_and_result_audit — Recompute Euclid step4 quotient times divisor with exact rational arithmetic, not rounded decimals.
  • S019 · premise_and_result_audit — Recompute Euclid step4 exact ratio with exact rational arithmetic, not rounded decimals.
  • S018 · premise_and_result_audit — Check against the original data and this step's premises; a one-way implication is not an equivalence.
  • S017 · premise_and_result_audit — Recompute Euclid step3 remainder with exact rational arithmetic, not rounded decimals.
  • S016 · premise_and_result_audit — Recompute Euclid step3 quotient times divisor with exact rational arithmetic, not rounded decimals.
  • S015 · premise_and_result_audit — Recompute Euclid step3 exact ratio with exact rational arithmetic, not rounded decimals.
  • S014 · premise_and_result_audit — Check against the original data and this step's premises; a one-way implication is not an equivalence.
  • S013 · premise_and_result_audit — Recompute Euclid step2 remainder with exact rational arithmetic, not rounded decimals.
  • S012 · premise_and_result_audit — Recompute Euclid step2 quotient times divisor with exact rational arithmetic, not rounded decimals.
  • S011 · premise_and_result_audit — Recompute Euclid step2 exact ratio with exact rational arithmetic, not rounded decimals.
  • S010 · premise_and_result_audit — Check against the original data and this step's premises; a one-way implication is not an equivalence.
  • S009 · premise_and_result_audit — Recompute Euclid step1 remainder with exact rational arithmetic, not rounded decimals.
  • S008 · premise_and_result_audit — Recompute Euclid step1 quotient times divisor with exact rational arithmetic, not rounded decimals.
  • S007 · premise_and_result_audit — Recompute Euclid step1 exact ratio with exact rational arithmetic, not rounded decimals.
  • S006 · premise_and_result_audit — Check against the original data and this step's premises; a one-way implication is not an equivalence.
  • S005 · premise_and_result_audit — Recompute Euclid step0 remainder with exact rational arithmetic, not rounded decimals.
  • S004 · premise_and_result_audit — Recompute Euclid step0 quotient times divisor with exact rational arithmetic, not rounded decimals.
  • S003 · premise_and_result_audit — Recompute Euclid step0 exact ratio with exact rational arithmetic, not rounded decimals.
  • S002 · premise_and_result_audit — Check against the original data and this step's premises; a one-way implication is not an equivalence.
  • S001 · premise_and_result_audit — Check against the original data and this step's premises; a one-way implication is not an equivalence.

Result

([[1, 1], [1, 1], [1, 1], [1, 1], [1, 1], [1, 1], [1, 1]], 1, Yes, gcd_invariant_separate_from_termination)

The full substitutions and premise checks give the original answer; source identity,format and status are unchanged.

This question review and source binding

Review date: 2026-10-26

Original questions, answers, step expressions, numeric ASTs and historical records are retained. Source candidate labels remain historical and are not overwritten as formal proof.

Source hashes and review receipts
  • input commit: 0f7be61e2c22317a4075561dc822c87d881a50db
  • original question SHA-256: 3ef62f20f96d323948ca772c532ec482f3e0d31f92b66b07d71c8429b58ccd00
  • candidate record SHA-256: 90c5f6e5a40d89212a7e0ba5c260130c2ce68649817d029dad9d9e3633480791
  • semantic review receipt SHA-256: efee5462991619d6ed9f64f11ddb085e5614ef33f9f8fcd8cf29b9329f8fd301
  • question-first witness SHA-256: acf91fa1622f01d2cf04b2c513294254323665351f660f2628aaafdb869c4ff2
  • Lean: NOT_RUN · human review: NOT_PERFORMED
Same-source full JSON