{
  "code": "A-8-3",
  "title": "國二多項式加減乘除",
  "scope": [
    "同次對齊，減括號逐項變號",
    "逐項相乘，次方相加",
    "二次式長除，乘回再相減"
  ],
  "limitations": [
    "只配對結構化已確認原項/係數/次方，未驗證OCR或任意式子字串。",
    "每型24例有限教學案例，不代表整碼全驗；未教師審核/未接App。",
    "原係數與項數有限域是工程/教學包範圍，不假稱正式課綱額外限制。",
    "加減原式只到三次；乘積最高三次；除法本包一次/二次除式，常數除式另配對。",
    "不使用分離係數法；一般有理式約分與高次長除不在此包。"
  ],
  "prerequisites": [
    "有理數正負四則、分配律、同底數整數次方運算與代數式同類項；不先用一元二次求根公式"
  ],
  "source": {
    "url": "https://edu.law.moe.gov.tw/Download.ashx?FileID=31051&id=GL001788&type=LAW",
    "sha256": "a9fd74c24933b16e256fcbcfe77ccf24e687dc5c5795b45215859d3a1439ef21",
    "physicalPages": [
      42
    ],
    "textExtractLines": [
      3324,
      3334
    ],
    "verbatimLocalTextExcerpt": "A-8-3 \n多項式的四則運算：直式 、\n橫式的多項式加法與減法 ；\n直式的多項式乘法 （乘積最\n高至三次） ；被除式為二次\n之多項式的除法運算。 \n不涉及使用分離係數法。  \na-IV-5 \n\n--- PDF PAGE 43 ---\n41 "
  },
  "subtypes": [
    {
      "id": "g8-poly-add-subtract",
      "title": "同次對齊，減括號逐項變號",
      "method": {
        "name": "同次對齊，減括號逐項變號",
        "steps": [
          "先按降冪或升冪補齊缺項0。",
          "加法同次係數相加；減法第二式每項都變號。",
          "只合併同次項，保留未抵消項。",
          "逆加回被減式或用係數逐欄核對。"
        ],
        "guards": [
          "只接受已確認有限結構，不eval任意原字串。",
          "缺少係數/次方/角色先確認；本包原量上限不冒充官方上限。"
        ]
      },
      "applicability": [
        "原式單一變數/候選角色及係數已核對"
      ],
      "exclusions": [
        "一般二元因式分解、任意字串解析、未確認OCR、分離係數法不在本包"
      ],
      "inputContract": {
        "required": [
          "left",
          "right",
          "operation"
        ],
        "raw": "整係數-50..50；多項式升冪係數陣列；意義項最多8項次方0..6；定義辨識另含-3..6半整指數與y項",
        "task": [
          "solve",
          "check_proposal"
        ],
        "confirmed": "true才算，必要欄/已提供結構中的缺值先confirm",
        "derived": "獨立有界64位數值解析；因式乘積按展開係數接受因子調序/符號和等值尺度，不只比字串",
        "modeDetails": "left/right升冪係數最多4，原式最高三次；只add/subtract，缺項可明示0"
      },
      "ifNotUnderstood": "先按降冪或升冪補齊缺項0。"
    },
    {
      "id": "g8-poly-multiply-cubic",
      "title": "逐項相乘，次方相加",
      "method": {
        "name": "逐項相乘，次方相加",
        "steps": [
          "每項乘另一式的每項。",
          "係數相乘、x次方相加。",
          "相同次方乘積再合併。",
          "最高乘積不超三次；用係數卷積及代值逆驗，不用分離係數教法。"
        ],
        "guards": [
          "只接受已確認有限結構，不eval任意原字串。",
          "缺少係數/次方/角色先確認；本包原量上限不冒充官方上限。"
        ]
      },
      "applicability": [
        "原式單一變數/候選角色及係數已核對"
      ],
      "exclusions": [
        "一般二元因式分解、任意字串解析、未確認OCR、分離係數法不在本包"
      ],
      "inputContract": {
        "required": [
          "left",
          "right"
        ],
        "raw": "整係數-50..50；多項式升冪係數陣列；意義項最多8項次方0..6；定義辨識另含-3..6半整指數與y項",
        "task": [
          "solve",
          "check_proposal"
        ],
        "confirmed": "true才算，必要欄/已提供結構中的缺值先confirm",
        "derived": "獨立有界64位數值解析；因式乘積按展開係數接受因子調序/符號和等值尺度，不只比字串",
        "modeDetails": "left/right最多4升冪係數；乘積最高三次（零乘積允許）；超三次route"
      },
      "ifNotUnderstood": "每項乘另一式的每項。"
    },
    {
      "id": "g8-poly-quadratic-division",
      "title": "二次式長除，乘回再相減",
      "method": {
        "name": "二次式長除，乘回再相減",
        "steps": [
          "先按降冪補缺項，除式不為0。",
          "餘式最高項除除式最高項，寫一個商項。",
          "商項乘整個除式，再整式相減。",
          "直到餘式次數小於除式，驗被除式＝除式×商＋餘式。"
        ],
        "guards": [
          "只接受已確認有限結構，不eval任意原字串。",
          "缺少係數/次方/角色先確認；本包原量上限不冒充官方上限。"
        ]
      },
      "applicability": [
        "原式單一變數/候選角色及係數已核對"
      ],
      "exclusions": [
        "一般二元因式分解、任意字串解析、未確認OCR、分離係數法不在本包"
      ],
      "inputContract": {
        "required": [
          "dividend",
          "divisor"
        ],
        "raw": "整係數-50..50；多項式升冪係數陣列；意義項最多8項次方0..6；定義辨識另含-3..6半整指數與y項",
        "task": [
          "solve",
          "check_proposal"
        ],
        "confirmed": "true才算，必要欄/已提供結構中的缺值先confirm",
        "derived": "獨立有界64位數值解析；因式乘積按展開係數接受因子調序/符號和等值尺度，不只比字串",
        "modeDetails": "被除式真正二次，除式一次或二次、不能零；按多項式長除不用分離係數；商可有精確分數係數"
      },
      "ifNotUnderstood": "先按降冪補缺項，除式不為0。"
    }
  ],
  "cases": [
    {
      "id": "g8-poly-add-subtract.normal.01",
      "code": "A-8-3",
      "subtypeId": "g8-poly-add-subtract",
      "kind": "normal",
      "casePurpose": "teaching-example",
      "studentFacing": true,
      "prompt": "計算(3x²＋2x＋1)＋(2x²－x＋4)。",
      "input": {
        "left": [
          1,
          2,
          3
        ],
        "right": [
          4,
          -1,
          2
        ],
        "operation": "add",
        "confirmed": true,
        "task": "solve"
      },
      "expectedDecision": "pass",
      "expectedAnswer": {
        "coefficients": [
          "5",
          "1",
          "5"
        ]
      },
      "solutionSteps": [
        "先按同次對齊：第一式3x²＋2x＋1，第二式2x²－x＋4。",
        "x^0欄：1＋4＝5。",
        "x^1欄：2＋(-1)＝1。",
        "x^2欄：3＋2＝5。",
        "結果5x²＋x＋5；逆算逐係數還原原式。"
      ],
      "why": "逐係數守恆與定義角色核對，不以一次代值碰巧相等代替恆等。",
      "ifNotUnderstood": "先將同次項排同一欄，缺項放0，再看原式符號。",
      "teacherReviewed": false,
      "appConnected": false
    },
    {
      "id": "g8-poly-add-subtract.normal.02",
      "code": "A-8-3",
      "subtypeId": "g8-poly-add-subtract",
      "kind": "normal",
      "casePurpose": "teaching-example",
      "studentFacing": true,
      "prompt": "計算(x²－3x＋2)－(－2x²＋4x＋1)。",
      "input": {
        "left": [
          2,
          -3,
          1
        ],
        "right": [
          1,
          4,
          -2
        ],
        "operation": "subtract",
        "confirmed": true,
        "task": "solve"
      },
      "expectedDecision": "pass",
      "expectedAnswer": {
        "coefficients": [
          "1",
          "-7",
          "3"
        ]
      },
      "solutionSteps": [
        "先按同次對齊：第一式x²－3x＋2，第二式－2x²＋4x＋1。",
        "整個第二式相反數為2x²－4x－1，負號要分配給每一項。",
        "x^0欄：2－1＝1。",
        "x^1欄：(-3)－4＝(-7)。",
        "x^2欄：1－(-2)＝3。",
        "結果3x²－7x＋1；逆算逐係數還原原式。"
      ],
      "why": "逐係數守恆與定義角色核對，不以一次代值碰巧相等代替恆等。",
      "ifNotUnderstood": "先將同次項排同一欄，缺項放0，再看原式符號。",
      "teacherReviewed": false,
      "appConnected": false
    },
    {
      "id": "g8-poly-add-subtract.normal.03",
      "code": "A-8-3",
      "subtypeId": "g8-poly-add-subtract",
      "kind": "normal",
      "casePurpose": "teaching-example",
      "studentFacing": true,
      "prompt": "計算(2x²－1)－(x²－2x＋3)。",
      "input": {
        "left": [
          -1,
          0,
          2
        ],
        "right": [
          3,
          -2,
          1
        ],
        "operation": "subtract",
        "confirmed": true,
        "task": "solve"
      },
      "expectedDecision": "pass",
      "expectedAnswer": {
        "coefficients": [
          "-4",
          "2",
          "1"
        ]
      },
      "solutionSteps": [
        "先按同次對齊：第一式2x²－1，第二式x²－2x＋3。",
        "整個第二式相反數為－x²＋2x－3，負號要分配給每一項。",
        "x^0欄：(-1)－3＝(-4)。",
        "x^1欄：0－(-2)＝2。",
        "x^2欄：2－1＝1。",
        "結果x²＋2x－4；逆算逐係數還原原式。"
      ],
      "why": "逐係數守恆與定義角色核對，不以一次代值碰巧相等代替恆等。",
      "ifNotUnderstood": "先將同次項排同一欄，缺項放0，再看原式符號。",
      "teacherReviewed": false,
      "appConnected": false
    },
    {
      "id": "g8-poly-add-subtract.normal.04",
      "code": "A-8-3",
      "subtypeId": "g8-poly-add-subtract",
      "kind": "normal",
      "casePurpose": "teaching-example",
      "studentFacing": true,
      "prompt": "計算(2x＋5)＋(－2x－5)。",
      "input": {
        "left": [
          5,
          2
        ],
        "right": [
          -5,
          -2
        ],
        "operation": "add",
        "confirmed": true,
        "task": "solve"
      },
      "expectedDecision": "pass",
      "expectedAnswer": {
        "coefficients": [
          "0"
        ]
      },
      "solutionSteps": [
        "先按同次對齊：第一式2x＋5，第二式－2x－5。",
        "x^0欄：5＋(-5)＝0。",
        "x^1欄：2＋(-2)＝0。",
        "結果0；逆算逐係數還原原式。"
      ],
      "why": "逐係數守恆與定義角色核對，不以一次代值碰巧相等代替恆等。",
      "ifNotUnderstood": "先將同次項排同一欄，缺項放0，再看原式符號。",
      "teacherReviewed": false,
      "appConnected": false
    },
    {
      "id": "g8-poly-add-subtract.normal.05",
      "code": "A-8-3",
      "subtypeId": "g8-poly-add-subtract",
      "kind": "normal",
      "casePurpose": "teaching-example",
      "studentFacing": true,
      "prompt": "計算(x³＋2)＋(－x³＋3x＋1)。",
      "input": {
        "left": [
          2,
          0,
          0,
          1
        ],
        "right": [
          1,
          3,
          0,
          -1
        ],
        "operation": "add",
        "confirmed": true,
        "task": "solve"
      },
      "expectedDecision": "pass",
      "expectedAnswer": {
        "coefficients": [
          "3",
          "3"
        ]
      },
      "solutionSteps": [
        "先按同次對齊：第一式x³＋2，第二式－x³＋3x＋1。",
        "x^0欄：2＋1＝3。",
        "x^1欄：0＋3＝3。",
        "x^2欄：0＋0＝0。",
        "x^3欄：1＋(-1)＝0。",
        "結果3x＋3；逆算逐係數還原原式。"
      ],
      "why": "逐係數守恆與定義角色核對，不以一次代值碰巧相等代替恆等。",
      "ifNotUnderstood": "先將同次項排同一欄，缺項放0，再看原式符號。",
      "teacherReviewed": false,
      "appConnected": false
    },
    {
      "id": "g8-poly-add-subtract.normal.06",
      "code": "A-8-3",
      "subtypeId": "g8-poly-add-subtract",
      "kind": "normal",
      "casePurpose": "teaching-example",
      "studentFacing": true,
      "prompt": "計算(4x－3)－(2x²－x＋2)。",
      "input": {
        "left": [
          -3,
          4
        ],
        "right": [
          2,
          -1,
          2
        ],
        "operation": "subtract",
        "confirmed": true,
        "task": "solve"
      },
      "expectedDecision": "pass",
      "expectedAnswer": {
        "coefficients": [
          "-5",
          "5",
          "-2"
        ]
      },
      "solutionSteps": [
        "先按同次對齊：第一式4x－3，第二式2x²－x＋2。",
        "整個第二式相反數為－2x²＋x－2，負號要分配給每一項。",
        "x^0欄：(-3)－2＝(-5)。",
        "x^1欄：4－(-1)＝5。",
        "x^2欄：0－2＝(-2)。",
        "結果－2x²＋5x－5；逆算逐係數還原原式。"
      ],
      "why": "逐係數守恆與定義角色核對，不以一次代值碰巧相等代替恆等。",
      "ifNotUnderstood": "先將同次項排同一欄，缺項放0，再看原式符號。",
      "teacherReviewed": false,
      "appConnected": false
    },
    {
      "id": "g8-poly-add-subtract.normal.07",
      "code": "A-8-3",
      "subtypeId": "g8-poly-add-subtract",
      "kind": "normal",
      "casePurpose": "teaching-example",
      "studentFacing": true,
      "prompt": "計算(x²＋x＋1)＋(2x²＋2x＋2)。",
      "input": {
        "left": [
          1,
          1,
          1
        ],
        "right": [
          2,
          2,
          2
        ],
        "operation": "add",
        "confirmed": true,
        "task": "solve"
      },
      "expectedDecision": "pass",
      "expectedAnswer": {
        "coefficients": [
          "3",
          "3",
          "3"
        ]
      },
      "solutionSteps": [
        "先按同次對齊：第一式x²＋x＋1，第二式2x²＋2x＋2。",
        "x^0欄：1＋2＝3。",
        "x^1欄：1＋2＝3。",
        "x^2欄：1＋2＝3。",
        "結果3x²＋3x＋3；逆算逐係數還原原式。"
      ],
      "why": "逐係數守恆與定義角色核對，不以一次代值碰巧相等代替恆等。",
      "ifNotUnderstood": "先將同次項排同一欄，缺項放0，再看原式符號。",
      "teacherReviewed": false,
      "appConnected": false
    },
    {
      "id": "g8-poly-add-subtract.normal.08",
      "code": "A-8-3",
      "subtypeId": "g8-poly-add-subtract",
      "kind": "normal",
      "casePurpose": "teaching-example",
      "studentFacing": true,
      "prompt": "計算(3x)－(x²－2x＋1)。",
      "input": {
        "left": [
          0,
          3
        ],
        "right": [
          1,
          -2,
          1
        ],
        "operation": "subtract",
        "confirmed": true,
        "task": "solve"
      },
      "expectedDecision": "pass",
      "expectedAnswer": {
        "coefficients": [
          "-1",
          "5",
          "-1"
        ]
      },
      "solutionSteps": [
        "先按同次對齊：第一式3x，第二式x²－2x＋1。",
        "整個第二式相反數為－x²＋2x－1，負號要分配給每一項。",
        "x^0欄：0－1＝(-1)。",
        "x^1欄：3－(-2)＝5。",
        "x^2欄：0－1＝(-1)。",
        "結果－x²＋5x－1；逆算逐係數還原原式。"
      ],
      "why": "逐係數守恆與定義角色核對，不以一次代值碰巧相等代替恆等。",
      "ifNotUnderstood": "先將同次項排同一欄，缺項放0，再看原式符號。",
      "teacherReviewed": false,
      "appConnected": false
    },
    {
      "id": "g8-poly-add-subtract.negative.01",
      "code": "A-8-3",
      "subtypeId": "g8-poly-add-subtract",
      "kind": "negative",
      "casePurpose": "proposal-review",
      "studentFacing": true,
      "prompt": "計算(3x²＋2x＋1)＋(2x²－x＋4)。 同學提案「11」，請逐步改正。",
      "input": {
        "left": [
          1,
          2,
          3
        ],
        "right": [
          4,
          -1,
          2
        ],
        "operation": "add",
        "confirmed": true,
        "task": "check_proposal",
        "proposal": {
          "coefficients": [
            "11"
          ]
        }
      },
      "expectedDecision": "reject",
      "expectedAnswer": {
        "coefficients": [
          "5",
          "1",
          "5"
        ]
      },
      "solutionSteps": [
        "把不同x次方的項全部加成常數；只有同次項可合併。",
        "先按同次對齊：第一式3x²＋2x＋1，第二式2x²－x＋4。",
        "x^0欄：1＋4＝5。",
        "x^1欄：2＋(-1)＝1。",
        "x^2欄：3＋2＝5。",
        "結果5x²＋x＋5；逆算逐係數還原原式。"
      ],
      "why": "把不同x次方的項全部加成常數；只有同次項可合併。",
      "ifNotUnderstood": "先將同次項排同一欄，缺項放0，再看原式符號。",
      "teacherReviewed": false,
      "appConnected": false
    },
    {
      "id": "g8-poly-add-subtract.negative.02",
      "code": "A-8-3",
      "subtypeId": "g8-poly-add-subtract",
      "kind": "negative",
      "casePurpose": "proposal-review",
      "studentFacing": true,
      "prompt": "計算(x²－3x＋2)－(－2x²＋4x＋1)。 同學提案「－x²＋x＋3」，請逐步改正。",
      "input": {
        "left": [
          2,
          -3,
          1
        ],
        "right": [
          1,
          4,
          -2
        ],
        "operation": "subtract",
        "confirmed": true,
        "task": "check_proposal",
        "proposal": {
          "coefficients": [
            "3",
            "1",
            "-1"
          ]
        }
      },
      "expectedDecision": "reject",
      "expectedAnswer": {
        "coefficients": [
          "1",
          "-7",
          "3"
        ]
      },
      "solutionSteps": [
        "外面是減括號卻照加，第二式各項都要反號。",
        "先按同次對齊：第一式x²－3x＋2，第二式－2x²＋4x＋1。",
        "整個第二式相反數為2x²－4x－1，負號要分配給每一項。",
        "x^0欄：2－1＝1。",
        "x^1欄：(-3)－4＝(-7)。",
        "x^2欄：1－(-2)＝3。",
        "結果3x²－7x＋1；逆算逐係數還原原式。"
      ],
      "why": "外面是減括號卻照加，第二式各項都要反號。",
      "ifNotUnderstood": "先將同次項排同一欄，缺項放0，再看原式符號。",
      "teacherReviewed": false,
      "appConnected": false
    },
    {
      "id": "g8-poly-add-subtract.negative.03",
      "code": "A-8-3",
      "subtypeId": "g8-poly-add-subtract",
      "kind": "negative",
      "casePurpose": "proposal-review",
      "studentFacing": true,
      "prompt": "計算(2x²－1)－(x²－2x＋3)。 同學提案「x²－2x－4」，請逐步改正。",
      "input": {
        "left": [
          -1,
          0,
          2
        ],
        "right": [
          3,
          -2,
          1
        ],
        "operation": "subtract",
        "confirmed": true,
        "task": "check_proposal",
        "proposal": {
          "coefficients": [
            "-4",
            "-2",
            "1"
          ]
        }
      },
      "expectedDecision": "reject",
      "expectedAnswer": {
        "coefficients": [
          "-4",
          "2",
          "1"
        ]
      },
      "solutionSteps": [
        "減到第二式負的一次項時漏了負負得正。",
        "先按同次對齊：第一式2x²－1，第二式x²－2x＋3。",
        "整個第二式相反數為－x²＋2x－3，負號要分配給每一項。",
        "x^0欄：(-1)－3＝(-4)。",
        "x^1欄：0－(-2)＝2。",
        "x^2欄：2－1＝1。",
        "結果x²＋2x－4；逆算逐係數還原原式。"
      ],
      "why": "減到第二式負的一次項時漏了負負得正。",
      "ifNotUnderstood": "先將同次項排同一欄，缺項放0，再看原式符號。",
      "teacherReviewed": false,
      "appConnected": false
    },
    {
      "id": "g8-poly-add-subtract.negative.04",
      "code": "A-8-3",
      "subtypeId": "g8-poly-add-subtract",
      "kind": "negative",
      "casePurpose": "proposal-review",
      "studentFacing": true,
      "prompt": "計算(2x＋5)＋(－2x－5)。 同學提案「2x＋5」，請逐步改正。",
      "input": {
        "left": [
          5,
          2
        ],
        "right": [
          -5,
          -2
        ],
        "operation": "add",
        "confirmed": true,
        "task": "check_proposal",
        "proposal": {
          "coefficients": [
            "5",
            "2"
          ]
        }
      },
      "expectedDecision": "reject",
      "expectedAnswer": {
        "coefficients": [
          "0"
        ]
      },
      "solutionSteps": [
        "兩式各項互為相反數卻仍保留第一式，沒有完成抵消。",
        "先按同次對齊：第一式2x＋5，第二式－2x－5。",
        "x^0欄：5＋(-5)＝0。",
        "x^1欄：2＋(-2)＝0。",
        "結果0；逆算逐係數還原原式。"
      ],
      "why": "兩式各項互為相反數卻仍保留第一式，沒有完成抵消。",
      "ifNotUnderstood": "先將同次項排同一欄，缺項放0，再看原式符號。",
      "teacherReviewed": false,
      "appConnected": false
    },
    {
      "id": "g8-poly-add-subtract.negative.05",
      "code": "A-8-3",
      "subtypeId": "g8-poly-add-subtract",
      "kind": "negative",
      "casePurpose": "validator-guard",
      "studentFacing": false,
      "prompt": "工程守衛：布林係數不能當1；不是學生數學錯題。",
      "input": {
        "left": [
          true,
          2,
          3
        ],
        "right": [
          4,
          -1,
          2
        ],
        "operation": "add",
        "confirmed": true,
        "task": "solve"
      },
      "expectedDecision": "block",
      "expectedAnswer": null,
      "solutionSteps": [
        "原係數/次方/項數或結構超出契約，不作任意字串運算",
        "核對原式後才回此步，不用未知係數補成0。"
      ],
      "why": "工程守衛：布林係數不能當1；不是學生數學錯題。",
      "ifNotUnderstood": "先指出哪一個係數、次方或呈現形式沒有看清楚。",
      "teacherReviewed": false,
      "appConnected": false
    },
    {
      "id": "g8-poly-add-subtract.negative.06",
      "code": "A-8-3",
      "subtypeId": "g8-poly-add-subtract",
      "kind": "negative",
      "casePurpose": "validator-guard",
      "studentFacing": false,
      "prompt": "工程守衛：巨大整數超原係數有限範圍，不先做乘冪/枚舉因數。",
      "input": {
        "left": [
          100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,
          2,
          3
        ],
        "right": [
          4,
          -1,
          2
        ],
        "operation": "add",
        "confirmed": true,
        "task": "solve"
      },
      "expectedDecision": "block",
      "expectedAnswer": null,
      "solutionSteps": [
        "原係數/次方/項數或結構超出契約，不作任意字串運算",
        "核對原式後才回此步，不用未知係數補成0。"
      ],
      "why": "工程守衛：巨大整數超原係數有限範圍，不先做乘冪/枚舉因數。",
      "ifNotUnderstood": "先指出哪一個係數、次方或呈現形式沒有看清楚。",
      "teacherReviewed": false,
      "appConnected": false
    },
    {
      "id": "g8-poly-add-subtract.boundary.01",
      "code": "A-8-3",
      "subtypeId": "g8-poly-add-subtract",
      "kind": "boundary",
      "casePurpose": "teaching-example",
      "studentFacing": true,
      "prompt": "計算(0)＋(0)。",
      "input": {
        "left": [
          0
        ],
        "right": [
          0
        ],
        "operation": "add",
        "confirmed": true,
        "task": "solve"
      },
      "expectedDecision": "pass",
      "expectedAnswer": {
        "coefficients": [
          "0"
        ]
      },
      "solutionSteps": [
        "先按同次對齊：第一式0，第二式0。",
        "x^0欄：0＋0＝0。",
        "結果0；逆算逐係數還原原式。"
      ],
      "why": "逐係數守恆與定義角色核對，不以一次代值碰巧相等代替恆等。",
      "ifNotUnderstood": "先將同次項排同一欄，缺項放0，再看原式符號。",
      "teacherReviewed": false,
      "appConnected": false
    },
    {
      "id": "g8-poly-add-subtract.boundary.02",
      "code": "A-8-3",
      "subtypeId": "g8-poly-add-subtract",
      "kind": "boundary",
      "casePurpose": "teaching-example",
      "studentFacing": true,
      "prompt": "計算(0)－(0)。",
      "input": {
        "left": [
          0
        ],
        "right": [
          0
        ],
        "operation": "subtract",
        "confirmed": true,
        "task": "solve"
      },
      "expectedDecision": "pass",
      "expectedAnswer": {
        "coefficients": [
          "0"
        ]
      },
      "solutionSteps": [
        "先按同次對齊：第一式0，第二式0。",
        "整個第二式相反數為0，負號要分配給每一項。",
        "x^0欄：0－0＝0。",
        "結果0；逆算逐係數還原原式。"
      ],
      "why": "逐係數守恆與定義角色核對，不以一次代值碰巧相等代替恆等。",
      "ifNotUnderstood": "先將同次項排同一欄，缺項放0，再看原式符號。",
      "teacherReviewed": false,
      "appConnected": false
    },
    {
      "id": "g8-poly-add-subtract.boundary.03",
      "code": "A-8-3",
      "subtypeId": "g8-poly-add-subtract",
      "kind": "boundary",
      "casePurpose": "teaching-example",
      "studentFacing": true,
      "prompt": "計算(1)－(1)。",
      "input": {
        "left": [
          1
        ],
        "right": [
          1
        ],
        "operation": "subtract",
        "confirmed": true,
        "task": "solve"
      },
      "expectedDecision": "pass",
      "expectedAnswer": {
        "coefficients": [
          "0"
        ]
      },
      "solutionSteps": [
        "先按同次對齊：第一式1，第二式1。",
        "整個第二式相反數為－1，負號要分配給每一項。",
        "x^0欄：1－1＝0。",
        "結果0；逆算逐係數還原原式。"
      ],
      "why": "逐係數守恆與定義角色核對，不以一次代值碰巧相等代替恆等。",
      "ifNotUnderstood": "先將同次項排同一欄，缺項放0，再看原式符號。",
      "teacherReviewed": false,
      "appConnected": false
    },
    {
      "id": "g8-poly-add-subtract.boundary.04",
      "code": "A-8-3",
      "subtypeId": "g8-poly-add-subtract",
      "kind": "boundary",
      "casePurpose": "teaching-example",
      "studentFacing": true,
      "prompt": "計算(x³)＋(－x³)。",
      "input": {
        "left": [
          0,
          0,
          0,
          1
        ],
        "right": [
          0,
          0,
          0,
          -1
        ],
        "operation": "add",
        "confirmed": true,
        "task": "solve"
      },
      "expectedDecision": "pass",
      "expectedAnswer": {
        "coefficients": [
          "0"
        ]
      },
      "solutionSteps": [
        "先按同次對齊：第一式x³，第二式－x³。",
        "x^0欄：0＋0＝0。",
        "x^1欄：0＋0＝0。",
        "x^2欄：0＋0＝0。",
        "x^3欄：1＋(-1)＝0。",
        "結果0；逆算逐係數還原原式。"
      ],
      "why": "逐係數守恆與定義角色核對，不以一次代值碰巧相等代替恆等。",
      "ifNotUnderstood": "先將同次項排同一欄，缺項放0，再看原式符號。",
      "teacherReviewed": false,
      "appConnected": false
    },
    {
      "id": "g8-poly-add-subtract.ambiguous.01",
      "code": "A-8-3",
      "subtypeId": "g8-poly-add-subtract",
      "kind": "ambiguous",
      "casePurpose": "teaching-example",
      "studentFacing": true,
      "prompt": "兩式(x³＋？)與(－x³＋3x＋1)，指定相加但第一式問號常數未確認。完整結果能確定嗎？",
      "input": {
        "left": [
          null,
          0,
          0,
          1
        ],
        "right": [
          1,
          3,
          0,
          -1
        ],
        "operation": "add",
        "confirmed": true,
        "task": "solve"
      },
      "expectedDecision": "confirm",
      "expectedAnswer": null,
      "solutionSteps": [
        "缺少原式的係數、次方或寫法，先確認題目，不自行補值。",
        "核對原式後才回此步，不用未知係數補成0。"
      ],
      "why": "逐係數守恆與定義角色核對，不以一次代值碰巧相等代替恆等。",
      "ifNotUnderstood": "先指出哪一個係數、次方或呈現形式沒有看清楚。",
      "teacherReviewed": false,
      "appConnected": false
    },
    {
      "id": "g8-poly-add-subtract.ambiguous.02",
      "code": "A-8-3",
      "subtypeId": "g8-poly-add-subtract",
      "kind": "ambiguous",
      "casePurpose": "teaching-example",
      "studentFacing": true,
      "prompt": "兩式(4x－3)與(2x²－x＋2)，原題是加或減看不清。完整結果能確定嗎？",
      "input": {
        "left": [
          -3,
          4
        ],
        "right": [
          2,
          -1,
          2
        ],
        "operation": null,
        "confirmed": true,
        "task": "solve"
      },
      "expectedDecision": "confirm",
      "expectedAnswer": null,
      "solutionSteps": [
        "缺少原式的係數、次方或寫法，先確認題目，不自行補值。",
        "核對原式後才回此步，不用未知係數補成0。"
      ],
      "why": "逐係數守恆與定義角色核對，不以一次代值碰巧相等代替恆等。",
      "ifNotUnderstood": "先指出哪一個係數、次方或呈現形式沒有看清楚。",
      "teacherReviewed": false,
      "appConnected": false
    },
    {
      "id": "g8-poly-add-subtract.holdout.01",
      "code": "A-8-3",
      "subtypeId": "g8-poly-add-subtract",
      "kind": "holdout",
      "casePurpose": "teaching-example",
      "studentFacing": true,
      "prompt": "計算(4x²－2x＋7)－(－x²＋5x＋3)。",
      "input": {
        "left": [
          7,
          -2,
          4
        ],
        "right": [
          3,
          5,
          -1
        ],
        "operation": "subtract",
        "confirmed": true,
        "task": "solve"
      },
      "expectedDecision": "pass",
      "expectedAnswer": {
        "coefficients": [
          "4",
          "-7",
          "5"
        ]
      },
      "solutionSteps": [
        "先按同次對齊：第一式4x²－2x＋7，第二式－x²＋5x＋3。",
        "整個第二式相反數為x²－5x－3，負號要分配給每一項。",
        "x^0欄：7－3＝4。",
        "x^1欄：(-2)－5＝(-7)。",
        "x^2欄：4－(-1)＝5。",
        "結果5x²－7x＋4；逆算逐係數還原原式。"
      ],
      "why": "逐係數守恆與定義角色核對，不以一次代值碰巧相等代替恆等。",
      "ifNotUnderstood": "先將同次項排同一欄，缺項放0，再看原式符號。",
      "teacherReviewed": false,
      "appConnected": false
    },
    {
      "id": "g8-poly-add-subtract.holdout.02",
      "code": "A-8-3",
      "subtypeId": "g8-poly-add-subtract",
      "kind": "holdout",
      "casePurpose": "teaching-example",
      "studentFacing": true,
      "prompt": "計算(2x²－4)＋(2x²－3x＋6)。",
      "input": {
        "left": [
          -4,
          0,
          2
        ],
        "right": [
          6,
          -3,
          2
        ],
        "operation": "add",
        "confirmed": true,
        "task": "solve"
      },
      "expectedDecision": "pass",
      "expectedAnswer": {
        "coefficients": [
          "2",
          "-3",
          "4"
        ]
      },
      "solutionSteps": [
        "先按同次對齊：第一式2x²－4，第二式2x²－3x＋6。",
        "x^0欄：(-4)＋6＝2。",
        "x^1欄：0＋(-3)＝(-3)。",
        "x^2欄：2＋2＝4。",
        "結果4x²－3x＋2；逆算逐係數還原原式。"
      ],
      "why": "逐係數守恆與定義角色核對，不以一次代值碰巧相等代替恆等。",
      "ifNotUnderstood": "先將同次項排同一欄，缺項放0，再看原式符號。",
      "teacherReviewed": false,
      "appConnected": false
    },
    {
      "id": "g8-poly-add-subtract.holdout.03",
      "code": "A-8-3",
      "subtypeId": "g8-poly-add-subtract",
      "kind": "holdout",
      "casePurpose": "teaching-example",
      "studentFacing": true,
      "prompt": "計算(2x³－5x＋1)－(x²＋3x－2)。",
      "input": {
        "left": [
          1,
          -5,
          0,
          2
        ],
        "right": [
          -2,
          3,
          1
        ],
        "operation": "subtract",
        "confirmed": true,
        "task": "solve"
      },
      "expectedDecision": "pass",
      "expectedAnswer": {
        "coefficients": [
          "3",
          "-8",
          "-1",
          "2"
        ]
      },
      "solutionSteps": [
        "先按同次對齊：第一式2x³－5x＋1，第二式x²＋3x－2。",
        "整個第二式相反數為－x²－3x＋2，負號要分配給每一項。",
        "x^0欄：1－(-2)＝3。",
        "x^1欄：(-5)－3＝(-8)。",
        "x^2欄：0－1＝(-1)。",
        "x^3欄：2－0＝2。",
        "結果2x³－x²－8x＋3；逆算逐係數還原原式。"
      ],
      "why": "逐係數守恆與定義角色核對，不以一次代值碰巧相等代替恆等。",
      "ifNotUnderstood": "先將同次項排同一欄，缺項放0，再看原式符號。",
      "teacherReviewed": false,
      "appConnected": false
    },
    {
      "id": "g8-poly-add-subtract.holdout.04",
      "code": "A-8-3",
      "subtypeId": "g8-poly-add-subtract",
      "kind": "holdout",
      "casePurpose": "teaching-example",
      "studentFacing": true,
      "prompt": "計算(－4x＋9)＋(－3x²＋7x＋2)。",
      "input": {
        "left": [
          9,
          -4
        ],
        "right": [
          2,
          7,
          -3
        ],
        "operation": "add",
        "confirmed": true,
        "task": "solve"
      },
      "expectedDecision": "pass",
      "expectedAnswer": {
        "coefficients": [
          "11",
          "3",
          "-3"
        ]
      },
      "solutionSteps": [
        "先按同次對齊：第一式－4x＋9，第二式－3x²＋7x＋2。",
        "x^0欄：9＋2＝11。",
        "x^1欄：(-4)＋7＝3。",
        "x^2欄：0＋(-3)＝(-3)。",
        "結果－3x²＋3x＋11；逆算逐係數還原原式。"
      ],
      "why": "逐係數守恆與定義角色核對，不以一次代值碰巧相等代替恆等。",
      "ifNotUnderstood": "先將同次項排同一欄，缺項放0，再看原式符號。",
      "teacherReviewed": false,
      "appConnected": false
    },
    {
      "id": "g8-poly-multiply-cubic.normal.01",
      "code": "A-8-3",
      "subtypeId": "g8-poly-multiply-cubic",
      "kind": "normal",
      "casePurpose": "teaching-example",
      "studentFacing": true,
      "prompt": "計算(x＋2)(x＋3)，合併同類項。",
      "input": {
        "left": [
          2,
          1
        ],
        "right": [
          3,
          1
        ],
        "confirmed": true,
        "task": "solve"
      },
      "expectedDecision": "pass",
      "expectedAnswer": {
        "coefficients": [
          "6",
          "5",
          "1"
        ]
      },
      "solutionSteps": [
        "逐項分配：2x^0×3x^0＝6x^0；2x^0×1x^1＝2x^1；1x^1×3x^0＝3x^1；1x^1×1x^1＝1x^2。",
        "合併同次項後：x²＋5x＋6。",
        "逐欄核對：x^0欄=6、x^1欄=5、x^2欄=1；最高次不超三次。"
      ],
      "why": "逐係數守恆與定義角色核對，不以一次代值碰巧相等代替恆等。",
      "ifNotUnderstood": "同底數相乘是指數相加，係數才相乘；先保留所有非零乘積。",
      "teacherReviewed": false,
      "appConnected": false
    },
    {
      "id": "g8-poly-multiply-cubic.normal.02",
      "code": "A-8-3",
      "subtypeId": "g8-poly-multiply-cubic",
      "kind": "normal",
      "casePurpose": "teaching-example",
      "studentFacing": true,
      "prompt": "計算(2x－1)(x＋4)，合併同類項。",
      "input": {
        "left": [
          -1,
          2
        ],
        "right": [
          4,
          1
        ],
        "confirmed": true,
        "task": "solve"
      },
      "expectedDecision": "pass",
      "expectedAnswer": {
        "coefficients": [
          "-4",
          "7",
          "2"
        ]
      },
      "solutionSteps": [
        "逐項分配：(-1)x^0×4x^0＝(-4)x^0；(-1)x^0×1x^1＝(-1)x^1；2x^1×4x^0＝8x^1；2x^1×1x^1＝2x^2。",
        "合併同次項後：2x²＋7x－4。",
        "逐欄核對：x^0欄=(-4)、x^1欄=7、x^2欄=2；最高次不超三次。"
      ],
      "why": "逐係數守恆與定義角色核對，不以一次代值碰巧相等代替恆等。",
      "ifNotUnderstood": "同底數相乘是指數相加，係數才相乘；先保留所有非零乘積。",
      "teacherReviewed": false,
      "appConnected": false
    },
    {
      "id": "g8-poly-multiply-cubic.normal.03",
      "code": "A-8-3",
      "subtypeId": "g8-poly-multiply-cubic",
      "kind": "normal",
      "casePurpose": "teaching-example",
      "studentFacing": true,
      "prompt": "計算(x²－2x＋1)(x＋2)，合併同類項。",
      "input": {
        "left": [
          1,
          -2,
          1
        ],
        "right": [
          2,
          1
        ],
        "confirmed": true,
        "task": "solve"
      },
      "expectedDecision": "pass",
      "expectedAnswer": {
        "coefficients": [
          "2",
          "-3",
          "0",
          "1"
        ]
      },
      "solutionSteps": [
        "逐項分配：1x^0×2x^0＝2x^0；1x^0×1x^1＝1x^1；(-2)x^1×2x^0＝(-4)x^1；(-2)x^1×1x^1＝(-2)x^2；1x^2×2x^0＝2x^2；1x^2×1x^1＝1x^3。",
        "合併同次項後：x³－3x＋2。",
        "逐欄核對：x^0欄=2、x^1欄=(-3)、x^2欄=0、x^3欄=1；最高次不超三次。"
      ],
      "why": "逐係數守恆與定義角色核對，不以一次代值碰巧相等代替恆等。",
      "ifNotUnderstood": "同底數相乘是指數相加，係數才相乘；先保留所有非零乘積。",
      "teacherReviewed": false,
      "appConnected": false
    },
    {
      "id": "g8-poly-multiply-cubic.normal.04",
      "code": "A-8-3",
      "subtypeId": "g8-poly-multiply-cubic",
      "kind": "normal",
      "casePurpose": "teaching-example",
      "studentFacing": true,
      "prompt": "計算(x)(2x²－x＋3)，合併同類項。",
      "input": {
        "left": [
          0,
          1
        ],
        "right": [
          3,
          -1,
          2
        ],
        "confirmed": true,
        "task": "solve"
      },
      "expectedDecision": "pass",
      "expectedAnswer": {
        "coefficients": [
          "0",
          "3",
          "-1",
          "2"
        ]
      },
      "solutionSteps": [
        "逐項分配：1x^1×3x^0＝3x^1；1x^1×(-1)x^1＝(-1)x^2；1x^1×2x^2＝2x^3。",
        "合併同次項後：2x³－x²＋3x。",
        "逐欄核對：x^0欄=0、x^1欄=3、x^2欄=(-1)、x^3欄=2；最高次不超三次。"
      ],
      "why": "逐係數守恆與定義角色核對，不以一次代值碰巧相等代替恆等。",
      "ifNotUnderstood": "同底數相乘是指數相加，係數才相乘；先保留所有非零乘積。",
      "teacherReviewed": false,
      "appConnected": false
    },
    {
      "id": "g8-poly-multiply-cubic.normal.05",
      "code": "A-8-3",
      "subtypeId": "g8-poly-multiply-cubic",
      "kind": "normal",
      "casePurpose": "teaching-example",
      "studentFacing": true,
      "prompt": "計算(x－3)(－x＋4)，合併同類項。",
      "input": {
        "left": [
          -3,
          1
        ],
        "right": [
          4,
          -1
        ],
        "confirmed": true,
        "task": "solve"
      },
      "expectedDecision": "pass",
      "expectedAnswer": {
        "coefficients": [
          "-12",
          "7",
          "-1"
        ]
      },
      "solutionSteps": [
        "逐項分配：(-3)x^0×4x^0＝(-12)x^0；(-3)x^0×(-1)x^1＝3x^1；1x^1×4x^0＝4x^1；1x^1×(-1)x^1＝(-1)x^2。",
        "合併同次項後：－x²＋7x－12。",
        "逐欄核對：x^0欄=(-12)、x^1欄=7、x^2欄=(-1)；最高次不超三次。"
      ],
      "why": "逐係數守恆與定義角色核對，不以一次代值碰巧相等代替恆等。",
      "ifNotUnderstood": "同底數相乘是指數相加，係數才相乘；先保留所有非零乘積。",
      "teacherReviewed": false,
      "appConnected": false
    },
    {
      "id": "g8-poly-multiply-cubic.normal.06",
      "code": "A-8-3",
      "subtypeId": "g8-poly-multiply-cubic",
      "kind": "normal",
      "casePurpose": "teaching-example",
      "studentFacing": true,
      "prompt": "計算(2)(4x³＋3x²＋2x＋1)，合併同類項。",
      "input": {
        "left": [
          2
        ],
        "right": [
          1,
          2,
          3,
          4
        ],
        "confirmed": true,
        "task": "solve"
      },
      "expectedDecision": "pass",
      "expectedAnswer": {
        "coefficients": [
          "2",
          "4",
          "6",
          "8"
        ]
      },
      "solutionSteps": [
        "逐項分配：2x^0×1x^0＝2x^0；2x^0×2x^1＝4x^1；2x^0×3x^2＝6x^2；2x^0×4x^3＝8x^3。",
        "合併同次項後：8x³＋6x²＋4x＋2。",
        "逐欄核對：x^0欄=2、x^1欄=4、x^2欄=6、x^3欄=8；最高次不超三次。"
      ],
      "why": "逐係數守恆與定義角色核對，不以一次代值碰巧相等代替恆等。",
      "ifNotUnderstood": "同底數相乘是指數相加，係數才相乘；先保留所有非零乘積。",
      "teacherReviewed": false,
      "appConnected": false
    },
    {
      "id": "g8-poly-multiply-cubic.normal.07",
      "code": "A-8-3",
      "subtypeId": "g8-poly-multiply-cubic",
      "kind": "normal",
      "casePurpose": "teaching-example",
      "studentFacing": true,
      "prompt": "計算(x²)(2x＋1)，合併同類項。",
      "input": {
        "left": [
          0,
          0,
          1
        ],
        "right": [
          1,
          2
        ],
        "confirmed": true,
        "task": "solve"
      },
      "expectedDecision": "pass",
      "expectedAnswer": {
        "coefficients": [
          "0",
          "0",
          "1",
          "2"
        ]
      },
      "solutionSteps": [
        "逐項分配：1x^2×1x^0＝1x^2；1x^2×2x^1＝2x^3。",
        "合併同次項後：2x³＋x²。",
        "逐欄核對：x^0欄=0、x^1欄=0、x^2欄=1、x^3欄=2；最高次不超三次。"
      ],
      "why": "逐係數守恆與定義角色核對，不以一次代值碰巧相等代替恆等。",
      "ifNotUnderstood": "同底數相乘是指數相加，係數才相乘；先保留所有非零乘積。",
      "teacherReviewed": false,
      "appConnected": false
    },
    {
      "id": "g8-poly-multiply-cubic.normal.08",
      "code": "A-8-3",
      "subtypeId": "g8-poly-multiply-cubic",
      "kind": "normal",
      "casePurpose": "teaching-example",
      "studentFacing": true,
      "prompt": "計算(x²－x＋1)(－x＋1)，合併同類項。",
      "input": {
        "left": [
          1,
          -1,
          1
        ],
        "right": [
          1,
          -1
        ],
        "confirmed": true,
        "task": "solve"
      },
      "expectedDecision": "pass",
      "expectedAnswer": {
        "coefficients": [
          "1",
          "-2",
          "2",
          "-1"
        ]
      },
      "solutionSteps": [
        "逐項分配：1x^0×1x^0＝1x^0；1x^0×(-1)x^1＝(-1)x^1；(-1)x^1×1x^0＝(-1)x^1；(-1)x^1×(-1)x^1＝1x^2；1x^2×1x^0＝1x^2；1x^2×(-1)x^1＝(-1)x^3。",
        "合併同次項後：－x³＋2x²－2x＋1。",
        "逐欄核對：x^0欄=1、x^1欄=(-2)、x^2欄=2、x^3欄=(-1)；最高次不超三次。"
      ],
      "why": "逐係數守恆與定義角色核對，不以一次代值碰巧相等代替恆等。",
      "ifNotUnderstood": "同底數相乘是指數相加，係數才相乘；先保留所有非零乘積。",
      "teacherReviewed": false,
      "appConnected": false
    },
    {
      "id": "g8-poly-multiply-cubic.negative.01",
      "code": "A-8-3",
      "subtypeId": "g8-poly-multiply-cubic",
      "kind": "negative",
      "casePurpose": "proposal-review",
      "studentFacing": true,
      "prompt": "計算(x＋2)(x＋3)，合併同類項。 同學提案「x²＋6」，請逐步改正。",
      "input": {
        "left": [
          2,
          1
        ],
        "right": [
          3,
          1
        ],
        "confirmed": true,
        "task": "check_proposal",
        "proposal": {
          "coefficients": [
            "6",
            "0",
            "1"
          ]
        }
      },
      "expectedDecision": "reject",
      "expectedAnswer": {
        "coefficients": [
          "6",
          "5",
          "1"
        ]
      },
      "solutionSteps": [
        "只乘最高項與常數，漏掉所有交叉一次項。",
        "逐項分配：2x^0×3x^0＝6x^0；2x^0×1x^1＝2x^1；1x^1×3x^0＝3x^1；1x^1×1x^1＝1x^2。",
        "合併同次項後：x²＋5x＋6。",
        "逐欄核對：x^0欄=6、x^1欄=5、x^2欄=1；最高次不超三次。"
      ],
      "why": "只乘最高項與常數，漏掉所有交叉一次項。",
      "ifNotUnderstood": "同底數相乘是指數相加，係數才相乘；先保留所有非零乘積。",
      "teacherReviewed": false,
      "appConnected": false
    },
    {
      "id": "g8-poly-multiply-cubic.negative.02",
      "code": "A-8-3",
      "subtypeId": "g8-poly-multiply-cubic",
      "kind": "negative",
      "casePurpose": "proposal-review",
      "studentFacing": true,
      "prompt": "計算(2x－1)(x＋4)，合併同類項。 同學提案「2x²＋7x＋4」，請逐步改正。",
      "input": {
        "left": [
          -1,
          2
        ],
        "right": [
          4,
          1
        ],
        "confirmed": true,
        "task": "check_proposal",
        "proposal": {
          "coefficients": [
            "4",
            "7",
            "2"
          ]
        }
      },
      "expectedDecision": "reject",
      "expectedAnswer": {
        "coefficients": [
          "-4",
          "7",
          "2"
        ]
      },
      "solutionSteps": [
        "常數異號的乘積漏了負號。",
        "逐項分配：(-1)x^0×4x^0＝(-4)x^0；(-1)x^0×1x^1＝(-1)x^1；2x^1×4x^0＝8x^1；2x^1×1x^1＝2x^2。",
        "合併同次項後：2x²＋7x－4。",
        "逐欄核對：x^0欄=(-4)、x^1欄=7、x^2欄=2；最高次不超三次。"
      ],
      "why": "常數異號的乘積漏了負號。",
      "ifNotUnderstood": "同底數相乘是指數相加，係數才相乘；先保留所有非零乘積。",
      "teacherReviewed": false,
      "appConnected": false
    },
    {
      "id": "g8-poly-multiply-cubic.negative.03",
      "code": "A-8-3",
      "subtypeId": "g8-poly-multiply-cubic",
      "kind": "negative",
      "casePurpose": "proposal-review",
      "studentFacing": true,
      "prompt": "計算(x²－2x＋1)(x＋2)，合併同類項。 同學提案「x²－3x＋2」，請逐步改正。",
      "input": {
        "left": [
          1,
          -2,
          1
        ],
        "right": [
          2,
          1
        ],
        "confirmed": true,
        "task": "check_proposal",
        "proposal": {
          "coefficients": [
            "2",
            "-3",
            "1"
          ]
        }
      },
      "expectedDecision": "reject",
      "expectedAnswer": {
        "coefficients": [
          "2",
          "-3",
          "0",
          "1"
        ]
      },
      "solutionSteps": [
        "把x²乘x的指數誤乘成2，應相加得x³。",
        "逐項分配：1x^0×2x^0＝2x^0；1x^0×1x^1＝1x^1；(-2)x^1×2x^0＝(-4)x^1；(-2)x^1×1x^1＝(-2)x^2；1x^2×2x^0＝2x^2；1x^2×1x^1＝1x^3。",
        "合併同次項後：x³－3x＋2。",
        "逐欄核對：x^0欄=2、x^1欄=(-3)、x^2欄=0、x^3欄=1；最高次不超三次。"
      ],
      "why": "把x²乘x的指數誤乘成2，應相加得x³。",
      "ifNotUnderstood": "同底數相乘是指數相加，係數才相乘；先保留所有非零乘積。",
      "teacherReviewed": false,
      "appConnected": false
    },
    {
      "id": "g8-poly-multiply-cubic.negative.04",
      "code": "A-8-3",
      "subtypeId": "g8-poly-multiply-cubic",
      "kind": "negative",
      "casePurpose": "proposal-review",
      "studentFacing": true,
      "prompt": "計算(x)(2x²－x＋3)，合併同類項。 同學提案「3x」，請逐步改正。",
      "input": {
        "left": [
          0,
          1
        ],
        "right": [
          3,
          -1,
          2
        ],
        "confirmed": true,
        "task": "check_proposal",
        "proposal": {
          "coefficients": [
            "0",
            "3"
          ]
        }
      },
      "expectedDecision": "reject",
      "expectedAnswer": {
        "coefficients": [
          "0",
          "3",
          "-1",
          "2"
        ]
      },
      "solutionSteps": [
        "x只乘到常數3，漏乘2x²與−x；應得到2x³、−x²和3x三項。",
        "逐項分配：1x^1×3x^0＝3x^1；1x^1×(-1)x^1＝(-1)x^2；1x^1×2x^2＝2x^3。",
        "合併同次項後：2x³－x²＋3x。",
        "逐欄核對：x^0欄=0、x^1欄=3、x^2欄=(-1)、x^3欄=2；最高次不超三次。"
      ],
      "why": "x只乘到常數3，漏乘2x²與−x；應得到2x³、−x²和3x三項。",
      "ifNotUnderstood": "同底數相乘是指數相加，係數才相乘；先保留所有非零乘積。",
      "teacherReviewed": false,
      "appConnected": false
    },
    {
      "id": "g8-poly-multiply-cubic.negative.05",
      "code": "A-8-3",
      "subtypeId": "g8-poly-multiply-cubic",
      "kind": "negative",
      "casePurpose": "validator-guard",
      "studentFacing": false,
      "prompt": "工程守衛：布林係數不能當1；不是學生數學錯題。",
      "input": {
        "left": [
          true,
          1
        ],
        "right": [
          3,
          1
        ],
        "confirmed": true,
        "task": "solve"
      },
      "expectedDecision": "block",
      "expectedAnswer": null,
      "solutionSteps": [
        "原係數/次方/項數或結構超出契約，不作任意字串運算",
        "核對原式後才回此步，不用未知係數補成0。"
      ],
      "why": "工程守衛：布林係數不能當1；不是學生數學錯題。",
      "ifNotUnderstood": "先指出哪一個係數、次方或呈現形式沒有看清楚。",
      "teacherReviewed": false,
      "appConnected": false
    },
    {
      "id": "g8-poly-multiply-cubic.negative.06",
      "code": "A-8-3",
      "subtypeId": "g8-poly-multiply-cubic",
      "kind": "negative",
      "casePurpose": "validator-guard",
      "studentFacing": false,
      "prompt": "原題可乘，但乘積四次超官方本碼最高三次，轉後續內容。",
      "input": {
        "left": [
          1,
          0,
          1
        ],
        "right": [
          1,
          0,
          1
        ],
        "confirmed": true,
        "task": "solve"
      },
      "expectedDecision": "block",
      "expectedAnswer": null,
      "solutionSteps": [
        "原題可乘，但乘積超三次，轉後續模板",
        "核對原式後才回此步，不用未知係數補成0。"
      ],
      "why": "原題可乘，但乘積四次超官方本碼最高三次，轉後續內容。",
      "ifNotUnderstood": "先指出哪一個係數、次方或呈現形式沒有看清楚。",
      "teacherReviewed": false,
      "appConnected": false
    },
    {
      "id": "g8-poly-multiply-cubic.boundary.01",
      "code": "A-8-3",
      "subtypeId": "g8-poly-multiply-cubic",
      "kind": "boundary",
      "casePurpose": "teaching-example",
      "studentFacing": true,
      "prompt": "計算(0)(4x³＋3x²＋2x＋1)，合併同類項。",
      "input": {
        "left": [
          0
        ],
        "right": [
          1,
          2,
          3,
          4
        ],
        "confirmed": true,
        "task": "solve"
      },
      "expectedDecision": "pass",
      "expectedAnswer": {
        "coefficients": [
          "0"
        ]
      },
      "solutionSteps": [
        "逐項分配：全式有零因子，乘積0。",
        "合併同次項後：0。",
        "逐欄核對：x^0欄=0；最高次不超三次。"
      ],
      "why": "逐係數守恆與定義角色核對，不以一次代值碰巧相等代替恆等。",
      "ifNotUnderstood": "同底數相乘是指數相加，係數才相乘；先保留所有非零乘積。",
      "teacherReviewed": false,
      "appConnected": false
    },
    {
      "id": "g8-poly-multiply-cubic.boundary.02",
      "code": "A-8-3",
      "subtypeId": "g8-poly-multiply-cubic",
      "kind": "boundary",
      "casePurpose": "teaching-example",
      "studentFacing": true,
      "prompt": "計算(1)(1)，合併同類項。",
      "input": {
        "left": [
          1
        ],
        "right": [
          1
        ],
        "confirmed": true,
        "task": "solve"
      },
      "expectedDecision": "pass",
      "expectedAnswer": {
        "coefficients": [
          "1"
        ]
      },
      "solutionSteps": [
        "逐項分配：1x^0×1x^0＝1x^0。",
        "合併同次項後：1。",
        "逐欄核對：x^0欄=1；最高次不超三次。"
      ],
      "why": "逐係數守恆與定義角色核對，不以一次代值碰巧相等代替恆等。",
      "ifNotUnderstood": "同底數相乘是指數相加，係數才相乘；先保留所有非零乘積。",
      "teacherReviewed": false,
      "appConnected": false
    },
    {
      "id": "g8-poly-multiply-cubic.boundary.03",
      "code": "A-8-3",
      "subtypeId": "g8-poly-multiply-cubic",
      "kind": "boundary",
      "casePurpose": "teaching-example",
      "studentFacing": true,
      "prompt": "計算(x)(x)，合併同類項。",
      "input": {
        "left": [
          0,
          1
        ],
        "right": [
          0,
          1
        ],
        "confirmed": true,
        "task": "solve"
      },
      "expectedDecision": "pass",
      "expectedAnswer": {
        "coefficients": [
          "0",
          "0",
          "1"
        ]
      },
      "solutionSteps": [
        "逐項分配：1x^1×1x^1＝1x^2。",
        "合併同次項後：x²。",
        "逐欄核對：x^0欄=0、x^1欄=0、x^2欄=1；最高次不超三次。"
      ],
      "why": "逐係數守恆與定義角色核對，不以一次代值碰巧相等代替恆等。",
      "ifNotUnderstood": "同底數相乘是指數相加，係數才相乘；先保留所有非零乘積。",
      "teacherReviewed": false,
      "appConnected": false
    },
    {
      "id": "g8-poly-multiply-cubic.boundary.04",
      "code": "A-8-3",
      "subtypeId": "g8-poly-multiply-cubic",
      "kind": "boundary",
      "casePurpose": "teaching-example",
      "studentFacing": true,
      "prompt": "計算(－1)(0)，合併同類項。",
      "input": {
        "left": [
          -1
        ],
        "right": [
          0
        ],
        "confirmed": true,
        "task": "solve"
      },
      "expectedDecision": "pass",
      "expectedAnswer": {
        "coefficients": [
          "0"
        ]
      },
      "solutionSteps": [
        "逐項分配：全式有零因子，乘積0。",
        "合併同次項後：0。",
        "逐欄核對：x^0欄=0；最高次不超三次。"
      ],
      "why": "逐係數守恆與定義角色核對，不以一次代值碰巧相等代替恆等。",
      "ifNotUnderstood": "同底數相乘是指數相加，係數才相乘；先保留所有非零乘積。",
      "teacherReviewed": false,
      "appConnected": false
    },
    {
      "id": "g8-poly-multiply-cubic.ambiguous.01",
      "code": "A-8-3",
      "subtypeId": "g8-poly-multiply-cubic",
      "kind": "ambiguous",
      "casePurpose": "teaching-example",
      "studentFacing": true,
      "prompt": "原乘積(x＋？)(－x＋4)，問號常數看不清，完整乘積能確定嗎？",
      "input": {
        "left": [
          null,
          1
        ],
        "right": [
          4,
          -1
        ],
        "confirmed": true,
        "task": "solve"
      },
      "expectedDecision": "confirm",
      "expectedAnswer": null,
      "solutionSteps": [
        "缺少原式的係數、次方或寫法，先確認題目，不自行補值。",
        "核對原式後才回此步，不用未知係數補成0。"
      ],
      "why": "逐係數守恆與定義角色核對，不以一次代值碰巧相等代替恆等。",
      "ifNotUnderstood": "先指出哪一個係數、次方或呈現形式沒有看清楚。",
      "teacherReviewed": false,
      "appConnected": false
    },
    {
      "id": "g8-poly-multiply-cubic.ambiguous.02",
      "code": "A-8-3",
      "subtypeId": "g8-poly-multiply-cubic",
      "kind": "ambiguous",
      "casePurpose": "teaching-example",
      "studentFacing": true,
      "prompt": "原乘積(2)(4x³＋3x²＋2x＋？)，問號常數看不清，完整乘積能確定嗎？",
      "input": {
        "left": [
          2
        ],
        "right": [
          null,
          2,
          3,
          4
        ],
        "confirmed": true,
        "task": "solve"
      },
      "expectedDecision": "confirm",
      "expectedAnswer": null,
      "solutionSteps": [
        "缺少原式的係數、次方或寫法，先確認題目，不自行補值。",
        "核對原式後才回此步，不用未知係數補成0。"
      ],
      "why": "逐係數守恆與定義角色核對，不以一次代值碰巧相等代替恆等。",
      "ifNotUnderstood": "先指出哪一個係數、次方或呈現形式沒有看清楚。",
      "teacherReviewed": false,
      "appConnected": false
    },
    {
      "id": "g8-poly-multiply-cubic.holdout.01",
      "code": "A-8-3",
      "subtypeId": "g8-poly-multiply-cubic",
      "kind": "holdout",
      "casePurpose": "teaching-example",
      "studentFacing": true,
      "prompt": "計算(2x＋5)(x－3)，合併同類項。",
      "input": {
        "left": [
          5,
          2
        ],
        "right": [
          -3,
          1
        ],
        "confirmed": true,
        "task": "solve"
      },
      "expectedDecision": "pass",
      "expectedAnswer": {
        "coefficients": [
          "-15",
          "-1",
          "2"
        ]
      },
      "solutionSteps": [
        "逐項分配：5x^0×(-3)x^0＝(-15)x^0；5x^0×1x^1＝5x^1；2x^1×(-3)x^0＝(-6)x^1；2x^1×1x^1＝2x^2。",
        "合併同次項後：2x²－x－15。",
        "逐欄核對：x^0欄=(-15)、x^1欄=(-1)、x^2欄=2；最高次不超三次。"
      ],
      "why": "逐係數守恆與定義角色核對，不以一次代值碰巧相等代替恆等。",
      "ifNotUnderstood": "同底數相乘是指數相加，係數才相乘；先保留所有非零乘積。",
      "teacherReviewed": false,
      "appConnected": false
    },
    {
      "id": "g8-poly-multiply-cubic.holdout.02",
      "code": "A-8-3",
      "subtypeId": "g8-poly-multiply-cubic",
      "kind": "holdout",
      "casePurpose": "teaching-example",
      "studentFacing": true,
      "prompt": "計算(x²－3x＋2)(x－2)，合併同類項。",
      "input": {
        "left": [
          2,
          -3,
          1
        ],
        "right": [
          -2,
          1
        ],
        "confirmed": true,
        "task": "solve"
      },
      "expectedDecision": "pass",
      "expectedAnswer": {
        "coefficients": [
          "-4",
          "8",
          "-5",
          "1"
        ]
      },
      "solutionSteps": [
        "逐項分配：2x^0×(-2)x^0＝(-4)x^0；2x^0×1x^1＝2x^1；(-3)x^1×(-2)x^0＝6x^1；(-3)x^1×1x^1＝(-3)x^2；1x^2×(-2)x^0＝(-2)x^2；1x^2×1x^1＝1x^3。",
        "合併同次項後：x³－5x²＋8x－4。",
        "逐欄核對：x^0欄=(-4)、x^1欄=8、x^2欄=(-5)、x^3欄=1；最高次不超三次。"
      ],
      "why": "逐係數守恆與定義角色核對，不以一次代值碰巧相等代替恆等。",
      "ifNotUnderstood": "同底數相乘是指數相加，係數才相乘；先保留所有非零乘積。",
      "teacherReviewed": false,
      "appConnected": false
    },
    {
      "id": "g8-poly-multiply-cubic.holdout.03",
      "code": "A-8-3",
      "subtypeId": "g8-poly-multiply-cubic",
      "kind": "holdout",
      "casePurpose": "teaching-example",
      "studentFacing": true,
      "prompt": "計算(2x)(3x²－4x＋1)，合併同類項。",
      "input": {
        "left": [
          0,
          2
        ],
        "right": [
          1,
          -4,
          3
        ],
        "confirmed": true,
        "task": "solve"
      },
      "expectedDecision": "pass",
      "expectedAnswer": {
        "coefficients": [
          "0",
          "2",
          "-8",
          "6"
        ]
      },
      "solutionSteps": [
        "逐項分配：2x^1×1x^0＝2x^1；2x^1×(-4)x^1＝(-8)x^2；2x^1×3x^2＝6x^3。",
        "合併同次項後：6x³－8x²＋2x。",
        "逐欄核對：x^0欄=0、x^1欄=2、x^2欄=(-8)、x^3欄=6；最高次不超三次。"
      ],
      "why": "逐係數守恆與定義角色核對，不以一次代值碰巧相等代替恆等。",
      "ifNotUnderstood": "同底數相乘是指數相加，係數才相乘；先保留所有非零乘積。",
      "teacherReviewed": false,
      "appConnected": false
    },
    {
      "id": "g8-poly-multiply-cubic.holdout.04",
      "code": "A-8-3",
      "subtypeId": "g8-poly-multiply-cubic",
      "kind": "holdout",
      "casePurpose": "teaching-example",
      "studentFacing": true,
      "prompt": "計算(x－4)(2x＋5)，合併同類項。",
      "input": {
        "left": [
          -4,
          1
        ],
        "right": [
          5,
          2
        ],
        "confirmed": true,
        "task": "solve"
      },
      "expectedDecision": "pass",
      "expectedAnswer": {
        "coefficients": [
          "-20",
          "-3",
          "2"
        ]
      },
      "solutionSteps": [
        "逐項分配：(-4)x^0×5x^0＝(-20)x^0；(-4)x^0×2x^1＝(-8)x^1；1x^1×5x^0＝5x^1；1x^1×2x^1＝2x^2。",
        "合併同次項後：2x²－3x－20。",
        "逐欄核對：x^0欄=(-20)、x^1欄=(-3)、x^2欄=2；最高次不超三次。"
      ],
      "why": "逐係數守恆與定義角色核對，不以一次代值碰巧相等代替恆等。",
      "ifNotUnderstood": "同底數相乘是指數相加，係數才相乘；先保留所有非零乘積。",
      "teacherReviewed": false,
      "appConnected": false
    },
    {
      "id": "g8-poly-quadratic-division.normal.01",
      "code": "A-8-3",
      "subtypeId": "g8-poly-quadratic-division",
      "kind": "normal",
      "casePurpose": "teaching-example",
      "studentFacing": true,
      "prompt": "用長除計算(2x²＋3x＋1)÷(x＋1)，寫商與餘式。",
      "input": {
        "dividend": [
          1,
          3,
          2
        ],
        "divisor": [
          1,
          1
        ],
        "confirmed": true,
        "task": "solve"
      },
      "expectedDecision": "pass",
      "expectedAnswer": {
        "quotient": [
          "1",
          "2"
        ],
        "remainder": [
          "0"
        ]
      },
      "solutionSteps": [
        "最高項相除：(2x²)÷(1x)＝2x。",
        "此商項乘除式得2x²＋2x；(2x²＋3x＋1)－(2x²＋2x)＝x＋1。",
        "最高項相除：(1x)÷(1x)＝1。",
        "此商項乘除式得x＋1；(x＋1)－(x＋1)＝0。",
        "商2x＋1，餘式0；逐係數核對原式＝(x＋1)(2x＋1)＋(0)。"
      ],
      "why": "逐係數守恆與定義角色核對，不以一次代值碰巧相等代替恆等。",
      "ifNotUnderstood": "只看餘式最高項與除式最高項，先決定下一商項；每次減的是整個乘積。",
      "teacherReviewed": false,
      "appConnected": false
    },
    {
      "id": "g8-poly-quadratic-division.normal.02",
      "code": "A-8-3",
      "subtypeId": "g8-poly-quadratic-division",
      "kind": "normal",
      "casePurpose": "teaching-example",
      "studentFacing": true,
      "prompt": "用長除計算(x²－3x＋2)÷(x－1)，寫商與餘式。",
      "input": {
        "dividend": [
          2,
          -3,
          1
        ],
        "divisor": [
          -1,
          1
        ],
        "confirmed": true,
        "task": "solve"
      },
      "expectedDecision": "pass",
      "expectedAnswer": {
        "quotient": [
          "-2",
          "1"
        ],
        "remainder": [
          "0"
        ]
      },
      "solutionSteps": [
        "最高項相除：(1x²)÷(1x)＝1x。",
        "此商項乘除式得x²－x；(x²－3x＋2)－(x²－x)＝－2x＋2。",
        "最高項相除：((-2)x)÷(1x)＝(-2)。",
        "此商項乘除式得－2x＋2；(－2x＋2)－(－2x＋2)＝0。",
        "商x－2，餘式0；逐係數核對原式＝(x－1)(x－2)＋(0)。"
      ],
      "why": "逐係數守恆與定義角色核對，不以一次代值碰巧相等代替恆等。",
      "ifNotUnderstood": "只看餘式最高項與除式最高項，先決定下一商項；每次減的是整個乘積。",
      "teacherReviewed": false,
      "appConnected": false
    },
    {
      "id": "g8-poly-quadratic-division.normal.03",
      "code": "A-8-3",
      "subtypeId": "g8-poly-quadratic-division",
      "kind": "normal",
      "casePurpose": "teaching-example",
      "studentFacing": true,
      "prompt": "用長除計算(x²＋1)÷(x＋1)，寫商與餘式。",
      "input": {
        "dividend": [
          1,
          0,
          1
        ],
        "divisor": [
          1,
          1
        ],
        "confirmed": true,
        "task": "solve"
      },
      "expectedDecision": "pass",
      "expectedAnswer": {
        "quotient": [
          "-1",
          "1"
        ],
        "remainder": [
          "2"
        ]
      },
      "solutionSteps": [
        "最高項相除：(1x²)÷(1x)＝1x。",
        "此商項乘除式得x²＋x；(x²＋1)－(x²＋x)＝－x＋1。",
        "最高項相除：((-1)x)÷(1x)＝(-1)。",
        "此商項乘除式得－x－1；(－x＋1)－(－x－1)＝2。",
        "商x－1，餘式2；逐係數核對原式＝(x＋1)(x－1)＋(2)。"
      ],
      "why": "逐係數守恆與定義角色核對，不以一次代值碰巧相等代替恆等。",
      "ifNotUnderstood": "只看餘式最高項與除式最高項，先決定下一商項；每次減的是整個乘積。",
      "teacherReviewed": false,
      "appConnected": false
    },
    {
      "id": "g8-poly-quadratic-division.normal.04",
      "code": "A-8-3",
      "subtypeId": "g8-poly-quadratic-division",
      "kind": "normal",
      "casePurpose": "teaching-example",
      "studentFacing": true,
      "prompt": "用長除計算(x²－4)÷(x－2)，寫商與餘式。",
      "input": {
        "dividend": [
          -4,
          0,
          1
        ],
        "divisor": [
          -2,
          1
        ],
        "confirmed": true,
        "task": "solve"
      },
      "expectedDecision": "pass",
      "expectedAnswer": {
        "quotient": [
          "2",
          "1"
        ],
        "remainder": [
          "0"
        ]
      },
      "solutionSteps": [
        "最高項相除：(1x²)÷(1x)＝1x。",
        "此商項乘除式得x²－2x；(x²－4)－(x²－2x)＝2x－4。",
        "最高項相除：(2x)÷(1x)＝2。",
        "此商項乘除式得2x－4；(2x－4)－(2x－4)＝0。",
        "商x＋2，餘式0；逐係數核對原式＝(x－2)(x＋2)＋(0)。"
      ],
      "why": "逐係數守恆與定義角色核對，不以一次代值碰巧相等代替恆等。",
      "ifNotUnderstood": "只看餘式最高項與除式最高項，先決定下一商項；每次減的是整個乘積。",
      "teacherReviewed": false,
      "appConnected": false
    },
    {
      "id": "g8-poly-quadratic-division.normal.05",
      "code": "A-8-3",
      "subtypeId": "g8-poly-quadratic-division",
      "kind": "normal",
      "casePurpose": "teaching-example",
      "studentFacing": true,
      "prompt": "用長除計算(x²＋2x＋3)÷(2x＋1)，寫商與餘式。",
      "input": {
        "dividend": [
          3,
          2,
          1
        ],
        "divisor": [
          1,
          2
        ],
        "confirmed": true,
        "task": "solve"
      },
      "expectedDecision": "pass",
      "expectedAnswer": {
        "quotient": [
          "3/4",
          "1/2"
        ],
        "remainder": [
          "9/4"
        ]
      },
      "solutionSteps": [
        "最高項相除：(1x²)÷(2x)＝(1/2)x。",
        "此商項乘除式得x²＋(1/2)x；(x²＋2x＋3)－(x²＋(1/2)x)＝(3/2)x＋3。",
        "最高項相除：((3/2)x)÷(2x)＝(3/4)。",
        "此商項乘除式得(3/2)x＋(3/4)；((3/2)x＋3)－((3/2)x＋(3/4))＝(9/4)。",
        "商(1/2)x＋(3/4)，餘式(9/4)；逐係數核對原式＝(2x＋1)((1/2)x＋(3/4))＋((9/4))。"
      ],
      "why": "逐係數守恆與定義角色核對，不以一次代值碰巧相等代替恆等。",
      "ifNotUnderstood": "只看餘式最高項與除式最高項，先決定下一商項；每次減的是整個乘積。",
      "teacherReviewed": false,
      "appConnected": false
    },
    {
      "id": "g8-poly-quadratic-division.normal.06",
      "code": "A-8-3",
      "subtypeId": "g8-poly-quadratic-division",
      "kind": "normal",
      "casePurpose": "teaching-example",
      "studentFacing": true,
      "prompt": "用長除計算(x²＋3x＋2)÷(x²＋1)，寫商與餘式。",
      "input": {
        "dividend": [
          2,
          3,
          1
        ],
        "divisor": [
          1,
          0,
          1
        ],
        "confirmed": true,
        "task": "solve"
      },
      "expectedDecision": "pass",
      "expectedAnswer": {
        "quotient": [
          "1"
        ],
        "remainder": [
          "1",
          "3"
        ]
      },
      "solutionSteps": [
        "最高項相除：(1x²)÷(1x²)＝1。",
        "此商項乘除式得x²＋1；(x²＋3x＋2)－(x²＋1)＝3x＋1。",
        "商1，餘式3x＋1；逐係數核對原式＝(x²＋1)(1)＋(3x＋1)。"
      ],
      "why": "逐係數守恆與定義角色核對，不以一次代值碰巧相等代替恆等。",
      "ifNotUnderstood": "只看餘式最高項與除式最高項，先決定下一商項；每次減的是整個乘積。",
      "teacherReviewed": false,
      "appConnected": false
    },
    {
      "id": "g8-poly-quadratic-division.normal.07",
      "code": "A-8-3",
      "subtypeId": "g8-poly-quadratic-division",
      "kind": "normal",
      "casePurpose": "teaching-example",
      "studentFacing": true,
      "prompt": "用長除計算(2x²)÷(x)，寫商與餘式。",
      "input": {
        "dividend": [
          0,
          0,
          2
        ],
        "divisor": [
          0,
          1
        ],
        "confirmed": true,
        "task": "solve"
      },
      "expectedDecision": "pass",
      "expectedAnswer": {
        "quotient": [
          "0",
          "2"
        ],
        "remainder": [
          "0"
        ]
      },
      "solutionSteps": [
        "最高項相除：(2x²)÷(1x)＝2x。",
        "此商項乘除式得2x²；(2x²)－(2x²)＝0。",
        "商2x，餘式0；逐係數核對原式＝(x)(2x)＋(0)。"
      ],
      "why": "逐係數守恆與定義角色核對，不以一次代值碰巧相等代替恆等。",
      "ifNotUnderstood": "只看餘式最高項與除式最高項，先決定下一商項；每次減的是整個乘積。",
      "teacherReviewed": false,
      "appConnected": false
    },
    {
      "id": "g8-poly-quadratic-division.normal.08",
      "code": "A-8-3",
      "subtypeId": "g8-poly-quadratic-division",
      "kind": "normal",
      "casePurpose": "teaching-example",
      "studentFacing": true,
      "prompt": "用長除計算(x²＋x－6)÷(x＋2)，寫商與餘式。",
      "input": {
        "dividend": [
          -6,
          1,
          1
        ],
        "divisor": [
          2,
          1
        ],
        "confirmed": true,
        "task": "solve"
      },
      "expectedDecision": "pass",
      "expectedAnswer": {
        "quotient": [
          "-1",
          "1"
        ],
        "remainder": [
          "-4"
        ]
      },
      "solutionSteps": [
        "最高項相除：(1x²)÷(1x)＝1x。",
        "此商項乘除式得x²＋2x；(x²＋x－6)－(x²＋2x)＝－x－6。",
        "最高項相除：((-1)x)÷(1x)＝(-1)。",
        "此商項乘除式得－x－2；(－x－6)－(－x－2)＝－4。",
        "商x－1，餘式－4；逐係數核對原式＝(x＋2)(x－1)＋(－4)。"
      ],
      "why": "逐係數守恆與定義角色核對，不以一次代值碰巧相等代替恆等。",
      "ifNotUnderstood": "只看餘式最高項與除式最高項，先決定下一商項；每次減的是整個乘積。",
      "teacherReviewed": false,
      "appConnected": false
    },
    {
      "id": "g8-poly-quadratic-division.negative.01",
      "code": "A-8-3",
      "subtypeId": "g8-poly-quadratic-division",
      "kind": "negative",
      "casePurpose": "proposal-review",
      "studentFacing": true,
      "prompt": "用長除計算(2x²＋3x＋1)÷(x＋1)，寫商與餘式。 同學提案「商2x²＋1、餘式0」，請逐步改正。",
      "input": {
        "dividend": [
          1,
          3,
          2
        ],
        "divisor": [
          1,
          1
        ],
        "confirmed": true,
        "task": "check_proposal",
        "proposal": {
          "quotient": [
            "1",
            "0",
            "2"
          ],
          "remainder": [
            "0"
          ]
        }
      },
      "expectedDecision": "reject",
      "expectedAnswer": {
        "quotient": [
          "1",
          "2"
        ],
        "remainder": [
          "0"
        ]
      },
      "solutionSteps": [
        "最高項相除時沒有相減次方，把商的2x誤寫成2x²。",
        "最高項相除：(2x²)÷(1x)＝2x。",
        "此商項乘除式得2x²＋2x；(2x²＋3x＋1)－(2x²＋2x)＝x＋1。",
        "最高項相除：(1x)÷(1x)＝1。",
        "此商項乘除式得x＋1；(x＋1)－(x＋1)＝0。",
        "商2x＋1，餘式0；逐係數核對原式＝(x＋1)(2x＋1)＋(0)。"
      ],
      "why": "最高項相除時沒有相減次方，把商的2x誤寫成2x²。",
      "ifNotUnderstood": "只看餘式最高項與除式最高項，先決定下一商項；每次減的是整個乘積。",
      "teacherReviewed": false,
      "appConnected": false
    },
    {
      "id": "g8-poly-quadratic-division.negative.02",
      "code": "A-8-3",
      "subtypeId": "g8-poly-quadratic-division",
      "kind": "negative",
      "casePurpose": "proposal-review",
      "studentFacing": true,
      "prompt": "用長除計算(x²－3x＋2)÷(x－1)，寫商與餘式。 同學提案「商x＋2、餘式0」，請逐步改正。",
      "input": {
        "dividend": [
          2,
          -3,
          1
        ],
        "divisor": [
          -1,
          1
        ],
        "confirmed": true,
        "task": "check_proposal",
        "proposal": {
          "quotient": [
            "2",
            "1"
          ],
          "remainder": [
            "0"
          ]
        }
      },
      "expectedDecision": "reject",
      "expectedAnswer": {
        "quotient": [
          "-2",
          "1"
        ],
        "remainder": [
          "0"
        ]
      },
      "solutionSteps": [
        "長除整式相減時常數商的負號算反。",
        "最高項相除：(1x²)÷(1x)＝1x。",
        "此商項乘除式得x²－x；(x²－3x＋2)－(x²－x)＝－2x＋2。",
        "最高項相除：((-2)x)÷(1x)＝(-2)。",
        "此商項乘除式得－2x＋2；(－2x＋2)－(－2x＋2)＝0。",
        "商x－2，餘式0；逐係數核對原式＝(x－1)(x－2)＋(0)。"
      ],
      "why": "長除整式相減時常數商的負號算反。",
      "ifNotUnderstood": "只看餘式最高項與除式最高項，先決定下一商項；每次減的是整個乘積。",
      "teacherReviewed": false,
      "appConnected": false
    },
    {
      "id": "g8-poly-quadratic-division.negative.03",
      "code": "A-8-3",
      "subtypeId": "g8-poly-quadratic-division",
      "kind": "negative",
      "casePurpose": "proposal-review",
      "studentFacing": true,
      "prompt": "用長除計算(x²＋1)÷(x＋1)，寫商與餘式。 同學提案「商x－1、餘式0」，請逐步改正。",
      "input": {
        "dividend": [
          1,
          0,
          1
        ],
        "divisor": [
          1,
          1
        ],
        "confirmed": true,
        "task": "check_proposal",
        "proposal": {
          "quotient": [
            "-1",
            "1"
          ],
          "remainder": [
            "0"
          ]
        }
      },
      "expectedDecision": "reject",
      "expectedAnswer": {
        "quotient": [
          "-1",
          "1"
        ],
        "remainder": [
          "2"
        ]
      },
      "solutionSteps": [
        "餘式2尚未抵消就省略；不能把非整除當成整除。",
        "最高項相除：(1x²)÷(1x)＝1x。",
        "此商項乘除式得x²＋x；(x²＋1)－(x²＋x)＝－x＋1。",
        "最高項相除：((-1)x)÷(1x)＝(-1)。",
        "此商項乘除式得－x－1；(－x＋1)－(－x－1)＝2。",
        "商x－1，餘式2；逐係數核對原式＝(x＋1)(x－1)＋(2)。"
      ],
      "why": "餘式2尚未抵消就省略；不能把非整除當成整除。",
      "ifNotUnderstood": "只看餘式最高項與除式最高項，先決定下一商項；每次減的是整個乘積。",
      "teacherReviewed": false,
      "appConnected": false
    },
    {
      "id": "g8-poly-quadratic-division.negative.04",
      "code": "A-8-3",
      "subtypeId": "g8-poly-quadratic-division",
      "kind": "negative",
      "casePurpose": "proposal-review",
      "studentFacing": true,
      "prompt": "用長除計算(x²－4)÷(x－2)，寫商與餘式。 同學提案「商x－2、餘式0」，請逐步改正。",
      "input": {
        "dividend": [
          -4,
          0,
          1
        ],
        "divisor": [
          -2,
          1
        ],
        "confirmed": true,
        "task": "check_proposal",
        "proposal": {
          "quotient": [
            "-2",
            "1"
          ],
          "remainder": [
            "0"
          ]
        }
      },
      "expectedDecision": "reject",
      "expectedAnswer": {
        "quotient": [
          "2",
          "1"
        ],
        "remainder": [
          "0"
        ]
      },
      "solutionSteps": [
        "平方差另一因式符號錯；除x−2應留下x＋2，不能再留x−2。",
        "最高項相除：(1x²)÷(1x)＝1x。",
        "此商項乘除式得x²－2x；(x²－4)－(x²－2x)＝2x－4。",
        "最高項相除：(2x)÷(1x)＝2。",
        "此商項乘除式得2x－4；(2x－4)－(2x－4)＝0。",
        "商x＋2，餘式0；逐係數核對原式＝(x－2)(x＋2)＋(0)。"
      ],
      "why": "平方差另一因式符號錯；除x−2應留下x＋2，不能再留x−2。",
      "ifNotUnderstood": "只看餘式最高項與除式最高項，先決定下一商項；每次減的是整個乘積。",
      "teacherReviewed": false,
      "appConnected": false
    },
    {
      "id": "g8-poly-quadratic-division.negative.05",
      "code": "A-8-3",
      "subtypeId": "g8-poly-quadratic-division",
      "kind": "negative",
      "casePurpose": "validator-guard",
      "studentFacing": false,
      "prompt": "工程守衛：布林係數不能當1；不是學生數學錯題。",
      "input": {
        "dividend": [
          true,
          3,
          2
        ],
        "divisor": [
          1,
          1
        ],
        "confirmed": true,
        "task": "solve"
      },
      "expectedDecision": "block",
      "expectedAnswer": null,
      "solutionSteps": [
        "原係數/次方/項數或結構超出契約，不作任意字串運算",
        "核對原式後才回此步，不用未知係數補成0。"
      ],
      "why": "工程守衛：布林係數不能當1；不是學生數學錯題。",
      "ifNotUnderstood": "先指出哪一個係數、次方或呈現形式沒有看清楚。",
      "teacherReviewed": false,
      "appConnected": false
    },
    {
      "id": "g8-poly-quadratic-division.negative.06",
      "code": "A-8-3",
      "subtypeId": "g8-poly-quadratic-division",
      "kind": "negative",
      "casePurpose": "validator-guard",
      "studentFacing": false,
      "prompt": "原題三次被除式超本碼二次被除式限制，需轉後續長除內容。",
      "input": {
        "dividend": [
          1,
          2,
          3,
          4
        ],
        "divisor": [
          1,
          1
        ],
        "confirmed": true,
        "task": "solve"
      },
      "expectedDecision": "block",
      "expectedAnswer": null,
      "solutionSteps": [
        "原係數/次方/項數或結構超出契約，不作任意字串運算",
        "核對原式後才回此步，不用未知係數補成0。"
      ],
      "why": "原題三次被除式超本碼二次被除式限制，需轉後續長除內容。",
      "ifNotUnderstood": "先指出哪一個係數、次方或呈現形式沒有看清楚。",
      "teacherReviewed": false,
      "appConnected": false
    },
    {
      "id": "g8-poly-quadratic-division.boundary.01",
      "code": "A-8-3",
      "subtypeId": "g8-poly-quadratic-division",
      "kind": "boundary",
      "casePurpose": "teaching-example",
      "studentFacing": true,
      "prompt": "用長除計算(x²)÷(x)，寫商與餘式。",
      "input": {
        "dividend": [
          0,
          0,
          1
        ],
        "divisor": [
          0,
          1
        ],
        "confirmed": true,
        "task": "solve"
      },
      "expectedDecision": "pass",
      "expectedAnswer": {
        "quotient": [
          "0",
          "1"
        ],
        "remainder": [
          "0"
        ]
      },
      "solutionSteps": [
        "最高項相除：(1x²)÷(1x)＝1x。",
        "此商項乘除式得x²；(x²)－(x²)＝0。",
        "商x，餘式0；逐係數核對原式＝(x)(x)＋(0)。"
      ],
      "why": "逐係數守恆與定義角色核對，不以一次代值碰巧相等代替恆等。",
      "ifNotUnderstood": "只看餘式最高項與除式最高項，先決定下一商項；每次減的是整個乘積。",
      "teacherReviewed": false,
      "appConnected": false
    },
    {
      "id": "g8-poly-quadratic-division.boundary.02",
      "code": "A-8-3",
      "subtypeId": "g8-poly-quadratic-division",
      "kind": "boundary",
      "casePurpose": "teaching-example",
      "studentFacing": true,
      "prompt": "用長除計算(x²＋1)÷(x²＋1)，寫商與餘式。",
      "input": {
        "dividend": [
          1,
          0,
          1
        ],
        "divisor": [
          1,
          0,
          1
        ],
        "confirmed": true,
        "task": "solve"
      },
      "expectedDecision": "pass",
      "expectedAnswer": {
        "quotient": [
          "1"
        ],
        "remainder": [
          "0"
        ]
      },
      "solutionSteps": [
        "最高項相除：(1x²)÷(1x²)＝1。",
        "此商項乘除式得x²＋1；(x²＋1)－(x²＋1)＝0。",
        "商1，餘式0；逐係數核對原式＝(x²＋1)(1)＋(0)。"
      ],
      "why": "逐係數守恆與定義角色核對，不以一次代值碰巧相等代替恆等。",
      "ifNotUnderstood": "只看餘式最高項與除式最高項，先決定下一商項；每次減的是整個乘積。",
      "teacherReviewed": false,
      "appConnected": false
    },
    {
      "id": "g8-poly-quadratic-division.boundary.03",
      "code": "A-8-3",
      "subtypeId": "g8-poly-quadratic-division",
      "kind": "boundary",
      "casePurpose": "teaching-example",
      "studentFacing": true,
      "prompt": "用長除計算(x²＋x)÷(2x＋1)，寫商與餘式。",
      "input": {
        "dividend": [
          0,
          1,
          1
        ],
        "divisor": [
          1,
          2
        ],
        "confirmed": true,
        "task": "solve"
      },
      "expectedDecision": "pass",
      "expectedAnswer": {
        "quotient": [
          "1/4",
          "1/2"
        ],
        "remainder": [
          "-1/4"
        ]
      },
      "solutionSteps": [
        "最高項相除：(1x²)÷(2x)＝(1/2)x。",
        "此商項乘除式得x²＋(1/2)x；(x²＋x)－(x²＋(1/2)x)＝(1/2)x。",
        "最高項相除：((1/2)x)÷(2x)＝(1/4)。",
        "此商項乘除式得(1/2)x＋(1/4)；((1/2)x)－((1/2)x＋(1/4))＝－(1/4)。",
        "商(1/2)x＋(1/4)，餘式－(1/4)；逐係數核對原式＝(2x＋1)((1/2)x＋(1/4))＋(－(1/4))。"
      ],
      "why": "逐係數守恆與定義角色核對，不以一次代值碰巧相等代替恆等。",
      "ifNotUnderstood": "只看餘式最高項與除式最高項，先決定下一商項；每次減的是整個乘積。",
      "teacherReviewed": false,
      "appConnected": false
    },
    {
      "id": "g8-poly-quadratic-division.boundary.04",
      "code": "A-8-3",
      "subtypeId": "g8-poly-quadratic-division",
      "kind": "boundary",
      "casePurpose": "teaching-example",
      "studentFacing": true,
      "prompt": "用長除計算(－x²＋1)÷(－x＋1)，寫商與餘式。",
      "input": {
        "dividend": [
          1,
          0,
          -1
        ],
        "divisor": [
          1,
          -1
        ],
        "confirmed": true,
        "task": "solve"
      },
      "expectedDecision": "pass",
      "expectedAnswer": {
        "quotient": [
          "1",
          "1"
        ],
        "remainder": [
          "0"
        ]
      },
      "solutionSteps": [
        "最高項相除：((-1)x²)÷((-1)x)＝1x。",
        "此商項乘除式得－x²＋x；(－x²＋1)－(－x²＋x)＝－x＋1。",
        "最高項相除：((-1)x)÷((-1)x)＝1。",
        "此商項乘除式得－x＋1；(－x＋1)－(－x＋1)＝0。",
        "商x＋1，餘式0；逐係數核對原式＝(－x＋1)(x＋1)＋(0)。"
      ],
      "why": "逐係數守恆與定義角色核對，不以一次代值碰巧相等代替恆等。",
      "ifNotUnderstood": "只看餘式最高項與除式最高項，先決定下一商項；每次減的是整個乘積。",
      "teacherReviewed": false,
      "appConnected": false
    },
    {
      "id": "g8-poly-quadratic-division.ambiguous.01",
      "code": "A-8-3",
      "subtypeId": "g8-poly-quadratic-division",
      "kind": "ambiguous",
      "casePurpose": "teaching-example",
      "studentFacing": true,
      "prompt": "原長除(x²＋2x＋3)÷(2x＋？)，問號係數未確認，商與餘式能確定嗎？",
      "input": {
        "dividend": [
          3,
          2,
          1
        ],
        "divisor": [
          null,
          2
        ],
        "confirmed": true,
        "task": "solve"
      },
      "expectedDecision": "confirm",
      "expectedAnswer": null,
      "solutionSteps": [
        "缺少原式的係數、次方或寫法，先確認題目，不自行補值。",
        "核對原式後才回此步，不用未知係數補成0。"
      ],
      "why": "逐係數守恆與定義角色核對，不以一次代值碰巧相等代替恆等。",
      "ifNotUnderstood": "先指出哪一個係數、次方或呈現形式沒有看清楚。",
      "teacherReviewed": false,
      "appConnected": false
    },
    {
      "id": "g8-poly-quadratic-division.ambiguous.02",
      "code": "A-8-3",
      "subtypeId": "g8-poly-quadratic-division",
      "kind": "ambiguous",
      "casePurpose": "teaching-example",
      "studentFacing": true,
      "prompt": "原長除(x²＋？x＋2)÷(x²＋1)，問號係數未確認，商與餘式能確定嗎？",
      "input": {
        "dividend": [
          2,
          null,
          1
        ],
        "divisor": [
          1,
          0,
          1
        ],
        "confirmed": true,
        "task": "solve"
      },
      "expectedDecision": "confirm",
      "expectedAnswer": null,
      "solutionSteps": [
        "缺少原式的係數、次方或寫法，先確認題目，不自行補值。",
        "核對原式後才回此步，不用未知係數補成0。"
      ],
      "why": "逐係數守恆與定義角色核對，不以一次代值碰巧相等代替恆等。",
      "ifNotUnderstood": "先指出哪一個係數、次方或呈現形式沒有看清楚。",
      "teacherReviewed": false,
      "appConnected": false
    },
    {
      "id": "g8-poly-quadratic-division.holdout.01",
      "code": "A-8-3",
      "subtypeId": "g8-poly-quadratic-division",
      "kind": "holdout",
      "casePurpose": "teaching-example",
      "studentFacing": true,
      "prompt": "用長除計算(2x²＋5x＋7)÷(x＋2)，寫商與餘式。",
      "input": {
        "dividend": [
          7,
          5,
          2
        ],
        "divisor": [
          2,
          1
        ],
        "confirmed": true,
        "task": "solve"
      },
      "expectedDecision": "pass",
      "expectedAnswer": {
        "quotient": [
          "1",
          "2"
        ],
        "remainder": [
          "5"
        ]
      },
      "solutionSteps": [
        "最高項相除：(2x²)÷(1x)＝2x。",
        "此商項乘除式得2x²＋4x；(2x²＋5x＋7)－(2x²＋4x)＝x＋7。",
        "最高項相除：(1x)÷(1x)＝1。",
        "此商項乘除式得x＋2；(x＋7)－(x＋2)＝5。",
        "商2x＋1，餘式5；逐係數核對原式＝(x＋2)(2x＋1)＋(5)。"
      ],
      "why": "逐係數守恆與定義角色核對，不以一次代值碰巧相等代替恆等。",
      "ifNotUnderstood": "只看餘式最高項與除式最高項，先決定下一商項；每次減的是整個乘積。",
      "teacherReviewed": false,
      "appConnected": false
    },
    {
      "id": "g8-poly-quadratic-division.holdout.02",
      "code": "A-8-3",
      "subtypeId": "g8-poly-quadratic-division",
      "kind": "holdout",
      "casePurpose": "teaching-example",
      "studentFacing": true,
      "prompt": "用長除計算(2x²＋4x－3)÷(－x＋3)，寫商與餘式。",
      "input": {
        "dividend": [
          -3,
          4,
          2
        ],
        "divisor": [
          3,
          -1
        ],
        "confirmed": true,
        "task": "solve"
      },
      "expectedDecision": "pass",
      "expectedAnswer": {
        "quotient": [
          "-10",
          "-2"
        ],
        "remainder": [
          "27"
        ]
      },
      "solutionSteps": [
        "最高項相除：(2x²)÷((-1)x)＝(-2)x。",
        "此商項乘除式得2x²－6x；(2x²＋4x－3)－(2x²－6x)＝10x－3。",
        "最高項相除：(10x)÷((-1)x)＝(-10)。",
        "此商項乘除式得10x－30；(10x－3)－(10x－30)＝27。",
        "商－2x－10，餘式27；逐係數核對原式＝(－x＋3)(－2x－10)＋(27)。"
      ],
      "why": "逐係數守恆與定義角色核對，不以一次代值碰巧相等代替恆等。",
      "ifNotUnderstood": "只看餘式最高項與除式最高項，先決定下一商項；每次減的是整個乘積。",
      "teacherReviewed": false,
      "appConnected": false
    },
    {
      "id": "g8-poly-quadratic-division.holdout.03",
      "code": "A-8-3",
      "subtypeId": "g8-poly-quadratic-division",
      "kind": "holdout",
      "casePurpose": "teaching-example",
      "studentFacing": true,
      "prompt": "用長除計算(3x²－2x＋5)÷(2x²＋1)，寫商與餘式。",
      "input": {
        "dividend": [
          5,
          -2,
          3
        ],
        "divisor": [
          1,
          0,
          2
        ],
        "confirmed": true,
        "task": "solve"
      },
      "expectedDecision": "pass",
      "expectedAnswer": {
        "quotient": [
          "3/2"
        ],
        "remainder": [
          "7/2",
          "-2"
        ]
      },
      "solutionSteps": [
        "最高項相除：(3x²)÷(2x²)＝(3/2)。",
        "此商項乘除式得3x²＋(3/2)；(3x²－2x＋5)－(3x²＋(3/2))＝－2x＋(7/2)。",
        "商(3/2)，餘式－2x＋(7/2)；逐係數核對原式＝(2x²＋1)((3/2))＋(－2x＋(7/2))。"
      ],
      "why": "逐係數守恆與定義角色核對，不以一次代值碰巧相等代替恆等。",
      "ifNotUnderstood": "只看餘式最高項與除式最高項，先決定下一商項；每次減的是整個乘積。",
      "teacherReviewed": false,
      "appConnected": false
    },
    {
      "id": "g8-poly-quadratic-division.holdout.04",
      "code": "A-8-3",
      "subtypeId": "g8-poly-quadratic-division",
      "kind": "holdout",
      "casePurpose": "teaching-example",
      "studentFacing": true,
      "prompt": "用長除計算(2x²＋6x＋4)÷(2x＋2)，寫商與餘式。",
      "input": {
        "dividend": [
          4,
          6,
          2
        ],
        "divisor": [
          2,
          2
        ],
        "confirmed": true,
        "task": "solve"
      },
      "expectedDecision": "pass",
      "expectedAnswer": {
        "quotient": [
          "2",
          "1"
        ],
        "remainder": [
          "0"
        ]
      },
      "solutionSteps": [
        "最高項相除：(2x²)÷(2x)＝1x。",
        "此商項乘除式得2x²＋2x；(2x²＋6x＋4)－(2x²＋2x)＝4x＋4。",
        "最高項相除：(4x)÷(2x)＝2。",
        "此商項乘除式得4x＋4；(4x＋4)－(4x＋4)＝0。",
        "商x＋2，餘式0；逐係數核對原式＝(2x＋2)(x＋2)＋(0)。"
      ],
      "why": "逐係數守恆與定義角色核對，不以一次代值碰巧相等代替恆等。",
      "ifNotUnderstood": "只看餘式最高項與除式最高項，先決定下一商項；每次減的是整個乘積。",
      "teacherReviewed": false,
      "appConnected": false
    }
  ],
  "teacherReviewed": false,
  "appConnected": false
}
