Ejemplo n.º 1
0
"""
Prelude for interactive proof session with prop logic from Kaye ch 6
Open session with: python -i prop_session.py
"""

# logic modules for prop logic from Kaye ch 6

import prop_common
import prop_classic

# Combine logics etc. in checker nd

import nd

nd.add_rule_names(prop_common._rule_names, prop_classic._rule_names)
nd.add_rules(prop_common._rules, prop_classic._rules)

# used by save function
nd.add_imports(prop_common._imports, prop_classic._imports)

# import all identifiers that might be used in interactive session

from common import *
from prop_common import *
from prop_classic import *

from nd import *  # prover commands

from pprint import pprint
Ejemplo n.º 2
0
"""
Prelude for interactive proof session with prop logic from Huth and Ryan ch. 1
Open session with: python -i prop_derived_session.py
"""

# logic modules for prop logic from Huth and Ryan ch. 1

import prop_common
import prop_derived

# Combine logics etc. in checker nd

import nd

nd.add_rule_names(prop_common._rule_names, prop_derived._rule_names)
nd.add_rules(prop_common._rules, prop_derived._rules)

# used by save function
nd.add_imports(prop_common._imports, prop_derived._imports)

# import all identifiers that might be used in interactive session

from common import *
from prop_common import *
from prop_derived import *

from nd import *     # prover commands

from pprint import pprint
Ejemplo n.º 3
0
"""

# Logic modules for fol logic from H&R ch 2

import prop_common
import prop_derived
import fol

# Combine logics etc. in checker nd

import nd

nd.add_rule_names(prop_common._rule_names, prop_derived._rule_names,
                  fol._rule_names)

nd.add_rules(prop_common._rules, prop_derived._rules, fol._rules)

# used by save function
nd.add_imports(prop_common._imports, prop_derived._imports, fol._imports)

# Import all the identifiers that might be used in the interactive session

from common import * 
from prop_common import *
from prop_derived import *
from fol import *

from nd import *     # prover commands

from pprint import pprint
Ejemplo n.º 4
0
"""
Prelude for interactive proof session with poset logic from Kaye ch 4
Open session with: python -i poset_session.py
"""

# logic module for poset logic from Kaye ch 4

import poset

# Put logics etc. in checker nd

import nd

nd.add_rule_names(poset._rule_names)

nd.add_rules(poset._rules)

# used by save function
nd.add_imports(poset._imports)

# Import all the identifiers that might be used in the interactive session

from common import *
from poset import *

from nd import *  # prover commands

from pprint import pprint
Ejemplo n.º 5
0
"""

# Logic modules for fol logic from Kaye ch 9

import prop_common
import prop_classic
import fol

# Combine logics etc. in checker nd

import nd

nd.add_rule_names(prop_common._rule_names, prop_classic._rule_names,
                  fol._rule_names)

nd.add_rules(prop_common._rules, prop_classic._rules, fol._rules)

# used by save function
nd.add_imports(prop_common._imports, prop_classic._imports, fol._imports)

# Import all the identifiers that might be used in the interactive session

from common import * 
from prop_common import *
from prop_classic import *
from fol import *

from nd import *  # prover commands

from pprint import pprint
Ejemplo n.º 6
0
"""
Prelude for interactive proof session with tree logic from Kaye ch 3
Open session with: python -i tree_session.py
"""

# Logic module for tree logic from Kaye ch 3

import tree

# Put logics etc. in checker nd

import nd

nd.add_rule_names(tree._rule_names)

nd.add_rules(tree._rules)

# used by save function
nd.add_imports(tree._imports)

# Import all the identifiers that might be used in the interactive session

from common import *
from tree import *

from nd import *  # prover commands

from pprint import pprint
"""
Prelude for interactive proof session with constructive propositional logic 
from Bornat.
Open session with: python -i prop_constructive_session.py
"""

# logic modules for constructive propositional logic from Bornat

import prop_common
import prop_constructive

# Combine logics etc. in checker nd

import nd

nd.add_rule_names(prop_common._rule_names, prop_constructive._rule_names)
nd.add_rules(prop_common._rules, prop_constructive._rules)

# used by save function
nd.add_imports(prop_common._imports, prop_constructive._imports)

# import all identifiers that might be used in interactive session

from common import *
from prop_common import *
from prop_constructive import *

from nd import *  # prover commands

from pprint import pprint
Ejemplo n.º 8
0
"""
Prelude for interactive proof session with poset logic from Kaye ch 4
Open session with: python -i poset_session.py
"""

# logic module for poset logic from Kaye ch 4

import poset

# Put logics etc. in checker nd

import nd

nd.add_rule_names(poset._rule_names)

nd.add_rules(poset._rules)

# used by save function
nd.add_imports(poset._imports)

# Import all the identifiers that might be used in the interactive session

from common import * 
from poset import *

from nd import *      # prover commands

from pprint import pprint
Ejemplo n.º 9
0
"""
Prelude for interactive proof session with constructive propositional logic 
from Bornat.
Open session with: python -i prop_constructive_session.py
"""

# logic modules for constructive propositional logic from Bornat

import prop_common
import prop_constructive

# Combine logics etc. in checker nd

import nd

nd.add_rule_names(prop_common._rule_names, prop_constructive._rule_names)
nd.add_rules(prop_common._rules, prop_constructive._rules)

# used by save function
nd.add_imports(prop_common._imports, prop_constructive._imports)

# import all identifiers that might be used in interactive session

from common import * 
from prop_common import *
from prop_constructive import *

from nd import *     # prover commands

from pprint import pprint