# Reasoning — Ontology — Bane's Lab

> Every algorithm grammar is an instance of the derivation loop, which has ten stages, each on one reasoning axis, joined by transitions that sequence, gate or…

Canonical: https://banes-lab.com/ontology/reasoning

# The Ontology

The ontology is a queryable canon of software architecture. It holds every principle with its relations and its repair, every term with its definition, every algorithm with its contract, the reasoning that derives them, the layers they live in and how every tension between them is resolved, and every reference from one record to another is a link.

## Reasoning

## Sections

- [The derivation loop](#reasoning-loop-derivation-loop)
- [The substrate](#the-substrate)
- [The reasoning layers](#the-reasoning-layers)
- [The axes](#the-axes)
- [The nodes](#the-nodes)
- [The mathematics](#the-mathematics)
- [The dimensions](#the-dimensions)
- [The lenses](#the-lenses)
- [The modes](#the-modes)
- [The representations](#the-representations)
- [The pattern types](#the-pattern-types)
- [The models](#the-models)
- [The universal axes](#the-universal-axes)
- [The test surfaces](#the-test-surfaces)
- [The techniques](#the-techniques)
- [The invariants](#the-invariants)
- [Failure shapes](#the-failure-shapes)
- [The uncovered cells](#the-uncovered-cells)
- [The maps](#the-maps)
- [The groundings](#the-groundings)

## The derivation loop

Every algorithm grammar is an instance of the derivation loop, which has ten stages, each on one reasoning axis, joined by transitions that sequence, gate or refute back. Each stage is listed with the contracts that run at it and the records it grounds, and the traversal is taught in [the loop](/disciplined-methodology#the-loop) on the methodology page.

[The 21 records of The derivation loop](/records/reasoning/loop-derivation-loop)

## The substrate

Beneath the loop lies the generative substrate, meaning the cycle every node passes through, the recursion that turns emergence back into a new difference, and the math types each node yields.

[The 11 records of The substrate](/ontology/reasoning/the-substrate)

## The reasoning layers

The reasoning axes are arranged on these layers, each listed with the question it answers and the axes it holds.

[The 4 records of The reasoning layers](/ontology/reasoning/the-reasoning-layers)

## The axes

Each reasoning axis is a typed, terminating question on one layer, listed with the nodes a run may select on it and the contracts positioned on it.

[The 8 records of The axes](/ontology/reasoning/the-axes)

## The nodes

Every node on the axes is listed with the concept it resolves to, the question it asks, the math type it yields, the shape of its answer, its decision test and its role, and the surfaces and contracts that ground themselves in it.

[The 79 records of The nodes](/ontology/reasoning/the-nodes)

## The mathematics

The predicates are typed by these math types, each listed with its contracts and the domains of mathematics it draws on.

[The 23 records of The mathematics](/ontology/reasoning/the-mathematics)

## The dimensions

The ontological dimensions are what can be observed about a subject, and each is listed with the test surfaces that observe it.

[The 15 records of The dimensions](/ontology/reasoning/the-dimensions)

## The lenses

The analysis lenses are how a subject is seen. Each sits on one universal axis and is listed with the fields of mathematics it draws on, the surfaces and detectors it feeds and the test surfaces that see through it.

[The 19 records of The lenses](/ontology/reasoning/the-lenses)

## The modes

Each reasoning mode is listed with the practice it names and the techniques that work in it.

[The 16 records of The modes](/ontology/reasoning/the-modes)

## The representations

A result can be encoded in any of these representation layers.

[The 14 records of The representations](/ontology/reasoning/the-representations)

## The pattern types

Each pattern type is listed with the mathematical viewpoint it takes.

[The 14 records of The pattern types](/ontology/reasoning/the-pattern-types)

## The models

The models are sequences that restate the same cycle from different starting points.

[The 4 records of The models](/ontology/reasoning/the-models)

## The universal axes

The five universal axes are listed with the dimensions each one subsumes and the lenses that sit on it.

[The 5 records of The universal axes](/ontology/reasoning/the-universal-axes)

## The test surfaces

The test surfaces are what a system can be wrong about. Each is a dimension seen through a lens, listed with the invariant that must hold, the techniques that observe it, the predicate and what grounds it, the evidence it requires and the verdicts it can return. The architecture page reads the same grid in [what can drift, seen through how it drifts](/software-architecture/coverage#what-can-drift-seen-through-how-it-drifts).

[The 20 records of The test surfaces](/ontology/reasoning/the-test-surfaces)

## The techniques

Each technique a surface is observed by works in one reasoning mode and is listed with the surfaces that use it.

[The 22 records of The techniques](/ontology/reasoning/the-techniques)

## The invariants

Each invariant the test surfaces assert is listed with the surfaces that assert it.

[The 28 records of The invariants](/ontology/reasoning/the-invariants)

## Failure shapes

Each failure shape names a way a check goes wrong without failing, the invariant it breaks, its fix, the records it shows up in and the quality rules that refuse it.

[The 14 records of Failure shapes](/ontology/reasoning/the-failure-shapes)

## The uncovered cells

These cells of the dimension and lens grid are not yet covered by any surface. The list is derived from the grid and the surfaces, never stored.

[The 265 records of The uncovered cells](/ontology/reasoning/the-uncovered-cells)

## The maps

The reasoning collection carries these maps beside its records, namely the foundation sequence with the math types on each of its layers, the invariant groups, and the operations a pattern admits.

[The 8 records of The maps](/ontology/reasoning/the-maps)

## The groundings

Every grounding edge the reasoning collection declares is listed with the record it leaves from and the record or grammar it lands on, or with the label it carries where it names a rule rather than a record.

[The 4 records of The groundings](/ontology/reasoning/the-groundings)
