Back to Archive
ENGINEERINGEngineering

Precision as a Declared Domain

Why bounded numeric domains matter for floating behavior, decimal handling, and reviewable arithmetic.

2026-02-05T00:00:00.000Z
Editorial cover for Precision as a Declared Domain

And How Digital Circuitality Tells the Truth

Open any programming language on any computer on Earth. Type 0.1 + 0.2. The answer is 0.30000000000000004.

This is not a bug. This is IEEE 754 — the standard that every computer has used for decimal math since 1985. Python, JavaScript, Rust, C++, Java — every language produces this result. And every programmer eventually learns to shrug and "just deal with it."

But what if you are building a flight computer? A medical device? A financial system that handles billions of dollars? "Just deal with it" is not an engineering answer. It is a prayer. And prayers do not belong in production systems.

The Problem Nobody Talks About

When Boeing designs a flight control system, they do not use Python floats. When NASA calculates trajectories, they do not "hope" the rounding works out. When banks process transactions, they do not use double. These organizations know something the rest of the industry ignores.

These systems use fixed-point arithmetic — integers multiplied by a scale factor. Instead of 3.14, they store 3140. Instead of $19.99, they store 1999 cents. No floating point. No rounding surprises. Exact. Every single time.

But here is the problem: this pattern is informal. It is a convention, not a language feature. The programmer has to remember the scale factor, handle the conversions manually, and test obsessively because the language offers zero guarantees. One tired engineer forgets to scale, and a $200 million Mars probe crashes into the surface.

What If the Language Enforced It?

This is exactly what PCD does with Closure Domains. And this is where things get exciting.

In PCD, every variable lives inside a declared domain — a numeric range that defines exactly what values are valid. When you need "decimal" math, you do not use floats. You declare your precision explicitly, and the compiler enforces it:

PC scientific_calculator { // The engineer DECLARES: "I need π with 6 decimal places" domain PI: Range [3141592, 3141593]; // All calculations use integers scaled by 10⁶ // No IEEE 754. No rounding surprises. // Error: ±0.0000005 — KNOWN and DECLARED }

Here is the key insight, and it is profound: π is an irrational number — it has infinite decimals. An infinite value can be rejected when covered by the model in a closed circuit. So the engineer declares which π they need. π with 3 decimals (3141) for a school calculator. π with 15 decimals (3141592653589793) for NASA. The precision IS the domain boundary. The engineer decides. The compiler enforces. No ambiguity. No surprises.

Three Levels of Math in Digital Circuitality

Approach Type Error Certification ───────────────────── ───────────── ───────────────── ───────────── Integer arithmetic U8, I64 Zero — exact Φc = 1 ✓ Scaled integers I64 + scale Declared Φc = 1 ✓ Floating point F64 IEEE 754 rounding Φc = CONTRACTThe first two give you full certification — Phi C = 1, mathematically proven. The third gives you convenience at the cost of predictability. You choose. But now, for the first time, you are making an informed choice instead of accepting a hidden compromise.

The Engineer's Mindset

This is the fundamental shift in how you think about software: PCD programmers are not coders. They are circuit engineers.

A coder writes velocity = distance / time and hopes the types work out. Hopes there is no division by zero. Hopes the precision is sufficient. Hopes.

An engineer writes:

domain velocity: Range [0, 900]; // my circuit accepts [0, 900] domain distance: Range [0, 20000]; // bounded input domain time: Range [1, 86400]; // never zero (prevents division by zero) domain scale: Range [1000, 1000]; // 3 decimal places of precision fn calculate_velocity(dist, t) { // dist and t are scaled ×1000 // Result is in [0, 900000] (velocity × scale) return (dist * scale) / t; }

The engineer KNOWS:

The input ranges (declared domains)

The precision (declared scale)

The error tolerance (±0.001 from the scale factor)

That division by zero is outside the declared model (time ≥ 1)

That the circuit closes (Phi C = 1)

The coder knows none of this. The coder discovers it at 3 AM when production crashes, when the customer calls screaming, when the post-mortem reveals a rounding error that compounded for six months.

Certified Math — Any Function, Any Precision

And this goes far beyond basic arithmetic. Logarithms, trigonometry, square roots — all implementable as certified polymers using Taylor series, CORDIC, or Newton's method with only core monomers (ADD, SUB, MUL, DIV). No floating point required:

// ln(x) via Taylor series — all integer arithmetic
// Scale: ×1000000 (6 decimal places)
// ln(2) = 693147 (represents 0.693147) PC certified_ln { domain input: Range [500000, 2000000];
// [0.5, 2.0] × 10⁶ domain output: Range [-693147, 693147];
// ln range × 10⁶
fn ln_scaled(x) {
// Taylor: ln(1+t) = t - t²/2 + t³/3 - t⁴/4 + ...
// Using only ADD, SUB, MUL, DIV (core monomers)
// Φc = 1 guaranteed } }

This is not theoretical. Every bank in the world already does transaction math this way. Every embedded system already does sensor math this way. The difference is that PCD makes it a first-class language feature with automatic compiler verification. What used to be a fragile convention enforced by discipline is now a mathematical guarantee enforced by the compiler.

The Circuit Is Closed. The Truth Is Known.

When your program compiles in PCD:

You know the precision of every calculation

You know the error bounds of every result

You know that no value exceeds its declared domain

You know that the behavior is identical on every machine

Your calculator is not lying to you anymore. For the first time in the history of computing, you can trust the math — because the math proves itself.

This is Part 4 of a series. Part 1: What if Software Worked Like DNA? | Part 2: AI Safety with Policy Circuits | Part 3: The BPU — Hardware That Says No

More reading

Continue the archive

Full archive
Technical BRIK64 diagram showing an AI coding prompt transformed into a reviewable blueprint, human review checkpoint, and target outputs.
AI safetyUncategorized

Reviewable AI Coding Pipelines: From Prompt to Blueprint

AI-generated code workflows become more reviewable when teams separate the prompt, generated code, structural blueprint, human review, and target compilation.

Open article
BRIK64 editorial image showing AI-generated software becoming inspectable, certified, and compiled across targets.
AI-generated softwareUncategorized

Making AI-Generated Software Reviewable

AI-generated software can move quickly, but it still needs structure, traceability, and review boundaries. BRIK64 helps teams preserve the blueprint behind generated code.

Open article
Editorial cover for AI Governance Workflows Need Reviewable Technical Evidence
AI SAFETYAI Safety

AI Governance Workflows Need Reviewable Technical Evidence

How bounded software evidence can help teams carry AI governance reviews into compliance workflows without implying full legal coverage.

Open article
Editorial cover for Compiler Evidence: Targets, Proof Files, and Test Scope
ENGINEERINGEngineering

Compiler Evidence: Targets, Proof Files, and Test Scope

A summary of the public numbers that can be stated responsibly and the limits of what those numbers prove.

Open article
Editorial cover for Safety-Critical Software Needs a Readable Assurance Path
PRODUCTProduct

Safety-Critical Software Needs a Readable Assurance Path

How bounded software evidence can support engineering review in high-consequence domains without replacing the broader safety program.

Open article
Editorial cover for Bounded Contract Logic Before Deployment
PRODUCTProduct

Bounded Contract Logic Before Deployment

Why smart contract workflows benefit from explicit state boundaries, value constraints, and reviewable rule sets before deployment.

Open article
Editorial cover for What the Proof Material Means for Users
VISIONFoundations

What the Proof Material Means for Users

A practical note on the proof files behind the compiler and what remains invisible to a normal authoring workflow.

Open article
Editorial cover for Why a New Format Instead of Another General-Purpose Language
VISIONFoundations

Why a New Format Instead of Another General-Purpose Language

Why BRIK64 introduces PCD as a bounded computational format rather than extending a conventional language with another annotation layer.

Open article
Editorial cover for Adversarial Testing Against the Compiler Chain
ENGINEERINGEngineering

Adversarial Testing Against the Compiler Chain

How the team tries to break the compiler and what those tests can and cannot prove about the formal system.

Open article
Editorial cover for Translation Validation Across Two Targets
RESEARCHResearch

Translation Validation Across Two Targets

A look at cross-target output comparison, what it can support, and what still depends on the bounded intermediate form.

Open article
Editorial cover for Why Tests Passing Is Not the Same as Closure
VERIFICATIONEngineering

Why Tests Passing Is Not the Same as Closure

A look at sampled testing versus bounded verification, with examples of logic that passed tests but still required stronger structural checks.

Open article
Editorial cover for One Blueprint Across Multiple Targets
PRODUCTProduct

One Blueprint Across Multiple Targets

How the transpilation chain uses PCD as a bounded intermediate form, what 10 source languages and 14 targets mean in practice, and where the equivalence claim stops.

Open article
Editorial cover for What AI Intuition Still Cannot Verify
AI SAFETYAI Safety

What AI Intuition Still Cannot Verify

Why intuition without an external proof path remains a risk, and where BRIK64 fits in that boundary.

Open article
Editorial cover for API and MCP Access Around the Registry
PLATFORMProduct

API and MCP Access Around the Registry

How discover-and-execute workflows expose registry and platform operations to humans and agents without enlarging the proof claim.

Open article
Editorial cover for Blueprints Before Refactors
REVOLUTIONProduct

Blueprints Before Refactors

How extracting bounded computation from an existing codebase can make rewrites and target changes easier to review.

Open article
Editorial cover for A Bounded JavaScript-to-Rust Workflow
TUTORIALGetting Started

A Bounded JavaScript-to-Rust Workflow

Lift the logic, review the bounded blueprint, then emit a target language while keeping the claim attached to the intermediate circuit.

Open article
Editorial cover for Lifting Existing Code into a Reviewable Blueprint
TOOLINGProduct

Lifting Existing Code into a Reviewable Blueprint

What the Lifter preserves, where liftability evidence exists in the repo, and how bounded blueprints help before migration.

Open article
Editorial cover for COBOL Migration Through Bounded Lift-and-Review
MIGRATIONProduct

COBOL Migration Through Bounded Lift-and-Review

Why legacy modernization benefits from lifting review-critical logic into a bounded blueprint before transpilation or replacement.

Open article
Editorial cover for Why AI-Generated Code Needs Blueprints and External Checks
PRODUCTAI Safety

Why AI-Generated Code Needs Blueprints and External Checks

Generated code and generated tests can fail together. This note explains why BRIK64 keeps verification outside the model loop.

Open article
Editorial cover for Which Parts of a Codebase Are Ready for Stronger Review?
PRODUCTProduct

Which Parts of a Codebase Are Ready for Stronger Review?

Use lifting and bounded analysis to identify review-critical functions before migration or certification work.

Open article
Editorial cover for Laszlo B. Kish and the Information-Theory Thread
RESEARCHResearch

Laszlo B. Kish and the Information-Theory Thread

A research profile on the ideas that influenced the information-theoretic framing behind Digital Circuitality.

Open article
Editorial cover for Informational Entropy Is Not Thermal Entropy
RESEARCHResearch

Informational Entropy Is Not Thermal Entropy

Why the distinction matters for the foundations story and how it sharpens the claim boundary around Digital Circuitality.

Open article
Editorial cover for From Preferences to Enforced Action Boundaries
AI SAFETYAI Safety

From Preferences to Enforced Action Boundaries

Why robotics and agent systems need explicit action gates, bounded state, and reviewable fallback paths.

Open article
Editorial cover for First PCD Circuit: A Minimal Walkthrough
TUTORIALGetting Started

First PCD Circuit: A Minimal Walkthrough

Install the CLI, write a small circuit, and inspect the bounded output path. A practical introduction to the format and the compile step.

Open article
Editorial cover for EVA Algebra: Sequence, Parallel, Conditional
DEEP DIVETheory

EVA Algebra: Sequence, Parallel, Conditional

How three composition operators carry sequencing, fan-out, and branching through the circuit model, and what that means for compiler readability and closure.

Open article
Editorial cover for Working with the SDKs Without Leaving the Bounded Model
SDKSGetting Started

Working with the SDKs Without Leaving the Bounded Model

How the Rust, JavaScript, and Python SDKs expose BRIK64 patterns while keeping the formal core distinct from host-language code.

Open article
Editorial cover for Why Software Verification Still Looks Different from Hardware
RESEARCHResearch

Why Software Verification Still Looks Different from Hardware

A comparison between sampled software testing and the compositional review posture hardware teams expect.

Open article
Editorial cover for 128 Operations and the Boundary Between Core and Bridges
ENGINEERINGEngineering

128 Operations and the Boundary Between Core and Bridges

A tour of the reviewed core, the contract-bounded extensions, and what that split means for technical scope.

Open article
Editorial cover for PCD for AI Agents: A Small Format with an External Proof Loop
AI AGENTSAI

PCD for AI Agents: A Small Format with an External Proof Loop

How a finite grammar helps agents author bounded logic while the compiler and policy checks stay outside the model.

Open article
Editorial cover for BPU: Policy Enforcement as a Hardware Roadmap
HARDWAREHardware

BPU: Policy Enforcement as a Hardware Roadmap

Why software-only guardrails share execution context with the model they constrain, and how the BPU roadmap moves policy enforcement toward FPGA and silicon.

Open article
Editorial cover for Policy Circuits for AI Safety Workflows
AI SAFETYAI Safety

Policy Circuits for AI Safety Workflows

How external policy circuits can gate generated code and agent actions without claiming to solve general alignment.

Open article
Editorial cover for What Digital Circuitality Tries to Formalize
VISIONFoundations

What Digital Circuitality Tries to Formalize

A bounded programming model built from reviewed operations, explicit composition, and closure checks.

Open article