{
  "code": "A-8-1",
  "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": [
      3307,
      3315
    ],
    "verbatimLocalTextExcerpt": "A-8-1 \n二次式的乘法公式 ：(𝑎 +\n𝑏)2 = 𝑎2 + 2𝑎𝑏 + 𝑏2；(𝑎 −\n𝑏)2 = 𝑎2 − 2𝑎𝑏 + 𝑏2；(𝑎 +\n𝑏)(𝑎 − 𝑏) = 𝑎2 − 𝑏2；(𝑎 +\n𝑏)(𝑐 + 𝑑) = 𝑎𝑐 + 𝑎𝑑 +\n𝑏𝑐 + 𝑏𝑑。 \n  \na-IV-5 "
  },
  "subtypes": [
    {
      "id": "g8-poly-binomial-square",
      "title": "平方公式保留中間兩倍乘積",
      "method": {
        "name": "平方公式保留中間兩倍乘積",
        "steps": [
          "把原二項式看成u與v。",
          "逐項算u²、2uv、v²，負號放在v裡一併處理。",
          "合併成降冪式。",
          "再用兩個原二項式分配相乘逆驗。"
        ],
        "guards": [
          "只接受已確認有限結構，不eval任意原字串。",
          "缺少係數/次方/角色先確認；本包原量上限不冒充官方上限。"
        ]
      },
      "applicability": [
        "原式單一變數/候選角色及係數已核對"
      ],
      "exclusions": [
        "一般二元因式分解、任意字串解析、未確認OCR、分離係數法不在本包"
      ],
      "inputContract": {
        "required": [
          "p",
          "q"
        ],
        "raw": "整係數-50..50；多項式升冪係數陣列；意義項最多8項次方0..6；定義辨識另含-3..6半整指數與y項",
        "task": [
          "solve",
          "check_proposal"
        ],
        "confirmed": "true才算，必要欄/已提供結構中的缺值先confirm",
        "derived": "獨立有界64位數值解析；因式乘積按展開係數接受因子調序/符號和等值尺度，不只比字串",
        "modeDetails": "(px+q)²，p/q允0退化、係數-50..50"
      },
      "ifNotUnderstood": "把原二項式看成u與v。"
    },
    {
      "id": "g8-poly-difference-squares",
      "title": "和乘差，交叉項相消",
      "method": {
        "name": "和乘差，交叉項相消",
        "steps": [
          "辨認同一u加v與u減v。",
          "先算u²與v²。",
          "用u²－v²，不能把負號平方後改加。",
          "四項分配核對中間項相消。"
        ],
        "guards": [
          "只接受已確認有限結構，不eval任意原字串。",
          "缺少係數/次方/角色先確認；本包原量上限不冒充官方上限。"
        ]
      },
      "applicability": [
        "原式單一變數/候選角色及係數已核對"
      ],
      "exclusions": [
        "一般二元因式分解、任意字串解析、未確認OCR、分離係數法不在本包"
      ],
      "inputContract": {
        "required": [
          "p",
          "q"
        ],
        "raw": "整係數-50..50；多項式升冪係數陣列；意義項最多8項次方0..6；定義辨識另含-3..6半整指數與y項",
        "task": [
          "solve",
          "check_proposal"
        ],
        "confirmed": "true才算，必要欄/已提供結構中的缺值先confirm",
        "derived": "獨立有界64位數值解析；因式乘積按展開係數接受因子調序/符號和等值尺度，不只比字串",
        "modeDetails": "(px+q)(px−q)，p/q允0；q含負號仍整體相反"
      },
      "ifNotUnderstood": "辨認同一u加v與u減v。"
    },
    {
      "id": "g8-poly-binomial-product",
      "title": "四項分配後合併同類項",
      "method": {
        "name": "四項分配後合併同類項",
        "steps": [
          "每個第一括號項都要乘第二括號兩項。",
          "寫出四個乘積並保留負係數。",
          "只合併同次項。",
          "逐次方對照係數和，或代值再檢查。"
        ],
        "guards": [
          "只接受已確認有限結構，不eval任意原字串。",
          "缺少係數/次方/角色先確認；本包原量上限不冒充官方上限。"
        ]
      },
      "applicability": [
        "原式單一變數/候選角色及係數已核對"
      ],
      "exclusions": [
        "一般二元因式分解、任意字串解析、未確認OCR、分離係數法不在本包"
      ],
      "inputContract": {
        "required": [
          "a",
          "b",
          "c",
          "d"
        ],
        "raw": "整係數-50..50；多項式升冪係數陣列；意義項最多8項次方0..6；定義辨識另含-3..6半整指數與y項",
        "task": [
          "solve",
          "check_proposal"
        ],
        "confirmed": "true才算，必要欄/已提供結構中的缺值先confirm",
        "derived": "獨立有界64位數值解析；因式乘積按展開係數接受因子調序/符號和等值尺度，不只比字串",
        "modeDetails": "(ax+b)(cx+d)，四係數有限整數"
      },
      "ifNotUnderstood": "每個第一括號項都要乘第二括號兩項。"
    }
  ],
  "cases": [
    {
      "id": "g8-poly-binomial-square.normal.01",
      "code": "A-8-1",
      "subtypeId": "g8-poly-binomial-square",
      "kind": "normal",
      "casePurpose": "teaching-example",
      "studentFacing": true,
      "prompt": "展開(x＋3)²。",
      "input": {
        "p": 1,
        "q": 3,
        "confirmed": true,
        "task": "solve"
      },
      "expectedDecision": "pass",
      "expectedAnswer": {
        "coefficients": [
          "9",
          "6",
          "1"
        ]
      },
      "solutionSteps": [
        "u＝x，v＝3；(u＋v)²＝u²＋2uv＋v²。",
        "首項係數：1×1＝1；中項係數：2×1×3＝6；常數：3×3＝9。",
        "合併：x²＋6x＋9。",
        "乘回逐欄核對：x^0欄=9、x^1欄=6、x^2欄=1；原兩因子直接分配也得到這些係數。"
      ],
      "why": "逐係數守恆與定義角色核對，不以一次代值碰巧相等代替恆等。",
      "ifNotUnderstood": "先圈出整個第二項（含負號），平方公式的中間項是兩次相同乘積。",
      "teacherReviewed": false,
      "appConnected": false
    },
    {
      "id": "g8-poly-binomial-square.normal.02",
      "code": "A-8-1",
      "subtypeId": "g8-poly-binomial-square",
      "kind": "normal",
      "casePurpose": "teaching-example",
      "studentFacing": true,
      "prompt": "展開(2x－3)²。",
      "input": {
        "p": 2,
        "q": -3,
        "confirmed": true,
        "task": "solve"
      },
      "expectedDecision": "pass",
      "expectedAnswer": {
        "coefficients": [
          "9",
          "-12",
          "4"
        ]
      },
      "solutionSteps": [
        "u＝2x，v＝(-3)；(u＋v)²＝u²＋2uv＋v²。",
        "首項係數：2×2＝4；中項係數：2×2×(-3)＝(-12)；常數：(-3)×(-3)＝9。",
        "合併：4x²－12x＋9。",
        "乘回逐欄核對：x^0欄=9、x^1欄=(-12)、x^2欄=4；原兩因子直接分配也得到這些係數。"
      ],
      "why": "逐係數守恆與定義角色核對，不以一次代值碰巧相等代替恆等。",
      "ifNotUnderstood": "先圈出整個第二項（含負號），平方公式的中間項是兩次相同乘積。",
      "teacherReviewed": false,
      "appConnected": false
    },
    {
      "id": "g8-poly-binomial-square.normal.03",
      "code": "A-8-1",
      "subtypeId": "g8-poly-binomial-square",
      "kind": "normal",
      "casePurpose": "teaching-example",
      "studentFacing": true,
      "prompt": "展開(－2x＋1)²。",
      "input": {
        "p": -2,
        "q": 1,
        "confirmed": true,
        "task": "solve"
      },
      "expectedDecision": "pass",
      "expectedAnswer": {
        "coefficients": [
          "1",
          "-4",
          "4"
        ]
      },
      "solutionSteps": [
        "u＝－2x，v＝1；(u＋v)²＝u²＋2uv＋v²。",
        "首項係數：(-2)×(-2)＝4；中項係數：2×(-2)×1＝(-4)；常數：1×1＝1。",
        "合併：4x²－4x＋1。",
        "乘回逐欄核對：x^0欄=1、x^1欄=(-4)、x^2欄=4；原兩因子直接分配也得到這些係數。"
      ],
      "why": "逐係數守恆與定義角色核對，不以一次代值碰巧相等代替恆等。",
      "ifNotUnderstood": "先圈出整個第二項（含負號），平方公式的中間項是兩次相同乘積。",
      "teacherReviewed": false,
      "appConnected": false
    },
    {
      "id": "g8-poly-binomial-square.normal.04",
      "code": "A-8-1",
      "subtypeId": "g8-poly-binomial-square",
      "kind": "normal",
      "casePurpose": "teaching-example",
      "studentFacing": true,
      "prompt": "展開(3x＋2)²。",
      "input": {
        "p": 3,
        "q": 2,
        "confirmed": true,
        "task": "solve"
      },
      "expectedDecision": "pass",
      "expectedAnswer": {
        "coefficients": [
          "4",
          "12",
          "9"
        ]
      },
      "solutionSteps": [
        "u＝3x，v＝2；(u＋v)²＝u²＋2uv＋v²。",
        "首項係數：3×3＝9；中項係數：2×3×2＝12；常數：2×2＝4。",
        "合併：9x²＋12x＋4。",
        "乘回逐欄核對：x^0欄=4、x^1欄=12、x^2欄=9；原兩因子直接分配也得到這些係數。"
      ],
      "why": "逐係數守恆與定義角色核對，不以一次代值碰巧相等代替恆等。",
      "ifNotUnderstood": "先圈出整個第二項（含負號），平方公式的中間項是兩次相同乘積。",
      "teacherReviewed": false,
      "appConnected": false
    },
    {
      "id": "g8-poly-binomial-square.normal.05",
      "code": "A-8-1",
      "subtypeId": "g8-poly-binomial-square",
      "kind": "normal",
      "casePurpose": "teaching-example",
      "studentFacing": true,
      "prompt": "展開(x－5)²。",
      "input": {
        "p": 1,
        "q": -5,
        "confirmed": true,
        "task": "solve"
      },
      "expectedDecision": "pass",
      "expectedAnswer": {
        "coefficients": [
          "25",
          "-10",
          "1"
        ]
      },
      "solutionSteps": [
        "u＝x，v＝(-5)；(u＋v)²＝u²＋2uv＋v²。",
        "首項係數：1×1＝1；中項係數：2×1×(-5)＝(-10)；常數：(-5)×(-5)＝25。",
        "合併：x²－10x＋25。",
        "乘回逐欄核對：x^0欄=25、x^1欄=(-10)、x^2欄=1；原兩因子直接分配也得到這些係數。"
      ],
      "why": "逐係數守恆與定義角色核對，不以一次代值碰巧相等代替恆等。",
      "ifNotUnderstood": "先圈出整個第二項（含負號），平方公式的中間項是兩次相同乘積。",
      "teacherReviewed": false,
      "appConnected": false
    },
    {
      "id": "g8-poly-binomial-square.normal.06",
      "code": "A-8-1",
      "subtypeId": "g8-poly-binomial-square",
      "kind": "normal",
      "casePurpose": "teaching-example",
      "studentFacing": true,
      "prompt": "展開(－x－4)²。",
      "input": {
        "p": -1,
        "q": -4,
        "confirmed": true,
        "task": "solve"
      },
      "expectedDecision": "pass",
      "expectedAnswer": {
        "coefficients": [
          "16",
          "8",
          "1"
        ]
      },
      "solutionSteps": [
        "u＝－x，v＝(-4)；(u＋v)²＝u²＋2uv＋v²。",
        "首項係數：(-1)×(-1)＝1；中項係數：2×(-1)×(-4)＝8；常數：(-4)×(-4)＝16。",
        "合併：x²＋8x＋16。",
        "乘回逐欄核對：x^0欄=16、x^1欄=8、x^2欄=1；原兩因子直接分配也得到這些係數。"
      ],
      "why": "逐係數守恆與定義角色核對，不以一次代值碰巧相等代替恆等。",
      "ifNotUnderstood": "先圈出整個第二項（含負號），平方公式的中間項是兩次相同乘積。",
      "teacherReviewed": false,
      "appConnected": false
    },
    {
      "id": "g8-poly-binomial-square.normal.07",
      "code": "A-8-1",
      "subtypeId": "g8-poly-binomial-square",
      "kind": "normal",
      "casePurpose": "teaching-example",
      "studentFacing": true,
      "prompt": "展開(2x)²。",
      "input": {
        "p": 2,
        "q": 0,
        "confirmed": true,
        "task": "solve"
      },
      "expectedDecision": "pass",
      "expectedAnswer": {
        "coefficients": [
          "0",
          "0",
          "4"
        ]
      },
      "solutionSteps": [
        "u＝2x，v＝0；(u＋v)²＝u²＋2uv＋v²。",
        "首項係數：2×2＝4；中項係數：2×2×0＝0；常數：0×0＝0。",
        "合併：4x²。",
        "乘回逐欄核對：x^0欄=0、x^1欄=0、x^2欄=4；原兩因子直接分配也得到這些係數。"
      ],
      "why": "逐係數守恆與定義角色核對，不以一次代值碰巧相等代替恆等。",
      "ifNotUnderstood": "先圈出整個第二項（含負號），平方公式的中間項是兩次相同乘積。",
      "teacherReviewed": false,
      "appConnected": false
    },
    {
      "id": "g8-poly-binomial-square.normal.08",
      "code": "A-8-1",
      "subtypeId": "g8-poly-binomial-square",
      "kind": "normal",
      "casePurpose": "teaching-example",
      "studentFacing": true,
      "prompt": "展開(7)²。",
      "input": {
        "p": 0,
        "q": 7,
        "confirmed": true,
        "task": "solve"
      },
      "expectedDecision": "pass",
      "expectedAnswer": {
        "coefficients": [
          "49"
        ]
      },
      "solutionSteps": [
        "u＝0，v＝7；(u＋v)²＝u²＋2uv＋v²。",
        "首項係數：0×0＝0；中項係數：2×0×7＝0；常數：7×7＝49。",
        "合併：49。",
        "乘回逐欄核對：x^0欄=49；原兩因子直接分配也得到這些係數。"
      ],
      "why": "逐係數守恆與定義角色核對，不以一次代值碰巧相等代替恆等。",
      "ifNotUnderstood": "先圈出整個第二項（含負號），平方公式的中間項是兩次相同乘積。",
      "teacherReviewed": false,
      "appConnected": false
    },
    {
      "id": "g8-poly-binomial-square.negative.01",
      "code": "A-8-1",
      "subtypeId": "g8-poly-binomial-square",
      "kind": "negative",
      "casePurpose": "proposal-review",
      "studentFacing": true,
      "prompt": "展開(x＋3)²。 同學提案「x²＋9」，請逐步改正。",
      "input": {
        "p": 1,
        "q": 3,
        "confirmed": true,
        "task": "check_proposal",
        "proposal": {
          "coefficients": [
            "9",
            "0",
            "1"
          ]
        }
      },
      "expectedDecision": "reject",
      "expectedAnswer": {
        "coefficients": [
          "9",
          "6",
          "1"
        ]
      },
      "solutionSteps": [
        "把和的平方誤當平方和，漏掉兩倍交叉項。",
        "u＝x，v＝3；(u＋v)²＝u²＋2uv＋v²。",
        "首項係數：1×1＝1；中項係數：2×1×3＝6；常數：3×3＝9。",
        "合併：x²＋6x＋9。",
        "乘回逐欄核對：x^0欄=9、x^1欄=6、x^2欄=1；原兩因子直接分配也得到這些係數。"
      ],
      "why": "把和的平方誤當平方和，漏掉兩倍交叉項。",
      "ifNotUnderstood": "先圈出整個第二項（含負號），平方公式的中間項是兩次相同乘積。",
      "teacherReviewed": false,
      "appConnected": false
    },
    {
      "id": "g8-poly-binomial-square.negative.02",
      "code": "A-8-1",
      "subtypeId": "g8-poly-binomial-square",
      "kind": "negative",
      "casePurpose": "proposal-review",
      "studentFacing": true,
      "prompt": "展開(2x－3)²。 同學提案「4x²＋12x＋9」，請逐步改正。",
      "input": {
        "p": 2,
        "q": -3,
        "confirmed": true,
        "task": "check_proposal",
        "proposal": {
          "coefficients": [
            "9",
            "12",
            "4"
          ]
        }
      },
      "expectedDecision": "reject",
      "expectedAnswer": {
        "coefficients": [
          "9",
          "-12",
          "4"
        ]
      },
      "solutionSteps": [
        "第二項負號沒有放進2pq，中項正負顛倒。",
        "u＝2x，v＝(-3)；(u＋v)²＝u²＋2uv＋v²。",
        "首項係數：2×2＝4；中項係數：2×2×(-3)＝(-12)；常數：(-3)×(-3)＝9。",
        "合併：4x²－12x＋9。",
        "乘回逐欄核對：x^0欄=9、x^1欄=(-12)、x^2欄=4；原兩因子直接分配也得到這些係數。"
      ],
      "why": "第二項負號沒有放進2pq，中項正負顛倒。",
      "ifNotUnderstood": "先圈出整個第二項（含負號），平方公式的中間項是兩次相同乘積。",
      "teacherReviewed": false,
      "appConnected": false
    },
    {
      "id": "g8-poly-binomial-square.negative.03",
      "code": "A-8-1",
      "subtypeId": "g8-poly-binomial-square",
      "kind": "negative",
      "casePurpose": "proposal-review",
      "studentFacing": true,
      "prompt": "展開(－2x＋1)²。 同學提案「－2x²－4x＋1」，請逐步改正。",
      "input": {
        "p": -2,
        "q": 1,
        "confirmed": true,
        "task": "check_proposal",
        "proposal": {
          "coefficients": [
            "1",
            "-4",
            "-2"
          ]
        }
      },
      "expectedDecision": "reject",
      "expectedAnswer": {
        "coefficients": [
          "1",
          "-4",
          "4"
        ]
      },
      "solutionSteps": [
        "只把x平方，負的首係數沒有一起平方。",
        "u＝－2x，v＝1；(u＋v)²＝u²＋2uv＋v²。",
        "首項係數：(-2)×(-2)＝4；中項係數：2×(-2)×1＝(-4)；常數：1×1＝1。",
        "合併：4x²－4x＋1。",
        "乘回逐欄核對：x^0欄=1、x^1欄=(-4)、x^2欄=4；原兩因子直接分配也得到這些係數。"
      ],
      "why": "只把x平方，負的首係數沒有一起平方。",
      "ifNotUnderstood": "先圈出整個第二項（含負號），平方公式的中間項是兩次相同乘積。",
      "teacherReviewed": false,
      "appConnected": false
    },
    {
      "id": "g8-poly-binomial-square.negative.04",
      "code": "A-8-1",
      "subtypeId": "g8-poly-binomial-square",
      "kind": "negative",
      "casePurpose": "proposal-review",
      "studentFacing": true,
      "prompt": "展開(3x＋2)²。 同學提案「9x²＋12x＋2」，請逐步改正。",
      "input": {
        "p": 3,
        "q": 2,
        "confirmed": true,
        "task": "check_proposal",
        "proposal": {
          "coefficients": [
            "2",
            "12",
            "9"
          ]
        }
      },
      "expectedDecision": "reject",
      "expectedAnswer": {
        "coefficients": [
          "4",
          "12",
          "9"
        ]
      },
      "solutionSteps": [
        "常數項沒平方，誤把q直接留在結果。",
        "u＝3x，v＝2；(u＋v)²＝u²＋2uv＋v²。",
        "首項係數：3×3＝9；中項係數：2×3×2＝12；常數：2×2＝4。",
        "合併：9x²＋12x＋4。",
        "乘回逐欄核對：x^0欄=4、x^1欄=12、x^2欄=9；原兩因子直接分配也得到這些係數。"
      ],
      "why": "常數項沒平方，誤把q直接留在結果。",
      "ifNotUnderstood": "先圈出整個第二項（含負號），平方公式的中間項是兩次相同乘積。",
      "teacherReviewed": false,
      "appConnected": false
    },
    {
      "id": "g8-poly-binomial-square.negative.05",
      "code": "A-8-1",
      "subtypeId": "g8-poly-binomial-square",
      "kind": "negative",
      "casePurpose": "validator-guard",
      "studentFacing": false,
      "prompt": "工程守衛：布林係數不能當1；不是學生數學錯題。",
      "input": {
        "p": true,
        "q": 3,
        "confirmed": true,
        "task": "solve"
      },
      "expectedDecision": "block",
      "expectedAnswer": null,
      "solutionSteps": [
        "原係數/次方/項數或結構超出契約，不作任意字串運算",
        "核對原式後才回此步，不用未知係數補成0。"
      ],
      "why": "工程守衛：布林係數不能當1；不是學生數學錯題。",
      "ifNotUnderstood": "先指出哪一個係數、次方或呈現形式沒有看清楚。",
      "teacherReviewed": false,
      "appConnected": false
    },
    {
      "id": "g8-poly-binomial-square.negative.06",
      "code": "A-8-1",
      "subtypeId": "g8-poly-binomial-square",
      "kind": "negative",
      "casePurpose": "validator-guard",
      "studentFacing": false,
      "prompt": "工程守衛：巨大整數超原係數有限範圍，不先做乘冪/枚舉因數。",
      "input": {
        "p": 100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,
        "q": 3,
        "confirmed": true,
        "task": "solve"
      },
      "expectedDecision": "block",
      "expectedAnswer": null,
      "solutionSteps": [
        "原係數/次方/項數或結構超出契約，不作任意字串運算",
        "核對原式後才回此步，不用未知係數補成0。"
      ],
      "why": "工程守衛：巨大整數超原係數有限範圍，不先做乘冪/枚舉因數。",
      "ifNotUnderstood": "先指出哪一個係數、次方或呈現形式沒有看清楚。",
      "teacherReviewed": false,
      "appConnected": false
    },
    {
      "id": "g8-poly-binomial-square.boundary.01",
      "code": "A-8-1",
      "subtypeId": "g8-poly-binomial-square",
      "kind": "boundary",
      "casePurpose": "teaching-example",
      "studentFacing": true,
      "prompt": "展開(0)²。",
      "input": {
        "p": 0,
        "q": 0,
        "confirmed": true,
        "task": "solve"
      },
      "expectedDecision": "pass",
      "expectedAnswer": {
        "coefficients": [
          "0"
        ]
      },
      "solutionSteps": [
        "u＝0，v＝0；(u＋v)²＝u²＋2uv＋v²。",
        "首項係數：0×0＝0；中項係數：2×0×0＝0；常數：0×0＝0。",
        "合併：0。",
        "乘回逐欄核對：x^0欄=0；原兩因子直接分配也得到這些係數。"
      ],
      "why": "逐係數守恆與定義角色核對，不以一次代值碰巧相等代替恆等。",
      "ifNotUnderstood": "先圈出整個第二項（含負號），平方公式的中間項是兩次相同乘積。",
      "teacherReviewed": false,
      "appConnected": false
    },
    {
      "id": "g8-poly-binomial-square.boundary.02",
      "code": "A-8-1",
      "subtypeId": "g8-poly-binomial-square",
      "kind": "boundary",
      "casePurpose": "teaching-example",
      "studentFacing": true,
      "prompt": "展開(x)²。",
      "input": {
        "p": 1,
        "q": 0,
        "confirmed": true,
        "task": "solve"
      },
      "expectedDecision": "pass",
      "expectedAnswer": {
        "coefficients": [
          "0",
          "0",
          "1"
        ]
      },
      "solutionSteps": [
        "u＝x，v＝0；(u＋v)²＝u²＋2uv＋v²。",
        "首項係數：1×1＝1；中項係數：2×1×0＝0；常數：0×0＝0。",
        "合併：x²。",
        "乘回逐欄核對：x^0欄=0、x^1欄=0、x^2欄=1；原兩因子直接分配也得到這些係數。"
      ],
      "why": "逐係數守恆與定義角色核對，不以一次代值碰巧相等代替恆等。",
      "ifNotUnderstood": "先圈出整個第二項（含負號），平方公式的中間項是兩次相同乘積。",
      "teacherReviewed": false,
      "appConnected": false
    },
    {
      "id": "g8-poly-binomial-square.boundary.03",
      "code": "A-8-1",
      "subtypeId": "g8-poly-binomial-square",
      "kind": "boundary",
      "casePurpose": "teaching-example",
      "studentFacing": true,
      "prompt": "展開(1)²。",
      "input": {
        "p": 0,
        "q": 1,
        "confirmed": true,
        "task": "solve"
      },
      "expectedDecision": "pass",
      "expectedAnswer": {
        "coefficients": [
          "1"
        ]
      },
      "solutionSteps": [
        "u＝0，v＝1；(u＋v)²＝u²＋2uv＋v²。",
        "首項係數：0×0＝0；中項係數：2×0×1＝0；常數：1×1＝1。",
        "合併：1。",
        "乘回逐欄核對：x^0欄=1；原兩因子直接分配也得到這些係數。"
      ],
      "why": "逐係數守恆與定義角色核對，不以一次代值碰巧相等代替恆等。",
      "ifNotUnderstood": "先圈出整個第二項（含負號），平方公式的中間項是兩次相同乘積。",
      "teacherReviewed": false,
      "appConnected": false
    },
    {
      "id": "g8-poly-binomial-square.boundary.04",
      "code": "A-8-1",
      "subtypeId": "g8-poly-binomial-square",
      "kind": "boundary",
      "casePurpose": "teaching-example",
      "studentFacing": true,
      "prompt": "展開(－x＋1)²。",
      "input": {
        "p": -1,
        "q": 1,
        "confirmed": true,
        "task": "solve"
      },
      "expectedDecision": "pass",
      "expectedAnswer": {
        "coefficients": [
          "1",
          "-2",
          "1"
        ]
      },
      "solutionSteps": [
        "u＝－x，v＝1；(u＋v)²＝u²＋2uv＋v²。",
        "首項係數：(-1)×(-1)＝1；中項係數：2×(-1)×1＝(-2)；常數：1×1＝1。",
        "合併：x²－2x＋1。",
        "乘回逐欄核對：x^0欄=1、x^1欄=(-2)、x^2欄=1；原兩因子直接分配也得到這些係數。"
      ],
      "why": "逐係數守恆與定義角色核對，不以一次代值碰巧相等代替恆等。",
      "ifNotUnderstood": "先圈出整個第二項（含負號），平方公式的中間項是兩次相同乘積。",
      "teacherReviewed": false,
      "appConnected": false
    },
    {
      "id": "g8-poly-binomial-square.ambiguous.01",
      "code": "A-8-1",
      "subtypeId": "g8-poly-binomial-square",
      "kind": "ambiguous",
      "casePurpose": "teaching-example",
      "studentFacing": true,
      "prompt": "原式(？x－5)²；問號係數被遮住，完整展開式能確定嗎？",
      "input": {
        "p": null,
        "q": -5,
        "confirmed": true,
        "task": "solve"
      },
      "expectedDecision": "confirm",
      "expectedAnswer": null,
      "solutionSteps": [
        "缺少原式的係數、次方或寫法，先確認題目，不自行補值。",
        "核對原式後才回此步，不用未知係數補成0。"
      ],
      "why": "逐係數守恆與定義角色核對，不以一次代值碰巧相等代替恆等。",
      "ifNotUnderstood": "先指出哪一個係數、次方或呈現形式沒有看清楚。",
      "teacherReviewed": false,
      "appConnected": false
    },
    {
      "id": "g8-poly-binomial-square.ambiguous.02",
      "code": "A-8-1",
      "subtypeId": "g8-poly-binomial-square",
      "kind": "ambiguous",
      "casePurpose": "teaching-example",
      "studentFacing": true,
      "prompt": "原式(－x＋？)²；問號係數被遮住，完整展開式能確定嗎？",
      "input": {
        "p": -1,
        "q": null,
        "confirmed": true,
        "task": "solve"
      },
      "expectedDecision": "confirm",
      "expectedAnswer": null,
      "solutionSteps": [
        "缺少原式的係數、次方或寫法，先確認題目，不自行補值。",
        "核對原式後才回此步，不用未知係數補成0。"
      ],
      "why": "逐係數守恆與定義角色核對，不以一次代值碰巧相等代替恆等。",
      "ifNotUnderstood": "先指出哪一個係數、次方或呈現形式沒有看清楚。",
      "teacherReviewed": false,
      "appConnected": false
    },
    {
      "id": "g8-poly-binomial-square.holdout.01",
      "code": "A-8-1",
      "subtypeId": "g8-poly-binomial-square",
      "kind": "holdout",
      "casePurpose": "teaching-example",
      "studentFacing": true,
      "prompt": "展開(4x－3)²。",
      "input": {
        "p": 4,
        "q": -3,
        "confirmed": true,
        "task": "solve"
      },
      "expectedDecision": "pass",
      "expectedAnswer": {
        "coefficients": [
          "9",
          "-24",
          "16"
        ]
      },
      "solutionSteps": [
        "u＝4x，v＝(-3)；(u＋v)²＝u²＋2uv＋v²。",
        "首項係數：4×4＝16；中項係數：2×4×(-3)＝(-24)；常數：(-3)×(-3)＝9。",
        "合併：16x²－24x＋9。",
        "乘回逐欄核對：x^0欄=9、x^1欄=(-24)、x^2欄=16；原兩因子直接分配也得到這些係數。"
      ],
      "why": "逐係數守恆與定義角色核對，不以一次代值碰巧相等代替恆等。",
      "ifNotUnderstood": "先圈出整個第二項（含負號），平方公式的中間項是兩次相同乘積。",
      "teacherReviewed": false,
      "appConnected": false
    },
    {
      "id": "g8-poly-binomial-square.holdout.02",
      "code": "A-8-1",
      "subtypeId": "g8-poly-binomial-square",
      "kind": "holdout",
      "casePurpose": "teaching-example",
      "studentFacing": true,
      "prompt": "展開(－3x＋5)²。",
      "input": {
        "p": -3,
        "q": 5,
        "confirmed": true,
        "task": "solve"
      },
      "expectedDecision": "pass",
      "expectedAnswer": {
        "coefficients": [
          "25",
          "-30",
          "9"
        ]
      },
      "solutionSteps": [
        "u＝－3x，v＝5；(u＋v)²＝u²＋2uv＋v²。",
        "首項係數：(-3)×(-3)＝9；中項係數：2×(-3)×5＝(-30)；常數：5×5＝25。",
        "合併：9x²－30x＋25。",
        "乘回逐欄核對：x^0欄=25、x^1欄=(-30)、x^2欄=9；原兩因子直接分配也得到這些係數。"
      ],
      "why": "逐係數守恆與定義角色核對，不以一次代值碰巧相等代替恆等。",
      "ifNotUnderstood": "先圈出整個第二項（含負號），平方公式的中間項是兩次相同乘積。",
      "teacherReviewed": false,
      "appConnected": false
    },
    {
      "id": "g8-poly-binomial-square.holdout.03",
      "code": "A-8-1",
      "subtypeId": "g8-poly-binomial-square",
      "kind": "holdout",
      "casePurpose": "teaching-example",
      "studentFacing": true,
      "prompt": "展開(2x－7)²。",
      "input": {
        "p": 2,
        "q": -7,
        "confirmed": true,
        "task": "solve"
      },
      "expectedDecision": "pass",
      "expectedAnswer": {
        "coefficients": [
          "49",
          "-28",
          "4"
        ]
      },
      "solutionSteps": [
        "u＝2x，v＝(-7)；(u＋v)²＝u²＋2uv＋v²。",
        "首項係數：2×2＝4；中項係數：2×2×(-7)＝(-28)；常數：(-7)×(-7)＝49。",
        "合併：4x²－28x＋49。",
        "乘回逐欄核對：x^0欄=49、x^1欄=(-28)、x^2欄=4；原兩因子直接分配也得到這些係數。"
      ],
      "why": "逐係數守恆與定義角色核對，不以一次代值碰巧相等代替恆等。",
      "ifNotUnderstood": "先圈出整個第二項（含負號），平方公式的中間項是兩次相同乘積。",
      "teacherReviewed": false,
      "appConnected": false
    },
    {
      "id": "g8-poly-binomial-square.holdout.04",
      "code": "A-8-1",
      "subtypeId": "g8-poly-binomial-square",
      "kind": "holdout",
      "casePurpose": "teaching-example",
      "studentFacing": true,
      "prompt": "展開(5x＋1)²。",
      "input": {
        "p": 5,
        "q": 1,
        "confirmed": true,
        "task": "solve"
      },
      "expectedDecision": "pass",
      "expectedAnswer": {
        "coefficients": [
          "1",
          "10",
          "25"
        ]
      },
      "solutionSteps": [
        "u＝5x，v＝1；(u＋v)²＝u²＋2uv＋v²。",
        "首項係數：5×5＝25；中項係數：2×5×1＝10；常數：1×1＝1。",
        "合併：25x²＋10x＋1。",
        "乘回逐欄核對：x^0欄=1、x^1欄=10、x^2欄=25；原兩因子直接分配也得到這些係數。"
      ],
      "why": "逐係數守恆與定義角色核對，不以一次代值碰巧相等代替恆等。",
      "ifNotUnderstood": "先圈出整個第二項（含負號），平方公式的中間項是兩次相同乘積。",
      "teacherReviewed": false,
      "appConnected": false
    },
    {
      "id": "g8-poly-difference-squares.normal.01",
      "code": "A-8-1",
      "subtypeId": "g8-poly-difference-squares",
      "kind": "normal",
      "casePurpose": "teaching-example",
      "studentFacing": true,
      "prompt": "展開(x＋3)(x－3)。",
      "input": {
        "p": 1,
        "q": 3,
        "confirmed": true,
        "task": "solve"
      },
      "expectedDecision": "pass",
      "expectedAnswer": {
        "coefficients": [
          "-9",
          "0",
          "1"
        ]
      },
      "solutionSteps": [
        "u＝x，v＝3；(u＋v)(u－v)＝u²－v²。",
        "u²係數1×1＝1；v²＝9。",
        "兩個交叉項3x與(-3)x相消，得到x²－9。",
        "乘回逐欄核對：x^0欄=(-9)、x^1欄=0、x^2欄=1；原兩因子直接分配也得到這些係數。"
      ],
      "why": "逐係數守恆與定義角色核對，不以一次代值碰巧相等代替恆等。",
      "ifNotUnderstood": "先圈出整個第二項（含負號），平方公式的中間項是兩次相同乘積。",
      "teacherReviewed": false,
      "appConnected": false
    },
    {
      "id": "g8-poly-difference-squares.normal.02",
      "code": "A-8-1",
      "subtypeId": "g8-poly-difference-squares",
      "kind": "normal",
      "casePurpose": "teaching-example",
      "studentFacing": true,
      "prompt": "展開(2x－3)(2x＋3)。",
      "input": {
        "p": 2,
        "q": -3,
        "confirmed": true,
        "task": "solve"
      },
      "expectedDecision": "pass",
      "expectedAnswer": {
        "coefficients": [
          "-9",
          "0",
          "4"
        ]
      },
      "solutionSteps": [
        "u＝2x，v＝(-3)；(u＋v)(u－v)＝u²－v²。",
        "u²係數2×2＝4；v²＝9。",
        "兩個交叉項(-6)x與6x相消，得到4x²－9。",
        "乘回逐欄核對：x^0欄=(-9)、x^1欄=0、x^2欄=4；原兩因子直接分配也得到這些係數。"
      ],
      "why": "逐係數守恆與定義角色核對，不以一次代值碰巧相等代替恆等。",
      "ifNotUnderstood": "先圈出整個第二項（含負號），平方公式的中間項是兩次相同乘積。",
      "teacherReviewed": false,
      "appConnected": false
    },
    {
      "id": "g8-poly-difference-squares.normal.03",
      "code": "A-8-1",
      "subtypeId": "g8-poly-difference-squares",
      "kind": "normal",
      "casePurpose": "teaching-example",
      "studentFacing": true,
      "prompt": "展開(－2x＋1)(－2x－1)。",
      "input": {
        "p": -2,
        "q": 1,
        "confirmed": true,
        "task": "solve"
      },
      "expectedDecision": "pass",
      "expectedAnswer": {
        "coefficients": [
          "-1",
          "0",
          "4"
        ]
      },
      "solutionSteps": [
        "u＝－2x，v＝1；(u＋v)(u－v)＝u²－v²。",
        "u²係數(-2)×(-2)＝4；v²＝1。",
        "兩個交叉項(-2)x與2x相消，得到4x²－1。",
        "乘回逐欄核對：x^0欄=(-1)、x^1欄=0、x^2欄=4；原兩因子直接分配也得到這些係數。"
      ],
      "why": "逐係數守恆與定義角色核對，不以一次代值碰巧相等代替恆等。",
      "ifNotUnderstood": "先圈出整個第二項（含負號），平方公式的中間項是兩次相同乘積。",
      "teacherReviewed": false,
      "appConnected": false
    },
    {
      "id": "g8-poly-difference-squares.normal.04",
      "code": "A-8-1",
      "subtypeId": "g8-poly-difference-squares",
      "kind": "normal",
      "casePurpose": "teaching-example",
      "studentFacing": true,
      "prompt": "展開(3x＋2)(3x－2)。",
      "input": {
        "p": 3,
        "q": 2,
        "confirmed": true,
        "task": "solve"
      },
      "expectedDecision": "pass",
      "expectedAnswer": {
        "coefficients": [
          "-4",
          "0",
          "9"
        ]
      },
      "solutionSteps": [
        "u＝3x，v＝2；(u＋v)(u－v)＝u²－v²。",
        "u²係數3×3＝9；v²＝4。",
        "兩個交叉項6x與(-6)x相消，得到9x²－4。",
        "乘回逐欄核對：x^0欄=(-4)、x^1欄=0、x^2欄=9；原兩因子直接分配也得到這些係數。"
      ],
      "why": "逐係數守恆與定義角色核對，不以一次代值碰巧相等代替恆等。",
      "ifNotUnderstood": "先圈出整個第二項（含負號），平方公式的中間項是兩次相同乘積。",
      "teacherReviewed": false,
      "appConnected": false
    },
    {
      "id": "g8-poly-difference-squares.normal.05",
      "code": "A-8-1",
      "subtypeId": "g8-poly-difference-squares",
      "kind": "normal",
      "casePurpose": "teaching-example",
      "studentFacing": true,
      "prompt": "展開(x－5)(x＋5)。",
      "input": {
        "p": 1,
        "q": -5,
        "confirmed": true,
        "task": "solve"
      },
      "expectedDecision": "pass",
      "expectedAnswer": {
        "coefficients": [
          "-25",
          "0",
          "1"
        ]
      },
      "solutionSteps": [
        "u＝x，v＝(-5)；(u＋v)(u－v)＝u²－v²。",
        "u²係數1×1＝1；v²＝25。",
        "兩個交叉項(-5)x與5x相消，得到x²－25。",
        "乘回逐欄核對：x^0欄=(-25)、x^1欄=0、x^2欄=1；原兩因子直接分配也得到這些係數。"
      ],
      "why": "逐係數守恆與定義角色核對，不以一次代值碰巧相等代替恆等。",
      "ifNotUnderstood": "先圈出整個第二項（含負號），平方公式的中間項是兩次相同乘積。",
      "teacherReviewed": false,
      "appConnected": false
    },
    {
      "id": "g8-poly-difference-squares.normal.06",
      "code": "A-8-1",
      "subtypeId": "g8-poly-difference-squares",
      "kind": "normal",
      "casePurpose": "teaching-example",
      "studentFacing": true,
      "prompt": "展開(－x－4)(－x＋4)。",
      "input": {
        "p": -1,
        "q": -4,
        "confirmed": true,
        "task": "solve"
      },
      "expectedDecision": "pass",
      "expectedAnswer": {
        "coefficients": [
          "-16",
          "0",
          "1"
        ]
      },
      "solutionSteps": [
        "u＝－x，v＝(-4)；(u＋v)(u－v)＝u²－v²。",
        "u²係數(-1)×(-1)＝1；v²＝16。",
        "兩個交叉項4x與(-4)x相消，得到x²－16。",
        "乘回逐欄核對：x^0欄=(-16)、x^1欄=0、x^2欄=1；原兩因子直接分配也得到這些係數。"
      ],
      "why": "逐係數守恆與定義角色核對，不以一次代值碰巧相等代替恆等。",
      "ifNotUnderstood": "先圈出整個第二項（含負號），平方公式的中間項是兩次相同乘積。",
      "teacherReviewed": false,
      "appConnected": false
    },
    {
      "id": "g8-poly-difference-squares.normal.07",
      "code": "A-8-1",
      "subtypeId": "g8-poly-difference-squares",
      "kind": "normal",
      "casePurpose": "teaching-example",
      "studentFacing": true,
      "prompt": "展開(2x)(2x)。",
      "input": {
        "p": 2,
        "q": 0,
        "confirmed": true,
        "task": "solve"
      },
      "expectedDecision": "pass",
      "expectedAnswer": {
        "coefficients": [
          "0",
          "0",
          "4"
        ]
      },
      "solutionSteps": [
        "u＝2x，v＝0；(u＋v)(u－v)＝u²－v²。",
        "u²係數2×2＝4；v²＝0。",
        "兩個交叉項0x與0x相消，得到4x²。",
        "乘回逐欄核對：x^0欄=0、x^1欄=0、x^2欄=4；原兩因子直接分配也得到這些係數。"
      ],
      "why": "逐係數守恆與定義角色核對，不以一次代值碰巧相等代替恆等。",
      "ifNotUnderstood": "先圈出整個第二項（含負號），平方公式的中間項是兩次相同乘積。",
      "teacherReviewed": false,
      "appConnected": false
    },
    {
      "id": "g8-poly-difference-squares.normal.08",
      "code": "A-8-1",
      "subtypeId": "g8-poly-difference-squares",
      "kind": "normal",
      "casePurpose": "teaching-example",
      "studentFacing": true,
      "prompt": "展開(7)(－7)。",
      "input": {
        "p": 0,
        "q": 7,
        "confirmed": true,
        "task": "solve"
      },
      "expectedDecision": "pass",
      "expectedAnswer": {
        "coefficients": [
          "-49"
        ]
      },
      "solutionSteps": [
        "u＝0，v＝7；(u＋v)(u－v)＝u²－v²。",
        "u²係數0×0＝0；v²＝49。",
        "兩個交叉項0x與0x相消，得到－49。",
        "乘回逐欄核對：x^0欄=(-49)；原兩因子直接分配也得到這些係數。"
      ],
      "why": "逐係數守恆與定義角色核對，不以一次代值碰巧相等代替恆等。",
      "ifNotUnderstood": "先圈出整個第二項（含負號），平方公式的中間項是兩次相同乘積。",
      "teacherReviewed": false,
      "appConnected": false
    },
    {
      "id": "g8-poly-difference-squares.negative.01",
      "code": "A-8-1",
      "subtypeId": "g8-poly-difference-squares",
      "kind": "negative",
      "casePurpose": "proposal-review",
      "studentFacing": true,
      "prompt": "展開(x＋3)(x－3)。 同學提案「x²＋9」，請逐步改正。",
      "input": {
        "p": 1,
        "q": 3,
        "confirmed": true,
        "task": "check_proposal",
        "proposal": {
          "coefficients": [
            "9",
            "0",
            "1"
          ]
        }
      },
      "expectedDecision": "reject",
      "expectedAnswer": {
        "coefficients": [
          "-9",
          "0",
          "1"
        ]
      },
      "solutionSteps": [
        "平方差的負號漏掉，錯寫成兩個平方相加。",
        "u＝x，v＝3；(u＋v)(u－v)＝u²－v²。",
        "u²係數1×1＝1；v²＝9。",
        "兩個交叉項3x與(-3)x相消，得到x²－9。",
        "乘回逐欄核對：x^0欄=(-9)、x^1欄=0、x^2欄=1；原兩因子直接分配也得到這些係數。"
      ],
      "why": "平方差的負號漏掉，錯寫成兩個平方相加。",
      "ifNotUnderstood": "先圈出整個第二項（含負號），平方公式的中間項是兩次相同乘積。",
      "teacherReviewed": false,
      "appConnected": false
    },
    {
      "id": "g8-poly-difference-squares.negative.02",
      "code": "A-8-1",
      "subtypeId": "g8-poly-difference-squares",
      "kind": "negative",
      "casePurpose": "proposal-review",
      "studentFacing": true,
      "prompt": "展開(2x－3)(2x＋3)。 同學提案「4x²－12x－9」，請逐步改正。",
      "input": {
        "p": 2,
        "q": -3,
        "confirmed": true,
        "task": "check_proposal",
        "proposal": {
          "coefficients": [
            "-9",
            "-12",
            "4"
          ]
        }
      },
      "expectedDecision": "reject",
      "expectedAnswer": {
        "coefficients": [
          "-9",
          "0",
          "4"
        ]
      },
      "solutionSteps": [
        "把和差積誤用完全平方中項；兩個交叉項應相消。",
        "u＝2x，v＝(-3)；(u＋v)(u－v)＝u²－v²。",
        "u²係數2×2＝4；v²＝9。",
        "兩個交叉項(-6)x與6x相消，得到4x²－9。",
        "乘回逐欄核對：x^0欄=(-9)、x^1欄=0、x^2欄=4；原兩因子直接分配也得到這些係數。"
      ],
      "why": "把和差積誤用完全平方中項；兩個交叉項應相消。",
      "ifNotUnderstood": "先圈出整個第二項（含負號），平方公式的中間項是兩次相同乘積。",
      "teacherReviewed": false,
      "appConnected": false
    },
    {
      "id": "g8-poly-difference-squares.negative.03",
      "code": "A-8-1",
      "subtypeId": "g8-poly-difference-squares",
      "kind": "negative",
      "casePurpose": "proposal-review",
      "studentFacing": true,
      "prompt": "展開(－2x＋1)(－2x－1)。 同學提案「－2x²－1」，請逐步改正。",
      "input": {
        "p": -2,
        "q": 1,
        "confirmed": true,
        "task": "check_proposal",
        "proposal": {
          "coefficients": [
            "-1",
            "0",
            "-2"
          ]
        }
      },
      "expectedDecision": "reject",
      "expectedAnswer": {
        "coefficients": [
          "-1",
          "0",
          "4"
        ]
      },
      "solutionSteps": [
        "首項負係數沒有平方，平方後首係數應非負。",
        "u＝－2x，v＝1；(u＋v)(u－v)＝u²－v²。",
        "u²係數(-2)×(-2)＝4；v²＝1。",
        "兩個交叉項(-2)x與2x相消，得到4x²－1。",
        "乘回逐欄核對：x^0欄=(-1)、x^1欄=0、x^2欄=4；原兩因子直接分配也得到這些係數。"
      ],
      "why": "首項負係數沒有平方，平方後首係數應非負。",
      "ifNotUnderstood": "先圈出整個第二項（含負號），平方公式的中間項是兩次相同乘積。",
      "teacherReviewed": false,
      "appConnected": false
    },
    {
      "id": "g8-poly-difference-squares.negative.04",
      "code": "A-8-1",
      "subtypeId": "g8-poly-difference-squares",
      "kind": "negative",
      "casePurpose": "proposal-review",
      "studentFacing": true,
      "prompt": "展開(3x＋2)(3x－2)。 同學提案「9x²－2」，請逐步改正。",
      "input": {
        "p": 3,
        "q": 2,
        "confirmed": true,
        "task": "check_proposal",
        "proposal": {
          "coefficients": [
            "-2",
            "0",
            "9"
          ]
        }
      },
      "expectedDecision": "reject",
      "expectedAnswer": {
        "coefficients": [
          "-4",
          "0",
          "9"
        ]
      },
      "solutionSteps": [
        "常數q只換負號沒平方，應減q²。",
        "u＝3x，v＝2；(u＋v)(u－v)＝u²－v²。",
        "u²係數3×3＝9；v²＝4。",
        "兩個交叉項6x與(-6)x相消，得到9x²－4。",
        "乘回逐欄核對：x^0欄=(-4)、x^1欄=0、x^2欄=9；原兩因子直接分配也得到這些係數。"
      ],
      "why": "常數q只換負號沒平方，應減q²。",
      "ifNotUnderstood": "先圈出整個第二項（含負號），平方公式的中間項是兩次相同乘積。",
      "teacherReviewed": false,
      "appConnected": false
    },
    {
      "id": "g8-poly-difference-squares.negative.05",
      "code": "A-8-1",
      "subtypeId": "g8-poly-difference-squares",
      "kind": "negative",
      "casePurpose": "validator-guard",
      "studentFacing": false,
      "prompt": "工程守衛：布林係數不能當1；不是學生數學錯題。",
      "input": {
        "p": true,
        "q": 3,
        "confirmed": true,
        "task": "solve"
      },
      "expectedDecision": "block",
      "expectedAnswer": null,
      "solutionSteps": [
        "原係數/次方/項數或結構超出契約，不作任意字串運算",
        "核對原式後才回此步，不用未知係數補成0。"
      ],
      "why": "工程守衛：布林係數不能當1；不是學生數學錯題。",
      "ifNotUnderstood": "先指出哪一個係數、次方或呈現形式沒有看清楚。",
      "teacherReviewed": false,
      "appConnected": false
    },
    {
      "id": "g8-poly-difference-squares.negative.06",
      "code": "A-8-1",
      "subtypeId": "g8-poly-difference-squares",
      "kind": "negative",
      "casePurpose": "validator-guard",
      "studentFacing": false,
      "prompt": "工程守衛：巨大整數超原係數有限範圍，不先做乘冪/枚舉因數。",
      "input": {
        "p": 100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,
        "q": 3,
        "confirmed": true,
        "task": "solve"
      },
      "expectedDecision": "block",
      "expectedAnswer": null,
      "solutionSteps": [
        "原係數/次方/項數或結構超出契約，不作任意字串運算",
        "核對原式後才回此步，不用未知係數補成0。"
      ],
      "why": "工程守衛：巨大整數超原係數有限範圍，不先做乘冪/枚舉因數。",
      "ifNotUnderstood": "先指出哪一個係數、次方或呈現形式沒有看清楚。",
      "teacherReviewed": false,
      "appConnected": false
    },
    {
      "id": "g8-poly-difference-squares.boundary.01",
      "code": "A-8-1",
      "subtypeId": "g8-poly-difference-squares",
      "kind": "boundary",
      "casePurpose": "teaching-example",
      "studentFacing": true,
      "prompt": "展開(0)(0)。",
      "input": {
        "p": 0,
        "q": 0,
        "confirmed": true,
        "task": "solve"
      },
      "expectedDecision": "pass",
      "expectedAnswer": {
        "coefficients": [
          "0"
        ]
      },
      "solutionSteps": [
        "u＝0，v＝0；(u＋v)(u－v)＝u²－v²。",
        "u²係數0×0＝0；v²＝0。",
        "兩個交叉項0x與0x相消，得到0。",
        "乘回逐欄核對：x^0欄=0；原兩因子直接分配也得到這些係數。"
      ],
      "why": "逐係數守恆與定義角色核對，不以一次代值碰巧相等代替恆等。",
      "ifNotUnderstood": "先圈出整個第二項（含負號），平方公式的中間項是兩次相同乘積。",
      "teacherReviewed": false,
      "appConnected": false
    },
    {
      "id": "g8-poly-difference-squares.boundary.02",
      "code": "A-8-1",
      "subtypeId": "g8-poly-difference-squares",
      "kind": "boundary",
      "casePurpose": "teaching-example",
      "studentFacing": true,
      "prompt": "展開(x)(x)。",
      "input": {
        "p": 1,
        "q": 0,
        "confirmed": true,
        "task": "solve"
      },
      "expectedDecision": "pass",
      "expectedAnswer": {
        "coefficients": [
          "0",
          "0",
          "1"
        ]
      },
      "solutionSteps": [
        "u＝x，v＝0；(u＋v)(u－v)＝u²－v²。",
        "u²係數1×1＝1；v²＝0。",
        "兩個交叉項0x與0x相消，得到x²。",
        "乘回逐欄核對：x^0欄=0、x^1欄=0、x^2欄=1；原兩因子直接分配也得到這些係數。"
      ],
      "why": "逐係數守恆與定義角色核對，不以一次代值碰巧相等代替恆等。",
      "ifNotUnderstood": "先圈出整個第二項（含負號），平方公式的中間項是兩次相同乘積。",
      "teacherReviewed": false,
      "appConnected": false
    },
    {
      "id": "g8-poly-difference-squares.boundary.03",
      "code": "A-8-1",
      "subtypeId": "g8-poly-difference-squares",
      "kind": "boundary",
      "casePurpose": "teaching-example",
      "studentFacing": true,
      "prompt": "展開(1)(－1)。",
      "input": {
        "p": 0,
        "q": 1,
        "confirmed": true,
        "task": "solve"
      },
      "expectedDecision": "pass",
      "expectedAnswer": {
        "coefficients": [
          "-1"
        ]
      },
      "solutionSteps": [
        "u＝0，v＝1；(u＋v)(u－v)＝u²－v²。",
        "u²係數0×0＝0；v²＝1。",
        "兩個交叉項0x與0x相消，得到－1。",
        "乘回逐欄核對：x^0欄=(-1)；原兩因子直接分配也得到這些係數。"
      ],
      "why": "逐係數守恆與定義角色核對，不以一次代值碰巧相等代替恆等。",
      "ifNotUnderstood": "先圈出整個第二項（含負號），平方公式的中間項是兩次相同乘積。",
      "teacherReviewed": false,
      "appConnected": false
    },
    {
      "id": "g8-poly-difference-squares.boundary.04",
      "code": "A-8-1",
      "subtypeId": "g8-poly-difference-squares",
      "kind": "boundary",
      "casePurpose": "teaching-example",
      "studentFacing": true,
      "prompt": "展開(－x＋1)(－x－1)。",
      "input": {
        "p": -1,
        "q": 1,
        "confirmed": true,
        "task": "solve"
      },
      "expectedDecision": "pass",
      "expectedAnswer": {
        "coefficients": [
          "-1",
          "0",
          "1"
        ]
      },
      "solutionSteps": [
        "u＝－x，v＝1；(u＋v)(u－v)＝u²－v²。",
        "u²係數(-1)×(-1)＝1；v²＝1。",
        "兩個交叉項(-1)x與1x相消，得到x²－1。",
        "乘回逐欄核對：x^0欄=(-1)、x^1欄=0、x^2欄=1；原兩因子直接分配也得到這些係數。"
      ],
      "why": "逐係數守恆與定義角色核對，不以一次代值碰巧相等代替恆等。",
      "ifNotUnderstood": "先圈出整個第二項（含負號），平方公式的中間項是兩次相同乘積。",
      "teacherReviewed": false,
      "appConnected": false
    },
    {
      "id": "g8-poly-difference-squares.ambiguous.01",
      "code": "A-8-1",
      "subtypeId": "g8-poly-difference-squares",
      "kind": "ambiguous",
      "casePurpose": "teaching-example",
      "studentFacing": true,
      "prompt": "原式(px＋q)(px－q)，已知p=？、q=-5；缺少的數未確認，完整展開式能確定嗎？",
      "input": {
        "p": null,
        "q": -5,
        "confirmed": true,
        "task": "solve"
      },
      "expectedDecision": "confirm",
      "expectedAnswer": null,
      "solutionSteps": [
        "缺少原式的係數、次方或寫法，先確認題目，不自行補值。",
        "核對原式後才回此步，不用未知係數補成0。"
      ],
      "why": "逐係數守恆與定義角色核對，不以一次代值碰巧相等代替恆等。",
      "ifNotUnderstood": "先指出哪一個係數、次方或呈現形式沒有看清楚。",
      "teacherReviewed": false,
      "appConnected": false
    },
    {
      "id": "g8-poly-difference-squares.ambiguous.02",
      "code": "A-8-1",
      "subtypeId": "g8-poly-difference-squares",
      "kind": "ambiguous",
      "casePurpose": "teaching-example",
      "studentFacing": true,
      "prompt": "原式(px＋q)(px－q)，已知p=-1、q=？；缺少的數未確認，完整展開式能確定嗎？",
      "input": {
        "p": -1,
        "q": null,
        "confirmed": true,
        "task": "solve"
      },
      "expectedDecision": "confirm",
      "expectedAnswer": null,
      "solutionSteps": [
        "缺少原式的係數、次方或寫法，先確認題目，不自行補值。",
        "核對原式後才回此步，不用未知係數補成0。"
      ],
      "why": "逐係數守恆與定義角色核對，不以一次代值碰巧相等代替恆等。",
      "ifNotUnderstood": "先指出哪一個係數、次方或呈現形式沒有看清楚。",
      "teacherReviewed": false,
      "appConnected": false
    },
    {
      "id": "g8-poly-difference-squares.holdout.01",
      "code": "A-8-1",
      "subtypeId": "g8-poly-difference-squares",
      "kind": "holdout",
      "casePurpose": "teaching-example",
      "studentFacing": true,
      "prompt": "展開(4x－3)(4x＋3)。",
      "input": {
        "p": 4,
        "q": -3,
        "confirmed": true,
        "task": "solve"
      },
      "expectedDecision": "pass",
      "expectedAnswer": {
        "coefficients": [
          "-9",
          "0",
          "16"
        ]
      },
      "solutionSteps": [
        "u＝4x，v＝(-3)；(u＋v)(u－v)＝u²－v²。",
        "u²係數4×4＝16；v²＝9。",
        "兩個交叉項(-12)x與12x相消，得到16x²－9。",
        "乘回逐欄核對：x^0欄=(-9)、x^1欄=0、x^2欄=16；原兩因子直接分配也得到這些係數。"
      ],
      "why": "逐係數守恆與定義角色核對，不以一次代值碰巧相等代替恆等。",
      "ifNotUnderstood": "先圈出整個第二項（含負號），平方公式的中間項是兩次相同乘積。",
      "teacherReviewed": false,
      "appConnected": false
    },
    {
      "id": "g8-poly-difference-squares.holdout.02",
      "code": "A-8-1",
      "subtypeId": "g8-poly-difference-squares",
      "kind": "holdout",
      "casePurpose": "teaching-example",
      "studentFacing": true,
      "prompt": "展開(－3x＋5)(－3x－5)。",
      "input": {
        "p": -3,
        "q": 5,
        "confirmed": true,
        "task": "solve"
      },
      "expectedDecision": "pass",
      "expectedAnswer": {
        "coefficients": [
          "-25",
          "0",
          "9"
        ]
      },
      "solutionSteps": [
        "u＝－3x，v＝5；(u＋v)(u－v)＝u²－v²。",
        "u²係數(-3)×(-3)＝9；v²＝25。",
        "兩個交叉項(-15)x與15x相消，得到9x²－25。",
        "乘回逐欄核對：x^0欄=(-25)、x^1欄=0、x^2欄=9；原兩因子直接分配也得到這些係數。"
      ],
      "why": "逐係數守恆與定義角色核對，不以一次代值碰巧相等代替恆等。",
      "ifNotUnderstood": "先圈出整個第二項（含負號），平方公式的中間項是兩次相同乘積。",
      "teacherReviewed": false,
      "appConnected": false
    },
    {
      "id": "g8-poly-difference-squares.holdout.03",
      "code": "A-8-1",
      "subtypeId": "g8-poly-difference-squares",
      "kind": "holdout",
      "casePurpose": "teaching-example",
      "studentFacing": true,
      "prompt": "展開(2x－7)(2x＋7)。",
      "input": {
        "p": 2,
        "q": -7,
        "confirmed": true,
        "task": "solve"
      },
      "expectedDecision": "pass",
      "expectedAnswer": {
        "coefficients": [
          "-49",
          "0",
          "4"
        ]
      },
      "solutionSteps": [
        "u＝2x，v＝(-7)；(u＋v)(u－v)＝u²－v²。",
        "u²係數2×2＝4；v²＝49。",
        "兩個交叉項(-14)x與14x相消，得到4x²－49。",
        "乘回逐欄核對：x^0欄=(-49)、x^1欄=0、x^2欄=4；原兩因子直接分配也得到這些係數。"
      ],
      "why": "逐係數守恆與定義角色核對，不以一次代值碰巧相等代替恆等。",
      "ifNotUnderstood": "先圈出整個第二項（含負號），平方公式的中間項是兩次相同乘積。",
      "teacherReviewed": false,
      "appConnected": false
    },
    {
      "id": "g8-poly-difference-squares.holdout.04",
      "code": "A-8-1",
      "subtypeId": "g8-poly-difference-squares",
      "kind": "holdout",
      "casePurpose": "teaching-example",
      "studentFacing": true,
      "prompt": "展開(5x＋1)(5x－1)。",
      "input": {
        "p": 5,
        "q": 1,
        "confirmed": true,
        "task": "solve"
      },
      "expectedDecision": "pass",
      "expectedAnswer": {
        "coefficients": [
          "-1",
          "0",
          "25"
        ]
      },
      "solutionSteps": [
        "u＝5x，v＝1；(u＋v)(u－v)＝u²－v²。",
        "u²係數5×5＝25；v²＝1。",
        "兩個交叉項5x與(-5)x相消，得到25x²－1。",
        "乘回逐欄核對：x^0欄=(-1)、x^1欄=0、x^2欄=25；原兩因子直接分配也得到這些係數。"
      ],
      "why": "逐係數守恆與定義角色核對，不以一次代值碰巧相等代替恆等。",
      "ifNotUnderstood": "先圈出整個第二項（含負號），平方公式的中間項是兩次相同乘積。",
      "teacherReviewed": false,
      "appConnected": false
    },
    {
      "id": "g8-poly-binomial-product.normal.01",
      "code": "A-8-1",
      "subtypeId": "g8-poly-binomial-product",
      "kind": "normal",
      "casePurpose": "teaching-example",
      "studentFacing": true,
      "prompt": "展開(x＋2)(x＋3)。",
      "input": {
        "a": 1,
        "b": 2,
        "c": 1,
        "d": 3,
        "confirmed": true,
        "task": "solve"
      },
      "expectedDecision": "pass",
      "expectedAnswer": {
        "coefficients": [
          "6",
          "5",
          "1"
        ]
      },
      "solutionSteps": [
        "四個乘積係數依次：x²欄1×1＝1；x欄1×3＝3、2×1＝2；常數2×3＝6。",
        "x欄合併：3＋2＝5。",
        "結果：x²＋5x＋6；核對升冪係數x^0欄=6、x^1欄=5、x^2欄=1。"
      ],
      "why": "逐係數守恆與定義角色核對，不以一次代值碰巧相等代替恆等。",
      "ifNotUnderstood": "從第一括號每項各畫兩個分配箭頭的想像順序；每一對項恰好相乘一次。",
      "teacherReviewed": false,
      "appConnected": false
    },
    {
      "id": "g8-poly-binomial-product.normal.02",
      "code": "A-8-1",
      "subtypeId": "g8-poly-binomial-product",
      "kind": "normal",
      "casePurpose": "teaching-example",
      "studentFacing": true,
      "prompt": "展開(2x－1)(x＋4)。",
      "input": {
        "a": 2,
        "b": -1,
        "c": 1,
        "d": 4,
        "confirmed": true,
        "task": "solve"
      },
      "expectedDecision": "pass",
      "expectedAnswer": {
        "coefficients": [
          "-4",
          "7",
          "2"
        ]
      },
      "solutionSteps": [
        "四個乘積係數依次：x²欄2×1＝2；x欄2×4＝8、(-1)×1＝(-1)；常數(-1)×4＝(-4)。",
        "x欄合併：8＋(-1)＝7。",
        "結果：2x²＋7x－4；核對升冪係數x^0欄=(-4)、x^1欄=7、x^2欄=2。"
      ],
      "why": "逐係數守恆與定義角色核對，不以一次代值碰巧相等代替恆等。",
      "ifNotUnderstood": "從第一括號每項各畫兩個分配箭頭的想像順序；每一對項恰好相乘一次。",
      "teacherReviewed": false,
      "appConnected": false
    },
    {
      "id": "g8-poly-binomial-product.normal.03",
      "code": "A-8-1",
      "subtypeId": "g8-poly-binomial-product",
      "kind": "normal",
      "casePurpose": "teaching-example",
      "studentFacing": true,
      "prompt": "展開(－x＋3)(2x＋5)。",
      "input": {
        "a": -1,
        "b": 3,
        "c": 2,
        "d": 5,
        "confirmed": true,
        "task": "solve"
      },
      "expectedDecision": "pass",
      "expectedAnswer": {
        "coefficients": [
          "15",
          "1",
          "-2"
        ]
      },
      "solutionSteps": [
        "四個乘積係數依次：x²欄(-1)×2＝(-2)；x欄(-1)×5＝(-5)、3×2＝6；常數3×5＝15。",
        "x欄合併：(-5)＋6＝1。",
        "結果：－2x²＋x＋15；核對升冪係數x^0欄=15、x^1欄=1、x^2欄=(-2)。"
      ],
      "why": "逐係數守恆與定義角色核對，不以一次代值碰巧相等代替恆等。",
      "ifNotUnderstood": "從第一括號每項各畫兩個分配箭頭的想像順序；每一對項恰好相乘一次。",
      "teacherReviewed": false,
      "appConnected": false
    },
    {
      "id": "g8-poly-binomial-product.normal.04",
      "code": "A-8-1",
      "subtypeId": "g8-poly-binomial-product",
      "kind": "normal",
      "casePurpose": "teaching-example",
      "studentFacing": true,
      "prompt": "展開(3x－2)(－x＋4)。",
      "input": {
        "a": 3,
        "b": -2,
        "c": -1,
        "d": 4,
        "confirmed": true,
        "task": "solve"
      },
      "expectedDecision": "pass",
      "expectedAnswer": {
        "coefficients": [
          "-8",
          "14",
          "-3"
        ]
      },
      "solutionSteps": [
        "四個乘積係數依次：x²欄3×(-1)＝(-3)；x欄3×4＝12、(-2)×(-1)＝2；常數(-2)×4＝(-8)。",
        "x欄合併：12＋2＝14。",
        "結果：－3x²＋14x－8；核對升冪係數x^0欄=(-8)、x^1欄=14、x^2欄=(-3)。"
      ],
      "why": "逐係數守恆與定義角色核對，不以一次代值碰巧相等代替恆等。",
      "ifNotUnderstood": "從第一括號每項各畫兩個分配箭頭的想像順序；每一對項恰好相乘一次。",
      "teacherReviewed": false,
      "appConnected": false
    },
    {
      "id": "g8-poly-binomial-product.normal.05",
      "code": "A-8-1",
      "subtypeId": "g8-poly-binomial-product",
      "kind": "normal",
      "casePurpose": "teaching-example",
      "studentFacing": true,
      "prompt": "展開(x－4)(x＋4)。",
      "input": {
        "a": 1,
        "b": -4,
        "c": 1,
        "d": 4,
        "confirmed": true,
        "task": "solve"
      },
      "expectedDecision": "pass",
      "expectedAnswer": {
        "coefficients": [
          "-16",
          "0",
          "1"
        ]
      },
      "solutionSteps": [
        "四個乘積係數依次：x²欄1×1＝1；x欄1×4＝4、(-4)×1＝(-4)；常數(-4)×4＝(-16)。",
        "x欄合併：4＋(-4)＝0。",
        "結果：x²－16；核對升冪係數x^0欄=(-16)、x^1欄=0、x^2欄=1。"
      ],
      "why": "逐係數守恆與定義角色核對，不以一次代值碰巧相等代替恆等。",
      "ifNotUnderstood": "從第一括號每項各畫兩個分配箭頭的想像順序；每一對項恰好相乘一次。",
      "teacherReviewed": false,
      "appConnected": false
    },
    {
      "id": "g8-poly-binomial-product.normal.06",
      "code": "A-8-1",
      "subtypeId": "g8-poly-binomial-product",
      "kind": "normal",
      "casePurpose": "teaching-example",
      "studentFacing": true,
      "prompt": "展開(2x)(3x－5)。",
      "input": {
        "a": 2,
        "b": 0,
        "c": 3,
        "d": -5,
        "confirmed": true,
        "task": "solve"
      },
      "expectedDecision": "pass",
      "expectedAnswer": {
        "coefficients": [
          "0",
          "-10",
          "6"
        ]
      },
      "solutionSteps": [
        "四個乘積係數依次：x²欄2×3＝6；x欄2×(-5)＝(-10)、0×3＝0；常數0×(-5)＝0。",
        "x欄合併：(-10)＋0＝(-10)。",
        "結果：6x²－10x；核對升冪係數x^0欄=0、x^1欄=(-10)、x^2欄=6。"
      ],
      "why": "逐係數守恆與定義角色核對，不以一次代值碰巧相等代替恆等。",
      "ifNotUnderstood": "從第一括號每項各畫兩個分配箭頭的想像順序；每一對項恰好相乘一次。",
      "teacherReviewed": false,
      "appConnected": false
    },
    {
      "id": "g8-poly-binomial-product.normal.07",
      "code": "A-8-1",
      "subtypeId": "g8-poly-binomial-product",
      "kind": "normal",
      "casePurpose": "teaching-example",
      "studentFacing": true,
      "prompt": "展開(3)(2x＋1)。",
      "input": {
        "a": 0,
        "b": 3,
        "c": 2,
        "d": 1,
        "confirmed": true,
        "task": "solve"
      },
      "expectedDecision": "pass",
      "expectedAnswer": {
        "coefficients": [
          "3",
          "6"
        ]
      },
      "solutionSteps": [
        "四個乘積係數依次：x²欄0×2＝0；x欄0×1＝0、3×2＝6；常數3×1＝3。",
        "x欄合併：0＋6＝6。",
        "結果：6x＋3；核對升冪係數x^0欄=3、x^1欄=6。"
      ],
      "why": "逐係數守恆與定義角色核對，不以一次代值碰巧相等代替恆等。",
      "ifNotUnderstood": "從第一括號每項各畫兩個分配箭頭的想像順序；每一對項恰好相乘一次。",
      "teacherReviewed": false,
      "appConnected": false
    },
    {
      "id": "g8-poly-binomial-product.normal.08",
      "code": "A-8-1",
      "subtypeId": "g8-poly-binomial-product",
      "kind": "normal",
      "casePurpose": "teaching-example",
      "studentFacing": true,
      "prompt": "展開(2x－3)(4)。",
      "input": {
        "a": 2,
        "b": -3,
        "c": 0,
        "d": 4,
        "confirmed": true,
        "task": "solve"
      },
      "expectedDecision": "pass",
      "expectedAnswer": {
        "coefficients": [
          "-12",
          "8"
        ]
      },
      "solutionSteps": [
        "四個乘積係數依次：x²欄2×0＝0；x欄2×4＝8、(-3)×0＝0；常數(-3)×4＝(-12)。",
        "x欄合併：8＋0＝8。",
        "結果：8x－12；核對升冪係數x^0欄=(-12)、x^1欄=8。"
      ],
      "why": "逐係數守恆與定義角色核對，不以一次代值碰巧相等代替恆等。",
      "ifNotUnderstood": "從第一括號每項各畫兩個分配箭頭的想像順序；每一對項恰好相乘一次。",
      "teacherReviewed": false,
      "appConnected": false
    },
    {
      "id": "g8-poly-binomial-product.negative.01",
      "code": "A-8-1",
      "subtypeId": "g8-poly-binomial-product",
      "kind": "negative",
      "casePurpose": "proposal-review",
      "studentFacing": true,
      "prompt": "展開(x＋2)(x＋3)。 同學提案「x²＋3x＋6」，請逐步改正。",
      "input": {
        "a": 1,
        "b": 2,
        "c": 1,
        "d": 3,
        "confirmed": true,
        "task": "check_proposal",
        "proposal": {
          "coefficients": [
            "6",
            "3",
            "1"
          ]
        }
      },
      "expectedDecision": "reject",
      "expectedAnswer": {
        "coefficients": [
          "6",
          "5",
          "1"
        ]
      },
      "solutionSteps": [
        "漏掉常數b乘第二括號cx這一對交叉乘積，x欄不能只留ad。",
        "四個乘積係數依次：x²欄1×1＝1；x欄1×3＝3、2×1＝2；常數2×3＝6。",
        "x欄合併：3＋2＝5。",
        "結果：x²＋5x＋6；核對升冪係數x^0欄=6、x^1欄=5、x^2欄=1。"
      ],
      "why": "漏掉常數b乘第二括號cx這一對交叉乘積，x欄不能只留ad。",
      "ifNotUnderstood": "從第一括號每項各畫兩個分配箭頭的想像順序；每一對項恰好相乘一次。",
      "teacherReviewed": false,
      "appConnected": false
    },
    {
      "id": "g8-poly-binomial-product.negative.02",
      "code": "A-8-1",
      "subtypeId": "g8-poly-binomial-product",
      "kind": "negative",
      "casePurpose": "proposal-review",
      "studentFacing": true,
      "prompt": "展開(2x－1)(x＋4)。 同學提案「2x²＋8x－4」，請逐步改正。",
      "input": {
        "a": 2,
        "b": -1,
        "c": 1,
        "d": 4,
        "confirmed": true,
        "task": "check_proposal",
        "proposal": {
          "coefficients": [
            "-4",
            "8",
            "2"
          ]
        }
      },
      "expectedDecision": "reject",
      "expectedAnswer": {
        "coefficients": [
          "-4",
          "7",
          "2"
        ]
      },
      "solutionSteps": [
        "漏掉常數b乘第二括號cx這一對交叉乘積，x欄不能只留ad。",
        "四個乘積係數依次：x²欄2×1＝2；x欄2×4＝8、(-1)×1＝(-1)；常數(-1)×4＝(-4)。",
        "x欄合併：8＋(-1)＝7。",
        "結果：2x²＋7x－4；核對升冪係數x^0欄=(-4)、x^1欄=7、x^2欄=2。"
      ],
      "why": "漏掉常數b乘第二括號cx這一對交叉乘積，x欄不能只留ad。",
      "ifNotUnderstood": "從第一括號每項各畫兩個分配箭頭的想像順序；每一對項恰好相乘一次。",
      "teacherReviewed": false,
      "appConnected": false
    },
    {
      "id": "g8-poly-binomial-product.negative.03",
      "code": "A-8-1",
      "subtypeId": "g8-poly-binomial-product",
      "kind": "negative",
      "casePurpose": "proposal-review",
      "studentFacing": true,
      "prompt": "展開(－x＋3)(2x＋5)。 同學提案「2x²＋x＋15」，請逐步改正。",
      "input": {
        "a": -1,
        "b": 3,
        "c": 2,
        "d": 5,
        "confirmed": true,
        "task": "check_proposal",
        "proposal": {
          "coefficients": [
            "15",
            "1",
            "2"
          ]
        }
      },
      "expectedDecision": "reject",
      "expectedAnswer": {
        "coefficients": [
          "15",
          "1",
          "-2"
        ]
      },
      "solutionSteps": [
        "兩個首項係數異號，乘積首係數誤作正數。",
        "四個乘積係數依次：x²欄(-1)×2＝(-2)；x欄(-1)×5＝(-5)、3×2＝6；常數3×5＝15。",
        "x欄合併：(-5)＋6＝1。",
        "結果：－2x²＋x＋15；核對升冪係數x^0欄=15、x^1欄=1、x^2欄=(-2)。"
      ],
      "why": "兩個首項係數異號，乘積首係數誤作正數。",
      "ifNotUnderstood": "從第一括號每項各畫兩個分配箭頭的想像順序；每一對項恰好相乘一次。",
      "teacherReviewed": false,
      "appConnected": false
    },
    {
      "id": "g8-poly-binomial-product.negative.04",
      "code": "A-8-1",
      "subtypeId": "g8-poly-binomial-product",
      "kind": "negative",
      "casePurpose": "proposal-review",
      "studentFacing": true,
      "prompt": "展開(3x－2)(－x＋4)。 同學提案「－3x²＋14x＋8」，請逐步改正。",
      "input": {
        "a": 3,
        "b": -2,
        "c": -1,
        "d": 4,
        "confirmed": true,
        "task": "check_proposal",
        "proposal": {
          "coefficients": [
            "8",
            "14",
            "-3"
          ]
        }
      },
      "expectedDecision": "reject",
      "expectedAnswer": {
        "coefficients": [
          "-8",
          "14",
          "-3"
        ]
      },
      "solutionSteps": [
        "兩個常數異號，乘積常數的負號漏掉。",
        "四個乘積係數依次：x²欄3×(-1)＝(-3)；x欄3×4＝12、(-2)×(-1)＝2；常數(-2)×4＝(-8)。",
        "x欄合併：12＋2＝14。",
        "結果：－3x²＋14x－8；核對升冪係數x^0欄=(-8)、x^1欄=14、x^2欄=(-3)。"
      ],
      "why": "兩個常數異號，乘積常數的負號漏掉。",
      "ifNotUnderstood": "從第一括號每項各畫兩個分配箭頭的想像順序；每一對項恰好相乘一次。",
      "teacherReviewed": false,
      "appConnected": false
    },
    {
      "id": "g8-poly-binomial-product.negative.05",
      "code": "A-8-1",
      "subtypeId": "g8-poly-binomial-product",
      "kind": "negative",
      "casePurpose": "validator-guard",
      "studentFacing": false,
      "prompt": "工程守衛：布林係數不能當1；不是學生數學錯題。",
      "input": {
        "a": true,
        "b": 2,
        "c": 1,
        "d": 3,
        "confirmed": true,
        "task": "solve"
      },
      "expectedDecision": "block",
      "expectedAnswer": null,
      "solutionSteps": [
        "原係數/次方/項數或結構超出契約，不作任意字串運算",
        "核對原式後才回此步，不用未知係數補成0。"
      ],
      "why": "工程守衛：布林係數不能當1；不是學生數學錯題。",
      "ifNotUnderstood": "先指出哪一個係數、次方或呈現形式沒有看清楚。",
      "teacherReviewed": false,
      "appConnected": false
    },
    {
      "id": "g8-poly-binomial-product.negative.06",
      "code": "A-8-1",
      "subtypeId": "g8-poly-binomial-product",
      "kind": "negative",
      "casePurpose": "validator-guard",
      "studentFacing": false,
      "prompt": "工程守衛：巨大整數超原係數有限範圍，不先做乘冪/枚舉因數。",
      "input": {
        "a": 100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,
        "b": 2,
        "c": 1,
        "d": 3,
        "confirmed": true,
        "task": "solve"
      },
      "expectedDecision": "block",
      "expectedAnswer": null,
      "solutionSteps": [
        "原係數/次方/項數或結構超出契約，不作任意字串運算",
        "核對原式後才回此步，不用未知係數補成0。"
      ],
      "why": "工程守衛：巨大整數超原係數有限範圍，不先做乘冪/枚舉因數。",
      "ifNotUnderstood": "先指出哪一個係數、次方或呈現形式沒有看清楚。",
      "teacherReviewed": false,
      "appConnected": false
    },
    {
      "id": "g8-poly-binomial-product.boundary.01",
      "code": "A-8-1",
      "subtypeId": "g8-poly-binomial-product",
      "kind": "boundary",
      "casePurpose": "teaching-example",
      "studentFacing": true,
      "prompt": "展開(0)(x＋2)。",
      "input": {
        "a": 0,
        "b": 0,
        "c": 1,
        "d": 2,
        "confirmed": true,
        "task": "solve"
      },
      "expectedDecision": "pass",
      "expectedAnswer": {
        "coefficients": [
          "0"
        ]
      },
      "solutionSteps": [
        "四個乘積係數依次：x²欄0×1＝0；x欄0×2＝0、0×1＝0；常數0×2＝0。",
        "x欄合併：0＋0＝0。",
        "結果：0；核對升冪係數x^0欄=0。"
      ],
      "why": "逐係數守恆與定義角色核對，不以一次代值碰巧相等代替恆等。",
      "ifNotUnderstood": "從第一括號每項各畫兩個分配箭頭的想像順序；每一對項恰好相乘一次。",
      "teacherReviewed": false,
      "appConnected": false
    },
    {
      "id": "g8-poly-binomial-product.boundary.02",
      "code": "A-8-1",
      "subtypeId": "g8-poly-binomial-product",
      "kind": "boundary",
      "casePurpose": "teaching-example",
      "studentFacing": true,
      "prompt": "展開(x)(x)。",
      "input": {
        "a": 1,
        "b": 0,
        "c": 1,
        "d": 0,
        "confirmed": true,
        "task": "solve"
      },
      "expectedDecision": "pass",
      "expectedAnswer": {
        "coefficients": [
          "0",
          "0",
          "1"
        ]
      },
      "solutionSteps": [
        "四個乘積係數依次：x²欄1×1＝1；x欄1×0＝0、0×1＝0；常數0×0＝0。",
        "x欄合併：0＋0＝0。",
        "結果：x²；核對升冪係數x^0欄=0、x^1欄=0、x^2欄=1。"
      ],
      "why": "逐係數守恆與定義角色核對，不以一次代值碰巧相等代替恆等。",
      "ifNotUnderstood": "從第一括號每項各畫兩個分配箭頭的想像順序；每一對項恰好相乘一次。",
      "teacherReviewed": false,
      "appConnected": false
    },
    {
      "id": "g8-poly-binomial-product.boundary.03",
      "code": "A-8-1",
      "subtypeId": "g8-poly-binomial-product",
      "kind": "boundary",
      "casePurpose": "teaching-example",
      "studentFacing": true,
      "prompt": "展開(－x)(－1)。",
      "input": {
        "a": -1,
        "b": 0,
        "c": 0,
        "d": -1,
        "confirmed": true,
        "task": "solve"
      },
      "expectedDecision": "pass",
      "expectedAnswer": {
        "coefficients": [
          "0",
          "1"
        ]
      },
      "solutionSteps": [
        "四個乘積係數依次：x²欄(-1)×0＝0；x欄(-1)×(-1)＝1、0×0＝0；常數0×(-1)＝0。",
        "x欄合併：1＋0＝1。",
        "結果：x；核對升冪係數x^0欄=0、x^1欄=1。"
      ],
      "why": "逐係數守恆與定義角色核對，不以一次代值碰巧相等代替恆等。",
      "ifNotUnderstood": "從第一括號每項各畫兩個分配箭頭的想像順序；每一對項恰好相乘一次。",
      "teacherReviewed": false,
      "appConnected": false
    },
    {
      "id": "g8-poly-binomial-product.boundary.04",
      "code": "A-8-1",
      "subtypeId": "g8-poly-binomial-product",
      "kind": "boundary",
      "casePurpose": "teaching-example",
      "studentFacing": true,
      "prompt": "展開(1)(1)。",
      "input": {
        "a": 0,
        "b": 1,
        "c": 0,
        "d": 1,
        "confirmed": true,
        "task": "solve"
      },
      "expectedDecision": "pass",
      "expectedAnswer": {
        "coefficients": [
          "1"
        ]
      },
      "solutionSteps": [
        "四個乘積係數依次：x²欄0×0＝0；x欄0×1＝0、1×0＝0；常數1×1＝1。",
        "x欄合併：0＋0＝0。",
        "結果：1；核對升冪係數x^0欄=1。"
      ],
      "why": "逐係數守恆與定義角色核對，不以一次代值碰巧相等代替恆等。",
      "ifNotUnderstood": "從第一括號每項各畫兩個分配箭頭的想像順序；每一對項恰好相乘一次。",
      "teacherReviewed": false,
      "appConnected": false
    },
    {
      "id": "g8-poly-binomial-product.ambiguous.01",
      "code": "A-8-1",
      "subtypeId": "g8-poly-binomial-product",
      "kind": "ambiguous",
      "casePurpose": "teaching-example",
      "studentFacing": true,
      "prompt": "原式(x－4)(？x＋4)；問號係數未確認，完整結果能確定嗎？",
      "input": {
        "a": 1,
        "b": -4,
        "c": null,
        "d": 4,
        "confirmed": true,
        "task": "solve"
      },
      "expectedDecision": "confirm",
      "expectedAnswer": null,
      "solutionSteps": [
        "缺少原式的係數、次方或寫法，先確認題目，不自行補值。",
        "核對原式後才回此步，不用未知係數補成0。"
      ],
      "why": "逐係數守恆與定義角色核對，不以一次代值碰巧相等代替恆等。",
      "ifNotUnderstood": "先指出哪一個係數、次方或呈現形式沒有看清楚。",
      "teacherReviewed": false,
      "appConnected": false
    },
    {
      "id": "g8-poly-binomial-product.ambiguous.02",
      "code": "A-8-1",
      "subtypeId": "g8-poly-binomial-product",
      "kind": "ambiguous",
      "casePurpose": "teaching-example",
      "studentFacing": true,
      "prompt": "原式(2x)(3x＋？)；問號係數未確認，完整結果能確定嗎？",
      "input": {
        "a": 2,
        "b": 0,
        "c": 3,
        "d": null,
        "confirmed": true,
        "task": "solve"
      },
      "expectedDecision": "confirm",
      "expectedAnswer": null,
      "solutionSteps": [
        "缺少原式的係數、次方或寫法，先確認題目，不自行補值。",
        "核對原式後才回此步，不用未知係數補成0。"
      ],
      "why": "逐係數守恆與定義角色核對，不以一次代值碰巧相等代替恆等。",
      "ifNotUnderstood": "先指出哪一個係數、次方或呈現形式沒有看清楚。",
      "teacherReviewed": false,
      "appConnected": false
    },
    {
      "id": "g8-poly-binomial-product.holdout.01",
      "code": "A-8-1",
      "subtypeId": "g8-poly-binomial-product",
      "kind": "holdout",
      "casePurpose": "teaching-example",
      "studentFacing": true,
      "prompt": "展開(2x＋5)(3x－1)。",
      "input": {
        "a": 2,
        "b": 5,
        "c": 3,
        "d": -1,
        "confirmed": true,
        "task": "solve"
      },
      "expectedDecision": "pass",
      "expectedAnswer": {
        "coefficients": [
          "-5",
          "13",
          "6"
        ]
      },
      "solutionSteps": [
        "四個乘積係數依次：x²欄2×3＝6；x欄2×(-1)＝(-2)、5×3＝15；常數5×(-1)＝(-5)。",
        "x欄合併：(-2)＋15＝13。",
        "結果：6x²＋13x－5；核對升冪係數x^0欄=(-5)、x^1欄=13、x^2欄=6。"
      ],
      "why": "逐係數守恆與定義角色核對，不以一次代值碰巧相等代替恆等。",
      "ifNotUnderstood": "從第一括號每項各畫兩個分配箭頭的想像順序；每一對項恰好相乘一次。",
      "teacherReviewed": false,
      "appConnected": false
    },
    {
      "id": "g8-poly-binomial-product.holdout.02",
      "code": "A-8-1",
      "subtypeId": "g8-poly-binomial-product",
      "kind": "holdout",
      "casePurpose": "teaching-example",
      "studentFacing": true,
      "prompt": "展開(－3x－2)(x＋7)。",
      "input": {
        "a": -3,
        "b": -2,
        "c": 1,
        "d": 7,
        "confirmed": true,
        "task": "solve"
      },
      "expectedDecision": "pass",
      "expectedAnswer": {
        "coefficients": [
          "-14",
          "-23",
          "-3"
        ]
      },
      "solutionSteps": [
        "四個乘積係數依次：x²欄(-3)×1＝(-3)；x欄(-3)×7＝(-21)、(-2)×1＝(-2)；常數(-2)×7＝(-14)。",
        "x欄合併：(-21)＋(-2)＝(-23)。",
        "結果：－3x²－23x－14；核對升冪係數x^0欄=(-14)、x^1欄=(-23)、x^2欄=(-3)。"
      ],
      "why": "逐係數守恆與定義角色核對，不以一次代值碰巧相等代替恆等。",
      "ifNotUnderstood": "從第一括號每項各畫兩個分配箭頭的想像順序；每一對項恰好相乘一次。",
      "teacherReviewed": false,
      "appConnected": false
    },
    {
      "id": "g8-poly-binomial-product.holdout.03",
      "code": "A-8-1",
      "subtypeId": "g8-poly-binomial-product",
      "kind": "holdout",
      "casePurpose": "teaching-example",
      "studentFacing": true,
      "prompt": "展開(4x＋1)(－2x＋3)。",
      "input": {
        "a": 4,
        "b": 1,
        "c": -2,
        "d": 3,
        "confirmed": true,
        "task": "solve"
      },
      "expectedDecision": "pass",
      "expectedAnswer": {
        "coefficients": [
          "3",
          "10",
          "-8"
        ]
      },
      "solutionSteps": [
        "四個乘積係數依次：x²欄4×(-2)＝(-8)；x欄4×3＝12、1×(-2)＝(-2)；常數1×3＝3。",
        "x欄合併：12＋(-2)＝10。",
        "結果：－8x²＋10x＋3；核對升冪係數x^0欄=3、x^1欄=10、x^2欄=(-8)。"
      ],
      "why": "逐係數守恆與定義角色核對，不以一次代值碰巧相等代替恆等。",
      "ifNotUnderstood": "從第一括號每項各畫兩個分配箭頭的想像順序；每一對項恰好相乘一次。",
      "teacherReviewed": false,
      "appConnected": false
    },
    {
      "id": "g8-poly-binomial-product.holdout.04",
      "code": "A-8-1",
      "subtypeId": "g8-poly-binomial-product",
      "kind": "holdout",
      "casePurpose": "teaching-example",
      "studentFacing": true,
      "prompt": "展開(5x－3)(2x－4)。",
      "input": {
        "a": 5,
        "b": -3,
        "c": 2,
        "d": -4,
        "confirmed": true,
        "task": "solve"
      },
      "expectedDecision": "pass",
      "expectedAnswer": {
        "coefficients": [
          "12",
          "-26",
          "10"
        ]
      },
      "solutionSteps": [
        "四個乘積係數依次：x²欄5×2＝10；x欄5×(-4)＝(-20)、(-3)×2＝(-6)；常數(-3)×(-4)＝12。",
        "x欄合併：(-20)＋(-6)＝(-26)。",
        "結果：10x²－26x＋12；核對升冪係數x^0欄=12、x^1欄=(-26)、x^2欄=10。"
      ],
      "why": "逐係數守恆與定義角色核對，不以一次代值碰巧相等代替恆等。",
      "ifNotUnderstood": "從第一括號每項各畫兩個分配箭頭的想像順序；每一對項恰好相乘一次。",
      "teacherReviewed": false,
      "appConnected": false
    }
  ],
  "teacherReviewed": false,
  "appConnected": false
}
