I think adding test cases would be great. If this were my code I would be putting the test cases in a plt
file and using :- load_test_files([]).
in the main file. See: Prolog Unit Tests
If the code is based on other code with a license, you need to add the license.
Also show examples of how to use it, e.g. Here Peter showed how to use the code and because he did I was able to quickly get it working and then I modified my version to my style of work.
EDIT
I tried your code just from this post. It is not working. At this point I would walk away from this. 
This is what happened.
Details
Welcome to SWI-Prolog (threaded, 64 bits, version 8.3.7)
% This is on Windows 10
?- working_directory(_,'C:/Users/Eric/Documents').
true.
?- ['Wang''s Algorithm'].
ERROR: c:/users/eric/documents/wang's algorithm.pl:51:22: Syntax error: Operator expected % formula_simpler(~ ⊥, ⊤).
ERROR: c:/users/eric/documents/wang's algorithm.pl:52:22: Syntax error: Operator expected
ERROR: c:/users/eric/documents/wang's algorithm.pl:53:25: Syntax error: Operator expected
ERROR: c:/users/eric/documents/wang's algorithm.pl:54:20: Syntax error: Operator expected
ERROR: c:/users/eric/documents/wang's algorithm.pl:55:24: Syntax error: Operator expected
ERROR: c:/users/eric/documents/wang's algorithm.pl:56:20: Syntax error: Operator expected
ERROR: c:/users/eric/documents/wang's algorithm.pl:57:24: Syntax error: Operator expected
ERROR: c:/users/eric/documents/wang's algorithm.pl:58:20: Syntax error: Operator expected
ERROR: c:/users/eric/documents/wang's algorithm.pl:59:25: Syntax error: Operator expected
ERROR: c:/users/eric/documents/wang's algorithm.pl:60:20: Syntax error: Operator expected
ERROR: c:/users/eric/documents/wang's algorithm.pl:61:25: Syntax error: Operator expected
ERROR: c:/users/eric/documents/wang's algorithm.pl:62:26: Syntax error: Operator expected
ERROR: c:/users/eric/documents/wang's algorithm.pl:63:20: Syntax error: Operator expected
ERROR: c:/users/eric/documents/wang's algorithm.pl:64:20: Syntax error: Operator expected
ERROR: c:/users/eric/documents/wang's algorithm.pl:65:26: Syntax error: Operator expected
ERROR: c:/users/eric/documents/wang's algorithm.pl:66:20: Syntax error: Operator expected
ERROR: c:/users/eric/documents/wang's algorithm.pl:67:26: Syntax error: Operator expected
ERROR: c:/users/eric/documents/wang's algorithm.pl:68:20: Syntax error: Operator expected
ERROR: c:/users/eric/documents/wang's algorithm.pl:69:29: Syntax error: Operator expected
ERROR: c:/users/eric/documents/wang's algorithm.pl:84:21: Syntax error: Operator expected
ERROR: c:/users/eric/documents/wang's algorithm.pl:103:32: Syntax error: Operator expected
ERROR: c:/users/eric/documents/wang's algorithm.pl:109:55: Syntax error: Operator expected
true.
% Line 51 in my code is `formula_simpler(~ ⊥, ⊤).`
% The line count difference is to do to some comments added at the start.
?- qw.
Reminder: your formula must *always* be into square brackets, e.g. [p => p].
| [p -> p].
% 13,843 inferences, 0.000 CPU in 0.007 seconds (0% CPU, Infinite Lips)
ERROR: Unknown procedure: quine/1
ERROR: In:
ERROR: [17] throw(error(existence_error(procedure,...),context(...,_31592)))
ERROR: [15] catch(user:(\+ ...),error(existence_error(procedure,...),context(...,_31648)),prolog_statistics:(...,...)) at c:/program files/swipl/boot/init.pl:481
ERROR: [14] setup_call_catcher_cleanup(system:true,prolog_statistics:catch(...,...,...),_31688,prolog_statistics:(_31720=true)) at c:/program files/swipl/boot/init.pl:562
ERROR: [12] prolog_statistics:time(user:(\+ ...)) at c:/program files/swipl/library/statistics.pl:293
ERROR: [11] getFormula((p->p)) at c:/users/eric/documents/projects/swi-prolog/discourse forum questions/swi-discourse_059/wang's algorithm.pl:124
ERROR: [9] toplevel_call(user:user:qw) at c:/program files/swipl/boot/toplevel.pl:1113
ERROR:
ERROR: Note: some frames are missing due to last-call optimization.
ERROR: Re-run your program in debug mode (:- debug.) to get more detail.
^ Exception: (14) setup_call_catcher_cleanup(system:true, prolog_statistics:catch(user:(\+quine((p->p))), _18978, (report(t(1599730614.377056, 0.140625, 271533), 10), throw(_18978))), _32014, prolog_statistics:(_19000=true)) ? creep
Call: (16) _19000=true ? abort
% Execution Aborted
?- help.
-----------------------------------------------------------
A Propositional Theorem Prover using both Quine's and Wang's Algorithms
by Joseph Vidal-Rosset from Ben Hudson's and Isabelle-Newbie's programs.
https://github.com/benhuds?tab=repositories
https://stackoverflow.com/questions/63505466/prolog-implementation-of-quines-algorithm-for-classical-propositional-logic-in
-----------------------------------------------------------
To test the validity of your formula with Wang's algorithm:
- First, write "qw." and press Enter.
- Second, with this usual syntax: ~ a | a & b | a v b | a => b| a <=> b|
put your formula into square brackets (e.g. [p -> p]), press Enter.
That's it. Have fun!
true.
Realized I entered the example formula wrong. In retrying still does not work.
?- qw.
Reminder: your formula must *always* be into square brackets, e.g. [p => p].
|: [p => p].
% 13,446 inferences, 0.000 CPU in 0.007 seconds (0% CPU, Infinite Lips)
ERROR: Unknown procedure: quine/1
ERROR: In:
ERROR: [17] throw(error(existence_error(procedure,...),context(...,_29726)))
ERROR: [15] catch(user:(\+ ...),error(existence_error(procedure,...),context(...,_29782)),prolog_statistics:(...,...)) at c:/program files/swipl/boot/init.pl:481
ERROR: [14] setup_call_catcher_cleanup(system:true,prolog_statistics:catch(...,...,...),_29822,prolog_statistics:(_29854=true)) at c:/program files/swipl/boot/init.pl:562
ERROR: [12] prolog_statistics:time(user:(\+ ...)) at c:/program files/swipl/library/statistics.pl:293
ERROR: [11] getFormula((p=>p)) at c:/users/eric/documents/projects/swi-prolog/discourse forum questions/swi-discourse_059/wang's algorithm.pl:124
ERROR: [9] toplevel_call(user:user:qw) at c:/program files/swipl/boot/toplevel.pl:1113
ERROR:
ERROR: Note: some frames are missing due to last-call optimization.
ERROR: Re-run your program in debug mode (:- debug.) to get more detail.
^ Exception: (14) setup_call_catcher_cleanup(system:true, prolog_statistics:catch(user:(\+quine((p=>p))), _17112, (report(t(1599731658.67883, 0.140625, 269351), 10), throw(_17112))), _30148, prolog_statistics:(_17134=true)) ? creep
Call: (16) _17134=true ?