{
  "aliases": null,
  "backlinks": [
    {
      "field": "uses",
      "target": "03Z4JC4YRJ"
    }
  ],
  "body": "\n## Counterexample\n\nLet $f \\colon \\mathbb{R} \\to \\mathbb{R}$ be given by $f(x) = 1$ for rational $x$ and $f(x) = 0$ for irrational $x$.\nThen $f$ is not [[continuous at|0EEE2CZB2A]] any point.\nIndeed, each real $a$ is the limit of a sequence of rationals and of a sequence of irrationals. Their images tend to $1$ and to $0$, so one of them does not tend to $f(a)$.\n\n## Remarks\n\nThe function $f$ is the indicator function of $\\mathbb{Q}$.\nEvery rational number is a period of $f$.\nThe function is [[not Riemann integrable|03Z4JC4YRJ]] on any interval with more than one point.\n\n## Explanations\n\n### L1 human\n\nRational and irrational numbers lie mixed together in every small interval.\nSo the function jumps between $0$ and $1$ near every point, and it has no limit anywhere.\n",
  "commit": "f591989ed15704e9d8755a7a5a6426d73de7a3ae",
  "front": {
    "kind": "counterexample",
    "msc": [
      "26A15"
    ],
    "name": "Dirichlet function",
    "same_as": {
      "wikidata": "Q948386",
      "wikipedia": "Dirichlet function"
    },
    "sources": [
      {
        "locator": "Topological properties",
        "url": "https://en.wikipedia.org/wiki/Dirichlet_function"
      }
    ],
    "tag": "0T4EJ8ZJM9",
    "uses": [
      "0EEE2CZB2A",
      "0MVDQEAB60"
    ]
  },
  "kind": "counterexample",
  "link": "https://math2.tamnd.com/node/0T4EJ8ZJM9/",
  "links": [
    {
      "field": "uses",
      "target": "0EEE2CZB2A"
    },
    {
      "field": "uses",
      "target": "0MVDQEAB60"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/0T4EJ8ZJM9.md",
  "msc": [
    "26A15"
  ],
  "name": "Dirichlet function",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/0T4/0T4EJ8ZJM9.md",
  "status": null,
  "tag": "0T4EJ8ZJM9",
  "uri": "m2://0T4EJ8ZJM9",
  "url": "https://math2.tamnd.com/wiki/dirichlet-function/",
  "writing": {
    "tag": "0T4EJ8ZJM9",
    "kind": "counterexample",
    "level": "W0",
    "next": [
      {
        "what": "edge refutes or not_instance_of out",
        "have": 0,
        "want": 1
      }
    ]
  }
}
