{
  "version": 1,
  "conventions": {
    "basis": "Each array is one column vector.",
    "norm": "Euclidean.",
    "rationals": "Exact rational values use strings such as 29/50."
  },
  "examples": [
    {
      "id": "rectangular-lattice",
      "title": "One lattice, two bases",
      "article": "/intro/vectors-bases#shared-lattice-example",
      "basis": [
        [
          2,
          0
        ],
        [
          0,
          3
        ]
      ],
      "equivalentBasis": [
        [
          2,
          0
        ],
        [
          6,
          3
        ]
      ],
      "basisChange": [
        [
          1,
          0
        ],
        [
          3,
          1
        ]
      ],
      "covolume": 6,
      "dualBasis": [
        [
          "1/2",
          0
        ],
        [
          0,
          "1/3"
        ]
      ],
      "shortestVectors": [
        [
          -2,
          0
        ],
        [
          2,
          0
        ]
      ],
      "successiveMinimaSquared": [
        4,
        9
      ],
      "voronoiHalfWidths": [
        1,
        "3/2"
      ],
      "packingRadiusSquared": 1,
      "coveringRadiusSquared": "13/4",
      "targets": [
        {
          "target": [
            "17/10",
            "23/10"
          ],
          "closestPoints": [
            [
              2,
              3
            ]
          ],
          "distanceSquared": "29/50"
        },
        {
          "target": [
            1,
            "3/2"
          ],
          "closestPoints": [
            [
              0,
              0
            ],
            [
              0,
              3
            ],
            [
              2,
              0
            ],
            [
              2,
              3
            ]
          ],
          "distanceSquared": "13/4"
        }
      ]
    },
    {
      "id": "gauss-reduction",
      "title": "Gauss reduction on the shared skew basis",
      "article": "/guides/gauss-reduction#example",
      "basis": [
        [
          2,
          0
        ],
        [
          6,
          3
        ]
      ],
      "coefficient": 3,
      "reducedBasis": [
        [
          2,
          0
        ],
        [
          0,
          3
        ]
      ]
    },
    {
      "id": "gram-schmidt-qr",
      "title": "Gram–Schmidt and QR in the plane",
      "article": "/guides/gram-schmidt-qr#read-qr",
      "basis": [
        [
          1,
          1
        ],
        [
          1,
          3
        ]
      ],
      "orthogonalColumns": [
        [
          1,
          1
        ],
        [
          -1,
          1
        ]
      ],
      "coefficient": 2,
      "lengthsSquared": [
        2,
        2
      ],
      "covolume": 2
    },
    {
      "id": "integer-normal-forms",
      "title": "Hermite and Smith forms of an index-six lattice",
      "article": "/guides/integer-normal-forms#column-hermite-form",
      "basis": [
        [
          2,
          0
        ],
        [
          5,
          3
        ]
      ],
      "hermiteBasis": [
        [
          2,
          0
        ],
        [
          1,
          3
        ]
      ],
      "smithDiagonal": [
        1,
        6
      ],
      "index": 6
    },
    {
      "id": "construction-a",
      "title": "Binary repetition code",
      "article": "/guides/construction-a#parity-example",
      "code": [
        [
          0,
          0
        ],
        [
          1,
          1
        ]
      ],
      "modulus": 2,
      "basis": [
        [
          1,
          1
        ],
        [
          0,
          2
        ]
      ],
      "index": 2,
      "shortestLengthSquared": 2
    },
    {
      "id": "gaussian-heuristic",
      "title": "Equal covolume and different shortest lengths",
      "article": "/guides/gaussian-heuristic#equal-covolume",
      "spacings": [
        [
          2,
          3
        ],
        [
          "1/10",
          60
        ]
      ],
      "covolume": 6,
      "shortestLengths": [
        2,
        "1/10"
      ]
    },
    {
      "id": "babai-counterexample",
      "title": "Three closest-vector methods on a skew basis",
      "article": "/crypto/cvp#babai-counterexample",
      "basis": [
        [
          2,
          0
        ],
        [
          1,
          2
        ]
      ],
      "target": [
        "11/10",
        "9/10"
      ],
      "coordinateRounding": [
        0,
        0
      ],
      "nearestPlane": [
        2,
        0
      ],
      "closest": [
        1,
        2
      ],
      "distanceSquared": [
        "101/50",
        "81/50",
        "61/50"
      ]
    },
    {
      "id": "integer-kernel",
      "title": "Integer kernel and affine coset",
      "article": "/embedding/linear-systems#integer-kernel-and-coset-examples",
      "equation": [
        2,
        3,
        5
      ],
      "kernelBasis": [
        [
          -3,
          2,
          0
        ],
        [
          -1,
          -1,
          1
        ]
      ],
      "target": 1,
      "representative": [
        -1,
        1,
        0
      ],
      "unsolvable": {
        "equation": [
          2,
          4
        ],
        "target": 3
      }
    },
    {
      "id": "ring-lwe",
      "title": "Negacyclic multiplication and toy Ring-LWE sample",
      "article": "/guides/ring-and-module-lwe#ring-lwe-arithmetic-trace",
      "modulus": 17,
      "public": [
        3,
        1,
        4,
        1
      ],
      "secret": [
        1,
        0,
        -1,
        1
      ],
      "error": [
        1,
        -1,
        0,
        1
      ],
      "ordinaryProduct": [
        3,
        1,
        1,
        3,
        -3,
        3,
        1
      ],
      "negacyclicProduct": [
        6,
        -2,
        0,
        3
      ],
      "sample": [
        7,
        14,
        0,
        4
      ],
      "moduleSample": [
        7,
        15,
        0,
        4
      ]
    },
    {
      "id": "lll-three-dimensional",
      "title": "LLL revisits a previously accepted pair",
      "article": "/algorithms/lll#three-dimensional-example",
      "basis": [
        [
          2,
          0,
          0
        ],
        [
          0,
          2,
          0
        ],
        [
          2,
          2,
          1
        ]
      ],
      "delta": "3/4",
      "checks": [
        [
          2,
          3,
          4
        ],
        [
          3,
          3,
          1
        ],
        [
          2,
          3,
          1
        ],
        [
          2,
          "3/4",
          4
        ],
        [
          3,
          3,
          4
        ]
      ],
      "reducedBasis": [
        [
          0,
          0,
          1
        ],
        [
          2,
          0,
          0
        ],
        [
          0,
          2,
          0
        ]
      ],
      "covolume": 4
    }
  ]
}
