Step-by-step derivation
S001 · implies
Before
n=5; a=2; b=4
After
S={0,...,4}; T(z)=(a·z+b) mod nConditions: none
Remainders lie in0,...,n−1,so every state has one successor in the same finite set;negative dividends do not produce negative canonical remainders.
Step identifiers and dependencies
Rule: finite_self_map · Uses: G001
S002 · implies
Before
start=0
After
record each state before its first successor calculation
Conditions: none
Start with the specified point itself,not its first successor.
Step identifiers and dependencies
Rule: orbit_initial_state · Uses: G001, S001
S003 · calculation
Before
point0 step1 product := mul(2, 0)
After
point0 step1 product = 0
Conditions: none
Multiply the current state by the original coefficient a,retaining its sign.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S002
S004 · calculation
Before
point0 step1 affine value := sum(0, 4)
After
point0 step1 affine value = 4
Conditions: none
Then add the original constant b;this integer is not yet the canonical state.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S003
S005 · implies
Before
Euclidean division of 4 by 5
After
4=0·5+4
Conditions: none
Check the transition using quotient and nonnegative remainder;n>0 and0≤remainder<n ensure uniqueness.
Step identifiers and dependencies
Rule: orbit_successor · Uses: G001, S004
S006 · calculation
Before
point0 step2 product := mul(2, 4)
After
point0 step2 product = 8
Conditions: none
Multiply the current state by the original coefficient a,retaining its sign.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S005
S007 · calculation
Before
point0 step2 affine value := sum(8, 4)
After
point0 step2 affine value = 12
Conditions: none
Then add the original constant b;this integer is not yet the canonical state.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S006
S008 · implies
Before
Euclidean division of 12 by 5
After
12=2·5+2
Conditions: none
Check the transition using quotient and nonnegative remainder;n>0 and0≤remainder<n ensure uniqueness.
Step identifiers and dependencies
Rule: orbit_successor · Uses: G001, S007
S009 · calculation
Before
point0 step3 product := mul(2, 2)
After
point0 step3 product = 4
Conditions: none
Multiply the current state by the original coefficient a,retaining its sign.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S008
S010 · calculation
Before
point0 step3 affine value := sum(4, 4)
After
point0 step3 affine value = 8
Conditions: none
Then add the original constant b;this integer is not yet the canonical state.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S009
S011 · implies
Before
Euclidean division of 8 by 5
After
8=1·5+3
Conditions: none
Check the transition using quotient and nonnegative remainder;n>0 and0≤remainder<n ensure uniqueness.
Step identifiers and dependencies
Rule: orbit_successor · Uses: G001, S010
S012 · calculation
Before
point0 step4 product := mul(2, 3)
After
point0 step4 product = 6
Conditions: none
Multiply the current state by the original coefficient a,retaining its sign.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S011
S013 · calculation
Before
point0 step4 affine value := sum(6, 4)
After
point0 step4 affine value = 10
Conditions: none
Then add the original constant b;this integer is not yet the canonical state.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S012
S014 · implies
Before
Euclidean division of 10 by 5
After
10=2·5+0
Conditions: none
Check the transition using quotient and nonnegative remainder;n>0 and0≤remainder<n ensure uniqueness.
Step identifiers and dependencies
Rule: orbit_successor · Uses: G001, S013
S015 · implies
Before
distinct trace=[0, 4, 2, 3]; first repeated state=0
After
cycle_start=0; starting-point least period=4
Conditions: none
The first repeated state locates the cycle entry.If it is the initial point,the preceding states are distinct,so the first return is the least positive period.If entry is later,the initial point lies outside the cycle and never returns.
Step identifiers and dependencies
Rule: finite_orbit_certificate · Uses: G001, S014
S016 · implies
Before
start=1
After
record each state before its first successor calculation
Conditions: none
Start with the specified point itself,not its first successor.
Step identifiers and dependencies
Rule: orbit_initial_state · Uses: G001, S015
S017 · calculation
Before
point1 step1 product := mul(2, 1)
After
point1 step1 product = 2
Conditions: none
Multiply the current state by the original coefficient a,retaining its sign.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S016
S018 · calculation
Before
point1 step1 affine value := sum(2, 4)
After
point1 step1 affine value = 6
Conditions: none
Then add the original constant b;this integer is not yet the canonical state.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S017
S019 · implies
Before
Euclidean division of 6 by 5
After
6=1·5+1
Conditions: none
Check the transition using quotient and nonnegative remainder;n>0 and0≤remainder<n ensure uniqueness.
Step identifiers and dependencies
Rule: orbit_successor · Uses: G001, S018
S020 · implies
Before
distinct trace=[1]; first repeated state=1
After
cycle_start=0; starting-point least period=1
Conditions: none
The first repeated state locates the cycle entry.If it is the initial point,the preceding states are distinct,so the first return is the least positive period.If entry is later,the initial point lies outside the cycle and never returns.
Step identifiers and dependencies
Rule: finite_orbit_certificate · Uses: G001, S019
S021 · implies
Before
start=2
After
record each state before its first successor calculation
Conditions: none
Start with the specified point itself,not its first successor.
Step identifiers and dependencies
Rule: orbit_initial_state · Uses: G001, S020
S022 · calculation
Before
point2 step1 product := mul(2, 2)
After
point2 step1 product = 4
Conditions: none
Multiply the current state by the original coefficient a,retaining its sign.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S021
S023 · calculation
Before
point2 step1 affine value := sum(4, 4)
After
point2 step1 affine value = 8
Conditions: none
Then add the original constant b;this integer is not yet the canonical state.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S022
S024 · implies
Before
Euclidean division of 8 by 5
After
8=1·5+3
Conditions: none
Check the transition using quotient and nonnegative remainder;n>0 and0≤remainder<n ensure uniqueness.
Step identifiers and dependencies
Rule: orbit_successor · Uses: G001, S023
S025 · calculation
Before
point2 step2 product := mul(2, 3)
After
point2 step2 product = 6
Conditions: none
Multiply the current state by the original coefficient a,retaining its sign.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S024
S026 · calculation
Before
point2 step2 affine value := sum(6, 4)
After
point2 step2 affine value = 10
Conditions: none
Then add the original constant b;this integer is not yet the canonical state.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S025
S027 · implies
Before
Euclidean division of 10 by 5
After
10=2·5+0
Conditions: none
Check the transition using quotient and nonnegative remainder;n>0 and0≤remainder<n ensure uniqueness.
Step identifiers and dependencies
Rule: orbit_successor · Uses: G001, S026
S028 · calculation
Before
point2 step3 product := mul(2, 0)
After
point2 step3 product = 0
Conditions: none
Multiply the current state by the original coefficient a,retaining its sign.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S027
S029 · calculation
Before
point2 step3 affine value := sum(0, 4)
After
point2 step3 affine value = 4
Conditions: none
Then add the original constant b;this integer is not yet the canonical state.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S028
S030 · implies
Before
Euclidean division of 4 by 5
After
4=0·5+4
Conditions: none
Check the transition using quotient and nonnegative remainder;n>0 and0≤remainder<n ensure uniqueness.
Step identifiers and dependencies
Rule: orbit_successor · Uses: G001, S029
S031 · calculation
Before
point2 step4 product := mul(2, 4)
After
point2 step4 product = 8
Conditions: none
Multiply the current state by the original coefficient a,retaining its sign.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S030
S032 · calculation
Before
point2 step4 affine value := sum(8, 4)
After
point2 step4 affine value = 12
Conditions: none
Then add the original constant b;this integer is not yet the canonical state.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S031
S033 · implies
Before
Euclidean division of 12 by 5
After
12=2·5+2
Conditions: none
Check the transition using quotient and nonnegative remainder;n>0 and0≤remainder<n ensure uniqueness.
Step identifiers and dependencies
Rule: orbit_successor · Uses: G001, S032
S034 · implies
Before
distinct trace=[2, 3, 0, 4]; first repeated state=2
After
cycle_start=0; starting-point least period=4
Conditions: none
The first repeated state locates the cycle entry.If it is the initial point,the preceding states are distinct,so the first return is the least positive period.If entry is later,the initial point lies outside the cycle and never returns.
Step identifiers and dependencies
Rule: finite_orbit_certificate · Uses: G001, S033
S035 · implies
Before
start=3
After
record each state before its first successor calculation
Conditions: none
Start with the specified point itself,not its first successor.
Step identifiers and dependencies
Rule: orbit_initial_state · Uses: G001, S034
S036 · calculation
Before
point3 step1 product := mul(2, 3)
After
point3 step1 product = 6
Conditions: none
Multiply the current state by the original coefficient a,retaining its sign.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S035
S037 · calculation
Before
point3 step1 affine value := sum(6, 4)
After
point3 step1 affine value = 10
Conditions: none
Then add the original constant b;this integer is not yet the canonical state.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S036
S038 · implies
Before
Euclidean division of 10 by 5
After
10=2·5+0
Conditions: none
Check the transition using quotient and nonnegative remainder;n>0 and0≤remainder<n ensure uniqueness.
Step identifiers and dependencies
Rule: orbit_successor · Uses: G001, S037
S039 · calculation
Before
point3 step2 product := mul(2, 0)
After
point3 step2 product = 0
Conditions: none
Multiply the current state by the original coefficient a,retaining its sign.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S038
S040 · calculation
Before
point3 step2 affine value := sum(0, 4)
After
point3 step2 affine value = 4
Conditions: none
Then add the original constant b;this integer is not yet the canonical state.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S039
S041 · implies
Before
Euclidean division of 4 by 5
After
4=0·5+4
Conditions: none
Check the transition using quotient and nonnegative remainder;n>0 and0≤remainder<n ensure uniqueness.
Step identifiers and dependencies
Rule: orbit_successor · Uses: G001, S040
S042 · calculation
Before
point3 step3 product := mul(2, 4)
After
point3 step3 product = 8
Conditions: none
Multiply the current state by the original coefficient a,retaining its sign.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S041
S043 · calculation
Before
point3 step3 affine value := sum(8, 4)
After
point3 step3 affine value = 12
Conditions: none
Then add the original constant b;this integer is not yet the canonical state.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S042
S044 · implies
Before
Euclidean division of 12 by 5
After
12=2·5+2
Conditions: none
Check the transition using quotient and nonnegative remainder;n>0 and0≤remainder<n ensure uniqueness.
Step identifiers and dependencies
Rule: orbit_successor · Uses: G001, S043
S045 · calculation
Before
point3 step4 product := mul(2, 2)
After
point3 step4 product = 4
Conditions: none
Multiply the current state by the original coefficient a,retaining its sign.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S044
S046 · calculation
Before
point3 step4 affine value := sum(4, 4)
After
point3 step4 affine value = 8
Conditions: none
Then add the original constant b;this integer is not yet the canonical state.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S045
S047 · implies
Before
Euclidean division of 8 by 5
After
8=1·5+3
Conditions: none
Check the transition using quotient and nonnegative remainder;n>0 and0≤remainder<n ensure uniqueness.
Step identifiers and dependencies
Rule: orbit_successor · Uses: G001, S046
S048 · implies
Before
distinct trace=[3, 0, 4, 2]; first repeated state=3
After
cycle_start=0; starting-point least period=4
Conditions: none
The first repeated state locates the cycle entry.If it is the initial point,the preceding states are distinct,so the first return is the least positive period.If entry is later,the initial point lies outside the cycle and never returns.
Step identifiers and dependencies
Rule: finite_orbit_certificate · Uses: G001, S047
S049 · implies
Before
start=4
After
record each state before its first successor calculation
Conditions: none
Start with the specified point itself,not its first successor.
Step identifiers and dependencies
Rule: orbit_initial_state · Uses: G001, S048
S050 · calculation
Before
point4 step1 product := mul(2, 4)
After
point4 step1 product = 8
Conditions: none
Multiply the current state by the original coefficient a,retaining its sign.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S049
S051 · calculation
Before
point4 step1 affine value := sum(8, 4)
After
point4 step1 affine value = 12
Conditions: none
Then add the original constant b;this integer is not yet the canonical state.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S050
S052 · implies
Before
Euclidean division of 12 by 5
After
12=2·5+2
Conditions: none
Check the transition using quotient and nonnegative remainder;n>0 and0≤remainder<n ensure uniqueness.
Step identifiers and dependencies
Rule: orbit_successor · Uses: G001, S051
S053 · calculation
Before
point4 step2 product := mul(2, 2)
After
point4 step2 product = 4
Conditions: none
Multiply the current state by the original coefficient a,retaining its sign.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S052
S054 · calculation
Before
point4 step2 affine value := sum(4, 4)
After
point4 step2 affine value = 8
Conditions: none
Then add the original constant b;this integer is not yet the canonical state.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S053
S055 · implies
Before
Euclidean division of 8 by 5
After
8=1·5+3
Conditions: none
Check the transition using quotient and nonnegative remainder;n>0 and0≤remainder<n ensure uniqueness.
Step identifiers and dependencies
Rule: orbit_successor · Uses: G001, S054
S056 · calculation
Before
point4 step3 product := mul(2, 3)
After
point4 step3 product = 6
Conditions: none
Multiply the current state by the original coefficient a,retaining its sign.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S055
S057 · calculation
Before
point4 step3 affine value := sum(6, 4)
After
point4 step3 affine value = 10
Conditions: none
Then add the original constant b;this integer is not yet the canonical state.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S056
S058 · implies
Before
Euclidean division of 10 by 5
After
10=2·5+0
Conditions: none
Check the transition using quotient and nonnegative remainder;n>0 and0≤remainder<n ensure uniqueness.
Step identifiers and dependencies
Rule: orbit_successor · Uses: G001, S057
S059 · calculation
Before
point4 step4 product := mul(2, 0)
After
point4 step4 product = 0
Conditions: none
Multiply the current state by the original coefficient a,retaining its sign.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S058
S060 · calculation
Before
point4 step4 affine value := sum(0, 4)
After
point4 step4 affine value = 4
Conditions: none
Then add the original constant b;this integer is not yet the canonical state.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S059
S061 · implies
Before
Euclidean division of 4 by 5
After
4=0·5+4
Conditions: none
Check the transition using quotient and nonnegative remainder;n>0 and0≤remainder<n ensure uniqueness.
Step identifiers and dependencies
Rule: orbit_successor · Uses: G001, S060
S062 · implies
Before
distinct trace=[4, 2, 3, 0]; first repeated state=4
After
cycle_start=0; starting-point least period=4
Conditions: none
The first repeated state locates the cycle entry.If it is the initial point,the preceding states are distinct,so the first return is the least positive period.If entry is later,the initial point lies outside the cycle and never returns.
Step identifiers and dependencies
Rule: finite_orbit_certificate · Uses: G001, S061
S063 · implies
Before
[[0, 4], [1, 1], [2, 4], [3, 4], [4, 4]]
After
least positive period≤1: [1]
Conditions: none
Cover all n states;select only periodic points whose least positive period is at most the bound,not transient points that merely enter a cycle.
Step identifiers and dependencies
Rule: least_period_bound_filter · Uses: G001, S062