Skip to content

Interface: LinearAtom

@kortexya/reasoninglayer


@kortexya/reasoninglayer / LinearAtom

Defined in: src/types/smt.ts:144

A linear arithmetic atom over the rationals.

Shares the id space with the equality atoms: clauses and assertions refer to it the same way. Its variables share names with constants.

constraint: string

Defined in: src/types/smt.ts:152

lhs REL rhs with REL one of <=, >=, =, over rational coefficients, e.g. x + 2*y <= 10 or 3/2*z - w >= 0. A negated atom is its strict complement.


id: number

Defined in: src/types/smt.ts:146

Client-chosen integer id, unique across equalities and linear atoms.