生成(p)as t(t)ense(l)inear(t)emporal(l)ogic监视器作为aiger电路的库。

py-aiger-ptltl的Python项目详细描述


PY AIGER过去LTL

生成(p)ast(t)ense(l)inear(t)emporal(l)ogic的库 作为aiger电路的监视器。建立在py-aiger项目的基础上。

Build StatuscodecovPyPI versionLicense: MIT

目录

安装

如果您只需要使用aiger_ptltl,您可以运行:

$ pip install py-aiger-ptltl

对于开发人员,请注意此项目使用 poetrypython包/依赖项 管理工具。请熟悉它,然后 运行:

$ poetry install

用法

使用aiger_ptltl的主要入口点是PTLTLExpr。 类,它是aiger.BoolExpr的简单扩展,以支持 时间运算符,历史上,过去(一次),(变化)昨天, 从那以后。

importaiger_ptltlasptltl# Atomic Propositionsx=ptltl.atom('x')y=ptltl.atom('y')z=ptltl.atom('z')# Propositional logicexpr1=~xexpr2=x&(y|z)expr3=(x&y)|~zexpr4=~(x&y&z)# Temporal Logicexpr5=x.historically()#  (H x) ≡ x has held for all previous cycles (inclusive).expr6=x.once()#  (P x) ≡ x once held in a past cycle (inclusive).expr7=x.vyest()#  (Z x) ≡ x held in the previous cycle (true at time = 0).expr8=x.since(y)#  [x S y] ≡ x has held since the cycle after y last held.# Compositionexpr9=expr7.since(expr8.vyest().vyest())

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java SimpleCursorAdapter删除值   java结束while循环条件   java检查设备是否连接到特定网络   java组织。冬眠MappingException找不到逻辑名称为annotation getter的列   为什么java邮件中会抛出此异常?   加载SDK时发生java Eclipse错误   返回奇怪输出的Java数组   JavaXStream和对象类序列化   将枚举列表传递给namedQuery后出现java非法转换异常。Hibernate中的setParameter()   java Android studio不允许我在字符串上使用开关?   有没有办法从Java程序访问存储在Chrome中的cookie   java在枚举中构造实例而不修改枚举类   java Blackberry JDE FieldChangeListener   java修复错误:未报告的异常InterruptedException   java Spring数据JPA:findAll(具有规范和可分页)在计数查询中失败