Kick off your book project in 2 hours, get started with GhostAI in 2 hours, or do both! Free live workshops, on Zoom. You’ll leave with a real book project and a clear plan to keep going. Saturday, June 27, 2026.

Leanpub Header

Skip to main content

Discrete Mathematics Foundations for Computer Science and Symbolic Artificial Intelligence

Build a solid mathematical foundation for computer science and symbolic artificial intelligence. Explore sets, relations, combinatorial probability, arithmetic structures, information encoding, and numeration systems through a rigorous yet accessible approach that connects mathematical theory to real-world computational applications.

Minimum price

$19.00

$29.00

You pay

Author earns

$

Also available for 1 book credit with a Reader Membership

PDF
About

About

About the Book

Mathematics lies at the heart of computer science and symbolic artificial intelligence. Behind every algorithm, data structure, inference engine, expert system, or knowledge representation model lies a set of mathematical principles that make formal reasoning, computation, and intelligent decision-making possible.

Discrete Mathematics Foundations for Computer Science and Symbolic Artificial Intelligence provides a solid yet accessible introduction to the mathematical concepts that underpin modern computing and symbolic AI. Designed for students, educators, software engineers, artificial intelligence practitioners, and lifelong learners, the book bridges the gap between abstract mathematical theory and its practical role in computational systems.

The volume begins by establishing the conceptual relationship between computer science, symbolic artificial intelligence, and discrete mathematics. It then develops the essential foundations of set theory, relations, functions, cardinality, combinatorial probability, arithmetic structures, information encoding, numeration systems, and binary computation. Throughout the book, each concept is systematically connected to its applications in computer science and symbolic artificial intelligence, enabling readers to understand not only the mathematics itself but also its significance in real-world computational contexts.

Unlike traditional mathematics textbooks that often emphasize theory in isolation, this work adopts an integrated perspective in which mathematical structures are continuously related to algorithmic thinking, knowledge representation, reasoning systems, symbolic learning, uncertainty management, information processing, and intelligent decision support.

The book contains numerous examples, illustrations, exercises, and fully developed solutions designed to reinforce understanding and promote active learning. Whether used as a university textbook, a self-study resource, or a professional reference, it provides a solid foundation for further study in mathematical logic, artificial intelligence, data structures, algorithms, software engineering, and advanced computing disciplines.

As the first volume of The Mathematics for Computer Science and Symbolic Artificial Intelligence Series, this book establishes the mathematical foundations upon which subsequent volumes develop logical reasoning, symbolic inference, knowledge representation, graphs, trees, and intelligent computational structures.

If you seek to understand not only how computer systems operate, but also the mathematical principles that make computation, reasoning, and symbolic intelligence possible, this book provides a comprehensive and structured pathway toward that goal.

Share this book

Author

About the Author

Aimé Mbobi, Ph.D.

Aimé M. Mbobi, Ph.D., is a telecommunications engineer, computer scientist, professor, researcher, technology executive, and author with more than three decades of experience in higher education, research, and the ICT industry. He holds degrees from IMT Nord Europe, the University of Lille, the École des Mines de Paris, and Paris-Saclay University. His work focuses on programming, software engineering, telecommunications, artificial intelligence, scientific computing, data structures and algorithms, numerical methods, and applied mathematics. Through his books, he seeks to combine rigorous academic foundations, comparative analysis, and real-world industrial experience to help learners develop strong technical and problem-solving skills.

Contents

Table of Contents

Table of Contents

  • Preface — 11
  • Chapter 1 - Computational and Mathematical Foundations of Symbolic Artificial Intelligence — 15
    • 1.1 Introduction — 15
    • 1.2 Computer Science as a Science of Representation, Formalization, and Processing — 16
      • 1.2.1 Nature and Object of Computer Science — 16
      • 1.2.2 Representation, Algorithms, and Formalization — 16
      • 1.2.3 Logical, Linguistic, and Structural Foundations — 17
      • 1.2.4 Computer Science, Systems, and Execution Environments — 17
      • 1.2.5 Computer Science and the Scope of Discrete Mathematics — 17
    • 1.3 Symbolic Artificial Intelligence as a Formal Extension of Computer Science — 18
      • 1.3.1 General Definition of Artificial Intelligence — 18
      • 1.3.2 Computational Anchoring of Artificial Intelligence — 18
      • 1.3.3 From Artificial Intelligence in General to Symbolic Artificial Intelligence — 18
      • 1.3.4 Knowledge Representation, Rules, and Reasoning — 19
      • 1.3.5 Transparency, Explainability, and Methodological Value — 19
      • 1.3.6 Brief Perspective on Other Paradigms — 19
    • 1.4 Discrete Mathematics: Nature, Object, and Specificity — 22
      • 1.4.1 General Definition — 22
      • 1.4.2 Difference Between Discrete Mathematics and Continuous Mathematics — 22
      • 1.4.3 Objects, Structures, and Modes of Reasoning — 22
      • 1.4.4 Major Domains of Discrete Mathematics — 23
      • 1.4.5 Intellectual Function and Formative Value — 23
    • 1.5 Discrete Mathematics at the Foundation of Computer Science — 23
    • 1.6 Discrete Mathematics at the Foundation of Symbolic Artificial Intelligence — 24
    • 1.7 Intersections, Complementarities, and the Guiding Line of the Book — 24
    • 1.8 Conclusion and Transition to Set Theory — 25
  • Chapter 2 - Set Theory, Mappings, and Relations — 27
    • 2.1 Introduction — 27
    • 2.2 Sets — 27
      • 2.2.1 Definition and Notation — 27
      • 2.2.2 Representation — 28
      • 2.2.3 Subsets — 29
      • 2.2.4 Equal Sets — 29
      • 2.2.5 Fundamental Conventions — 30
      • 2.2.6 Power Set — 30
      • 2.2.7 Cartesian Product — 30
    • 2.3 Operations on Sets — 31
      • 2.3.1 Intersection — 31
      • 2.3.2 Union — 32
      • 2.3.3 Complements — 32
    • 2.4 Properties of ∪ and ∩ Operators — 33
      • 2.4.1 Idempotence — 34
      • 2.4.2 Commutativity — 34
      • 2.4.3 Associativity — 34
      • 2.4.4 Distributivity — 34
      • 2.4.5 Properties Involving ∅and U — 35
      • 2.4.6 De Morgan’s Laws — 35
    • 2.5 Mappings — 36
      • 2.5.1 Definition — 36
      • 2.5.2 Injection — 37
      • 2.5.3 Surjection — 37
      • 2.5.4 Bijection — 38
    • 2.6 Relations — 38
      • 2.6.1 Properties of Relations — 39
      • 2.6.2 Particular Types of Relations — 40
    • 2.7 Set Theory in Artificial Intelligence — 41
      • 2.7.1 Knowledge Representation Based on Sets — 42
      • 2.7.2 Equivalence Relations and Classification — 42
      • 2.7.3 Inference Systems and Rule Bases — 42
      • 2.7.4 Symbolic Learning and Induction — 43
    • 2.8 Conclusion of the Chapter — 43
    • 2.9 Exercises — 45
    • 2.10 Solutions — 48
  • Chapter 3 - Cardinality and Combinatorics — 55
    • 3.1 Introduction — 55
    • 3.2 Cardinality of a Set — 56
      • 3.2.1 Definition and Notation — 56
      • 3.2.2 Cardinality of a Cartesian Product — 56
      • 3.2.3 Operations on Cardinalities — 57
    • 3.3 Finite and Countable Sets — 60
      • 3.3.1 Finite Sets — 60
      • 3.3.2 Countable Sets — 60
      • 3.3.3 Fundamental Theorems on Countable Sets — 61
    • 3.4 Combinatorics — 62
      • 3.4.1 Permutations — 62
      • 3.4.2 Arrangements — 62
      • 3.4.3 Combinations — 63
      • 3.4.4 Pascal’s Triangle — 65
      • 3.4.5 Newton’s Binomial Formula — 65
    • 3.5 Combinatorics in Artificial Intelligence — 67
      • 3.5.1 Combinatorial Search and Optimization — 67
    • 3.6 Conclusion of the Chapter — 67
    • 3.7 Exercises — 69
    • 3.8 Solutions — 72
  • Chapter 4 - Combinatorial Probability — 79
    • 4.1 Introduction — 79
    • 4.2 Fundamental Definitions — 79
      • 4.2.1 Random Experiment — 80
      • 4.2.2 Elementary Event or Trial — 80
      • 4.2.3 Sample Space — 80
      • 4.2.4 Random Event — 81
      • 4.2.5 Inclusion — 82
      • 4.2.6 Complement — 82
      • 4.2.7 Intersection — 82
      • 4.2.8 Mutual Exclusion or Incompatibility — 83
      • 4.2.9 Union — 83
      • 4.2.10 Symmetric Difference — 84
    • 4.3 Boolean Algebra — 85
    • 4.4 Axioms and Fundamental Properties of Probability — 86
      • 4.4.1 Kolmogorov’s Axioms — 86
      • 4.4.2 Axiomatic Definition — 87
      • 4.4.3 Mathematical Scope of the Axioms — 90
      • 4.4.4 Equiprobability — 91
      • 4.4.5 Probability of an Event — 91
      • 4.4.6 Scope of Equiprobability — 92
    • 4.5 Conditional Probability and Independence — 93
    • 4.6 Independence of Two Events — 95
    • 4.7 Probability of a Cause: Bayes’ Formula — 96
      • 4.7.1 General Statement — 97
      • 4.7.2 Example: Probabilistic Identification of a Faulty Server Type — 97
      • 4.7.3 Special Case: Two Complementary Hypotheses — 98
      • 4.7.4 Scope of Bayes’ Formula — 100
    • 4.8 Combinatorial Probability and Artificial Intelligence — 100
      • 4.8.1 Modeling Uncertain Events — 101
      • 4.8.2 Reasoning Under Uncertainty and Bayes’ Formula — 101
      • 4.8.3 Probabilistic Models in Machine Learning — 102
      • 4.8.4 Representation and Processing of Random Sets — 103
      • 4.8.5 Scope of Combinatorial Probability for Artificial Intelligence — 103
    • 4.9 Conclusion of the Chapter — 104
    • 4.10 Exercises — 105
    • 4.11 Solutions — 108
  • Chapter 5 - Arithmetic — 123
    • 5.1 Introduction — 123
    • 5.2 Euclidean Division — 124
      • 5.2.1 Euclidean Division Theorem — 124
      • 5.2.2 Theorem on Linear Combinations and Divisibility — 125
    • 5.3 Prime Numbers — 126
      • 5.3.1 Definition — 126
      • 5.3.2 Prime Factorization of a Number — 127
      • 5.3.3 Representing the Prime Factorization of a Number — 128
      • 5.3.4 Example: Factorization of the Number 54 — 128
      • 5.3.5 Mathematical and Computational Significance of Prime Numbers — 129
    • 5.4 Greatest Common Divisor — 130
      • 5.4.1 Definition — 130
      • 5.4.2 Computing the GCD by Prime Factorization — 130
      • 5.4.3 Arithmetic and Computational Scope of the GCD — 133
    • 5.5 Computing the GCD by Euclid’s Algorithm — 133
      • 5.5.1 Principle — 133
      • 5.5.2 Fundamental Remark — 134
      • 5.5.3 Algorithmic Scope — 135
      • 5.5.4 Properties of the GCD — 135
      • 5.5.5 Gauss’s theorem — 137
      • 5.5.6 Commentary — 137
    • 5.6 Least Common Multiple — 138
      • 5.6.1 Definition — 138
      • 5.6.2 Computing the LCM by Prime Factorization — 138
      • 5.6.3 Bézout’s Identity — 140
      • 5.6.4 Relation with the GCD — 144
    • 5.7 Arithmetic and Artificial Intelligence: Symbolic Foundations and Algorithmic Applications — 145
      • 5.7.1 Modular Arithmetic and Cryptography for Artificial Intelligence — 145
      • 5.7.2 GCD, LCM, and Logical Reasoning — 145
      • 5.7.3 Symbolic Learning, Divisibility, and Gauss’s Theorem — 146
      • 5.7.4 Algorithmic Programming in Artificial Intelligence — 147
      • 5.7.5 Synthesis — 147
    • 5.8 Conclusion of the Chapter — 147
    • 5.9 Exercises — 149
    • 5.10 Solutions — 151
  • Chapter 6 - Information Encoding and Numeration — 163
    • 6.1 Introduction — 163
    • 6.2 Numeration Systems — 164
      • 6.2.1 Concept of a Digit — 164
      • 6.2.2 Format of a Word — 164
      • 6.2.3 Decimal System (Base 10) — 165
      • 6.2.4 Binary System (Base 2) — 165
      • 6.2.5 Octal System (Base 8) — 166
      • 6.2.6 Hexadecimal System (Base 16) — 166
      • 6.2.7 Mathematical and Computational Scope of Numeration Systems — 167
    • 6.3 Change of Base — 168
      • 6.3.1 Decomposing a Decimal Number in Base 10 — 168
      • 6.3.2 Determining the Number of Fractional Digits After the Decimal Point — 171
      • 6.3.3 Converting from Base 10 to an Arbitrary Base — 173
      • 6.3.4 Conversion from an Arbitrary Base to Base 10 — 176
      • 6.3.5 Mutual Conversion Among Binary, Octal, and Hexadecimal — 177
      • 6.3.6 Mathematical and Computational Scope of Base Conversion — 179
    • 6.4 Binary Arithmetic — 180
      • 6.4.1 General Considerations — 180
      • 6.4.2 Management of Carries and Overflows — 180
      • 6.4.3 Arithmetic Operations in Binary — 181
      • 6.4.4 Mathematical and Computational Scope of Binary Arithmetic — 185
      • 6.4.5 Information Encoding and Numerical Representation in Artificial Intelligence — 185
      • 6.4.6 Binary Representation and Symbolic Processing — 186
      • 6.4.7 Base Conversion and Compatibility Between Software Layers — 186
      • 6.4.8 Binary Arithmetic in Neural Networks and Machine Learning — 187
      • 6.4.9 Information Encoding and the Processing of Symbolic Strings — 187
      • 6.4.10 Numeration and Symbolic Artificial Intelligence: Toward Formal Cognition — 188
      • 6.4.11 Synthesis — 188
    • 6.5 Conclusion of the Chapter — 188
    • 6.6 Exercises — 190
    • 6.7 Solutions — 193
  • About the Author — 201
  • The Mathematics for Computer Science and Symbolic Artificial Intelligence Series — 202
  • Author’s Publishing Collections — 203

The Leanpub 60 Day 100% Happiness Guarantee

Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

See full terms...

Earn $8 on a $10 Purchase, and $16 on a $20 Purchase

We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.

(Yes, some authors have already earned much more than that on Leanpub.)

In fact, authors have earned over $15 million writing, publishing and selling on Leanpub.

Learn more about writing on Leanpub

Free Updates. DRM Free.

If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).

Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.

Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.

Learn more about Leanpub's ebook formats and where to read them

Write and Publish on Leanpub

You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!

Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.

Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.

Learn more about writing on Leanpub