6 CONCLUSIONS
The success of teaching of formal logic as a practical
tool has been mediocre. We pointed out issues that
may be problematic for students.
We suggested showing students examples where
intuition has led people astray, such as Wason’s selec-
tion task or the debate on Carroll’s paradox. It may
help them reject incorrect intuitive rules of reasoning
in favour of rules of formal logic.
We suggested teaching students the following:
Trust on the principle that “if . . . then . . . ” holds if
and only if it has no counter-examples. The principle
of explosion follows from this, so accept it, although
it may seem counter-intuitive at first. “If . . . then . . . ”
may mean material implication or a reasoning rule.
Use ∀ appropriately to capture the intended meaning.
Denote material implication with →, and the similar
reasoning rule with ⇒. Use the phrases “mathemati-
cal consequence” and so on instead of “logical conse-
quence” and so on, because the latter do not assume
that 0, +, ≤ and so on have their standard meaning.
We presented conventions for reasoning operators
and the treatment of undefined operations. They have
proven well-defined and rigorous enough to be used in
educational software written by us (Valmari, 2021).
REFERENCES
Association for Computing Machinery (ACM) and IEEE
Computer Society (2013). Computer Science Curric-
ula 2013: Curriculum Guidelines for Undergraduate
Degree Programs in Computer Science. ACM, New
York, NY, USA.
Bronkhorst, H., Roorda, G., Suhre, C., and Goedhart, M.
(2020). Logical reasoning in formal and everyday rea-
soning tasks. International Journal of Science and
Mathematics Education, 18:1673–1694.
Carroll, L. (1894). A logical paradox. Mind, 3(11):436–
438.
Chalin, P. (2005). Logical foundations of program as-
sertions: What do practitioners want? In Aich-
ernig, B. K. and Beckert, B., editors, Third IEEE In-
ternational Conference on Software Engineering and
Formal Methods (SEFM 2005), 7-9 September 2005,
Koblenz, Germany, pages 383–393. IEEE Computer
Society.
Egr
´
e, P. and Rott, H. (2021). The Logic of Conditionals. In
Zalta, E. N., editor, The Stanford Encyclopedia of Phi-
losophy. Metaphysics Research Lab, Stanford Univer-
sity, Winter 2021 edition.
Gries, D. and Schneider, F. B. (1995). Avoiding the un-
defined by underspecification. In Computer science
today, volume 1000 of Lecture Notes in Comput. Sci.,
pages 366–373. Springer, Berlin.
Hammack, R. (2018). Book Of Proof. Self-published, 3rd
edition. Approved by the American Institute of Math-
ematics’ Open Textbook Initiative.
Jones, E. E. C. (1905). Lewis Carroll’s logical paradox.
Mind, 14(56):576–578.
Kahneman, D. (2011). Thinking, fast and slow. Farrar,
Straus and Giroux, New York.
Lethbridge, T. (2000). What knowledge is important to a
software professional? IEEE Computer, 33(5):44–50.
Mathieu-Soucy, S. (2016). Should university students know
about formal logic: an example of nonroutine prob-
lem. In INDRUM 2016: First conference of the Inter-
national Network for Didactic Research in University
Mathematics. hal-01337943.
Moktefi, A. (2007). Lewis Carroll and the British
nineteenth-century logicians on the barber shop prob-
lem. In Cupillari, A., editor, Proceedings of The Cana-
dian Society for the History and Philosophy of Math-
ematics’ Annual Meeting, pages 189–199.
Niemel
¨
a, P., Valmari, A., and Ali-L
¨
oytty, S. (2018). Al-
gorithms and logic as programming primers. In
McLaren, B. M., Reilly, R., Zvacek, S., and Uho-
moibhi, J., editors, Computer Supported Education
- 10th International Conference, CSEDU 2018, Fun-
chal, Madeira, Portugal, March 15-17, 2018, Revised
Selected Papers, volume 1022 of Communications in
Computer and Information Science, pages 357–383.
Springer.
Ragni, M., Kola, I., and Johnson-Laird, P. (2017). The Wa-
son selection task: A meta-analysis. In Proceedings
of the 39th Annual Meeting of the Cognitive Science
Society, pages 980–985.
Reeves, S. and Clarke, M. (1990). Logic for Computer Sci-
ence. Addison-Wesley.
Stefanowicz, A. (2014). Proofs and Mathematical Reason-
ing. University of Birmingham, Mathematics Support
Centre.
Valmari, A. (2021). Automated checking of flexible
mathematical reasoning in the case of systems of
(in)equations and the absolute value operator. In
Csap
´
o, B. and Uhomoibhi, J., editors, Proceedings
of the 13th International Conference on Computer
Supported Education, CSEDU 2021, Online Stream-
ing, April 23-25, 2021, Volume 2, pages 324–331.
SCITEPRESS.
Valmari, A. and Hella, L. (2017). The logics taught and used
at high schools are not the same. In Karhum
¨
aki, J.,
Matiyasevich, Y., and Saarela, A., editors, Proc. of the
Fourth Russian Finnish Symposium on Discrete Math-
ematics, number 26 in TUCS Lecture Notes, pages
172–186. Turku Centre for Computer Science.
Valmari, A. and Hella, L. (2021). A completeness proof for
a regular predicate logic with undefined truth value.
arXiv:2112.04436.
van Benthem, J. (2008). Logic and reasoning: Do the facts
matter? Studia Logica, 88(1):67–84.
Wason, P. C. (1968). Reasoning about a rule. Quarterly
Journal of Experimental Psychology, 20(3):273–281.
CSEDU 2022 - 14th International Conference on Computer Supported Education
524