reason

command
v0.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 9, 2026 License: MIT Imports: 7 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Command reason derives the facts a set of triples implies but does not state. There is one way a fact gets derived — forward chaining to a fixpoint — so there is one place to look when asking why, and transitivity, symmetry and inverse are rules rather than special cases.

Every derived fact names the rule that produced it and the facts it rests on. An assertion nobody can explain is not evidence, and the point of deriving it was to answer for it later.

go run ./examples/reason

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL