{
  "schemaVersion": 1,
  "id": "example-course",
  "engine": "equation-editor-v1",
  "metadata": {
    "title": "Example geometry course",
    "deckAuthor": "You"
  },
  "decks": [
    {
      "id": "basics",
      "kind": "lecture",
      "shortName": "B",
      "title": "Basics",
      "subtitle": "Distance",
      "description": "An independently authored example.",
      "cards": [
        "distance"
      ]
    }
  ],
  "cards": [
    {
      "id": "distance",
      "type": "equation",
      "title": "Distance between two points",
      "prompt": "For fixed endpoints $p,q$ in Euclidean space, give the minimum curve length $L_{min}$.",
      "learningVersion": 1,
      "editor": {
        "palette": [
          {
            "tool": "L_min",
            "label": "L_min"
          },
          {
            "tool": "q",
            "label": "q"
          },
          {
            "tool": "p",
            "label": "p"
          }
        ],
        "operations": [
          "−",
          "+",
          "fraction",
          "=",
          ",",
          "(",
          ")",
          "square",
          "power",
          "||",
          "|",
          "⟨",
          "⟩",
          "sqrt",
          "×",
          "/",
          "{",
          "}"
        ],
        "digits": [
          "0",
          "1",
          "2",
          "3"
        ],
        "initialAnswerVisible": false
      },
      "answers": [
        {
          "children": [
            {
              "kind": "symbol",
              "text": "L_min"
            },
            {
              "kind": "symbol",
              "text": "="
            },
            {
              "children": [
                {
                  "kind": "symbol",
                  "text": "||"
                },
                {
                  "children": [
                    {
                      "kind": "symbol",
                      "text": "q"
                    },
                    {
                      "kind": "symbol",
                      "text": "−"
                    },
                    {
                      "kind": "symbol",
                      "text": "p"
                    }
                  ],
                  "kind": "row"
                },
                {
                  "kind": "symbol",
                  "text": "||"
                }
              ],
              "kind": "row"
            }
          ],
          "kind": "row"
        }
      ],
      "explanation": {
        "kind": "proof",
        "proof": {
          "intro": "Let $\\alpha(a)=p$ and $\\alpha(b)=q$, with $b>a$. The fundamental theorem of calculus gives $q-p=\\int_a^b\\dot\\alpha(t)\\,dt$.",
          "steps": [
            {
              "text": "$\\displaystyle \\|q-p\\|=\\left\\|\\int_a^b\\dot\\alpha(t)\\,dt\\right\\|\\leq\\int_a^b\\|\\dot\\alpha(t)\\|\\,dt=L(\\alpha)$."
            },
            {
              "text": "For the segment $\\alpha(t)=p+\\frac{t-a}{b-a}(q-p)$, its velocity is $(q-p)/(b-a)$, so"
            },
            {
              "text": "$\\displaystyle L(\\alpha)=\\int_a^b\\frac{\\|q-p\\|}{b-a}\\,dt=\\|q-p\\|$."
            },
            {
              "text": "Thus the lower bound is attained and $L_{\\min}=\\|q-p\\|$. If $p=q$, the constant curve attains zero."
            }
          ]
        }
      },
      "grading": {
        "symbolTypes": {
          "T": "vector",
          "N": "vector",
          "B": "vector",
          "X_u": "vector",
          "X_v": "vector",
          "w": "vector",
          "p": "vector",
          "p_0": "vector",
          "dot_a": "vector",
          "dot_w": "vector",
          "dot_γ": "vector",
          "A": "matrix",
          "M": "matrix",
          "I": "matrix",
          "q": "vector"
        },
        "scalarProducts": true,
        "implicitArguments": {},
        "nonnegative": [
          "E",
          "G",
          "W",
          "D"
        ],
        "positive": [],
        "nonzero": [],
        "equalityChain": false
      }
    }
  ]
}
