{
  "schema_version": "ocme-reviewed-question-reader-v1",
  "question_id": "q-20261011-advance-20261015-r04-composition-0050",
  "pilot_number": "R0060-30700",
  "number": 30700,
  "family_id": "qf-density15-composition-restricted-table-domain",
  "title": {
    "zh-Hant": "第 30700 題：受限中間域的允許來源",
    "en": "Question 30700: Restricted Middle Domain with Original Pairing Preserved"
  },
  "original_question": {
    "schema_version": "ocme-question-v0.1",
    "id": "q-20261011-advance-20261015-r04-composition-0050",
    "batch_id": "batch-20261011-advance-20261015-r04-composition-foundations",
    "language": "zh-Hant",
    "source_mko_ids": [
      "mko-composition"
    ],
    "title_zh": "受限中間域的允許來源",
    "stem_zh": "先f後g，明示中間域。Fin(5)=[0, 1, 2, 3, 4]、Fin(3)=[0, 1, 2]、Fin(3)=[0, 1, 2]。完整f表=[2, 0, 2, 0, 2]，g的原序dom=[2, 0]，與dom原序配對g值=[1, 2]。求 ([n,m,k], 排序dom, 允許來源, 對應輸出, 拒絕來源)，不改原dom/g配對。",
    "answer": {
      "kind": "expression",
      "value": "([5, 3, 3], [0, 2], [0, 1, 2, 3, 4], [1, 2, 1, 2, 1], [])",
      "explanation_zh": "中間域限制與允許合成=([5, 3, 3], [0, 2], [0, 1, 2, 3, 4], [1, 2, 1, 2, 1], [])。先以原序建立dom到g值的配對，僅在f輸出入域時求值；另排序呈現域。未入g域不求g值。合成不當乘法或任意交換，有限路徑非全部函數等式形式證明。"
    },
    "difficulty": {
      "band": "upper_secondary",
      "level": 3,
      "skills": [
        "受限中間域的允許來源"
      ]
    },
    "variant": {
      "family_id": "qf-density15-composition-restricted-table-domain",
      "seed": 202610154050,
      "parameters": {
        "n": 5,
        "m": 3,
        "k": 3,
        "f": [
          2,
          0,
          2,
          0,
          2
        ],
        "dom": [
          2,
          0
        ],
        "g": [
          1,
          2
        ],
        "domain": "finite_explicit_composition_protocol",
        "operation": "density15_composition_restricted_table_domain",
        "semantic_template": "qf-density15-composition-restricted-table-domain/[5,3,3,[0,2],[[0,1],[1,2],[2,1],[3,2],[4,1]]]"
      }
    },
    "verification": {
      "status": "candidate",
      "checks": [
        "producer_exact_integer_rational_arithmetic",
        "producer_finite_enumeration",
        "producer_source_snapshot_check",
        "producer_substantive_template_deduplication",
        "producer_json_schema"
      ],
      "warning_zh": "僅為產生端候選及自檢；主端須另做獨立驗收，不構成人工審定、普遍證明或形式 Evidence。"
    },
    "provenance": {
      "generator_role": "question_producer",
      "generator_model": "model_unknown",
      "generated_at": "2026-10-11",
      "contract_version": "ocme-question-factory-v0.1"
    }
  },
  "original_english_edition": {
    "schema_version": "ocme-question-localization-v0.1",
    "question_id": "q-20261011-advance-20261015-r04-composition-0050",
    "batch_id": "batch-20261011-advance-20261015-r04-composition-foundations",
    "locale": "en",
    "translation_state": "ai_candidate",
    "source": {
      "question_sha256": "458297a70b337ed302444b275a8a0f889eb2fdbf15462813fb1e91bf183fb865",
      "family_id": "qf-density15-composition-restricted-table-domain",
      "seed": 202610154050,
      "semantic_template": "qf-density15-composition-restricted-table-domain/[5,3,3,[0,2],[[0,1],[1,2],[2,1],[3,2],[4,1]]]"
    },
    "fields": {
      "title": "Restricted Middle Domain with Original Pairing Preserved",
      "stem": "First f, then g: Fin(5)={0,…,4}, middle=Fin(3)={0,…,2}, target=Fin(3)={0,…,2}. Complete f=[2, 0, 2, 0, 2]; g has original ordered dom=[2, 0] paired with g values=[1, 2]. Give ([n,m,k], sorted dom, allowed source indices, aligned outputs, rejected source indices); retain the original dom/g pairing.",
      "answer": {
        "kind": "expression",
        "value": "([5, 3, 3], [0, 2], [0, 1, 2, 3, 4], [1, 2, 1, 2, 1], [])",
        "explanation": "Construct g’s lookup using its original pairing before sorting the displayed domain; evaluate only when f(x) lies in that domain. Never evaluate g outside it. The exact result, retaining the requested order, is ([5, 3, 3], [0, 2], [0, 1, 2, 3, 4], [1, 2, 1, 2, 1], [])."
      },
      "skills": [
        "Restricted Middle Domain with Original Pairing Preserved"
      ],
      "verification_warning": "This is a candidate exercise. Mechanical recomputation checks only the stated conditions and this instance; it is neither a formal proof nor human review."
    }
  },
  "givens": [
    {
      "id": "G001",
      "text": {
        "zh-Hant": "先f後g，明示中間域。Fin(5)=[0, 1, 2, 3, 4]、Fin(3)=[0, 1, 2]、Fin(3)=[0, 1, 2]。完整f表=[2, 0, 2, 0, 2]，g的原序dom=[2, 0]，與dom原序配對g值=[1, 2]。求 ([n,m,k], 排序dom, 允許來源, 對應輸出, 拒絕來源)，不改原dom/g配對。",
        "en": "First f, then g: Fin(5)={0,…,4}, middle=Fin(3)={0,…,2}, target=Fin(3)={0,…,2}. Complete f=[2, 0, 2, 0, 2]; g has original ordered dom=[2, 0] paired with g values=[1, 2]. Give ([n,m,k], sorted dom, allowed source indices, aligned outputs, rejected source indices); retain the original dom/g pairing."
      }
    }
  ],
  "steps": [
    {
      "id": "S001",
      "uses": [
        "G001"
      ],
      "before": "source roles = [qf-density15-composition-restricted-table-domain, density15_composition_restricted_table_domain, finite_explicit_composition_protocol]",
      "after": "derived = [[dimensions, sorted_dom, allowed_source_indices, aligned_outputs, rejected_source_indices]]",
      "relation": "implies",
      "rule_id": "R60_EXACT_perbank_operation_domain_FRAME_and_output_roles",
      "conditions": [],
      "explanation": {
        "zh-Hant": "density14/15用full-prefix underscores，density17用local hyphens。coordinate frame與circle frame不同，輸出欄序／型別依本family，不改原中英／JSON／status。",
        "en": "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."
      },
      "reverse_audit": {
        "kind": "premise_and_result_audit",
        "explanation": {
          "zh-Hant": "用原始資料、型別、索引與本步前提反向代回；一致性審查不等於可由結論唯一還原輸入。有限候選、獨立審查、形式證明與發布分開。",
          "en": "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."
        }
      },
      "arithmetic": null
    },
    {
      "id": "S002",
      "uses": [
        "G001",
        "S001"
      ],
      "before": "source roles = [f, 5, 3, [2, 0, 2, 0, 2]]",
      "after": "derived = [[2, 0, 2, 0, 2]]",
      "relation": "implies",
      "rule_id": "Composition_WHOLE_typed_table_ALL_cells_including_unused",
      "conditions": [],
      "explanation": {
        "zh-Hant": "整條declared table長度須等source大小，全部cell落target Fin(m)，包含unused cell。即使最外source空，也不能略過這個完整table的型別義務。",
        "en": "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."
      },
      "reverse_audit": {
        "kind": "premise_and_result_audit",
        "explanation": {
          "zh-Hant": "用原始資料、型別、索引與本步前提反向代回；一致性審查不等於可由結論唯一還原輸入。有限候選、獨立審查、形式證明與發布分開。",
          "en": "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."
        }
      },
      "arithmetic": null
    },
    {
      "id": "S003",
      "uses": [
        "G001",
        "S002"
      ],
      "before": "source roles = [g ORIGINAL dom-slot table, 2, 3, [1, 2]]",
      "after": "derived = [[1, 2]]",
      "relation": "implies",
      "rule_id": "Composition_WHOLE_typed_table_ALL_cells_including_unused",
      "conditions": [],
      "explanation": {
        "zh-Hant": "整條declared table長度須等source大小，全部cell落target Fin(m)，包含unused cell。即使最外source空，也不能略過這個完整table的型別義務。",
        "en": "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."
      },
      "reverse_audit": {
        "kind": "premise_and_result_audit",
        "explanation": {
          "zh-Hant": "用原始資料、型別、索引與本步前提反向代回；一致性審查不等於可由結論唯一還原輸入。有限候選、獨立審查、形式證明與發布分開。",
          "en": "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."
        }
      },
      "arithmetic": null
    },
    {
      "id": "S004",
      "uses": [
        "G001",
        "S003"
      ],
      "before": "source roles = [0, 2, [2, 0], [1, 2], 3]",
      "after": "derived = [是, 1]",
      "relation": "implies",
      "rule_id": "Composition_restricted_EACH_source_guard_ORIGINAL_dom_g_pairing",
      "conditions": [],
      "explanation": {
        "zh-Hant": "先以原dom/g逐slot配對建lookup，再驗f(x)是否在dom；只有inside才求g，不在域內不補0。顯示sorted dom不改配對或原source index。",
        "en": "Build the lookup from ORIGINAL dom/g slot pairing,THEN test whether f(x) belongs to dom.Evaluate g ONLY inside its domain,without an outside default0.Display sorting never changes pairing or original source indices."
      },
      "reverse_audit": {
        "kind": "premise_and_result_audit",
        "explanation": {
          "zh-Hant": "用原始資料、型別、索引與本步前提反向代回；一致性審查不等於可由結論唯一還原輸入。有限候選、獨立審查、形式證明與發布分開。",
          "en": "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."
        }
      },
      "arithmetic": null
    },
    {
      "id": "S005",
      "uses": [
        "G001",
        "S004"
      ],
      "before": "source roles = [1, 0, [2, 0], [1, 2], 3]",
      "after": "derived = [是, 2]",
      "relation": "implies",
      "rule_id": "Composition_restricted_EACH_source_guard_ORIGINAL_dom_g_pairing",
      "conditions": [],
      "explanation": {
        "zh-Hant": "先以原dom/g逐slot配對建lookup，再驗f(x)是否在dom；只有inside才求g，不在域內不補0。顯示sorted dom不改配對或原source index。",
        "en": "Build the lookup from ORIGINAL dom/g slot pairing,THEN test whether f(x) belongs to dom.Evaluate g ONLY inside its domain,without an outside default0.Display sorting never changes pairing or original source indices."
      },
      "reverse_audit": {
        "kind": "premise_and_result_audit",
        "explanation": {
          "zh-Hant": "用原始資料、型別、索引與本步前提反向代回；一致性審查不等於可由結論唯一還原輸入。有限候選、獨立審查、形式證明與發布分開。",
          "en": "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."
        }
      },
      "arithmetic": null
    },
    {
      "id": "S006",
      "uses": [
        "G001",
        "S005"
      ],
      "before": "source roles = [2, 2, [2, 0], [1, 2], 3]",
      "after": "derived = [是, 1]",
      "relation": "implies",
      "rule_id": "Composition_restricted_EACH_source_guard_ORIGINAL_dom_g_pairing",
      "conditions": [],
      "explanation": {
        "zh-Hant": "先以原dom/g逐slot配對建lookup，再驗f(x)是否在dom；只有inside才求g，不在域內不補0。顯示sorted dom不改配對或原source index。",
        "en": "Build the lookup from ORIGINAL dom/g slot pairing,THEN test whether f(x) belongs to dom.Evaluate g ONLY inside its domain,without an outside default0.Display sorting never changes pairing or original source indices."
      },
      "reverse_audit": {
        "kind": "premise_and_result_audit",
        "explanation": {
          "zh-Hant": "用原始資料、型別、索引與本步前提反向代回；一致性審查不等於可由結論唯一還原輸入。有限候選、獨立審查、形式證明與發布分開。",
          "en": "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."
        }
      },
      "arithmetic": null
    },
    {
      "id": "S007",
      "uses": [
        "G001",
        "S006"
      ],
      "before": "source roles = [3, 0, [2, 0], [1, 2], 3]",
      "after": "derived = [是, 2]",
      "relation": "implies",
      "rule_id": "Composition_restricted_EACH_source_guard_ORIGINAL_dom_g_pairing",
      "conditions": [],
      "explanation": {
        "zh-Hant": "先以原dom/g逐slot配對建lookup，再驗f(x)是否在dom；只有inside才求g，不在域內不補0。顯示sorted dom不改配對或原source index。",
        "en": "Build the lookup from ORIGINAL dom/g slot pairing,THEN test whether f(x) belongs to dom.Evaluate g ONLY inside its domain,without an outside default0.Display sorting never changes pairing or original source indices."
      },
      "reverse_audit": {
        "kind": "premise_and_result_audit",
        "explanation": {
          "zh-Hant": "用原始資料、型別、索引與本步前提反向代回；一致性審查不等於可由結論唯一還原輸入。有限候選、獨立審查、形式證明與發布分開。",
          "en": "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."
        }
      },
      "arithmetic": null
    },
    {
      "id": "S008",
      "uses": [
        "G001",
        "S007"
      ],
      "before": "source roles = [4, 2, [2, 0], [1, 2], 3]",
      "after": "derived = [是, 1]",
      "relation": "implies",
      "rule_id": "Composition_restricted_EACH_source_guard_ORIGINAL_dom_g_pairing",
      "conditions": [],
      "explanation": {
        "zh-Hant": "先以原dom/g逐slot配對建lookup，再驗f(x)是否在dom；只有inside才求g，不在域內不補0。顯示sorted dom不改配對或原source index。",
        "en": "Build the lookup from ORIGINAL dom/g slot pairing,THEN test whether f(x) belongs to dom.Evaluate g ONLY inside its domain,without an outside default0.Display sorting never changes pairing or original source indices."
      },
      "reverse_audit": {
        "kind": "premise_and_result_audit",
        "explanation": {
          "zh-Hant": "用原始資料、型別、索引與本步前提反向代回；一致性審查不等於可由結論唯一還原輸入。有限候選、獨立審查、形式證明與發布分開。",
          "en": "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."
        }
      },
      "arithmetic": null
    },
    {
      "id": "S009",
      "uses": [
        "G001",
        "S008"
      ],
      "before": "source roles = [5, 3, 3, [2, 0, 2, 0, 2], [2, 0], [1, 2]]",
      "after": "derived = [[0, 2], [0, 1, 2, 3, 4], [1, 2, 1, 2, 1], []]",
      "relation": "implies",
      "rule_id": "Composition_restricted_COMPLETE_allowed_outputs_rejected_partition",
      "conditions": [],
      "explanation": {
        "zh-Hant": "保全部原source輸入的允許／拒絕分割，outputs依allowed indices對齊；空dom可全拒絕，g長度是dom長度不是m。",
        "en": "Retain the COMPLETE allowed/rejected partition of ORIGINAL source inputs,aligning outputs to allowed indices.An empty dom may reject every input;g length is the dom length,NOT m."
      },
      "reverse_audit": {
        "kind": "premise_and_result_audit",
        "explanation": {
          "zh-Hant": "用原始資料、型別、索引與本步前提反向代回；一致性審查不等於可由結論唯一還原輸入。有限候選、獨立審查、形式證明與發布分開。",
          "en": "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."
        }
      },
      "arithmetic": null
    }
  ],
  "math_model": {
    "result": [
      [
        5,
        3,
        3
      ],
      [
        0,
        2
      ],
      [
        0,
        1,
        2,
        3,
        4
      ],
      [
        1,
        2,
        1,
        2,
        1
      ],
      []
    ]
  },
  "conclusion": {
    "canonical_value": "([5, 3, 3], [0, 2], [0, 1, 2, 3, 4], [1, 2, 1, 2, 1], [])",
    "explanation": {
      "zh-Hant": "依上列完整代值及條件核對得到原題答案；原題編號、格式與狀態保持不變。",
      "en": "The full substitutions and premise checks give the original answer; source identity,format and status are unchanged."
    }
  },
  "definition_note": {
    "zh-Hant": "沿用原題明示的論域、假設與來源 MKO 定義。本題已完成第二對話數理與中英語義覆核，並由原始參數逐題獨立重算模型、答案與每個算術步驟；原題仍為 candidate。",
    "en": "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."
  },
  "source": {
    "input_commit": "0f7be61e2c22317a4075561dc822c87d881a50db",
    "question_binding": {
      "batch_id": "batch-20261011-advance-20261015-r04-composition-foundations",
      "batch_path": "public/data/questions/batches/batch-20261011-advance-20261015-r04-composition-foundations/questions.jsonl",
      "batch_sha256": "ae1bde6f45fb411b7205bf61b2d3de85ef2f3d38c4b040606cda5c16a8f9e12e",
      "original_line": 50,
      "original_line_sha256": "00573328ba34207369b27f4cccbbeb122685ab13b3f6f62b50e2d197c3e90fad",
      "question_compact_sha256": "458297a70b337ed302444b275a8a0f889eb2fdbf15462813fb1e91bf183fb865",
      "english_row_compact_sha256": "190bf78874e9da46a520cf4d76157efa1a8e769b7bb36d9cc86e03a1b04b5ac3",
      "english_manifest_path": "public/data/i18n/editions/batch-20261011-advance-20261015-r04-composition-foundations.en.json",
      "english_rows_path": "public/data/i18n/questions/batch-20261011-advance-20261015-r04-composition-foundations.en.jsonl"
    },
    "mko_bindings": {
      "mko-composition": {
        "sha256": "a915b980c52ed5cfa4fd9ef59e2a23ef237a0eebbe262cd6f1a67b15f052bfa9",
        "english_sha256": "702841fe3d6cacc8f4b48338fbd4fc96731540292253b3030c43dce8e1cf1979",
        "original_path": "public/data/mko/composition.json",
        "english_path": "public/data/i18n/editions/mko-composition.en.json"
      }
    },
    "selected_manifest_sha256": "5233edba9654a6cffd8b6b2d83c932f82ded15f9c0b7c733bd049943e672acff",
    "selected_part_sha256": "322533190c1eb10144c4c59b6c70cc2f8105108b5f4f3a39dd577712e7185c02",
    "original_candidate_sha256": "ee136f627350ec113762c9cbc436709c80aaf84b9e31476dbcc940e45b45926c",
    "original_candidate_line_sha256": "ee136f627350ec113762c9cbc436709c80aaf84b9e31476dbcc940e45b45926c"
  },
  "historical_source_state": {
    "review_state": {
      "derivation": "candidate_authored_and_locally_checked",
      "source_question_state": "candidate",
      "independent_AI_or_human_review": "NOT_PERFORMED",
      "formalization": "not_formalized",
      "Lean": "NOT_RUN"
    },
    "scope_note": {
      "zh-Hant": "來源綁定教學推導候選；精確核對不等於獨立AI／人工審查或一般形式證明。原題、答案、MKO、公式、AST與歷史不變。",
      "en": "Source-bound pedagogical derivation candidate.Exact checking is not independent AI/human review or general formal proof.Original questions,answers,MKOs,formulas,ASTs and history remain unchanged."
    },
    "label": "Frozen producer metadata; current per-question review is separate below."
  },
  "revision": {
    "id": "review-20261026-011-p61",
    "review_date": "2026-10-26",
    "owner_authorized_reader_publication": true,
    "scope": "One hundred sixty family prototypes and their mathematical/bilingual reasoning variants, stems, boundary statements and every distinct explanation shape were reviewed in a context independent of the producer; parameter substitutions, source bindings, full math models, both answer strings and every arithmetic step were independently reconstructed per question from the original parameters only, with negative controls. This grouped method does not claim a separate literal AI reading of every repeated sentence or an extra AI voter.",
    "review_receipts": {
      "semantic_review_sha256": "d6b5a409bf933281a46617cd715d8016fd5ca3d6fb76f77d179ac2ecd9d608bf",
      "question_first_witness_sha256": "f80ecf598c6893a580af018e1a82849b33ee6887efb48a6a1d69569aa17f12e4"
    },
    "status": "second_context_reviewed",
    "mathematical_semantics": true,
    "bilingual_semantics": true,
    "steps_reviewed": 9,
    "method": "family_template_semantic_review_plus_independent_per_instance_reconstruction",
    "exact_question_first_check": {
      "model_sha256": "939df20a5be2d5cc98768d309f536d3039b33ba65c0b27cbd918061153ef197f",
      "arithmetic_steps": 0
    },
    "uses_answer_as_premise": false,
    "human_review": "NOT_PERFORMED",
    "formalization": "not_formalized",
    "Lean": "NOT_RUN",
    "Canonical_truth_promotion": false,
    "authority": "Owner-authorized reviewed reader publication; original question/candidate states remain historical and unchanged."
  }
}
