This repository has been archived by the owner on Oct 9, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add more tests for the equivalence of formulas and automata.
- Loading branch information
1 parent
7bdca03
commit 132ada0
Showing
11 changed files
with
344 additions
and
134 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
# -*- coding: utf-8 -*- | ||
|
||
ldlf_formulas = [ | ||
"tt", | ||
"ff", | ||
"!tt", | ||
"!ff", | ||
"tt & tt", | ||
"tt & ff", | ||
"ff & ff", | ||
"tt | ff", | ||
"tt | ff", | ||
"<true>tt", | ||
"<true>ff", | ||
"[true]tt", | ||
"[true]ff", | ||
"<A>tt", | ||
"<A>ff", | ||
"[A]tt", | ||
"[A]ff", | ||
"<A & B>tt", | ||
"<A & B>ff", | ||
"<A | C>tt", | ||
"<A | C>ff", | ||
"<A + B>tt", | ||
"<A + B>ff", | ||
"<A ; B>tt", | ||
"<A ; B>ff", | ||
"<A*>tt", | ||
"<A*>ff", | ||
"<<A>tt?>tt", | ||
"<<A>tt?>ff", | ||
"[A & B]tt", | ||
"[A & B]ff", | ||
"[A | C]tt", | ||
"[A | C]ff", | ||
"[A + B]tt", | ||
"[A + B]ff", | ||
"[A ; B]tt", | ||
"[A ; B]ff", | ||
"[A*]tt", | ||
"[A*]ff", | ||
"[<A>tt?]tt", | ||
"[<A>tt?]ff", | ||
] | ||
|
||
|
||
ltlf_formulas = [ | ||
"A", | ||
"!A", | ||
"A | B", | ||
"A & B", | ||
"X A", | ||
"WX A", | ||
"A U B", | ||
"A R B", | ||
"F A", | ||
"G A", | ||
"F(G(A))", | ||
"G(F(A))", | ||
"G(true)", | ||
"F(true)", | ||
"G(false)", | ||
"F(false)", | ||
"last", | ||
"end", | ||
"true", | ||
"false", | ||
"A -> B", | ||
"A <-> B", | ||
"G(A -> B)", | ||
"G(A -> F(B))", | ||
"G(A -> B -> C)", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# -*- coding: utf-8 -*- | ||
"""Hypothesis strategies.""" | ||
from typing import Sequence | ||
|
||
from hypothesis.strategies import lists, dictionaries, booleans, sampled_from | ||
|
||
|
||
def propositional_words(propositions: Sequence[str], min_size=0, max_size=None): | ||
return lists( | ||
dictionaries(sampled_from(propositions), booleans()), | ||
min_size=min_size, | ||
max_size=max_size, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters