Formal Methods in Computer Science
eBook - ePub

Formal Methods in Computer Science

  1. 350 pages
  2. English
  3. ePUB (mobile friendly)
  4. Available on iOS & Android
eBook - ePub

Formal Methods in Computer Science

About this book

This textbook gives students a comprehensive introduction to formal methods and their application in software and hardware specification and verification. It has three parts: The first part introduces some fundamentals in formal methods, including set theory, functions, finite state machines, and regular expressions. The second part focuses on logi

Frequently asked questions

Yes, you can cancel anytime from the Subscription tab in your account settings on the Perlego website. Your subscription will stay active until the end of your current billing period. Learn how to cancel your subscription.
No, books cannot be downloaded as external files, such as PDFs, for use outside of Perlego. However, you can download books within the Perlego app for offline reading on mobile or tablet. Learn more here.
Perlego offers two plans: Essential and Complete
  • Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
  • Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.4M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
Both plans are available with monthly, semester, or annual billing cycles.
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 1000+ topics, we’ve got you covered! Learn more here.
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more here.
Yes! You can use the Perlego app on both iOS or Android devices to read anytime, anywhere — even offline. Perfect for commutes or when you’re on the go.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app.
Yes, you can access Formal Methods in Computer Science by Jiacun Wang in PDF and/or ePUB format, as well as other popular books in Computer Science & Computer Engineering. We have over one million books available in our catalogue for you to explore.
1
Set Theory and Functions
The concepts of a set and that of a function are well known to most people in an informal manner. After all, it doesn’t take a mathematical genius to talk about a tea set as having four cups, four saucers, a tea pot, a sugar bowl, and a creamer. Anyone who has studied basic algebra in high school knows that the square function applied to a number x produces a number y such that x times x = y. These are nice informal everyday understandings for sets and functions. However, this informal understanding is not sufficient to generate unambiguous and detailed specifications for use in describing a program.
To be useful in specifying programs and systems, a deeper and more formal understanding of these two concepts is necessary. It requires the clarity, specificity, and precision of mathematics to unambiguously specify the procedures, operations, and functions of a computer program.
In this chapter, set theory and functions are introduced and defined. The introduction uses simple language to define the key concepts in a naïve formalism, rather than a strictly logical formal definition. The formal definition of sets and functions requires symbolic logic, which is introduced in a later chapter. Sets and functions will be revisited using a logic-based formalism. This chapter addresses two basic questions:
1. What is a set?
2. What is a function?
Examples of where sets and functions can be used in specifying program behavior will be given.
1.1 Basic Set Definitions
The exploration of set theory begins by establishing a simple vocabulary that allows for discussion of the concepts without an excessive burden of mathematics. It slowly develops the mathematics of sets as the chapter progresses.
A set is an abstract collection of distinct objects. A set, denoted by {}, exists as an abstraction for some collection of objects where the collection is treated as a whole. It is an object in its own right, albeit an abstract object. For example, a flock of birds (i.e., a set of birds) treats the entire collection of birds as a single entity although it is made up of individual birds.
An object that is part of a collection is an element or member of the set. The terms element and member are used interchangeably. This book gives preference to the term member. A member of a set is shown within the curly braces. The set containing the three colors RED, GREEN, YELLOW is {RED, GREEN, YELLOW}. The curly braces indicate the set and the values between the curly braces are the members of that set. The member can be an abstraction (e.g., a word, number, or even another set) or a concrete thing (e.g., car, plane, or teacup).
Membership in a set is an all-or-nothing kind of deal. A thing is either a member of the set or it isn’t. It can’t be a partial member or be a member m...

Table of contents

  1. Cover
  2. Half Title
  3. Title Page
  4. Copyright Page
  5. Table of Contents
  6. Preface
  7. Acknowledgments
  8. Authors
  9. 1. Set Theory and Functions
  10. 2. Finite State Machine
  11. 3. Regular Expressions and Languages
  12. 4. Propositional Logic
  13. 5. Predicate Logic
  14. 6. Temporal Logic
  15. 7. Formal Verification by Model Checking
  16. 8. Petri Nets
  17. 9. Timed Petri Nets
  18. 10. Colored Petri Nets
  19. Index