{
  "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"
  ],
  "stackAlpha": [
    "Z",
    "X"
  ],
  "outputAlpha": [],
  "tapeCount": 1,
  "states": [
    {
      "id": "s1",
      "x": 140,
      "y": 255,
      "name": "start"
    },
    {
      "id": "s2",
      "x": 319,
      "y": 303,
      "name": "even"
    },
    {
      "id": "s3",
      "x": 319,
      "y": 208,
      "name": "p"
    },
    {
      "id": "s4",
      "x": 498,
      "y": 350,
      "name": "odd"
    },
    {
      "id": "s5",
      "x": 498,
      "y": 255,
      "name": "midA"
    },
    {
      "id": "s6",
      "x": 498,
      "y": 160,
      "name": "midB"
    },
    {
      "id": "s7",
      "x": 677,
      "y": 303,
      "name": "q_a"
    },
    {
      "id": "s8",
      "x": 677,
      "y": 208,
      "name": "q_b"
    },
    {
      "id": "s9",
      "x": 856,
      "y": 255,
      "name": "r"
    },
    {
      "id": "s10",
      "x": 1035,
      "y": 255,
      "name": "done"
    }
  ],
  "transitions": [
    {
      "id": "t1",
      "from": "s1",
      "to": "s2",
      "symbol": "ε",
      "pop": "ε",
      "push": "ε"
    },
    {
      "id": "t2",
      "from": "s1",
      "to": "s3",
      "symbol": "ε",
      "pop": "ε",
      "push": "ε"
    },
    {
      "id": "t3",
      "from": "s2",
      "to": "s4",
      "symbol": "a",
      "pop": "ε",
      "push": "ε"
    },
    {
      "id": "t4",
      "from": "s2",
      "to": "s4",
      "symbol": "b",
      "pop": "ε",
      "push": "ε"
    },
    {
      "id": "t5",
      "from": "s4",
      "to": "s2",
      "symbol": "a",
      "pop": "ε",
      "push": "ε"
    },
    {
      "id": "t6",
      "from": "s4",
      "to": "s2",
      "symbol": "b",
      "pop": "ε",
      "push": "ε"
    },
    {
      "id": "t7",
      "from": "s3",
      "to": "s3",
      "symbol": "a",
      "pop": "ε",
      "push": "X"
    },
    {
      "id": "t8",
      "from": "s3",
      "to": "s3",
      "symbol": "b",
      "pop": "ε",
      "push": "X"
    },
    {
      "id": "t9",
      "from": "s3",
      "to": "s5",
      "symbol": "a",
      "pop": "ε",
      "push": "ε"
    },
    {
      "id": "t10",
      "from": "s3",
      "to": "s6",
      "symbol": "b",
      "pop": "ε",
      "push": "ε"
    },
    {
      "id": "t11",
      "from": "s5",
      "to": "s5",
      "symbol": "a",
      "pop": "X",
      "push": "ε"
    },
    {
      "id": "t12",
      "from": "s5",
      "to": "s5",
      "symbol": "b",
      "pop": "X",
      "push": "ε"
    },
    {
      "id": "t13",
      "from": "s5",
      "to": "s7",
      "symbol": "ε",
      "pop": "Z",
      "push": "Z"
    },
    {
      "id": "t14",
      "from": "s6",
      "to": "s6",
      "symbol": "a",
      "pop": "X",
      "push": "ε"
    },
    {
      "id": "t15",
      "from": "s6",
      "to": "s6",
      "symbol": "b",
      "pop": "X",
      "push": "ε"
    },
    {
      "id": "t16",
      "from": "s6",
      "to": "s8",
      "symbol": "ε",
      "pop": "Z",
      "push": "Z"
    },
    {
      "id": "t17",
      "from": "s7",
      "to": "s7",
      "symbol": "a",
      "pop": "ε",
      "push": "X"
    },
    {
      "id": "t18",
      "from": "s7",
      "to": "s7",
      "symbol": "b",
      "pop": "ε",
      "push": "X"
    },
    {
      "id": "t19",
      "from": "s7",
      "to": "s9",
      "symbol": "b",
      "pop": "ε",
      "push": "ε"
    },
    {
      "id": "t20",
      "from": "s8",
      "to": "s8",
      "symbol": "a",
      "pop": "ε",
      "push": "X"
    },
    {
      "id": "t21",
      "from": "s8",
      "to": "s8",
      "symbol": "b",
      "pop": "ε",
      "push": "X"
    },
    {
      "id": "t22",
      "from": "s8",
      "to": "s9",
      "symbol": "a",
      "pop": "ε",
      "push": "ε"
    },
    {
      "id": "t23",
      "from": "s9",
      "to": "s9",
      "symbol": "a",
      "pop": "X",
      "push": "ε"
    },
    {
      "id": "t24",
      "from": "s9",
      "to": "s9",
      "symbol": "b",
      "pop": "X",
      "push": "ε"
    },
    {
      "id": "t25",
      "from": "s9",
      "to": "s10",
      "symbol": "ε",
      "pop": "Z",
      "push": "Z"
    }
  ],
  "startId": "s1",
  "accepts": [
    "s4",
    "s10"
  ],
  "notes": [],
  "dividers": [],
  "blocks": [],
  "meta": {
    "title": "Not a word repeated twice",
    "blurb": "The words ww form no context-free language, yet the words that are not of that form do. Odd length is easy; an even-length word fails to be ww exactly when it splits into two odd-length halves with different middle letters, and that is what the machine guesses and checks.",
    "inputs": [
      {
        "w": "a",
        "expect": "accept"
      },
      {
        "w": "aabba",
        "expect": "accept"
      },
      {
        "w": "ab",
        "expect": "accept"
      },
      {
        "w": "aaaaabba",
        "expect": "accept"
      },
      {
        "w": "",
        "expect": "reject"
      },
      {
        "w": "bb",
        "expect": "reject"
      },
      {
        "w": "abab",
        "expect": "reject"
      },
      {
        "w": "aa",
        "expect": "reject"
      }
    ],
    "library": {
      "author": {
        "login": "thethinkmachine"
      },
      "license": "CC-BY-4.0",
      "tags": [
        "copy-language",
        "complement",
        "guessing"
      ],
      "difficulty": "advanced"
    }
  }
}
