Arias, JoaquínMoreno-Rebato, MarRodríguez-García, José AntonioOssowski, Sascha2023-12-122023-12-122023-11-20Arias, J., Moreno-Rebato, M., Rodriguez-García, J.A., Ossowski, S. Automated legal reasoning with discretion to act using s(LAW). Artif Intell Law (2023).1572-83820924-8463https://hdl.handle.net/10115/27187This work has been supported by grant VAE: TED2021-131295B-C33 funded by MCIN/AEI/ 10.13039/501100011033 and by the "European Union NextGenerationEU/PRTR", by grant COSASS: PID2021-123673OB-C32 funded by MCIN/AEI/ 10.13039/501100011033 and by "ERDF A way of making Europe", and by grant 2023/00004/004 s(LAW) funded by URJC.Automated legal reasoning and its application in smart contracts and automated decisions are increasingly attracting interest. In this context, ethical and legal concerns make it necessary for automated reasoners to justify in human-understandable terms the advice given. Logic Programming, specially Answer Set Programming, has a rich semantics and has been used to very concisely express complex knowledge. However, modelling discretionality to act and other vague concepts such as ambiguity cannot be expressed in top-down execution models based on Prolog, and in bottom-up execution models based on ASP the justifications are incomplete and/or not scalable. We propose to use s(CASP), a top-down execution model for predicate ASP, to model vague concepts following a set of patterns. We have implemented a framework, called s(LAW), to model, reason, and justify the applicable legislation and validate it by translating (and benchmarking) a representative use case, the criteria for the admission of students in the "Comunidad de Madrid"engAtribución 4.0 Internacionalhttp://creativecommons.org/licenses/by/4.0/Answer set programmingGoal-directedAmbiguityAdministrative discretionAutomated Legal Reasoning with Discretion to Act using s(LAW)info:eu-repo/semantics/article10.1007/s10506-023-09376-5info:eu-repo/semantics/embargoedAccess