# Question 7701: Changed Codomain Must Contain All Original Outputs

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

[← Question derivation index](https://ocme.evemisslab.com/en/questions/) · [Original question batch](https://ocme.evemisslab.com/en/practice/batch-20261012-advance-20261016-r07-surjective-foundations/#q-20261012-advance-20261016-r07-surjective-0026)

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.

R0014-07701 · q-20261012-advance-20261016-r07-surjective-0026



## Original question and givens

Finite types start at 0: Fin(0)=∅→Fin(0), complete images=[]. Check the whole original total table before any candidate evaluation; empty-function properties depend on the declared codomain. Candidate original-order codomain=[] may use distinct integer labels outside the original Fin(m). Give (original images, sorted new codomain, are all original outputs in it?, missing new targets or outside-codomain, surjectivity or not-evaluated).


- G001 — Finite types start at 0: Fin(0)=∅→Fin(0), complete images=[]. Check the whole original total table before any candidate evaluation; empty-function properties depend on the declared codomain. Candidate original-order codomain=[] may use distinct integer labels outside the original Fin(m). Give (original images, sorted new codomain, are all original outputs in it?, missing new targets or outside-codomain, surjectivity or not-evaluated).





## 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-surjective](https://ocme.evemisslab.com/en/mko/mko-surjective/)





## Step-by-step derivation

S001 · impliesBefore

n=0;m=0;images=[]

After

all original inputs and outputs form a typed total table;labels start at0

Conditions: none

First validate the entire original table as a total function from Fin(n) to Fin(m),including cells not used by a query.Only then evaluate preimages for eligible targets and surjectivity.

Step identifiers and dependenciesRule: finite_surjection_typed_scope · Uses: G001





S002 · impliesBefore

original images=[];candidate codomain=[]

After

all original outputs eligible=Yes

Conditions: none

The new codomain may use arbitrary distinct integer labels,but must contain every original output.Do not discard outside outputs to manufacture function eligibility.

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





S003 · impliesBefore

phase=changed codomain;targets=[];fibers=[]

After

missing=[];surjective=Yes

Conditions: none

Surjectivity is relative to the declared codomain:every target needs a preimage.An empty codomain has no targets to test and satisfies the condition;an empty domain with a nonempty codomain misses every target.

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





S004 · impliesBefore

qualified=Yes;missing/status=[]

After

surjectivity/status=Yes

Conditions: none

If an output is outside the new codomain,the specified function type is not valid,so surjectivity is unevaluated rather than False.When eligible,use all targets of the new codomain.

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









## Reverse checks


- S004 · premise_and_result_audit — Check against the original data and this step's premises; a one-way implication is not an equivalence.
- S003 · premise_and_result_audit — Check against the original data and this step's premises; a one-way implication is not an equivalence.
- 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

([], [], Yes, [], Yes)

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: 1bb18792624db4fcc30c8b07fa50c7b4d643d7961ff313a77dfc01ec83d91385
- candidate record SHA-256: f9e0b5655d874b9cc12bf0125c6c35839a031fa6c57c717c787f994515a71286
- semantic review receipt SHA-256: 23ba8196e85a09c03add0a87f96bec5d67a00dc648d1d68eef89101525b41a77
- question-first witness SHA-256: 17d59afc327b7cb8b6e588686d6dc1abbccd384d8ba32b8c046652f96821d705
- Lean: NOT_RUN · human review: NOT_PERFORMED

[Same-source full JSON](https://ocme.evemisslab.com/data/question-derivations/questions/q-20261012-advance-20261016-r07-surjective-0026.json)




