> ## Documentation Index
> Fetch the complete documentation index at: https://docs.brik64.tech/llms.txt
> Use this file to discover all available pages before exploring further.

# Language

> BRIK64 PCD language guide.

PCD is the BRIK64 language for describing bounded logic as a circuit.

The public authoring profile is intentionally compact. It gives agents enough structure to produce inspectable logic without inventing a broad dialect.

The published PCD file baseline is documented in
[PCD File Standard](https://docs.brik64.tech/language/pcd-file-standard.md).
The published `.brik` workspace baseline is documented in
[.brik Workspace](https://docs.brik64.tech/language/brik-workspace.md).

## Core Shape

```pcd theme={null}
PC example {
    fn evaluate(input) {
        if (input <= 0) {
            return 0;
        }

        return 1;
    }
}
```

## Authoring Guidance

* Name the circuit with `PC`.
* Declare functions with explicit inputs.
* Use `if` branches with explicit returns.
* Use bounded loops when needed.
* Call monomers from the catalog.
* Return a defined value from every path.
* Explain external behavior before using extended monomers.

## Reading Path

1. [PCD Tutorial](https://docs.brik64.tech/language/pcd-tutorial.md)
2. [PCD Syntax](https://docs.brik64.tech/language/pcd-syntax.md)
3. [PCD File Standard](https://docs.brik64.tech/language/pcd-file-standard.md)
4. [.brik Workspace](https://docs.brik64.tech/language/brik-workspace.md)
5. [Examples](https://docs.brik64.tech/language/examples.md)
6. [Errors](https://docs.brik64.tech/language/errors.md)

## Agent Output

Every agent-authored PCD should be accompanied by:

```text theme={null}
Requirement:
Inputs:
Output:
Fail-closed behavior:
Monomers:
EVA structure:
Evidence status:
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.