{
  "format": "automata-studio/workspace",
  "schema": 1,
  "app": "dev",
  "machine": "DFA",
  "config": {
    "sym": {
      "eps": "ε",
      "any": "Σ",
      "blank": "⊔",
      "leftMarker": "⊢",
      "rightMarker": "⊣",
      "stackBottom": "Z",
      "lambda": "λ"
    }
  },
  "sigma": [
    "0",
    "1"
  ],
  "stackAlpha": [],
  "outputAlpha": [],
  "tapeCount": 1,
  "states": [
    {
      "id": "s1",
      "x": 140,
      "y": 208,
      "name": "r0"
    },
    {
      "id": "s2",
      "x": 319,
      "y": 208,
      "name": "r1"
    },
    {
      "id": "s3",
      "x": 498,
      "y": 255,
      "name": "r2"
    },
    {
      "id": "s4",
      "x": 498,
      "y": 160,
      "name": "r3"
    }
  ],
  "transitions": [
    {
      "id": "t1",
      "from": "s1",
      "to": "s1",
      "symbol": "0"
    },
    {
      "id": "t2",
      "from": "s1",
      "to": "s2",
      "symbol": "1"
    },
    {
      "id": "t3",
      "from": "s2",
      "to": "s3",
      "symbol": "0"
    },
    {
      "id": "t4",
      "from": "s2",
      "to": "s4",
      "symbol": "1"
    },
    {
      "id": "t5",
      "from": "s3",
      "to": "s2",
      "symbol": "0"
    },
    {
      "id": "t6",
      "from": "s3",
      "to": "s3",
      "symbol": "1"
    },
    {
      "id": "t7",
      "from": "s4",
      "to": "s1",
      "symbol": "0"
    },
    {
      "id": "t8",
      "from": "s4",
      "to": "s2",
      "symbol": "1"
    }
  ],
  "startId": "s1",
  "accepts": [
    "s1"
  ],
  "notes": [],
  "dividers": [],
  "blocks": [],
  "meta": {
    "title": "Binary multiples of 6, in four states",
    "blurb": "A remainder machine for 6 would have six states, but two pairs of them can be merged: from remainder 1 and from remainder 4 the same continuations reach 0, because 2·1 and 2·4 are both 2 mod 6. Divisibility by 6 is divisibility by 2 and by 3, and the last bit already says the first.",
    "inputs": [
      {
        "w": "110",
        "expect": "accept",
        "label": "6"
      },
      {
        "w": "10010",
        "expect": "accept",
        "label": "18"
      },
      {
        "w": "1100",
        "expect": "accept",
        "label": "12"
      },
      {
        "w": "1000010110",
        "expect": "accept",
        "label": "534"
      },
      {
        "w": "100",
        "expect": "reject",
        "label": "4"
      },
      {
        "w": "11010",
        "expect": "reject",
        "label": "26"
      },
      {
        "w": "1000",
        "expect": "reject",
        "label": "8"
      },
      {
        "w": "1100010110",
        "expect": "reject",
        "label": "790"
      }
    ],
    "library": {
      "author": {
        "login": "thethinkmachine"
      },
      "license": "CC-BY-4.0",
      "tags": [
        "divisibility",
        "binary-numbers",
        "minimisation"
      ],
      "difficulty": "intermediate"
    }
  }
}
