Ejemplo n.º 1
0
 def make_fancy_label(proof_state):
     s = pleasantly_fmt(proof_state.bindings, proof_state.root_expr)
     rewrites = {
         'sigma': '∑',
         'product': '∏',
         "'": '′',
     }
     for src, dst in rewrites.iteritems():
         s = s.replace(src, dst)
     return s
Ejemplo n.º 2
0
 def make_fancy_label(proof_state):
     s = pleasantly_fmt(proof_state.bindings, proof_state.root_expr)
     rewrites = {
         'sigma' : '∑',
         'product' : '∏',
         "'" : '′',
     }
     for src, dst in rewrites.iteritems():
         s = s.replace(src, dst)
     return s
Ejemplo n.º 3
0
def display_proof_as_listing(proof_state):
    proof = extract_proof(proof_state)
    for i, proof_state in enumerate(proof):
        print 'step %d' % i
        print '\tcomment:'
        print '\t\t%s'% str(proof_state.comment)
        # print '\traw_bindings:'
        # print '\t\t%s' % str(proof_state.bindings)
        # print '\traw_expr:'
        # print '\t\t%s' % str(E.fmt(proof_state.root_expr))
        print '\texpr:'
        print '\t\t%s' % pleasantly_fmt(proof_state.bindings, proof_state.root_expr)
Ejemplo n.º 4
0
def display_proof_as_listing(proof_state):
    proof = extract_proof(proof_state)
    for i, proof_state in enumerate(proof):
        print 'step %d' % i
        print '\tcomment:'
        print '\t\t%s' % str(proof_state.comment)
        # print '\traw_bindings:'
        # print '\t\t%s' % str(proof_state.bindings)
        # print '\traw_expr:'
        # print '\t\t%s' % str(E.fmt(proof_state.root_expr))
        print '\texpr:'
        print '\t\t%s' % pleasantly_fmt(proof_state.bindings,
                                        proof_state.root_expr)