pyk.kore.rule module

final class AppRule(lhs: 'App', rhs: 'Pattern', req: 'Pattern | None', ens: 'Pattern | None', sort: 'Sort', priority: 'int')[source]

Bases: SimpliRule[App]

ens: Pattern | None
static from_axiom(axiom: Axiom) AppRule[source]
lhs: App
priority: int
req: Pattern | None
rhs: Pattern
sort: Sort
final class CeilRule(lhs: 'Ceil', rhs: 'Pattern', req: 'Pattern | None', ens: 'Pattern | None', sort: 'Sort', priority: 'int')[source]

Bases: SimpliRule[Ceil]

ens: Pattern | None
static from_axiom(axiom: Axiom) CeilRule[source]
lhs: Ceil
priority: int
req: Pattern | None
rhs: Pattern
sort: Sort
final class EqualsRule(lhs: 'Equals', rhs: 'Pattern', req: 'Pattern | None', ens: 'Pattern | None', sort: 'Sort', priority: 'int')[source]

Bases: SimpliRule[Equals]

ens: Pattern | None
static from_axiom(axiom: Axiom) EqualsRule[source]
lhs: Equals
priority: int
req: Pattern | None
rhs: Pattern
sort: Sort
final class FunctionRule(lhs: 'App', rhs: 'Pattern', req: 'Pattern | None', ens: 'Pattern | None', sort: 'Sort', arg_sorts: 'tuple[Sort, ...]', anti_left: 'Pattern | None', priority: 'int')[source]

Bases: Rule

anti_left: Pattern | None
arg_sorts: tuple[Sort, ...]
ens: Pattern | None
static from_axiom(axiom: Axiom) FunctionRule[source]
lhs: App
priority: int
req: Pattern | None
rhs: Pattern
sort: Sort
to_axiom() Axiom[source]
final class RewriteRule(lhs: 'App', rhs: 'App', req: 'Pattern | None', ens: 'Pattern | None', ctx: 'EVar | None', priority: 'int', uid: 'str', label: 'str | None')[source]

Bases: Rule

ctx: EVar | None
ens: Pattern | None
static from_axiom(axiom: Axiom) RewriteRule[source]
label: str | None
lhs: App
priority: int
req: Pattern | None
rhs: App
sort: Sort = SortApp(name='SortGeneratedTopCell', sorts=())
to_axiom() Axiom[source]
uid: str
class Rule[source]

Bases: ABC

ens: Pattern | None
static extract_all(defn: Definition) list[Rule][source]
static from_axiom(axiom: Axiom) Rule[source]
static is_rule(axiom: Axiom) bool[source]
lhs: Pattern
priority: int
req: Pattern | None
rhs: Pattern
sort: Sort
abstract to_axiom() Axiom[source]
class SimpliRule[source]

Bases: Rule, Generic[P], ABC

lhs: P
sort: Sort
to_axiom() Axiom[source]