# Formalizing Sunni Islamic Theology with Mathematics and Lean 4

- Original post: https://www.twitter.com/i/status/2124288863178731802
- Source account: [@saqrhachimi](https://x.com/saqrhachimi)
- Source language: French
- Target language: English
- Duration: 5:31
- Published: 2026-11-23
- Machine translated. Check the original before quoting.
- Canonical URL: https://www.translate.mom/transcript/dQU6XVFzpw4x/en/formalizing-sunni-islamic-theology-with-mathematics-and-lean-4
- Original-language version: https://www.translate.mom/transcript/dQU6XVFzpw4x/fr/formaliser-la-th%C3%A9ologie-sunnite-avec-les-math%C3%A9matiques-et-lean-4.md

## Transcript

[0:00](https://www.translate.mom/transcript/dQU6XVFzpw4x/en/formalizing-sunni-islamic-theology-with-mathematics-and-lean-4) Sunni Islam, mathematically and formally proven.

[0:04](https://www.translate.mom/transcript/dQU6XVFzpw4x/en/formalizing-sunni-islamic-theology-with-mathematics-and-lean-4?t=4) Bismillahir Rahmanir Rahim. There’s a problem with the classical proofs of Muslim theologians in “ilm al-kalam.”

[0:12](https://www.translate.mom/transcript/dQU6XVFzpw4x/en/formalizing-sunni-islamic-theology-with-mathematics-and-lean-4?t=12) First, the problem is that these proofs are expressed in natural language, using terminology that is specific to specialists and rather obscure to the uninitiated.

[0:21](https://www.translate.mom/transcript/dQU6XVFzpw4x/en/formalizing-sunni-islamic-theology-with-mathematics-and-lean-4?t=21) Second, this method doesn’t win everyone’s agreement, especially, uh, outside Islam.

[0:27](https://www.translate.mom/transcript/dQU6XVFzpw4x/en/formalizing-sunni-islamic-theology-with-mathematics-and-lean-4?t=27) Then, we can never be immune to human error in matters of reasoning.

[0:31](https://www.translate.mom/transcript/dQU6XVFzpw4x/en/formalizing-sunni-islamic-theology-with-mathematics-and-lean-4?t=31) But we have solutions to all that. First, for reasoning, we have a universal language: math.

[0:37](https://www.translate.mom/transcript/dQU6XVFzpw4x/en/formalizing-sunni-islamic-theology-with-mathematics-and-lean-4?t=37) And we also have a method that lets us objectively verify the proofs.

[0:40](https://www.translate.mom/transcript/dQU6XVFzpw4x/en/formalizing-sunni-islamic-theology-with-mathematics-and-lean-4?t=40) The different computational methods that are available to us.

[0:44](https://www.translate.mom/transcript/dQU6XVFzpw4x/en/formalizing-sunni-islamic-theology-with-mathematics-and-lean-4?t=44) Except that “ilm al-kalam” isn't a mathematical theory, not—at least, not in its classical form.

[0:50](https://www.translate.mom/transcript/dQU6XVFzpw4x/en/formalizing-sunni-islamic-theology-with-mathematics-and-lean-4?t=50) But we can translate it. “Ilm al-kalam” is based on certain objects, certain methods of classical “mantek”, the classical logic of Muslims.

[1:01](https://www.translate.mom/transcript/dQU6XVFzpw4x/en/formalizing-sunni-islamic-theology-with-mathematics-and-lean-4?t=61) Um, this “mantek” can be formalized mathematically.

[1:04](https://www.translate.mom/transcript/dQU6XVFzpw4x/en/formalizing-sunni-islamic-theology-with-mathematics-and-lean-4?t=64) And after formalizing it mathematically, we can take the proofs found in “ilm al-kalam”.

[1:10](https://www.translate.mom/transcript/dQU6XVFzpw4x/en/formalizing-sunni-islamic-theology-with-mathematics-and-lean-4?t=70) We can simplify them to make a sequence of objec—objects of “mantek”.

[1:14](https://www.translate.mom/transcript/dQU6XVFzpw4x/en/formalizing-sunni-islamic-theology-with-mathematics-and-lean-4?t=74) Then, based on our previous formalization of “mantek” mathematically, we can also formalize mathematically, um, the proofs of “ilm al-kalam”.

[1:24](https://www.translate.mom/transcript/dQU6XVFzpw4x/en/formalizing-sunni-islamic-theology-with-mathematics-and-lean-4?t=84) So, we transformed, in a way, translated “ilm al-kalam” into a mathematical theory, into a huge mathematical theory or several math theories, since there are different topics being covered and some proofs are interdependent.

[1:36](https://www.translate.mom/transcript/dQU6XVFzpw4x/en/formalizing-sunni-islamic-theology-with-mathematics-and-lean-4?t=96) We also have to, um, avoid circularity so that object A doesn't prove B, then— B proves C, and C proves A, which amounts to an unacceptable circularity.

[1:47](https://www.translate.mom/transcript/dQU6XVFzpw4x/en/formalizing-sunni-islamic-theology-with-mathematics-and-lean-4?t=107) So we have to check all this to ensure a certain linearity for every result that can be proved or has been proved.

[1:55](https://www.translate.mom/transcript/dQU6XVFzpw4x/en/formalizing-sunni-islamic-theology-with-mathematics-and-lean-4?t=115) And with all this mathematical transcription work of “ilm al- kalam,” and its verification, we have, um, this object, this mathematical theory of “ilm al-kalam” that we can verify computationally.

[2:07](https://www.translate.mom/transcript/dQU6XVFzpw4x/en/formalizing-sunni-islamic-theology-with-mathematics-and-lean-4?t=127) We have a language for that, a language for mathematical formalization, Lean 4.

[2:11](https://www.translate.mom/transcript/dQU6XVFzpw4x/en/formalizing-sunni-islamic-theology-with-mathematics-and-lean-4?t=131) Anyone who does math has probably come across it.

[2:14](https://www.translate.mom/transcript/dQU6XVFzpw4x/en/formalizing-sunni-islamic-theology-with-mathematics-and-lean-4?t=134) Uh, it's basically a language for mathematical formalization based on dependent type theory.

[2:21](https://www.translate.mom/transcript/dQU6XVFzpw4x/en/formalizing-sunni-islamic-theology-with-mathematics-and-lean-4?t=141) Anyone doing math knows this. Those who don't have probably heard of it, since recently, we had this, uh, proof of, uh, the hypothesis about the zeros of the Riemann zeta function, which, well, is a proof by Lean compilation.

[2:37](https://www.translate.mom/transcript/dQU6XVFzpw4x/en/formalizing-sunni-islamic-theology-with-mathematics-and-lean-4?t=157) Uh, anyway, what we did, simply, after mathematically formalizing everything we, uh, wanted in “ilm al-kalam”, we checked it all with Lean, just like that, uh, by— with the rules, following the rules, doing it as it's done mathematically.

[2:57](https://www.translate.mom/transcript/dQU6XVFzpw4x/en/formalizing-sunni-islamic-theology-with-mathematics-and-lean-4?t=177) And we succeeded, with a very high rate of success, in verifying and making objective, objective, a large part of the demonstrations in “ilm al- kalam.”

[3:10](https://www.translate.mom/transcript/dQU6XVFzpw4x/en/formalizing-sunni-islamic-theology-with-mathematics-and-lean-4?t=190) Of course, at first, we focus first on what matters most, on the foundation, the ilahiyyat, um, the existence of God, the existence of His most important attributes the thirteen, um, that we study in “aqida.”

[3:24](https://www.translate.mom/transcript/dQU6XVFzpw4x/en/formalizing-sunni-islamic-theology-with-mathematics-and-lean-4?t=204) Then the three attributes of the prophets, then a little bit of i'jaz.

[3:29](https://www.translate.mom/transcript/dQU6XVFzpw4x/en/formalizing-sunni-islamic-theology-with-mathematics-and-lean-4?t=209) And before all that, the theory of knowledge, um, the epistemology of “kalam,” which is also formalized mathematically and proven, um, in any case, objectively validated by, um— whose formalization is objectively validated by, by Lean.

[3:44](https://www.translate.mom/transcript/dQU6XVFzpw4x/en/formalizing-sunni-islamic-theology-with-mathematics-and-lean-4?t=224) And so we have a result that is quite interesting.

[3:47](https://www.translate.mom/transcript/dQU6XVFzpw4x/en/formalizing-sunni-islamic-theology-with-mathematics-and-lean-4?t=227) This is only the beginning, since, Uh, we did— while I'm speaking to you right now, there are dozens of AI agents running and out of nearly 8,000 candidates, that is, 8,000 theorems, or 8,000 proofs, or 8,000 definitions in the various books of “ilm al-kalam,” uh, in a corpus we created,

[4:07](https://www.translate.mom/transcript/dQU6XVFzpw4x/en/formalizing-sunni-islamic-theology-with-mathematics-and-lean-4?t=247) that are trying to f— formalize these theorems w— using the initial structure of our “mantek,” mathematically formalized, and verify them with this system.

[4:17](https://www.translate.mom/transcript/dQU6XVFzpw4x/en/formalizing-sunni-islamic-theology-with-mathematics-and-lean-4?t=257) But first, what we're going to publish now, tonight or tomorrow, later on, is, uh, a first document that's over 200 pages, a little under 250 pages, which contains the theory of knowledge, the foundations of ilahiyyat and the foundations of n- n- nubuwwat and a little bit about i'jaz,

[4:34](https://www.translate.mom/transcript/dQU6XVFzpw4x/en/formalizing-sunni-islamic-theology-with-mathematics-and-lean-4?t=274) Mathematically demonstrated, formally validated with this software.

[4:39](https://www.translate.mom/transcript/dQU6XVFzpw4x/en/formalizing-sunni-islamic-theology-with-mathematics-and-lean-4?t=279) And of course, this research method will be clarified since there are lots of little details.

[4:43](https://www.translate.mom/transcript/dQU6XVFzpw4x/en/formalizing-sunni-islamic-theology-with-mathematics-and-lean-4?t=283) I won't be able to explain that in a short video.

[4:46](https://www.translate.mom/transcript/dQU6XVFzpw4x/en/formalizing-sunni-islamic-theology-with-mathematics-and-lean-4?t=286) There are an enormous number of details, uh, which I'll describe and which we'll come back to.

[4:51](https://www.translate.mom/transcript/dQU6XVFzpw4x/en/formalizing-sunni-islamic-theology-with-mathematics-and-lean-4?t=291) And of course, we're open to hearing from everyone and able to talk with anyone who would like to, who has a connection to computer science, uh, theoretical computer science, or math, or theology.

[5:04](https://www.translate.mom/transcript/dQU6XVFzpw4x/en/formalizing-sunni-islamic-theology-with-mathematics-and-lean-4?t=304) We can discuss this and we're happy to present this project which we hope, inshallah, will be a starting foundation for something much bigger and much more ambitious for “ilm al-kalam” and for “aqida,” for theology and philosophy in general.

[5:18](https://www.translate.mom/transcript/dQU6XVFzpw4x/en/formalizing-sunni-islamic-theology-with-mathematics-and-lean-4?t=318) Uh, not all of philosophy, but a large part of philosophy, at least.

[5:23](https://www.translate.mom/transcript/dQU6XVFzpw4x/en/formalizing-sunni-islamic-theology-with-mathematics-and-lean-4?t=323) Praise be to God, and peace and blessings be upon our master Muhammad, the chosen Prophet, and upon his family and companions who followed his path till Judgment.
