{
  "aliases": null,
  "backlinks": null,
  "body": "\n## Counterexample\n\nLet $f \\colon [0, 1] \\to \\mathbb{R}$ be the [[Dirichlet function|0T4EJ8ZJM9]]: $f(x) = 1$ for rational $x$ and $f(x) = 0$ for irrational $x$.\nEach subinterval of positive length contains both rational and irrational numbers. So for each partition $P$, $U(f, P) = 1$ and $L(f, P) = 0$.\nThe upper [[Darboux integral|09FQT057T7]] is $1$ and the lower one is $0$. So $f$ is [[not Riemann integrable|021XJAQVDC]].\n\n## Remarks\n\nThe function is bounded, so the failure is not caused by unboundedness.\nThe function is Lebesgue integrable, with Lebesgue integral $0$, since $\\mathbb{Q}$ has measure zero.\nIt is the pointwise limit of Riemann integrable functions. So pointwise limits do not keep Riemann integrability.\n\n## Explanations\n\n### L1 human\n\nEvery Riemann sum of this function is $1$ or $0$ or in between, depending only on the choice of tags.\nSo the sums cannot settle down to one number.\n",
  "commit": "f591989ed15704e9d8755a7a5a6426d73de7a3ae",
  "front": {
    "kind": "counterexample",
    "msc": [
      "26A42"
    ],
    "name": "The Dirichlet function is not Riemann integrable",
    "sources": [
      {
        "locator": "Integration properties",
        "url": "https://en.wikipedia.org/wiki/Dirichlet_function"
      }
    ],
    "tag": "03Z4JC4YRJ",
    "uses": [
      "0T4EJ8ZJM9",
      "09FQT057T7",
      "021XJAQVDC"
    ]
  },
  "kind": "counterexample",
  "link": "https://math2.tamnd.com/node/03Z4JC4YRJ/",
  "links": [
    {
      "field": "uses",
      "target": "0T4EJ8ZJM9"
    },
    {
      "field": "uses",
      "target": "09FQT057T7"
    },
    {
      "field": "uses",
      "target": "021XJAQVDC"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/03Z4JC4YRJ.md",
  "msc": [
    "26A42"
  ],
  "name": "The Dirichlet function is not Riemann integrable",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/03Z/03Z4JC4YRJ.md",
  "status": null,
  "tag": "03Z4JC4YRJ",
  "uri": "m2://03Z4JC4YRJ",
  "url": "https://math2.tamnd.com/wiki/the-dirichlet-function-is-not-riemann-integrable/",
  "writing": {
    "tag": "03Z4JC4YRJ",
    "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": "edge refutes or not_instance_of out",
        "have": 0,
        "want": 1
      }
    ]
  }
}
