# Question 30715: Two Parenthesizations of Three Complete Typed Maps

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

[← Question derivation index](https://ocme.evemisslab.com/en/questions/) · [Original question batch](https://ocme.evemisslab.com/en/practice/batch-20261011-advance-20261015-r04-composition-foundations/#q-20261011-advance-20261015-r04-composition-0090)

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.

R0060-30715 · q-20261011-advance-20261015-r04-composition-0090



## Original question and givens

First f, then g, then h: Fin(3)={0,…,2}→Fin(3)→Fin(3)→Fin(4); complete f=[1, 1, 1], g=[2, 0, 1], h=[1, 3, 0]. Give ([n,m,k,l], complete (h∘g)∘f table, complete h∘(g∘f) table, every [x,f(x),g(f(x)),h(g(f(x)))] row, are the two tables equal?). All cells, including unused cells, must be typed.


- G001 — First f, then g, then h: Fin(3)={0,…,2}→Fin(3)→Fin(3)→Fin(4); complete f=[1, 1, 1], g=[2, 0, 1], h=[1, 3, 0]. Give ([n,m,k,l], complete (h∘g)∘f table, complete h∘(g∘f) table, every [x,f(x),g(f(x)),h(g(f(x)))] row, are the two tables equal?). All cells, including unused cells, must be typed.





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





## Step-by-step derivation

S001 · impliesBefore

source roles = [qf-density15-composition-three-map-parentheses, density15_composition_three_map_parentheses, finite_explicit_composition_protocol]

After

derived = [[dimensions, HG_after_F, H_after_GF, ALL_paths, equal]]

Conditions: none

density14/15 use FULL-prefix underscores;density17 uses LOCAL hyphens.The coordinate and circle frames differ.Retain THIS family ordered answer roles/types and all original bilingual JSON/status.

Step identifiers and dependenciesRule: R60_EXACT_perbank_operation_domain_FRAME_and_output_roles · Uses: G001





S002 · impliesBefore

source roles = [f, 3, 3, [1, 1, 1]]

After

derived = [[1, 1, 1]]

Conditions: none

Require the WHOLE declared table length to equal its source size and EVERY cell to lie in Fin(m),including unused cells.Even an empty outer source cannot waive this complete table typing obligation.

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





S003 · impliesBefore

source roles = [g, 3, 3, [2, 0, 1]]

After

derived = [[2, 0, 1]]

Conditions: none

Require the WHOLE declared table length to equal its source size and EVERY cell to lie in Fin(m),including unused cells.Even an empty outer source cannot waive this complete table typing obligation.

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





S004 · impliesBefore

source roles = [h, 3, 4, [1, 3, 0]]

After

derived = [[1, 3, 0]]

Conditions: none

Require the WHOLE declared table length to equal its source size and EVERY cell to lie in Fin(m),including unused cells.Even an empty outer source cannot waive this complete table typing obligation.

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





S005 · impliesBefore

source roles = [3, 3, 3, 0, [1, 1, 1], [2, 0, 1]]

After

derived = [[0, 1, 0]]

Conditions: none

At ORIGINAL source x FIRST read y=f(x),THEN evaluate g(y) in the declared middle Fin(m).Retain every intermediate value/index;this is neither multiplication nor exchanged order.

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





S006 · impliesBefore

source roles = [3, 3, 3, 1, [1, 1, 1], [2, 0, 1]]

After

derived = [[1, 1, 0]]

Conditions: none

At ORIGINAL source x FIRST read y=f(x),THEN evaluate g(y) in the declared middle Fin(m).Retain every intermediate value/index;this is neither multiplication nor exchanged order.

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





S007 · impliesBefore

source roles = [3, 3, 3, 2, [1, 1, 1], [2, 0, 1]]

After

derived = [[2, 1, 0]]

Conditions: none

At ORIGINAL source x FIRST read y=f(x),THEN evaluate g(y) in the declared middle Fin(m).Retain every intermediate value/index;this is neither multiplication nor exchanged order.

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





S008 · impliesBefore

source roles = [3, 3, 3, 4, [1, 1, 1], [2, 0, 1], [1, 3, 0]]

After

derived = [[0, 1, 3], [1, 1, 1], [1, 1, 1], [[0, 1, 0, 1], [1, 1, 0, 1], [2, 1, 0, 1]], Yes]

Conditions: none

Compute HG then F on one side,and GF then H on the other,comparing EVERY original source.Even an empty outer source requires ALL unused cells typed first.This is exact checking of the given finite tables,not a new formal certificate for every function identity.

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









## Reverse checks


- S008 · premise_and_result_audit — Reverse-check using the ORIGINAL data,types,indices and premises.Consistency auditing does not claim the conclusion uniquely determines its inputs.Keep finite candidates,independent review,formal proof and publication separate.
- S007 · premise_and_result_audit — Reverse-check using the ORIGINAL data,types,indices and premises.Consistency auditing does not claim the conclusion uniquely determines its inputs.Keep finite candidates,independent review,formal proof and publication separate.
- S006 · premise_and_result_audit — Reverse-check using the ORIGINAL data,types,indices and premises.Consistency auditing does not claim the conclusion uniquely determines its inputs.Keep finite candidates,independent review,formal proof and publication separate.
- S005 · premise_and_result_audit — Reverse-check using the ORIGINAL data,types,indices and premises.Consistency auditing does not claim the conclusion uniquely determines its inputs.Keep finite candidates,independent review,formal proof and publication separate.
- S004 · premise_and_result_audit — Reverse-check using the ORIGINAL data,types,indices and premises.Consistency auditing does not claim the conclusion uniquely determines its inputs.Keep finite candidates,independent review,formal proof and publication separate.
- S003 · premise_and_result_audit — Reverse-check using the ORIGINAL data,types,indices and premises.Consistency auditing does not claim the conclusion uniquely determines its inputs.Keep finite candidates,independent review,formal proof and publication separate.
- S002 · premise_and_result_audit — Reverse-check using the ORIGINAL data,types,indices and premises.Consistency auditing does not claim the conclusion uniquely determines its inputs.Keep finite candidates,independent review,formal proof and publication separate.
- S001 · premise_and_result_audit — Reverse-check using the ORIGINAL data,types,indices and premises.Consistency auditing does not claim the conclusion uniquely determines its inputs.Keep finite candidates,independent review,formal proof and publication separate.





## Result

([3, 3, 3, 4], [1, 1, 1], [1, 1, 1], [[0, 1, 0, 1], [1, 1, 0, 1], [2, 1, 0, 1]], 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: 1f8dbb735053ff9189dcb86c138ef9eb8f822f730196826a2f166e0193920147
- candidate record SHA-256: d10cdfd97111ec20f9aad7e9ffe55f1735b4d2e4e1fdd3e0e2a0319d5b05b8ce
- semantic review receipt SHA-256: d6b5a409bf933281a46617cd715d8016fd5ca3d6fb76f77d179ac2ecd9d608bf
- question-first witness SHA-256: f80ecf598c6893a580af018e1a82849b33ee6887efb48a6a1d69569aa17f12e4
- Lean: NOT_RUN · human review: NOT_PERFORMED

[Same-source full JSON](https://ocme.evemisslab.com/data/question-derivations/questions/q-20261011-advance-20261015-r04-composition-0090.json)




