{
  "format": "automata-studio/workspace",
  "schema": 1,
  "app": "dev",
  "machine": "NPDA",
  "config": {
    "sym": {
      "eps": "ε",
      "any": "Σ",
      "blank": "⊔",
      "leftMarker": "⊢",
      "rightMarker": "⊣",
      "stackBottom": "Z",
      "lambda": "λ"
    },
    "pdaParadigm": "explicit"
  },
  "sigma": [
    "a",
    "b",
    "c"
  ],
  "stackAlpha": [
    "Z",
    "X"
  ],
  "outputAlpha": [],
  "tapeCount": 1,
  "states": [
    {
      "id": "s1",
      "x": 140,
      "y": 208,
      "name": "start"
    },
    {
      "id": "s2",
      "x": 319,
      "y": 255,
      "name": "a1"
    },
    {
      "id": "s3",
      "x": 319,
      "y": 160,
      "name": "a2"
    },
    {
      "id": "s4",
      "x": 498,
      "y": 255,
      "name": "b1"
    },
    {
      "id": "s5",
      "x": 677,
      "y": 255,
      "name": "c1"
    },
    {
      "id": "s6",
      "x": 856,
      "y": 255,
      "name": "done1"
    },
    {
      "id": "s7",
      "x": 498,
      "y": 160,
      "name": "b2"
    },
    {
      "id": "s8",
      "x": 677,
      "y": 160,
      "name": "c2"
    },
    {
      "id": "s9",
      "x": 856,
      "y": 160,
      "name": "done2"
    }
  ],
  "transitions": [
    {
      "id": "t1",
      "from": "s1",
      "to": "s2",
      "symbol": "ε",
      "pop": "ε",
      "push": "ε"
    },
    {
      "id": "t2",
      "from": "s1",
      "to": "s3",
      "symbol": "ε",
      "pop": "ε",
      "push": "ε"
    },
    {
      "id": "t3",
      "from": "s2",
      "to": "s2",
      "symbol": "a",
      "pop": "ε",
      "push": "X"
    },
    {
      "id": "t4",
      "from": "s2",
      "to": "s4",
      "symbol": "ε",
      "pop": "ε",
      "push": "ε"
    },
    {
      "id": "t5",
      "from": "s4",
      "to": "s4",
      "symbol": "b",
      "pop": "X",
      "push": "ε"
    },
    {
      "id": "t6",
      "from": "s4",
      "to": "s5",
      "symbol": "ε",
      "pop": "Z",
      "push": "Z"
    },
    {
      "id": "t7",
      "from": "s5",
      "to": "s5",
      "symbol": "c",
      "pop": "ε",
      "push": "ε"
    },
    {
      "id": "t8",
      "from": "s5",
      "to": "s6",
      "symbol": "ε",
      "pop": "ε",
      "push": "ε"
    },
    {
      "id": "t9",
      "from": "s3",
      "to": "s3",
      "symbol": "a",
      "pop": "ε",
      "push": "ε"
    },
    {
      "id": "t10",
      "from": "s3",
      "to": "s7",
      "symbol": "ε",
      "pop": "ε",
      "push": "ε"
    },
    {
      "id": "t11",
      "from": "s7",
      "to": "s7",
      "symbol": "b",
      "pop": "ε",
      "push": "X"
    },
    {
      "id": "t12",
      "from": "s7",
      "to": "s8",
      "symbol": "ε",
      "pop": "ε",
      "push": "ε"
    },
    {
      "id": "t13",
      "from": "s8",
      "to": "s8",
      "symbol": "c",
      "pop": "X",
      "push": "ε"
    },
    {
      "id": "t14",
      "from": "s8",
      "to": "s9",
      "symbol": "ε",
      "pop": "Z",
      "push": "Z"
    }
  ],
  "startId": "s1",
  "accepts": [
    "s6",
    "s9"
  ],
  "notes": [],
  "dividers": [],
  "blocks": [],
  "meta": {
    "title": "aⁱbʲcᵏ with i = j or j = k",
    "blurb": "Either the a’s match the b’s, or the b’s match the c’s. A pushdown machine guesses which, at the start. No grammar for this language is unambiguous: aⁿbⁿcⁿ satisfies both conditions and always has two derivations.",
    "inputs": [
      {
        "w": "",
        "expect": "accept"
      },
      {
        "w": "abc",
        "expect": "accept"
      },
      {
        "w": "aabbcc",
        "expect": "accept"
      },
      {
        "w": "aaabbbccccc",
        "expect": "accept"
      },
      {
        "w": "b",
        "expect": "reject"
      },
      {
        "w": "bbc",
        "expect": "reject"
      },
      {
        "w": "babbcc",
        "expect": "reject"
      },
      {
        "w": "baabbbccccc",
        "expect": "reject"
      }
    ],
    "library": {
      "author": {
        "login": "thethinkmachine"
      },
      "license": "CC-BY-4.0",
      "tags": [
        "inherent-ambiguity",
        "union",
        "guessing"
      ],
      "difficulty": "advanced"
    }
  }
}
