{
  "aliases": null,
  "backlinks": [
    {
      "field": "uses",
      "target": "A7549DJW1N"
    }
  ],
  "body": "\n## Counterexample\n\nUse base $13$ with the thirteen digits $0, 1, \\ldots, 9, \\mathtt{+}, \\mathtt{-}, \\mathtt{.}$, in this order.\nFor $x \\in \\R$, take the base-$13$ expansion of the fractional part of $x$ that does not end in an infinite string of the last digit.\nSuppose that from some position on, this expansion has the form\n$$\\mathtt{\\pm}\\, a_1 a_2 \\ldots a_k \\,\\mathtt{.}\\, b_1 b_2 b_3 \\ldots$$\nThis tail consists of a sign symbol and finitely many digits $a_i \\in \\set{0, \\ldots, 9}$.\nThen comes the point symbol, and after it only digits $b_j \\in \\set{0, \\ldots, 9}$.\nThen set $f(x) = \\pm\\, a_1 a_2 \\ldots a_k . b_1 b_2 b_3 \\ldots$, read as an ordinary decimal number.\nOtherwise set $f(x) = 0$.\n\nEach open interval $J$ contains all numbers with a fixed integer part whose expansion begins with a suitable finite block of digits.\nAfter that block, any tail can be appended.\nSo for each real $y$, some $x \\in J$ has a tail that encodes $y$, and $f(J) = \\R$.\n\n## Remarks\n\nThe function $f$ maps every interval onto $\\R$, so it is a [[Darboux function|7BJEH1GCTE]]: it has the intermediate value property.\nBut $f$ is [[continuous|0P27W9RW0G]] at no point, since its values on every interval are unbounded.\nSo the converse of the [[intermediate value theorem|00KAFBR32E]] fails badly.\nAlmost every real number has a base-$13$ expansion with infinitely many point symbols, so $f = 0$ [[almost everywhere|RARTMA0ZEC]].\n\n## Explanations\n\n### L1 human\n\nConway's function hides a decimal number in the end of the base-$13$ digits of $x$.\nEvery tiny interval contains numbers with every possible ending, so the function takes every real value on every tiny interval.\nIt never skips a value, yet it is wildly discontinuous everywhere.\nSo \"never skips values\" is much weaker than \"continuous\".\n",
  "commit": "547b6eddb8f2feb8d579f2d633d22a27b7e132fc",
  "front": {
    "kind": "counterexample",
    "msc": [
      "26A15"
    ],
    "name": "Conway base 13 function",
    "same_as": {
      "wikidata": "Q2896394",
      "wikipedia": "Conway's base 13 function"
    },
    "sources": [
      {
        "url": "https://en.wikipedia.org/wiki/Conway%27s_base_13_function"
      }
    ],
    "tag": "91YF82M8AA",
    "uses": [
      "7BJEH1GCTE",
      "00KAFBR32E",
      "0P27W9RW0G"
    ]
  },
  "kind": "counterexample",
  "link": "https://math2.tamnd.com/node/91YF82M8AA/",
  "links": [
    {
      "field": "uses",
      "target": "7BJEH1GCTE"
    },
    {
      "field": "uses",
      "target": "00KAFBR32E"
    },
    {
      "field": "uses",
      "target": "0P27W9RW0G"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/91YF82M8AA.md",
  "msc": [
    "26A15"
  ],
  "name": "Conway base 13 function",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/91Y/91YF82M8AA.md",
  "status": null,
  "tag": "91YF82M8AA",
  "uri": "m2://91YF82M8AA",
  "url": "https://math2.tamnd.com/wiki/conway-base-13-function/",
  "writing": {
    "tag": "91YF82M8AA",
    "kind": "counterexample",
    "level": "W0",
    "next": [
      {
        "what": "an inventory row",
        "note": "the row of the inventory that the node accounts for",
        "have": 0,
        "want": 1
      },
      {
        "what": "a source with a locator",
        "have": 0,
        "want": 1
      },
      {
        "what": "edge refutes or not_instance_of out",
        "have": 0,
        "want": 1
      }
    ]
  }
}
