pyk.kore.syntax module¶
- final class AliasDecl(alias: 'Symbol', param_sorts: 'Iterable[Sort]', sort: 'Sort', left: 'App', right: 'Pattern', attrs: 'Iterable[App]' = ())[source]¶
Bases:
Sentence
- final class And(sort: 'Sort', ops: 'Iterable[Pattern]' = ())[source]¶
Bases:
MultiaryConn
- final class App(symbol: 'str | SymbolId', sorts: 'Iterable[Sort]' = (), args: 'Iterable[Pattern]' = ())[source]¶
Bases:
Pattern
- let(*, symbol: str | SymbolId | None = None, sorts: Iterable | None = None, args: Iterable | None = None) App [source]¶
- symbol: str¶
- class Assoc[source]¶
Bases:
MLSyntaxSugar
- property patterns: tuple[()]¶
- property sorts: tuple[()]¶
- final class Axiom(vars: 'Iterable[SortVar]', pattern: 'Pattern', attrs: 'Iterable[App]' = ())[source]¶
Bases:
AxiomLike
- final class Bottom(sort: 'Sort')[source]¶
Bases:
NullaryConn
- final class Ceil(op_sort: 'Sort', sort: 'Sort', pattern: 'Pattern')[source]¶
Bases:
RoundPred
- let(*, op_sort: Sort | None = None, sort: Sort | None = None, pattern: Pattern | None = None) Ceil [source]¶
- final class Claim(vars: 'Iterable[SortVar]', pattern: 'Pattern', attrs: 'Iterable[App]' = ())[source]¶
Bases:
AxiomLike
- final class DV(sort: 'Sort', value: 'String')[source]¶
-
- classmethod of(symbol: str, sorts: Iterable[Sort] = (), patterns: Iterable[Pattern] = ()) DV [source]¶
- property patterns: tuple[()]¶
- final class Definition(modules: 'Iterable[Module]' = (), attrs: 'Iterable[App]' = ())[source]¶
Bases:
Kore
,WithAttrs
,Iterable
[Module
]- let(*, modules: Iterable[Module] | None = None, attrs: Iterable[App] | None = None) Definition [source]¶
- let_attrs(attrs: Iterable[App]) Definition [source]¶
- final class EVar(name: 'str | Id', sort: 'Sort')[source]¶
Bases:
VarPattern
- name: str¶
- final class Equals(op_sort: 'Sort', sort: 'Sort', left: 'Pattern', right: 'Pattern')[source]¶
Bases:
BinaryPred
- let(*, op_sort: Sort | None = None, sort: Sort | None = None, left: Pattern | None = None, right: Pattern | None = None) Equals [source]¶
- final class Exists(sort: 'Sort', var: 'EVar', pattern: 'Pattern')[source]¶
Bases:
MLQuant
- let(*, sort: Sort | None = None, var: EVar | None = None, pattern: Pattern | None = None) Exists [source]¶
- final class Floor(op_sort: 'Sort', sort: 'Sort', pattern: 'Pattern')[source]¶
Bases:
RoundPred
- let(*, op_sort: Sort | None = None, sort: Sort | None = None, pattern: Pattern | None = None) Floor [source]¶
- final class Forall(sort: 'Sort', var: 'EVar', pattern: 'Pattern')[source]¶
Bases:
MLQuant
- let(*, sort: Sort | None = None, var: EVar | None = None, pattern: Pattern | None = None) Forall [source]¶
- final class Iff(sort: 'Sort', left: 'Pattern', right: 'Pattern')[source]¶
Bases:
BinaryConn
- let(*, sort: Sort | None = None, left: Pattern | None = None, right: Pattern | None = None) Iff [source]¶
- final class Implies(sort: 'Sort', left: 'Pattern', right: 'Pattern')[source]¶
Bases:
BinaryConn
- let(*, sort: Sort | None = None, left: Pattern | None = None, right: Pattern | None = None) Implies [source]¶
- final class Import(module_name: 'str | Id', attrs: 'Iterable[App]' = ())[source]¶
Bases:
Sentence
- module_name: str¶
- final class In(op_sort: 'Sort', sort: 'Sort', left: 'Pattern', right: 'Pattern')[source]¶
Bases:
BinaryPred
- let(*, op_sort: Sort | None = None, sort: Sort | None = None, left: Pattern | None = None, right: Pattern | None = None) In [source]¶
- final class LeftAssoc(app: 'App')[source]¶
Bases:
Assoc
- class MLPattern[source]¶
Bases:
Pattern
- property ctor_patterns: tuple[Pattern, ...]¶
Patterns used to construct the term with of. Except for Assoc, DV, MLFixpoint and MLQuant it coincides with patterns.
- final class Module(name: 'str | Id', sentences: 'Iterable[Sentence]' = (), attrs: 'Iterable[App]' = ())[source]¶
Bases:
Kore
,WithAttrs
,Iterable
[Sentence
]- let(*, name: str | Id | None = None, sentences: Iterable[Sentence] | None = None, attrs: Iterable[App] | None = None) Module [source]¶
- name: str¶
- property symbol_decls: tuple[SymbolDecl, ...]¶
- final class Mu(var: 'SVar', pattern: 'Pattern')[source]¶
Bases:
MLFixpoint
- final class Next(sort: 'Sort', pattern: 'Pattern')[source]¶
Bases:
MLRewrite
- final class Not(sort: 'Sort', pattern: 'Pattern')[source]¶
Bases:
UnaryConn
- final class Nu(var: 'SVar', pattern: 'Pattern')[source]¶
Bases:
MLFixpoint
- final class Or(sort: 'Sort', ops: 'Iterable[Pattern]' = ())[source]¶
Bases:
MultiaryConn
- final class Rewrites(sort: 'Sort', left: 'Pattern', right: 'Pattern')[source]¶
Bases:
MLRewrite
- let(*, sort: Sort | None = None, left: Pattern | None = None, right: Pattern | None = None) Rewrites [source]¶
- final class RightAssoc(app: 'App')[source]¶
Bases:
Assoc
- let(*, app: App | None = None) RightAssoc [source]¶
- let_patterns(patterns: Iterable[Pattern]) RightAssoc [source]¶
- classmethod of(symbol: str, sorts: Iterable[Sort] = (), patterns: Iterable[Pattern] = ()) RightAssoc [source]¶
- final class SVar(name: 'str | SetVarId', sort: 'Sort')[source]¶
Bases:
VarPattern
- name: str¶
- class Sort[source]¶
Bases:
Kore
- abstract property dict: dict[str, Any]¶
- property json: str¶
- name: str¶
- final class SortApp(name: 'str | Id', sorts: 'Iterable[Sort]' = ())[source]¶
Bases:
Sort
- property dict: dict[str, Any]¶
- name: str¶
- final class SortDecl(name: 'str | Id', vars: 'Iterable[SortVar]', attrs: 'Iterable[App]' = (), *, hooked: 'bool' = False)[source]¶
Bases:
Sentence
- hooked: bool¶
- let(*, name: str | Id | None = None, vars: Iterable[SortVar] | None = None, attrs: Iterable[App] | None = None, hooked: bool | None = None) SortDecl [source]¶
- name: str¶
- final class SortVar(name: 'str | Id')[source]¶
Bases:
Sort
- property dict: dict[str, Any]¶
- name: str¶
- final class Symbol(name: 'str | SymbolId', vars: 'Iterable[SortVar]' = ())[source]¶
Bases:
Kore
- name: str¶
- final class SymbolDecl(symbol: 'Symbol', param_sorts: 'Iterable[Sort]', sort: 'Sort', attrs: 'Iterable[App]' = (), *, hooked: 'bool' = False)[source]¶
Bases:
Sentence
- hooked: bool¶
- let(*, symbol: Symbol | None = None, param_sorts: Iterable[Sort] | None = None, sort: Sort | None = None, attrs: Iterable[App] | None = None, hooked: bool | None = None) SymbolDecl [source]¶
- let_attrs(attrs: Iterable[App]) SymbolDecl [source]¶
- final class Top(sort: 'Sort')[source]¶
Bases:
NullaryConn