# Question 7779: Two Target-Type Guards, Complete Fibers, and Least Preimages

[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-0079)

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-07779 · q-20261012-advance-20261016-r07-surjective-0079



## Original question and givens

Finite types start at 0: Fin(3)={0,…,2}→Fin(2), complete images=[0, 0, 1]. Check the whole original total table before any candidate evaluation; empty-function properties depend on the declared codomain. Ordered target candidates=[0, 1]. Give (original images, two codomain-eligibility values, fibers or outside-codomain, each least preimage or does-not-exist/outside-codomain).


- G001 — Finite types start at 0: Fin(3)={0,…,2}→Fin(2), complete images=[0, 0, 1]. Check the whole original total table before any candidate evaluation; empty-function properties depend on the declared codomain. Ordered target candidates=[0, 1]. Give (original images, two codomain-eligibility values, fibers or outside-codomain, each least preimage or does-not-exist/outside-codomain).





## 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=3;m=2;images=[0, 0, 1]

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

query0=0;codomain Fin(2);original images=[0, 0, 1]

After

eligible=Yes;fiber/status=[0, 1];least/status=0

Conditions: none

First check0≤target<m.A legal target with no preimage has an empty fiber and no least preimage.An outside target is not a legal empty fiber,and negative indexing is not used.

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





S003 · impliesBefore

query1=1;codomain Fin(2);original images=[0, 0, 1]

After

eligible=Yes;fiber/status=[2];least/status=2

Conditions: none

First check0≤target<m.A legal target with no preimage has an empty fiber and no least preimage.An outside target is not a legal empty fiber,and negative indexing is not used.

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









## Reverse checks


- 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

([0, 0, 1], [Yes, Yes], [[0, 1], [2]], [0, 2])

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: 6f5625ef3088f4afb5480ee6fa0c152116709ef0724655d326b0e875688bb491
- candidate record SHA-256: 7258794ceb352094fc1491fab58dff240d176dcf71cf5d9aff85cae4c9226edd
- 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-0079.json)




