#NEWLINE# def clausify( expression ) : #NEWLINE# #INDENT# '\n    Skolemize, clausify, and standardize the variables apart.\n    ' #NEWLINE# clause_list = [ ] #NEWLINE# for clause in _clausify ( skolemize ( expression ) ) : #NEWLINE# #INDENT# for free in clause . free ( ) : #NEWLINE# #INDENT# if is_indvar ( free . name ) : #NEWLINE# #INDENT# newvar = VariableExpression ( unique_variable ( ) ) #NEWLINE# clause = clause . replace ( free , newvar ) #NEWLINE# #UNINDENT# #UNINDENT# clause_list . append ( clause ) #NEWLINE# #UNINDENT# return clause_list