Contract

data class Contract(val greens: List<CapsuleRef>, val reds: List<CapsuleRef>, val assertions: List<Assertion>)(source)

What a program needs from an environment, as a set of assertions that every known green satisfies. With reds it is a 1-minimal set that breaks every red; with greens alone it is every value the greens share, each Role.COINCIDENTAL.

Constructors

Link copied to clipboard
constructor(greens: List<CapsuleRef>, reds: List<CapsuleRef>, assertions: List<Assertion>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun render(): String

The same JSON as toJson with one assertion or capsule per line, for people to edit.

Link copied to clipboard
Link copied to clipboard