跳到正文
arXiv cs.AI· Elnaserledinellah Mahmoud Abdelwahab·· 1 小时前AI 评分30

Al-Ghasali:基于有限状态自动机与大语言模型模拟伊斯兰教法裁决的计算框架

Al-Ghasali: A Computational Framework for Simulating Islamic Jurisprudential Rulings via Finite State Automata and Large Language Models

AI 导读

arXiv 论文提出 Al-Ghasali 计算框架,证明封闭教法章节的语义可完全坍缩为确定性有限状态自动机(FSA),并在离线编译后实现 O(1) 常数时间裁决提取。

正文 · 原文

View PDF HTML (experimental)

Abstract:This paper presents Al Ghasali, a computational framework designed to formalize and simulate Islamic jurisprudential (Fiqh) rulings. Building upon recent set theoretic formalizations of al sabr wa al Taqsim that extract minimal operational rules as simple Horn clause logical programs, this work proves that the semantics of closed Fiqh chapters collapse completely to deterministic Finite State Automata (FSA). We establish a formal computational hierarchy, demonstrating that restricting formalization to finite propositional Horn theories guarantees decidability and constant time (O(1)) verdict extraction after offline compilation. The framework formally proves that hierarchical compositions of sub-chapter FSAs preserve this O(1) complexity, and that temporal juristic requirements, such as Tartib (order), are deterministically flattened into static ontological states, preserving the memoryless property of the automaton. To generate human-readable juristic summaries, Al Ghasali incorporates Large Language Models (LLMs) via an architecture where the deterministic FSA strictly controls the probabilistic LLM. Crucially, the paper formulates sufficient design safety conditions for this FSA LLM integration, ensuring strict adherence to the epistemological boundaries of Usul al Fiqh. To neutralize the risk of LLM hallucination, the system employs a Grammar Guided Constrained Decoding mechanism. We formally define the mapping function that dynamically constructs unambiguous right linear grammars from the FSA execution history. The paper mathematically proves that this architecture, augmented by a Bounded Neutral Lexicon and Valence Locking, guarantees the absolute absence of Decisional Hallucination, Juristic Factual Hallucination, and Semantic Inversion reducing the LLM to a pure linguistic transformer of deterministic juristic facts
Comments: 18 pages, 1 figure
Subjects: Artificial Intelligence (cs.AI); Formal Languages and Automata Theory (cs.FL)
Cite as: arXiv:2611.17235 [cs.AI]
  (or arXiv:2611.17235v1 [cs.AI] for this version)
  https://doi.org/10.48550/arXiv.2611.17235

arXiv-issued DOI via DataCite (pending registration)

Submission history

From: Elnaser Abdelwahab [view email]
[v1] Thu, 12 Nov 2026 18:23:56 UTC (18 KB)

来源:arXiv cs.AI · arxiv.org