AI Grounding

AI you can check, not just trust.

Grounding is what keeps an AI honest: every answer anchored to something verifiable rather than a confident guess. In professional services, a confident wrong answer is a liability. So we ground our agents in three ways, in sources, in rules, and in the actions they are allowed to take.

The problem with ungrounded AI

A plausible answer is not a correct one.

General-purpose AI predicts the most likely next words. That makes it fluent, and it also makes it capable of stating something false with total confidence. For a law firm, that is not a quirk, it is a risk to clients, to compliance, and to reputation. Grounding closes that gap.

How we ground our agents

Three layers of grounding

01

Source grounding

Anchored to what was actually said and written

Every output traces back to real evidence: the conversation, the document, the matter record. The agent cites where a claim came from rather than inventing a plausible-sounding one. If the source is not there, the answer is not asserted.

retrieval + citations
02

Rule grounding

Legal rules encoded as machine-checked propositions

The rules that govern a task are written as formal statements in Lean 4, the same proof system used in mathematics. Compliance with a rule becomes something a machine can verify, not just something a model claims. This is what we build in LegalLean.

formal verification (Lean 4 / LegalLean) Learn more →
03

Action grounding

An agent can only do what it is proven safe to do

Before one step hands off to the next, three properties are type-checked: the data fits, the capability is permitted, and the budget holds. The agent is bounded by construction, so its behaviour is auditable rather than emergent.

typed handoffs (The Stack) Learn more →
Why we say "grounded", not "accurate"

Accuracy is a claim. Grounding is a mechanism.

Any vendor can claim their AI is accurate. Grounding is the part you can inspect: the citation you can follow, the rule you can read, the proof that type-checks. We keep the deep machinery, Lean 4 and the verified stack, one click away, so the people who want to see the proof can.

-- "Grounded" means this is checkable, not asserted. theorem answer_is_grounded (a : AgentOutput) : grounded a ↔ (∃ e, citesEvidence a e) -- source ∧ (∃ r, satisfiesRule a r) -- rule ∧ withinCapability a := by -- action exact grounding_contract a ✓ no grounding, no output

Bring a grounded agent into your firm.