LOGIC AND CONSTRAINTS IN PROGRAMMING: A PATH TO PROFESSIONALISM AND SAFE AI
PELIN NICOLAE
, Department of Information Technology and Information Management Academy of Economic Studies of Moldova
ORCID: 0009-0007-2792-355X
Email: nicolae.ion.pelin@gmail.com
DOI: https://doi.org/10.24818/cike2025.64
Pages: 522–531
Abstract
Modern programming languages often provide developers with wide freedom of action under minimal logical constraints. While this accelerates development, it simultaneously increases the likelihood of errors, reduces reliability, and complicates system maintenance. This paper advances the thesis that programmer professionalism is shaped not by unrestricted freedom, but by structure and logical constraints that guide thinking and architectural decisions.
Particular attention is given to logic-declarative approaches and the use of logic-based programming languages (such as Prolog and constraint-oriented languages) for knowledge formalization. It is demonstrated that limiting freedom through formal rules does not suppress creativity but, on the contrary, serves as a condition for responsible reasoning and sustainable design.
The research methodology includes a literature review, analysis of programming paradigms, and conceptual modeling of logic-based systems. The results show that logic-declarative methods enable knowledge formalization in a form that ensures transparency and safety of artificial intelligence (AI) systems. This approach contributes not only to technical reliability but also to a higher level of trust in intelligent systems applied in socially sensitive domains.
The study highlights the importance of logic-declarative methods for education, where they foster a culture of precision and responsibility, as well as for law and AI ethics, where formalized, verifiable, and transparent representations of knowledge are required. Thus, logical constraints in programming should be seen not as a limitation but as a foundation of professional training and a key condition for the safe application of artificial intelligence technologies.
Keywords: : formalization, AI safety, Prolog, education, programmer professionalism
JEL Classification: C88, D83, I23
References
- Chomsky, N., 1965. Aspects of the theory of syntax. Cambridge, Massachusetts: MIT Press.
- European Space Agency, 1996. Report of the inquiry board on the Ariane 5 Flight 501 failure. Paris: ESA. Available at: https://www.esa.int/Newsroom/Press_Releases/Ariane_501_-_Presentation_of_Inquiry_Board_ report (Accessed: 30 September 2025).
- Kowalski, R.A., 1979. Algorithm = logic + control. Communications of the ACM, 22(7), pp.424-436.
- Kowalski, R. and Sergot, M., 1990. The use of logical models in legal problem solving. Ratio Juris, 3(2), pp.201-218.
- Leveson &. Turner. An Investigation of the Therac-25 Accidents. IEEE Computer Society. July, 1993,Vol. 26, No. 7, pp. 18–41.
- Mars Climate Orbiter Mishap Investigation Board. (1999). Mars Climate Orbiter Mishap Investigation Board Phase I Report: November 10, 1999. Washington, D.C.: NASA.
- Pelin, N., 2023. Искусственный интеллект, основанный на логике и право. В: Omul, criminologia, știința. 2-е изд. Кишинэу: Institutul de științe penale și criminologie aplicată, Т. 1, с. 562–568. Доступно по адресу: https://ibn.idsi.md/sites/default/files/imag_file/562-568.pdf (Дата обращения: 30.09.2025).
