Manuscript Offprint
arXiv:2610.33629A Model-Theoretic Formalization of AlKhwaremis ilm alfaraid
A Model-Theoretic Formalization of Al-Khwārizmī's 'ilm al-farā'id
Elnaserledinellah Mahmoud Abdelwahab
elnaser@computational-fiqh.org
Abstract
This paper presents a model-theoretic and computational formalization of Al-Khwārizmī's treatment of inheritance ('ilm al-farā'id), within the framework of Computational Fiqh. We first show that every inheritance configuration in a specified class is representable as a finite system of rational linear equalities and inequalities, and that such systems are decided exactly by Fourier–Motzkin elimination over Q. We then define the fixed-dimensional inheritance structure with distinguished claimant coordinates, and prove that every admissible rational linear-coordinate realization is isomorphic to ; this establishes the algebraic representation as canonical within that class. The complete first-order theory of is shown to be complete by construction—a design property of the formalization, not a novel theorem—and is explicitly distinguished from the decidability of the inheritance-relevant fragment. The methodological principle is then related to a broader formalization of closed Fiqh domains via exhaustive case generation, Horn-clause axiomatization, and terminating deduction, yielding domain-relative computational completeness.
The purpose of this paper is to give that principle a modern formal interpretation. A specified inheritance problem is represented by a finite system of linear equations and inequalities over the rational numbers. For a fixed inheritance configuration, the resulting mathematical structure can be represented by a finite-dimensional rational coordinate space. This permits a model-theoretic characterization of the intended structure together with a separate algorithmic analysis of the corresponding constraint systems.
For a long period, Western “Islamic Studies” provided the principal academic setting in which questions concerning Fiqh, its branches, and its related sciences were investigated within modern academia. The methodological traditions that developed within this field, however, were not designed primarily for the analysis of formally specified mathematical, logical, or computational systems. This distinction becomes consequential when some branches of Fiqh, such as the jurisprudence of inheritance, are understood to contain precisely such systems: they involve defined quantities, algebraic relations, dependencies, exhaustive cases, and procedures for deriving determinate results.
The resulting epistemological clash is a central concern of this paper. A number of modern discussions within Islamic Studies have advanced claims that particular Fiqh rules or systems are legally, mathematically, or logically inconsistent. Such claims cannot be established merely by producing a contradiction under an informal interpretation of selected texts or rules. In particular, a fundamental distinction must be maintained between linguistic ambiguity and formal coherence. The existence of several linguistically possible interpretations does not by itself imply that the underlying formal system is inconsistent. If a textual formulation admits several candidate interpretations
then a contradiction obtained under one interpretation establishes, at most, the inconsistency of the corresponding formalization; it does not establish the inconsistency of the underlying jurisprudential system unless that interpretation has first been justified as the relevant one. Conversely, the existence of an interpretation under which the resulting formal system is coherent is mathematically significant even when other interpretations are inconsistent. This distinction is essential whenever linguistic material is used as the basis for claims about mathematical or logical properties.
Section 2 examines this methodological problem directly. It considers claims concerning legal, mathematical, and logical inconsistency and the conceptual assumptions underlying them, including the failure to distinguish linguistic ambiguity from formal inconsistency. The section argues that conclusions about the consistency or inconsistency of a jurisprudential computational system require an explicit formal reconstruction and analysis of that system. The present paper then provides such a reconstruction and uses the methods of Computational Fiqh to determine its mathematical and logical properties explicitly.
Computational Fiqh emerges in this context not merely as the application of computational tools to an already established body of jurisprudential scholarship, but as a distinct methodological framework for identifying, formalizing, analyzing, verifying, and implementing computational structures occurring within delimited Fiqh domains. Its epistemological significance is therefore also critical: where a jurisprudential domain gives rise to a formally specifiable system, claims about that system should be settled by rigorous formal analysis rather than by methodologies incapable of representing the system adequately. The present study uses the inheritance system as a concrete case in which this distinction can be demonstrated. This contrast is visualized in Figure 1.
Three formal properties are considered. First, the admissible fixed-dimensional inheritance structure is canonical within its class up to isomorphism. Second, its complete first-order theory is complete by construction—a design property of the formalization rather than a novel theorem. Third, the finite systems of rational linear constraints arising from individual inheritance configurations are algorithmically decidable.
These properties are distinct. Completeness of concerns the first-order theory of the intended mathematical structure; algorithmic decidability concerns the existential fragment generated by finite constraint systems. Neither notion should be conflated with the historical question of whether the original computational procedures were expressed in the modern formal language used here.
The final part relates this construction to a broader formalization of closed Fiqh domains based on exhaustive case generation, Horn-clause axiomatization, and terminating deduction. This motivates the notion of domain-relative computational completeness: the computational completeness of a formal system relative to a specified and delimited domain, rather than an unrestricted claim about jurisprudential reasoning as a whole.
1.1 Contributions and non-claims
Contributions.
-
A representation lemma ( ): every inheritance configuration in the specified class is a finite rational linear constraint system.
-
A canonicality theorem ( ): every admissible rational linear-coordinate model is isomorphic to .

Figure 1: Epistemological distinction between Western "Islamic Studies" and Computational Fiqh in the treatment of the Inheritance System. Linguistic ambiguity does not by itself entail formal inconsistency as claimed in "Islamic Studies". Computational Fiqh makes the formal system explicit before mathematical and logical properties are inferred.
-
A decision procedure for the inheritance-relevant fragment ( ): exact, terminating, rational.
-
A methodological interpretation for Computational Fiqh ( ).
Non-claims
-
Full decidability of the first-order theory is not established. The language is uncountable and the paper decides only the existential fragment over finite quantifier-free linear constraints.
-
Methodological exclusivity of linear algebra is not claimed. The claim is representational canonicality. As noted in §2.3, ‘awl resolves and is algebra in disguise.
-
No historical claim is made that Al-Khwārizmī used Fourier–Motzkin; the procedure is a modern formal reconstruction (§3.2, final paragraph).
-
Domain-relative computational completeness is conditional on the results of the companion framework cited in §8.
2 The Quranic origin of Islamic Inheritance Systems
Contrary to other known inheritance systems, the fundamental normative rules from which the formal axioms of the Islamic inheritance system can be extracted are directly revealed in the
Quran across three specific verses. All subsequent legal and mathematical developments, including the algebraic framework formalized by Al-Khwārizmī, were fundamentally interpretations and computational executions of these core scriptural axioms [1, 2].
While Western “Islamic studies” disciplines, which were historically conceived under orientalist paradigms for colonial purposes [3, 4] are subjected since then to substantial revisions in some important areas of investigation, focusing research more on objective evidence than speculation, they still routinely refuse to accept the sudden, unprecedented emergence of the Quranic revelation, attributing its origins instead to a variety of unsupported factors. This stance has become an unfalsifiable doctrine-like hypothesis questioning many results reported to be scientific.
This historical bias might have remained unnoticed by the present work belonging to the emerging new field of “Computational Islamic Jurisprudence (Fiqh)”, which is neither theological nor historical, but normative and epistemologically similar to empirical sciences, were it not for the fact that some historicist speculations have overreached their qualitative boundaries to make flawed assertions regarding both the mathematical correctness [5, 6] and the legal coherence [7] of the underlying Quranic text. Such an analytical overreach is reminiscent of the 1970s revisionist crisis, where the field’s speculative theories regarding an alleged late Abbasid origin of the Quran collapsed the moment they were confronted with the hard, empirical boundary conditions of radiocarbon dating [10, 11].
Consequently, this section is epistemologically necessary from the perspective of Computational Fiqh, whose core mandate is to analyze, formalize and implement Fiqh chapters using rigorous mathematical-logical methods, to address the structural limitations and explanatory overreach found in these recent academic treatments of the Quranic inheritance system.
While the "Islamic Studies" field often claims alignment with the rigor of "critical rationalism", the reliance on unobservable internal motivations, retrospective narratives, and unfalsifiable interpretive frameworks prevents the majority of its findings from qualifying as genuine scientific findings under Karl Popper's own demarcation criteria [8, 9]. Despite this lack of empirical falsifiability, some practitioners frequently overextend their qualitative tools to evaluate complex, internal mathematical structures that lie entirely outside their discipline's scope, as well as their linguistic and mathematical capacities. This boundary failure is vividly illustrated when academics analyze the three foundational inheritance verses of Sura Al-Nisa.
For instance, when confronting the Kalalah scenarios in verses 12 and 176, David Powers assumes that the term “siblings” (ikhwah) in both verses refers to the exact same biological relation. He premises this on the claim that the syntax provides no explicit differentiation between the two cases, leading him to declare the underlying text legally incoherent and inherently contradictory and that later scholars have “fixed” this incoherence. This assertion, however, collapses under legal, linguistic, and formal logical scrutiny.
First, the claim that the inheritance mechanism, when completely stripped from its context, is “legally incoherent” refers to an unspecified notion of “legality”, when it ignores both the foundational principles of the Islamic Legal System and the nature of Quranic revelation itself. The Quran was revealed in an event-based, incremental manner (nuzul manjam), whereby each verse has what classical Muslim scholars term Asbab al-Nuzul (asibab thezoul) reasons of revelation)—a context largely determined by the actions and reactions of the Prophet (pbuh) and his companions to real-world events. Verse 176 explicitly opens with “yastaftunaka” (“they ask you”), proving there was a specific question-context to which the Quran was responding. Furthermore, “legality” in Islam is not an abstract or primitive notion relying solely on some alleged “literal meaning” of isolated words, phrases or sentences. The Islamic Legal System explicitly encompasses: (a) the Prophet’s statements (pbuh) and actions related to the verses, (b) valid interpretations derived from Arabic linguistic rules, (c) the consensus and opinions of the Prophet’s companions and subsequent scholars, and (d) ongoing rational deduction. In the studied case: The overwhelming majority of Muslim scholar opinions are in favor of differ-entiating between the apparently similar cases of Kalala. By ignoring this established Islamic legal fact, without giving a rational argument backing his opinion up, and doing this in favor of a completely invented scenario—claiming the companions recognized a textual mistake and conspired to “fix” it—Powers constructs a textbook straw-man argument.
Second, Powers’ linguistic claims are factually false. The pretense that there are no syntactic or linguistic differences between the two verses is easily refuted by the text itself. As noted, verse 176 begins with “yastaftunaka”, indicating a concrete question to which the Quran is responding. Furthermore, verse 176 uses the definite form (Al-Kalalah), whereas verse 12 uses the indefinite form (Kalalah). In Arabic grammar, this shift from definite to indefinite opens up the distinct possibility that verse 176 may be handling a general or default case, while verse 12 is handling a more specific, localized instance. Additionally, Powers ignores a basic linguistic fact: in Arabic, as in any human language, the word “sibling” (akh/ikhwah) possesses not one, but three possible meanings (full siblings, uterine siblings, or consanguine siblings). There is neither a linguistic nor a logical justification for the assumption that verses 12 and 176 use exactly the same meaning, especially considering that verse 176 was revealed before verse 12 and under entirely different circumstances. Strictly speaking, the three meanings of “siblings” yield 9 possible interpretations across both verses combined—not just the single, unified interpretation Powers forces onto the text.
Yet, and most relevant to this work, even if one, for the sake of argument, were to accept Powers’ syntactic premise, his conclusion rests on a fundamental misunderstanding of formal axiomatic systems and of the relationship between an axiomatic system and its semantic interpretations. Ambiguity in the descriptive language from which an informal axiomatic system is extracted is not, by itself, a logical defect. On the contrary, semantic flexibility is a natural feature of interpretation: the same collection of descriptive statements may admit multiple semantic models, and the task of formalization is precisely to identify the structures satisfying the intended constraints.
This observation is particularly important in the present case. The natural-language expression “siblings” is not intrinsically restricted to a single biological relation. In classical Arabic, as well as many other natural languages, the corresponding terms can refer to full siblings, uterine siblings, or consanguine siblings. Consequently, there are at least three linguistically available interpretations of “siblings” in each of the two Kalalah passages. Since nothing in the wording of verses 12 and 176 by itself forces exactly one of these three meanings in each occurrence, the combined text admits nine possible pairings of these interpretations. Powers’ argument effectively selects one of these possible semantic assignments and then treats the contradiction arising under that assignment as a contradiction in the underlying system itself. From the perspective of model theory, this does not follow. What Powers’ analysis actually identifies, at most, is an inconsistency arising under a particular semantic interpretation of an ambiguous natural-language description. It does not establish that the underlying formalized system is inconsistent.
The distinction is fundamental: a contradiction in one interpretation is not equivalent to unsatisfiability of the axioms. To establish inconsistency of a formal system, one must show that no semantic model satisfies its axioms. If another admissible interpretation yields a coherent model, the contradiction belongs to the rejected interpretation rather than necessarily to the axioms themselves.
Indeed, ambiguity need not be an imperfection that a formal system must eliminate. It may reside entirely in the descriptive linguistic layer while the underlying formal structure remains perfectly coherent once an interpretation is selected. In the present case, the three ordinary linguistic meanings of “siblings”, combined across the two verses, already show that Powers’ choice of a single unified biological meaning is an additional semantic assumption rather than something forced by the linguistic data. The resulting contradiction therefore cannot be presented as a contradiction of the formal inheritance system without first establishing that this particular interpretation is uniquely compelled by the linguistic evidence.
This distinction is not foreign to the epistemological framework of the Quran itself. The Quran explicitly recognizes that its descriptive language does not consist exclusively of expressions having one immediately determinate interpretation. In Surah Al-Imran (3:7), it states:
هو الذي أنzel علك الكاب منه أيات عكقت هن am الكاب وأخر متشابات فما الدين في قوليم زغ فيتعون ما
تشابه منه أبنغاء الفتة وainغاء تاويله ولا الله والارخون في العلم يقولون amما به كل من عند رينا وما
يDKر لا أولو الألب
A translation is:
“It is He who has sent down to you, [O Muhammad], the Book; in it are verses [that are] precise – they are the foundation of the Book – and others unspecific. As for those in whose hearts is deviation [from truth], they will follow that of it which is unspecific, seeking discord and seeking an interpretation [suitable to them]. And no one knows its [true] interpretation except Allah. But those firm in knowledge say, ‘We believe in it. All [of it] is from our Lord.’ And no one will be reminded except those of understanding.”
The epistemological significance of this statement extends beyond any particular legal or historical question. The verse explicitly distinguishes between أيات عكات (ayat muhkamat), which are described as أَم (the foundation of the Book), and أيات متشابات (ayat mutashabihat), whose interpretation is not presented as being equally immediate or determinate. The Quran therefore does not establish the epistemological principle that every textual statement must possess a single unambiguous surface interpretation. Rather, it explicitly incorporates different degrees of semantic determinacy into its own account of knowledge.
More importantly, this verse does not treat the existence of such passages as evidence that the Book is defective. Instead, it identifies a distinction between the character of the textual statement and the epistemic conduct of the interpreter. Those described as (al-rasikhuna fi al-'ilm, those firmly grounded in knowledge) are explicitly distinguished from those who pursue the ambiguous portions seeking discord or an interpretation of their own choosing. The Quranic epistemological lesson is therefore that ambiguity in a descriptive layer calls for disciplined interpretation rather than automatic classification as contradiction.
This principle is directly relevant to the Kalalah problem. The fact that the expression “siblings” admits multiple ordinary linguistic meanings does not constitute evidence that the inheritance axioms are contradictory. It establishes that the descriptive language admits multiple semantic assignments. A rigorous analysis must therefore distinguish the ambiguity of the linguistic representation from the consistency of the formal structure represented by it. The Quranic distinction between muhkamat and mutashabihat provides an internal epistemological basis for making precisely this distinction. The Kalalah passages provide a concrete example of this broader principle. The natural-language description permits multiple semantic models, while the Islamic jurisprudential tradition supplies interpretations under which the resulting inheritance rules form coherent systems.
Consequently, the mere existence of an interpretation under which the shares appear contradictory does not establish that the Quranic inheritance axioms are contradictory. It establishes, at most, that one selected interpretation fails to produce a coherent model.
This distinction also exposes the epistemological boundary in Powers’ argument. By treating an ambiguity of descriptive natural language as though it were already a contradiction in the formal system described by that language, the analysis moves from a linguistic observation to a mathematical conclusion without establishing the necessary semantic bridge. Model-theoretically, the correct procedure is the reverse: identify the possible interpretations, formalize the corresponding semantic structures, and determine whether the axioms are satisfiable under an admissible interpretation. Under this criterion, ambiguity is a feature of the descriptive layer, not evidence by itself of inconsistency in the formal layer.
The point is therefore not that ambiguity automatically validates every possible interpretation. Rather, it is that ambiguity must first be recognized as ambiguity. A particular interpretation may subsequently be rejected on linguistic, legal, mathematical, or empirical grounds; but the existence of a contradiction within that interpretation cannot itself establish a contradiction in the underlying system unless the interpretation is shown to be uniquely compelled by the available evidence, which Powers cannot show.
Similarly, confronted with dynamic Awl scenarios, which shall be discussed in detail in the next sections, where overlapping shares yield cumulative fractions exceeding a value of one, some methodologically restricted critics routinely declare the existence of an elementary arithmetic error [6, 5]. In doing so, they mistake a highly sophisticated system of relational, scaling variables for a primitive, poorly calculated physical pie. By treating their non-scientific, qualitative tools as an all-encompassing framework, such participants fail to see where their model's scope ends and where a precise mathematical phenomenon begins.
The following sections audit the text’s exact syntactic architecture—specifically the definitive role of al-ta’rif and the partitive alternation between “ma” (ما) and “min ma” (من)—to demonstrate that the Quranic axioms explicitly bypass basic arithmetic in favor of an advanced algebraic engine. By embedding proportional relational weights alongside absolute biological fail-safes that eliminate mathematical and logical contradiction, the text operates flawlessly beyond the reach of historicist reduction, reversing the burden of explanation onto participants of the “Islamic studies” discipline that has mistaken its narrow interpretive scope for a universal explanatory tool.
Without excluding the possibility of external historical influences, the formal analysis presented here demonstrates also that Al-Khwārizmī had the essential raw conceptual ingredients of his Algebra laid out directly before him within the linguistic architecture of these three Quranic verses [12, 1].
2.1 The respective Quranic verses and their interpretation
The foundation is encapsulated in three pivotal verses of Sura 4, Al-nisa. A translation (according to: Yousuf Ali) of the relevant portions is as follows:
• Verse 11:
(يوصيكم الله في أولاد كر للذكر مثل حظ الأثيئين فان كان كن نساء فوق اتتين فالهن ثلما ما ترك وان واحدة فها الصنف
وللاوئه لكل واحد منما السدس عا ترك إن كان له وld وورته أبوه فلامه التلث فان كان له إخوة فلامه
السدس من بعد وصية يوييها أو دين أباؤك وياباؤك لا تدرون أهم فعا فريضة من الله إن أن الله كان عليما
حكيما
“Allah (thus) directs you as regards your Children’s (Inheritance): to the male, a portion equal to that of two females: if only daughters, two or more, their share is two-thirds of the inheritance; if only one, her share is a half. For parents, a sixth share of the inheritance to each, if the deceased left children; if no children, and the parents are the (only) heirs, the mother has a third; if the deceased Left brothers (or sisters) the mother has a sixth. (The distribution in all cases (’s) after the payment of legacies and debts. Ye know not whether your parents or your children are nearest to you in benefit. These are settled portions ordained by Allah; and Allah is All-knowing, Al-wise.”
• Verse 12:
(ولكُ نصف ما ترك أزواجكُ إِن لَ يَكِن لَ نَ وِلَ فَانِ كَانِ كَانِ وِلَ فَالْكُ الْرَعِ مَ مَ بِعَدِ وُصِيَّةِ يُصِينِ يَهِاِ أو دِينِ
وَهْنِ الْرَعِ مَ تَرَكْمِ إِن لَ يَكِن لَ كُكِ وِلَ فَانِ كَانِ كُكِ وِلَ فَالْكُ الْرَعِ مَ مَ بِعَدِ وُصِيَّةِ تُصُونِ يَهِاِ أو دِينِ وَانِ كَانِ
رَجَلِ يُورْثِ كَالَّاتِ أَوْ مَرَّاتِ وَلَهِ أَعْتِ فَلْكُ وَاحِدِ مَنْمَ سَدِ سَ فَانِ كَانِ كَانِ كَانِ كَانِ كَانِ
بَعَدِ وُصِيَّةِ يُصِىِ يَهِاِ أو دِينِ غير مُصَارِ وُصِيَّةِ مَ نَ الَّهِ وَالَّهِ عَلْمِ حَلْمِ
“In what your wives leave, your share is a half, if they leave no child; but if they leave a child, ye get a fourth; after payment of legacies and debts. In what ye leave, their share is a fourth, if ye leave no child; but if ye leave a child, they get an eighth; after payment of legacies and debts. If the man or woman whose inheritance is in question, has left neither ascendants nor descendants, but has left a brother or a sister, each one of the two gets a sixth; but if more than two, they share in a third; after payment of legacies and debts; so that no loss is caused (to any one). Thus is it ordained by Allah; and Allah is All-knowing, Most Forbearing.”
• Verse 176:
(يستفونك قل الله يفتكك في الكاللاتان إنا مرسؤ هلك ليس له وld وlde أخت فله نصف ما ترك وهيرها إنا لَ يَكِن هَ ما وld
فان كاتنا اتتين فلهما ثلان ما ترك وان كانوا خرعة رجالا وئساع فلدىك مئل حظ الأثين يين الله ككُ أن تضلوا واله كك
شي علم
“They ask thee for a legal decision. Say: Allah directs (thus) about those who leave no descendants or ascendants as heirs. If it is a man that dies, leaving a sister but no child, she shall have half the inheritance: If (such a deceased was) a woman, who left no child, Her brother takes her inheritance: If there are two sisters, they shall have two-thirds of the inheritance (between them): if there are brothers and sisters, (they share), the male having twice the share of the female. Thus doth Allah make clear to you (His law), lest ye err. And Allah hath knowledge of all things.”
A rigorous linguistic analysis of these verses reveals a crucial structural characteristic regarding how proportions are defined. Across these verses, there are precisely fifteen instances where inheritance fractions are apportioned, respectively:
للدك مئل حظ الأثين
فالهن ثلما ما ترك
فها التصف
لكن واحد منما السدس ما ترك
فالame ثلث
فالame السدس
نصف ما ترك أزواجك
فكك اليع ما ترك
وهن اليع ما ترك
فلهن المهن عا تركم
فَلْكَلْ وَاحِدَ مِنْمَا السَدِ
فهم شركاء في القلث
فها نصف ما ترك
فلهما العغان ما ترك
فالدىر مقل حظ الأثين
In ten of these fifteen instances, the Quran defines the proportions directly using the definite article al (al-ta'rif), utilizing formulations such as “for her is the half” (لما الصنف), “for you is the fourth” (ولكر اليع), or “for his mother is the third” (فلامة التثث). In only three out of the fifteen instances does the Quran link the proportion to the total value of the estate using an additive genitive construction (الإضافة إلى القيمة الكلية), such as “two thirds of what he left” (فوق اتين فلهن). The two remaining instances are actually a repetition of the mathematical assertion applied to offsprings and siblings only: “to the male, a portion equal to that of two females”.
This grammatical predominance is highly significant. In Arabic, the use of the definite article presents the prescribed share as a determinate and independently identifiable conceptual entity in the discourse. Thus, in expressions such as “لما الصنف” (“for her is the half”), “for his mother is the third”), and “for you is the fourth”), the fraction is grammatically presented as an already identifiable share, without its denotation being syntactically established by reference to the actual numerical value of the estate. The share therefore exists at the conceptual level independently of any particular estate value to which it may subsequently be applied.
This contrasts with constructions in which the fraction is explicitly linked to the estate through a genitive or relative construction, such as “لما ما ترك” (“two thirds of what he left”). In such cases, explicitly supplies the reference domain against which the fraction is evaluated. The distinction is therefore not merely stylistic: the former construction introduces the prescribed fraction as a determinate conceptual quantity, while the latter explicitly relates that quantity to the concrete estate described by the text.
Accordingly, the predominance of definite, unlinked fractions provides linguistic evidence for distinguishing the conceptual share from the numerical value of the estate itself. The prescribed fractions can first be represented as abstract relational quantities and only subsequently instantiated within a particular inheritance configuration. This distinction becomes especially important in configurations involving overlapping prescribed shares, where the conceptual shares may collectively exceed unity and therefore require an algebraic determination of their realization over the actual estate.
2.2 The meaning of “ma” (ما) and “min ma” (من ما)
Building upon this linguistic framework, a further syntactic distinction must be made regarding the way the Quran mentions the relation of the proportions to the estate itself. The Quran systematically alternates between two distinct linguistic constructions that bear different linguistic meanings.
The first utilizes the relative pronoun: (what/that which). Linguistically, “ma” denotes obscurity and totality. Mathematically, it binds the prescribed fraction to the absolute total of the estate.
If we say, for example: "أعطني نصف ما تلك" (English: "give me half of what you possess") we do mean, as in English also, exactly half of the total amount of the possession.
The second construction introduces the preposition of partitioning: , "min," forming: "min ma" (from what/out of what). In Arabic syntax, the preposition "min" here is partitive (tab'idiyyah), linguistically permitting the fraction to be calculated from a subset or a partitioned portion of the whole, rather than the absolute total.
When we say: "أعطني الصنف من ما تلك" (English: "give me the half from what you possess") we mean, also in English, that you need to give me "the agreed upon half" (marked by the definite article) from what you possess, which does not mean, as in the previous sentence, half of all your possessions.
This subtle grammatical distinction provides the foundational mechanism for consistently resolving complex inheritance scenarios where multiple shares overlap.
2.3 The deduced notion of a math variable
The semantic framework established in the first two sections, when formalized, inevitably gives rise to the notion of a “mathematical variable”, elegantly captured by the pronoun “ma”, which linguistically also denotes: obscurity as well as totality.
An interesting fact worth mentioning in this context is, that Al-Khwārizmī in his famous Algebra book did not find himself in need of translating the Quranic assertions to any symbolic Language utilizing math variables, and just referred to the -constructions utilizing the Arabic word: "مال" (belongings), i.e., he used an Arabic word to stand for what we now consider to be a math variable, without any loss of generality.
The importance of the use of math variables (or their semantic equivalents in Arabic) to express Quranic inheritance rules is not seen in trivial cases where all prescribed proportions add up to the full percentage of the estate, but when 1/2, 1/3, and/or 2/3 fractions seem to cause a math contradiction.
For example, if a deceased woman leaves behind a husband and two sisters, the prescribed shares are 1/2 and 2/3 respectively, summing to 7/6 (116.6%).
Historically, Muslim jurists after Al-Khwārizmī resolved this by treating the conceptual total percentage as an unknown variable (X) that must scale down proportionally. The equation becomes: , necessitating the use of linear equations.
This amounted to treating “ma” and “min-ma” constructions as denoting the same, namely: “the whole or less”.
Alternatively, if one applies a strict literal reading (like the one reported to be the opinion of Ibn-Abbas), distinguishing between and “min ma”, the husband takes his absolute 1/2, and the sisters’ 2/3 share is calculated from a theoretical subset , requiring an equation like .
In both methodologies, the text forces the abandonment of basic arithmetic in favor of algebraic variables to ensure a flawless 100% distribution.
2.4 Consistence of the inheritance axioms
A potential critique of the literal reading is that a mathematical contradiction would occur if two shares—such as a 1/2 share and a 2/3 share—both utilizing “ma” were to co-occur.
However, the Quranic axioms exhibit a structural consistency safeguarded by biological and logical mutual exclusivity.
Instances where heirs receive 1/2 using ⚠ “ma” include a husband (when there are no children), a sister (when there are no children), and a single daughter. Conversely, the 2/3 share using ⚠ “ma” is prescribed exclusively for two or more daughters.
A husband only receives 1/2 in the absence of children, rendering it biologically impossible for his share to coexist with the 2/3 share of two daughters.
Similarly, a sister’s 1/2 share precludes the existence of children, and the existence of a single daughter logically precludes the existence of “two or more” daughters simultaneously.
Therefore, the axioms of the system are structurally immune to producing a literal mathematical contradiction, as the text embeds biological fail-safes to prevent logical errors.
2.5 A challenge for de-mystification efforts
Although the aim of the current work is to provide a logical basis for Al-Khwārizmi’s Algebra, it is worth mentioning that the structural and mathematical realities of the Inheritance verses presented here provide a definitive challenge for attempts of secular de-mystification of the above Qur’anic verses. Some of those attempts use the literal reading to claim the existence of a contradiction in the Quranic Inheritance axioms.
As we saw in the last sections: Whether one applies a unified jurisprudential reading that necessitates an unknown variable (X) for proportional reduction, or a strict literal reading that differentiates between “ma” and “min ma” to necessitate a variable (p) for a theoretical subset, the text operates flawlessly. Furthermore, the text pre-emptively safeguards itself against literal mathematical contradictions through biological exclusivity.
This moves the burden of explanation of how such a rigorous and unprecedented legal framework is a possible achievement of someone living in the seventh century to the side of de-mystification efforts, knowing that the framework functions perfectly under two divergent linguistic interpretations—both secretly requiring a mathematical science (Algebra) that would not be formalized for another two centuries—while simultaneously embedding logical fail-safes.
The algebraic equations, dual linguistic readings, and proportional design embedded within these verses demonstrate a level of systemic vision that conclusively demonstrates unexplained capacities.
2.6 Conclusion
The preceding analysis reveals that the Quran employs a profoundly efficient, informal diction to describe the fundamental axioms of inheritance. This linguistic architecture is characterized by the following structural features:
• Promoting the notion of a mathematical Variable: It encourages the use of mathematical variables bound to structural constraints by utilizing linguistic constructs that semantically denote totality, obscurity, and partial inclusion—specifically through the alternation of “ma” and “min ma”.
• Defining proportions relative to the total amount of shares: The predominance of the definite article (al-ta'rif) establishes the shares as proportional percentages of a conceptual whole, rather than fixed arithmetic extractions from a physical estate. Direct sentences relating proportions to each other, like “لألك مثل حظ الأثين (to a male a portion equal to that of two females) provides more evidence for that.
• Semantic Flexibility and Historical Evolution: It opens the door to multiple valid linguistic interpretations (such as the biological categorization of “siblings” or the strict versus unified treatment of grammatical particles), each yielding a distinct inheritance-allocation mechanism. Historically, this generated three major developmental phases:
the strict literal system of Ibn Abbas, the unified jurisprudential system of Umar, and ultimately, the formalized algebraic system of Al-Khwārizmī.
• Internal Consistency: Each of these distinct methodologies is internally consistent and can be soundly linked to both legal and rational foundations.
• Logical Immunity: It achieves this remarkable interpretive flexibility while remaining immune to logical inconsistency, safeguarded by embedded biological fail-safes.
• Compactness: It accomplishes all of this in the most compact way possible, encoding a scalable algebraic framework capable of representing arbitrarily large finite inheritance configurations within merely three verses.
In light of this structural sophistication, the prevalent secular and historicist critiques of the Quranic inheritance system—exemplified by “Islamic studies” participants such as David Powers, John Burton, and Patricia Crone—suffer from a critical epistemological boundary failure. By attempting to evaluate a sophisticated mathematical framework using purely qualitative and philological tools, these critics mistake their own restrictive interpretive models for inherent flaws within the text. Whether addressing the alleged legal incoherence of the Kalalah scenarios or the supposed arithmetic errors of Awl (oversubscription), their claims collapse under formal logical scrutiny. As known from formal model theory, demonstrating that a system yields a contradiction in a single, selected semantic model does not render the underlying axioms unsatisfiable; it merely necessitates the discarding of the flawed model.
Whether one applies the unified jurisprudential reading—which requires a scaling variable to resolve the Awl overflow—or the strict literal reading—which requires a theoretical subset variable —the text forces the abandonment of basic arithmetic in favor of linear algebraic equations.
Ultimately, the burden of explanation of this phenomenon is decisively reversed to become the task of western, secular de-mystification efforts in “Islamic studies”: The raw conceptual ingredients of Algebra were not retroactively imposed upon the text; rather, they were directly laid out within its linguistic architecture. It was this very architecture that may have compelled Al-Khwārizmī to formalize the science of Algebra, cementing the Quranic inheritance system as a mathematically robust, structurally flawless framework.
These linguistic features motivate, but do not by themselves entail, the formal construction that follows. Sections 3–7 supply the formal content: a representation lemma, a canonicality theorem, and a decision procedure for the inheritance-relevant fragment.
3 Al-Khwārizmī's Inheritance Algebra
3.1 Inheritance configurations and the representation lemma
Definition 1 (Inheritance configuration). An inheritance configuration is a tuple where is a finite set of heirs drawn from a fixed finite set of heir classes, is a finite set of applicability conditions (each a Boolean combination of biological preconditions such as presence or absence of children, parents, and siblings of each class), is a finite set of wasiyya (bequest) conditions, and is the gross estate.
Definition 2 (Admissible allocation). An admissible allocation for is a map together with a bequest value such that (i) the prescribed shares match the Qur'anic fractions under the applicable -conditions, (ii) (conservation), and (iii) (legal cap).
Lemma 1 (Representation). Every inheritance configuration is representable as a finite system
whose rational solutions correspond bijectively to admissible allocations.
Proof sketch. Normalize : since , scaling by preserves rationality and the solution set is the same up to the same scaling. Each prescribed share is a rational constant (1/2, 1/3, 2/3, 1/4, 1/6, 1/8) applied to the estate or to a partitive subset; each such prescription is a linear equality in the unknowns. Each applicability condition is a finite case distinction, generating one linear system per case; the union over cases is the finite family of systems whose disjunction represents the configuration. Conservation is the equality . The wasiyya cap is the inequality . Equalities are replaced by pairs of inequalities.
Remark 1 (Rationality). Because shares, caps, and normalization are rational, all coefficients are rational. This is what licenses Fourier–Motzkin elimination over Q rather than over R in §7.
Remark 2 (Finitely many cases). The case space is finite because heir classes and preconditions are drawn from a fixed finite vocabulary; this is the formal counterpart of al-sabr wa-al-taqsim invoked in §8.
3.2 A worked bequest
Consider a classical inheritance problem in which a man dies leaving two sons and wills to a stranger a legacy equal to one third of the estate minus one fourth of what one son receives. Normalize the gross estate to
Let
denote the share of one son and
denote the value of the bequest. The corresponding system is
(Estate Conservation),
(1)
(Bequest Definition),
(2)
(Legal Upper Bound).
(3)
The equality constraints may be represented by pairs of inequalities:
Fourier–Motzkin elimination combines every lower bound of w with every upper bound of w. The two nontrivial projected constraints are
Together they give directly, without appealing to the retained equality. The legal cap has already been used in forming the first projection.
The projected system therefore determines uniquely, and substitution recovers
The legal upper bound is satisfied:
The equality information retained from the original system is consistent with this value; it is not needed to establish uniqueness once both projections are computed.
Thus the inheritance problem admits the formal transformation
jurisprudential problem rational linear constraints
exact computational solution.
(9)
The use of Fourier–Motzkin elimination here is a modern formal representation of the computational structure of the problem; it is not a claim that Al-Khwārizmī historically formulated his method using this modern elimination procedure.
4 The Fixed-Dimensional Inheritance Structure
For a fixed inheritance configuration with claimant coordinates, consider the one-sorted first-order language
Here 0 is the zero allocation, + is vector addition, ≤ is the coordinatewise order, is multiplication by the rational scalar , and are distinguished basis vectors corresponding to the claimant coordinates.
The intended structure is
where
and
Definition 3 (Admissible structure). A structure in is admissible if:
(A1) M is a Q-vector space under + and ;
(A2) are linearly independent over Q;
(A3) every is a Q-linear combination of (spanning);
(A4) for all with and , we have if and only if for every (order is the coordinatewise order induced by the distinguished basis).
The class of admissible structures is exactly the class considered in the canonicality theorem below.
5 Uniqueness of the Fixed-Dimensional Structure
Theorem 1 (Canonicality). Let M be an admissible structure in the language in the sense of Definition 3. Then
Proof. Let be the domain of . By the spanning condition, for every there exist rational numbers such that
By linear independence of , this representation is unique.
Define
by
where is the unique coordinate tuple of x.
The map is surjective because every is represented by
It is injective because two elements with the same coordinate tuple have the same representation in the distinguished basis.
If
then
and therefore
Likewise, for every ,
By the coordinatewise-order axiom,
which is equivalent to
Finally,
is the ith standard basis vector of .
Thus is an isomorphism preserving zero, addition, rational scalar multiplication, the distinguished basis vectors, and order. Therefore
15
☐
Corollary 1 (Uniqueness within the admissible class). Within the class of admissible structures, is the unique model up to isomorphism. Consequently, any two admissible rational linear-coordinate formalizations of the same inheritance configuration are isomorphic, and their allocations coincide under the isomorphism.
Remark 3 (What canonicality does and does not say). Canonicity is a property within the admissible class. It does not assert that non-linear or non-coordinatewise formalizations are impossible, nor that linear algebra is the only methodologically legitimate tool. It asserts that once the inheritance structure is represented by rational linear coordinates, that representation is unique up to isomorphism. This is the precise sense in which the algebraic representation is canonical, and it is the sense required by the argument of §2 against treating a single semantic model as definitive.
Remark 4 (Relation to §2.3). The observation in §2.3 that ‘awl resolves is consistent with this theorem: ‘awl is a computation in the same rational linear-coordinate class, expressed in different notation. Canonicity therefore explains why the pre-algebraic and algebraic procedures agree on allocations—they are two presentations of the same admissible structure.
6 The First-Order Theory of the Fixed-Dimensional Model
The structure defined in the preceding section is a first-order structure for the language
The structure itself is not a first-order sentence. To associate a first-order theory with , we consider all first-order sentences that can be formed in and retain precisely those that are true in .
Let
denote the set of all first-order sentences in the language . The complete first-order theory of the intended inheritance structure is defined by
Thus the passage from the intended structure to its first-order theory is the semantic construction
Equivalently, for every ,
Hence contains exactly the first-order statements in that hold in the intended fixed-dimensional inheritance structure.
6. 0.1 An Explicit First-Order Axiom System
Although is defined semantically, the principal algebraic properties of the intended structure can be stated explicitly as first-order axioms in the same one-sorted language.
Let denote the first-order axiom system consisting of the following sentences.
First, the additive structure is an abelian group:
For every fixed , the scalar-operation symbols satisfy
Here q and r are not variables of the object language. They range over the externally fixed coefficient field Q, while each corresponding operation symbol belongs to the language.
The order relation satisfies the first-order axioms of a partial order:
The order is compatible with addition:
For every positive rational , scalar multiplication preserves the order:
The distinguished vectors are required to be linearly independent over the fixed rational coefficient field. Since every rational scalar has a corresponding function symbol, this condition is represented by the family of first-order sentences For every nonzero tuple
the following first-order sentence belongs to :
In , the rational numbers are metamathematical parameters selecting a particular sentence. Thus denotes the family of first-order sentences obtained as ranges over .
The intended structure satisfies these axioms:
Consequently,
The axiom system therefore gives an explicit first-order description of the principal algebraic and order-theoretic properties of the intended inheritance structure that are expressible in the current one-sorted language.
6. 0.2 The Expressibility Limitation of the One-Sorted Language
There is an important distinction between the explicit axiom system and the complete theory . In the present one-sorted language, the rational numbers are fixed externally through the family of function symbols . They do not constitute a separate sort over which first-order quantification is available.
Consequently, the finite-dimensional spanning condition
is not a single first-order formula of . The displayed quantifiers range over the externally fixed field Q rather than over the one-sorted domain of the structure.
Expressing this condition directly in the present language would require the infinitary expression
which is not a first-order formula.
The same observation applies to the full coordinatewise-order characterization if it is expressed as the existence of nonnegative rational coordinates for arbitrary elements. Such a condition is part of the specified intended structure rather than an additional first-order axiom of in the present one-sorted language.
Accordingly, is not claimed to be a categorical first-order axiomatization of . In particular, we do not claim
The same distinction applies to . Completeness of a first-order theory and categorical characterization of a structure are distinct properties. The complete theory contains every first-order sentence true in , but completeness alone does not imply that every model of is isomorphic to .
This does not conflict with the canonicality theorem established in §5. That theorem concerns the class of structures satisfying the externally specified fixed-dimensional coordinate conditions. Within that class, the coordinate map establishes isomorphism with . The present first-order construction addresses a different question: which first-order sentences are true in the intended structure and which of its expressible properties can be explicitly axiomatized in the chosen language.
In summary: axiomatizes the expressible algebraic properties of in the one-sorted language; it is not categorical, and properly contains the admissible class. The canonicality result of §5 concerns the admissible class, defined externally; the first-order theory is a separate object, complete by construction but not categorical in .
6. 0.3 Completeness of the First-Order Theory
Proposition 1 (Completeness by construction). The theory is complete.
Proof. For any , either or . By definition of , whichever holds is in . Hence for every , or .
Remark 5. This is a property of every theory of the form ; it is recorded here not as a novel result but as a design certificate: the formalization leaves no first-order question about the inheritance structure undecided. It is a statement about the construction, and is logically independent of both the canonicality theorem of §5 and the decidability result of §7.
6. 0.4 Structure of the Formal Argument
The preceding results can be summarized by the following hierarchy:
The three principal conclusions are therefore logically distinct:
structural canonicality of admissible fixed-dimensional models,
completeness of by construction,
algorithmic decidability of the inheritance-relevant fragment.
The following section develops the third property explicitly.
7 Algorithmic Decidability of Inheritance Constraint Systems
7.1 Scope of the decidability claim
The result established in this section is the decidability of the inheritance-relevant fragment of the theory of : the existential theory over finite quantifier-free systems of rational linear constraints. This is precisely the fragment generated by the representation lemma of §3. Full decidability of is not claimed and is not needed for the computational-Figh objective: every question arising from an inheritance configuration is quantifier-free and linear.
The model-theoretic completeness established above is a semantic property of the theory . The computational problem addressed in this section is different. Given a concrete inheritance configuration, the legal conditions produce a finite system of rational linear equalities and inequalities. The objective is to provide a terminating procedure that determines whether the system is consistent and, when the constraints determine a unique allocation, computes that allocation exactly.
7.1.1 Input Representation
Let an inheritance configuration contain n rational unknowns
After normalization of the estate and translation of the legal conditions into algebraic form, the configuration is represented by a finite system
where
Every equality
is replaced by the two inequalities
Consequently, by Lemma 1, every finite inheritance configuration can be reduced to a finite system of rational linear inequalities.
The computational problem is therefore:
Given S, determine whether satisfying every constraint in S.
(23)
7.1.2 Fourier–Motzkin Elimination
Fourier–Motzkin elimination removes one variable at a time while preserving satisfiability over the rational numbers.
Suppose the current system contains the variable . Every inequality can be written in the form
Partition the inequalities into three classes according to the coefficient :
For , division by the positive rational gives an upper bound
For , division by the negative rational reverses the inequality and gives a lower bound
The variable can exist exactly when every lower bound is compatible with every upper bound. Therefore Fourier–Motzkin replaces all inequalities involving by
while retaining all inequalities in .
The resulting system, denoted
contains only the variables
The fundamental elimination property is
Thus elimination of one variable preserves satisfiability.
The equivalence holds over Q, not merely over R, because the bounds are rational affine functions of the remaining variables: at any rational point of the projected system, the maximum lower bound and minimum upper bound are rational, and any rational value between them (e.g. the midpoint) extends to a rational solution of the pre-elimination system. This rationality argument is what licenses the exact rational reconstruction of §7.
7.1.3 The Complete Decision Procedure
Starting with
apply Fourier–Motzkin elimination successively:
where contains only the variables .
At the final stage contains only rational inequalities of the form
If the final system contains a contradiction such as
in a constraint equivalent to
then the original inheritance system is inconsistent.
If no contradiction occurs, the original system is satisfiable.
Thus the decision criterion is
Because each elimination step removes one variable and the original system contains only finitely many variables and inequalities, the procedure terminates after finitely many elimination stages.
7.1.4 Correctness of the Decision Procedure
Theorem 2. For every finite system S of linear equalities and inequalities over Q, the Fourier–Motzkin procedure terminates and correctly determines whether S has a rational solution.
Proof. Equalities are first replaced by pairs of inequalities, so it is sufficient to consider systems of linear inequalities.
At each elimination step, the current variable is partitioned into upper-bound, lower-bound, and zero-coefficient constraints. A value of the eliminated variable can satisfy the original constraints exactly when every lower bound is at most every upper bound. The pairwise combination of lower and upper bounds therefore produces a system satisfied by exactly the projections of the original solution set onto the remaining variables.
Hence
at every elimination step.
After all n variables have been eliminated, the resulting system contains only rational constant inequalities. Such a system is decidable by direct comparison of rational numbers. If a contradiction occurs, the original system has no solution. If no contradiction occurs, the successive projection equivalences imply that the original system has a solution.
Since exactly one variable is eliminated at each stage and the initial system is finite, the procedure terminates after at most n elimination stages.
7.1.5 Reconstruction of a Solution
The elimination procedure does not merely decide consistency. When a solution is required, the eliminated variables can be reconstructed in reverse order.
Suppose the final system is satisfiable. Choose a solution of the remaining system and return to the preceding elimination stage.
At that stage, the eliminated variable is constrained by the finite collection of rational lower and upper bounds that remain after the previously eliminated variables have been fixed. If both lower and upper bounds are present, the Fourier–Motzkin constraints guarantee that every lower bound does not exceed every upper bound. If one side is unbounded, any rational value satisfying the bounds that are present may be chosen. Thus a rational value of can always be selected whenever the projected system is satisfiable.
The procedure then substitutes the selected value of into the constraints from the preceding elimination stage and continues backwards. Repeating this process reconstructs a rational solution
of the original system.
Therefore the computational procedure has two modes of output:
When the legal constraints determine a unique allocation, the reconstruction necessarily yields the same rational value for every solution.
7.1.6 Determining Uniqueness
After the satisfiability of the system has been established, the procedure can determine whether the resulting allocation is unique. Let
be the original finite system of rational linear constraints, and let
denote its rational feasible set.
For each coordinate , the procedure computes the projection of the feasible set onto the -coordinate by applying Fourier–Motzkin elimination to all variables other than . The resulting one-variable system determines the feasible lower and upper bounds
If or , the coordinate is unbounded and the allocation is not unique. If both bounds are finite, the feasible values of form the closed interval (closed because rational linear constraints define a closed set in the order topology, and the bounds are attained at rational points by the rationality argument above). The allocation is uniquely determined if and only if every coordinate has a singleton feasible interval. Equivalently,
In that case, the unique allocation is
If, on the other hand, there exists some coordinate for which
then at least two distinct feasible allocations exist, since that coordinate can take different feasible values. Hence the original system does not determine a unique allocation.
Accordingly, the complete decision procedure distinguishes the following cases:
-
if S is unsatisfiable, the inheritance configuration has no admissible allocation;
-
if S is satisfiable and
then S determines a unique rational allocation, which is computed exactly;
- if S is satisfiable but
for at least one coordinate , then the constraints admit multiple allocations.
All bounds are obtained from finite systems of rational linear constraints, so each required elimination terminates after finitely many steps. Consequently, uniqueness of the inheritance allocation is itself decidable by the same terminating Fourier–Motzkin framework.
7.2 Complexity
Fourier–Motzkin elimination is terminating and exact, but its worst-case complexity is doubly exponential in the number of variables, since the number of constraints can square at each elimination step [13, 14, 15]. For the fixed, small number of claimants in typical inheritance configurations this is acceptable; for larger configurations, standard linear-programming methods (simplex, interior point) or polyhedral libraries may be substituted without affecting the correctness argument, since they decide the same fragment. The choice of Fourier–Motzkin in this paper is for transparency of the correctness proof, not for asymptotic efficiency.
7.2.1 Application to the Historical Bequest
Consider again the system
Replacing the equalities by pairs of inequalities gives
Eliminating w combines every lower bound with every upper bound. The two nontrivial projected constraints are
Together they give directly, without appealing to the retained equality. The legal cap has already been used in forming the first projection.
Substitution gives
Thus the algorithm returns the exact rational allocation
The result also satisfies the legal upper bound:
7.3 Application to an ‘Awl configuration
Consider a deceased woman leaving a husband and two sisters. The prescribed shares are 1/2 for the husband and 2/3 for the two sisters, summing to 7/6 > 1. Introduce unknowns x (husband), y (each sister), and a scaling variable s, subject to
(Conservation),
(48)
(Proportional share of husband),
(49)
(Proportional share of each sister),
(50)
(Estate cap),
(51)
The first three equalities are each replaced by a pair of inequalities. Eliminating s yields the projected constraints
The first two combine to ; substituting into gives
Substitution gives , which satisfies .
Thus the algorithm returns
The procedure returns the same allocation as the classical ‘awl computation. This is expected: ‘awl solves , which is the single-variable case of the general linear system. The contribution of the algebraic representation is not a different answer but an explicit structure in which the answer is derived by a uniform procedure and its correctness is mechanically checkable.
7.3.1 Termination and Computational Character
The decision procedure terminates because the number of variables in a fixed inheritance configuration is finite and each Fourier–Motzkin stage eliminates at least one variable. No search through an unbounded space of numerical assignments is required. All arithmetic operations are performed over the rational numbers, and therefore the resulting allocations are exact rather than numerical approximations.
The procedure can consequently be summarized as
inheritance configuration finite rational constraint system
equality normalization
successive Fourier–Motzkin elimination
consistency decision
exact solution reconstruction.
(55)
This establishes algorithmic decidability for every fixed inheritance configuration represented by a finite system of rational linear constraints, as licensed by the representation lemma of §3. The result is independent of the completeness of by construction: the former is a property of a terminating computational procedure, whereas the latter is a property of the first-order theory associated with the intended structure.
8 Methodological interpretation: the Fiqh-domain analogy
This section states a methodological analogy, not a theorem of the present paper. The notion of domain-relative computational completeness is defined and established in the companion framework [17]; the present section records how the inheritance construction fits that pattern.
The significance of the preceding construction for the broader Fiqh framework is methodological. Al-Khwārizmī's inheritance treatment provides a general computational method for a specified class of jurisprudential problems. The formal machinery used in the present framework is different, but the computational objective is analogous.
For a closed Fiqh chapter CC, the al-sabr wa-al-taqsīm procedure exhaustively generates the specified case space. The resulting Horn Fiqh axiom set is complete with respect to that specified finite case space, as established by the completeness results developed elsewhere in the formal framework [17].
If the Horn deductive engine is complete for the rule class specified by the framework, then every ruling represented in is derivable by the engine. The resulting computational chain is
complete case generation complete axiom set complete Horn deduction. (56)
The analogy holds under three conditions:
(C1) the case space of the closed Fiqh chapter is finite and exhaustively generated by al-sabr wa-al-taqsīm;
(C2) the resulting axiom set is Horn and complete with respect to that case space [17];
(C3) the deductive engine is complete for the specified Horn rule class [17].
Under (C1)–(C3), domain-relative computational completeness holds for the chapter.
Relative to the specified ontology, question space, axioms, and deductive rule class, this yields domain-relative computational completeness.
The analogy with Al-Khwārizmī's inheritance algebra is methodological rather than a claim that the historical mathematical machinery was identical to the modern formal machinery. In Al-Khwārizmī's treatment, a delimited class of inheritance problems is represented through algebraic relations over rational quantities and resolved by a general computational procedure. In the present framework, a delimited Fiqh domain is represented through exhaustive case generation, Horn-clause axiomatization, and a terminating deductive engine.
In both cases, the objective is the computational treatment of an entire specified class of jurisprudential problems.
The analogy is methodological, not historical: it does not claim that Al-Khwārizmī’s procedure was a Horn deduction, nor that the Fiqh framework reduces to linear algebra. What is shared is the pattern: a delimited class of jurisprudential problems, an explicit finite representation, and a terminating procedure that resolves every instance in the class.
9 Conclusion
The formalization developed here provides a modern mathematical interpretation of the computational character of Al-Khwārizmī’s inheritance algebra. A specified inheritance problem can be represented as a finite system of rational linear constraints and solved exactly by a terminating procedure. For a fixed number of claimant coordinates, the associated mathematical structure is represented by , and every admissible realization of that structure is isomorphic to the intended model.
The complete first-order theory of the intended model is complete by construction, as a stated design property of the formalization. The inheritance-relevant existential fragment generated by the representation lemma is algorithmically decidable by Fourier–Motzkin elimination. These are separate formal properties, and the paper does not claim full decidability of .
The analysis of the Qur'anic inheritance verses further establishes an important epistemological distinction between linguistic description, semantic interpretation, and formal structure. Ambiguity in a natural language expression does not by itself imply inconsistency in the formal system represented by that expression. A contradiction obtained under one selected semantic interpretation establishes, at most, a failure of that interpretation; it does not establish unsatisfiability of the underlying axioms unless the interpretation is shown to be uniquely compelled by the linguistic evidence. This distinction has an important internal analogue in the Qur'an's own epistemological account of its text, particularly its distinction between muhkamāt, described as the foundation of the Book, and mutashābihāt, whose interpretation is not equally immediate or determinate (Qur'an 3:7). In the context of Computational Fiqh, this yields a methodological principle: the transition from natural-language jurisprudential statements to formal semantics should be made explicit, so that alternative interpretations can be formally represented and their resulting structures evaluated for consistency.
The contribution of the algebraic representation is representational rather than exclusive: once the inheritance structure is represented by rational linear coordinates, the representation is canonical within the admissible class, and every question arising from an inheritance configuration reduces to an existential question over a finite rational linear constraint system that is decidable exactly. This explains why the pre-algebraic and algebraic procedures agree on allocations, and why the algebraic representation makes the structure of the problem explicit in a way that the pre-algebraic procedure does not.
The broader significance is methodological. A delimited class of jurisprudential problems can be represented by an explicit formal structure together with a general computational procedure for resolving its instances. The broader Fiqh framework applies the same principle through exhaustive case generation, complete axiomatization, and terminating Horn-clause deduction.
The resulting notion of domain-relative computational completeness does not assert universal formalization. It asserts that, for a specified closed Fiqh domain and relative to its explicitly defined ontology, question space, axioms, and deductive mechanism, the relevant cases can be completely represented and computationally resolved.
References
[1] Rashed, R. (1994). The Development of Arabic Mathematics: Between Arithmetic and Algebra. Springer-Verlag.
[2] Berggren, J. L. (1986). Episodes in the Mathematics of Medieval Islam. Springer-Verlag.
[3] Said, E. W. (1978). Orientalism. Pantheon Books.
[4] Tibawi, A. L. (1964). English-speaking Orientalists: A Critique of their Approach to Islam and Arab Nationalism. Islamic Quarterly, 8(1/2), 25–45.
[5] Crone, P. (1987). Meccan Trade and the Rise of Islam. Princeton University Press.
[6] Burton, J. (1990). The Sources of Islamic Law: Islamic Theories of Abrogation. Edinburgh University Press.
[7] Powers, D. S. (2011). Muhammad is Not the Father of any of Your Men: The Making of the Last Prophet. University of Pennsylvania Press.
[8] Popper, K. (1963). Conjectures and Refutations: The Growth of Scientific Knowledge. Routledge.
[9] Hallaq, W. B. (2013). The Impossible State: Islam, Politics, and Modernity’s Moral Predicament. Columbia University Press.
[10] Déroche, F. (2014). Qur'ans of the Umayyads: A First Overview. Brill.
[11] Sadeghi, B., & Goudarzi, M. (2012). San'ā' 1 and the Origins of the Qur'ān. Der Islam, 87(1-2), 1–129.
[12] Oaks, J. (2014). Al-Khwārizmī and the New Genre of Algebra. Historia Mathematica, 41(4), 459–473.
[13] Dantzig, G. B., & Eaves, B. C. (1973). Fourier–Motzkin elimination and its dual. Journal of Combinatorial Theory, Series A, 14(3), 288–297.
[14] Schrijver, A. (1986). Theory of Linear and Integer Programming. Wiley.
[15] Chandru, V. (1993). Variable elimination in linear constraints. The Computer Journal, 36(5), 463–472.
[16] Marker, D. (2002). Model Theory: An Introduction. Springer.
[17] Elnaserledinellah Mahmoud Abdelwahab. Theoretical Foundations of Computational Islamic Jurisprudence (Fiqh). 2026. hal-05739614