{
  "aliases": [
    "direct-comparison-test"
  ],
  "backlinks": [
    {
      "field": "uses",
      "target": "05H4DDDYBZ"
    },
    {
      "field": "uses",
      "target": "0GT85FBPTS"
    },
    {
      "field": "uses",
      "target": "0HW7BNHHGF"
    },
    {
      "field": "uses",
      "target": "0NX5NWAFC9"
    },
    {
      "field": "uses",
      "target": "0QNY6ZBXPN"
    }
  ],
  "body": "\n## Statement\n\nLet $(a_n)$ and $(b_n)$ be real sequences with $0 \\le a_n \\le b_n$ for all $n$.\nIf $\\sum b_n$ converges, then $\\sum a_n$ converges, and $\\sum a_n \\le \\sum b_n$.\nIf $\\sum a_n$ diverges, then $\\sum b_n$ diverges.\n\n## Remarks\n\nThe partial sums of $\\sum a_n$ are at most those of $\\sum b_n$. The result follows from [[a series of nonnegative terms converges iff its partial sums are bounded|0MX1HZBBXJ]].\nIt is enough that $0 \\le a_n \\le b_n$ for all $n$ larger than some $N$.\nFor example, $0 \\le 1/(n^2 + 1) \\le 1/n^2$, so $\\sum 1/(n^2 + 1)$ converges.\nMathlib states it for a summable upper bound, in `Summable.of_nonneg_of_le`.\n\n## Explanations\n\n### L1 human\n\nIf a series of nonnegative terms is smaller term by term than a series with a finite sum, it has a finite sum too.\nIf a smaller series already has an infinite sum, the larger one has an infinite sum as well.\n",
  "commit": "6ac761d40018146541484a9e8b9eafd6ecc303dc",
  "front": {
    "aliases": [
      "direct-comparison-test"
    ],
    "kind": "statement",
    "msc": [
      "40A05"
    ],
    "name": "Comparison test",
    "role": "theorem",
    "same_as": {
      "wikidata": "Q1050206",
      "wikipedia": "Direct comparison test"
    },
    "sources": [
      {
        "locator": "For series",
        "url": "https://en.wikipedia.org/wiki/Direct_comparison_test"
      }
    ],
    "tag": "04Z5G0THN6",
    "uses": [
      "0MX1HZBBXJ"
    ]
  },
  "kind": "statement",
  "link": "https://math2.tamnd.com/node/04Z5G0THN6/",
  "links": [
    {
      "field": "uses",
      "target": "0MX1HZBBXJ"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/04Z5G0THN6.md",
  "msc": [
    "40A05"
  ],
  "name": "Comparison test",
  "prov": null,
  "role": "theorem",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/04Z/04Z5G0THN6.md",
  "status": null,
  "tag": "04Z5G0THN6",
  "uri": "m2://04Z5G0THN6",
  "url": "https://math2.tamnd.com/wiki/comparison-test/",
  "writing": {
    "tag": "04Z5G0THN6",
    "kind": "statement",
    "level": "W1",
    "next": [
      {
        "what": "edge about out",
        "note": "the concepts that the statement is about",
        "have": 0,
        "want": 1
      },
      {
        "what": "edge proves in",
        "note": "at least one proof node",
        "have": 0,
        "want": 1
      },
      {
        "what": "edge instance_of or illustrates in",
        "note": "one example that shows the statement at work",
        "have": 0,
        "want": 1
      },
      {
        "what": "explanation L2",
        "have": 0,
        "want": 1
      }
    ]
  }
}
