# Question 1528: Forward Invariance versus Pointwise Fixing

[Return to catalogue page 8](https://ocme.evemisslab.com/en/questions/page/8/)

[← Question derivation index](https://ocme.evemisslab.com/en/questions/) · [Original question batch](https://ocme.evemisslab.com/en/practice/batch-20261013-advance-20261020-r01-discrete-dynamical-system-foundations/#q-20261013-advance-20261020-r01-discrete-dynamical-system-0078)

This teaching derivation has second-context AI mathematical and bilingual semantic review, limited to the model and assumptions stated in this question. It has no human review or new Lean proof and does not promote the original question or MKO to Canonical truth.

R0002-01528 · q-20261013-advance-20261020-r01-discrete-dynamical-system-0078



## Original question and givens

Use the complete finite self-map on Fin(7)={0,…,6} given by T(x)=(a*x+b) mod 7, a=3, b=-1. Choose the least nonnegative residue, including for negative a*x+b. Time is discrete, indexed from 0; a finite orbit is not a general stability result. Candidate subset=[0, 2], normalized as a set. Give (modulus, a, b, normalized subset, sorted distinct image, is the image contained in the subset?).


- G001 — Use the complete finite self-map on Fin(7)={0,…,6} given by T(x)=(a*x+b) mod 7, a=3, b=-1. Choose the least nonnegative residue, including for negative a*x+b. Time is discrete, indexed from 0; a finite orbit is not a general stability result. Candidate subset=[0, 2], normalized as a set. Give (modulus, a, b, normalized subset, sorted distinct image, is the image contained in the subset?).





## 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.


- [mko-discrete-dynamical-system](https://ocme.evemisslab.com/en/mko/mko-discrete-dynamical-system/)





## Step-by-step derivation

S001 · impliesBefore

X={0 through 6}; T(x)=(3x+(-1)) mod 7

After

remainder representative always lies in X

Conditions: none

Fix the full finite state carrier and the same update rule;negative integers also use the standard remainder from0 through n−1.

Step identifiers and dependenciesRule: finite_total_map · Uses: G001





S002 · impliesBefore

listed subset=[0, 2]

After

set S=[0, 2]

Conditions: none

Deduplication and sorting give a consistent set presentation without adding states.

Step identifiers and dependenciesRule: subset_normalization · Uses: G001, S001





S003 · calculationBefore

member0: a·x := mul(3, 0)

After

member0: a·x = 0

Conditions: none

Multiply the original coefficient by the current state;do not clip negative values to0.

Step identifiers and dependenciesRule: exact_rational_arithmetic · Uses: G001, S002





S004 · calculationBefore

member0: a·x+b := sum(0, -1)

After

member0: a·x+b = -1

Conditions: none

Add the same offset before reducing modulo n.

Step identifiers and dependenciesRule: exact_rational_arithmetic · Uses: G001, S003





S005 · impliesBefore

reduce -1 modulo 7

After

-1=-1·7+6

Conditions: none

The integer identity together with0≤remainder<n determines the next state.

Step identifiers and dependenciesRule: euclidean_remainder · Uses: G001, S004





S006 · calculationBefore

member2: a·x := mul(3, 2)

After

member2: a·x = 6

Conditions: none

Multiply the original coefficient by the current state;do not clip negative values to0.

Step identifiers and dependenciesRule: exact_rational_arithmetic · Uses: G001, S005





S007 · calculationBefore

member2: a·x+b := sum(6, -1)

After

member2: a·x+b = 5

Conditions: none

Add the same offset before reducing modulo n.

Step identifiers and dependenciesRule: exact_rational_arithmetic · Uses: G001, S006





S008 · impliesBefore

reduce 5 modulo 7

After

5=0·7+5

Conditions: none

The integer identity together with0≤remainder<n determines the next state.

Step identifiers and dependenciesRule: euclidean_remainder · Uses: G001, S007





S009 · impliesBefore

T(S)=[5, 6]

After

T(S)⊆S: No; exiting witnesses=[[0, 6], [2, 5]]

Conditions: none

Every image must remain in S;one explicit exit refutes invariance.The empty S satisfies the condition vacuously.

Step identifiers and dependenciesRule: forward_invariance · Uses: G001, S008





S010 · impliesBefore

x₀∈S and T(S)⊆S

After

induction keeps every later iterate in S

Conditions: none

When the condition holds,the initial state and every update stay in S,so induction gives all later iterates,not merely one arbitrary short orbit.

Step identifiers and dependenciesRule: invariance_induction · Uses: G001, S009









## Reverse checks


- 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 — Check against the original data and this step's premises; a one-way implication is not an equivalence.
- S008 · premise_and_result_audit — Check against the original data and this step's premises; a one-way implication is not an equivalence.
- S007 · premise_and_result_audit — Recompute member2: a·x+b with exact rational arithmetic, not rounded decimals.
- S006 · premise_and_result_audit — Recompute member2: a·x with exact rational arithmetic, not rounded decimals.
- S005 · premise_and_result_audit — Check against the original data and this step's premises; a one-way implication is not an equivalence.
- S004 · premise_and_result_audit — Recompute member0: a·x+b with exact rational arithmetic, not rounded decimals.
- S003 · premise_and_result_audit — Recompute member0: a·x 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

(7, 3, -1, [0, 2], [5, 6], No)

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: 9e4eccedc9f318da8fdd52b0a3ed7734ee7c13346057d2158b07bcf0c303ceb4
- candidate record SHA-256: b046147a19feb8375973db6d9d1b3564b44cfda839c92c45aa9a01a3dbbb9e71
- semantic review receipt SHA-256: 340d74dcc6e37df6249594a0b79a9ee2af804337b7847478b3c1342af9722861
- question-first witness SHA-256: 9a06233d190d31a16f13fb03b6c3ceba4cbb748fff6c997941f66ab1888dcca8
- Lean: NOT_RUN · human review: NOT_PERFORMED

[Same-source full JSON](https://ocme.evemisslab.com/data/question-derivations/questions/q-20261013-advance-20261020-r01-discrete-dynamical-system-0078.json)




