# Ren

Ren is a lazy polynomial IR, scheduler, and runtime for RNS quotient-ring computation. User code works with `Poly` values or higher-level CKKS objects, while Ren builds a graph and only runs backend programs when a concrete result is needed.

Start with the CKKS pages for encrypted computation or the engine pages for Ren's execution model.

Ren's core polynomial object lives in a quotient ring such as \\(R\_q = \\mathbb{Z}\_q\[X\] / (X^n + 1)\\). In CKKS paths, encoded plaintext and ciphertext polynomials use several RNS primes, and Ren tracks whether each polynomial is in coefficient or NTT representation.

## Start here

- [Getting started](<https://ren-docs.pages.dev/getting-started/index.md>) creates a Ren project and runs the first CKKS, polynomial, and JIT examples.
- [Build a CKKS circuit](<https://ren-docs.pages.dev/tutorials/ckks-circuit/index.md>) walks through a reusable encrypted computation.
- [CKKS workflow](<https://ren-docs.pages.dev/ckks/index.md>) is the main entry point for encoding values, encrypting them, running encrypted computations, and decoding results.
- [First polynomial graph](<https://ren-docs.pages.dev/tutorials/poly-node/index.md>) covers creating a graph, inspecting it, and computing its coefficients.

## Main topics

- [CKKS concepts](<https://ren-docs.pages.dev/concepts/ckks-model/index.md>) explains levels, scales, message bounds, keys, and parameter presets.
- [Engine overview](<https://ren-docs.pages.dev/engine/overview/index.md>) maps the path from `Poly` and CKKS values to scheduled backend work.
- [`ren.jit` replay](<https://ren-docs.pages.dev/engine/jit/index.md>) covers capture, cache keys, replay, and failure modes.
- [Polynomial engine](<https://ren-docs.pages.dev/engine/polynomial/index.md>) explains rings, RNS storage, domains, nodes, constants, and views.
- [Execution pipeline](<https://ren-docs.pages.dev/engine/execution/index.md>) explains how lazy graphs become scheduled calls and backend work.
- [Scheduling](<https://ren-docs.pages.dev/engine/scheduling/index.md>) and [Runtime](<https://ren-docs.pages.dev/engine/runtime/index.md>) explain the deeper engine paths in the order they run.
- API reference: [CKKS](<https://ren-docs.pages.dev/reference/ckks/index.md>), [Polynomial](<https://ren-docs.pages.dev/reference/polynomial/index.md>), and [`ren.jit`](<https://ren-docs.pages.dev/reference/jit/index.md>).

To work on Ren itself, see [Contributing](<https://ren-docs.pages.dev/contributing/index.md>).
