Package com.articulate.sigma.tp
Class GenPropFormulas
java.lang.Object
com.articulate.sigma.tp.GenPropFormulas
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionconstructorGenPropFormulas(String atom, String operator, GenPropFormulas f1, GenPropFormulas f2) constructor -
Method Summary
Modifier and TypeMethodDescriptionstatic StringEncode formula for the automated tableau generator https://mathlogic.lv/tableau.html?f=%28%28q%E2%88%A8%C2%ACr%29%E2%88%A7%28r%E2%88%A8%C2%ACp%29%29%E2%88%A7%28p%E2%88%A8%C2%ACq%29static StringEncode formula for the automated truth table generator https://www.emathhelp.net/calculators/discrete-mathematics/truth-table-calculator/?f= requires invalid input: '<'-> and ->static Stringconvert to a stringvoidgenerateCNFandLinks(String form, String filename) voidgenerateFormulas(int targetCount, int numvars, int depth) getGeneratedFormula(int numvars, int depth, int index) Retrieve a specific entry given numvars, depth, and index.static StringgetRandomGeneratedFormula(int numvars, int depth) Retrieve a random entry given numvars and depth.voidinit()convert to a stringstatic voidstatic voidGenerate cached formulas for all combinations of numvars and depth between 1 and 7 (inclusive).static voidvoidstatic StringsimplifyCNF(String cnf) Simplify clauses from a multiset of literals to sets of literalsstatic voidstoreGeneratedFormulas(String html, int numvars, int depth) Store generated formulas HTML into a per-(numvars,depth) file.toString()convert to a string
-
Field Details
-
NOT
- See Also:
-
OR
- See Also:
-
AND
- See Also:
-
IMPLIES
- See Also:
-
IFF
- See Also:
-
PARENS
- See Also:
-
debug
public static boolean debug -
OPS
-
atom
-
operator
-
f1
-
f2
-
vamp
-
ecnf
-
tpp
-
vcnfcmds
-
ecnfcmds
-
contraResults
-
tautResults
-
satResults
-
CNF
-
truthTables
-
tableaux
-
-
Constructor Details
-
GenPropFormulas
public GenPropFormulas()constructor -
GenPropFormulas
constructor
-
-
Method Details
-
init
public void init()convert to a string -
toString
convert to a string -
simplifyCNF
Simplify clauses from a multiset of literals to sets of literals -
formatCNF
convert to a string -
storeGeneratedFormulas
Store generated formulas HTML into a per-(numvars,depth) file. Each entry is delimited with a marker for indexing later. -
getGeneratedFormula
Retrieve a specific entry given numvars, depth, and index. Index starts at 0 (first entry). -
getRandomGeneratedFormula
Retrieve a random entry given numvars and depth. Returns the HTML of a randomly selected formula entry. -
populateCachedFormulas
public static void populateCachedFormulas()Generate cached formulas for all combinations of numvars and depth between 1 and 7 (inclusive). This will sequentially create or append entries into the cache files with the same styling as the JSP. -
encodeTT
Encode formula for the automated truth table generator https://www.emathhelp.net/calculators/discrete-mathematics/truth-table-calculator/?f= requires invalid input: '<'-> and -> -
encodeTab
Encode formula for the automated tableau generator https://mathlogic.lv/tableau.html?f=%28%28q%E2%88%A8%C2%ACr%29%E2%88%A7%28r%E2%88%A8%C2%ACp%29%29%E2%88%A7%28p%E2%88%A8%C2%ACq%29 -
printResults
public void printResults() -
generateCNFandLinks
- Throws:
Exception
-
generateFormulas
- Throws:
Exception
-
printHelp
public static void printHelp() -
main
- Throws:
Exception
-