parameters: (p)
docstring: top : top THEOREM schdefn optproof
docstring_summary: top : top THEOREM schdefn optproof
docstring_tokens: top : top THEOREM schdefn optproof
function: def p_top_theorem_defn(p):
      'top : top THEOREM schdefn optproof'
      p[0] = p[1]
      p[0].declare(TheoremDecl(Schema(p[3])))
      if p[4] is not None:
          p[0].declare(ProofDecl(p[4]))
function_tokens: def p_top_theorem_defn ( p ) : p [ 0 ] = p [ 1 ] p [ 0 ] . declare ( TheoremDecl ( Schema ( p [ 3 ] ) ) ) if p [ 4 ] is not None : p [ 0 ] . declare ( ProofDecl ( p [ 4 ] ) )