Category Archives: Artificial intelligence

Symbolic artificial intelligence Wikipedia

2401 01040 Towards Cognitive AI Systems: a Survey and Prospective on Neuro-Symbolic AI

symbolic ai

If exposed to two dissimilar objects instead, the ducklings later prefer pairs that differ. Ducklings easily learn the concepts of “same” and “different” — something that artificial intelligence struggles to do. Editors now discuss training datasets and validation techniques that can be applied to both new and existing content at an unprecedented scale. Yet, while the underlying technology is similar, it is not like using ChatGPT from the OpenAI website simply because the brand owns the model and controls the data used across the entire workflow.

Somehow, the ducklings pick up and imprint on the idea of similarity, in this case the color of the objects. TDWI Members have access to exclusive research reports, publications, communities and training. Generative AI is a powerful tool for good as long as we keep a broader community involved and invert the ongoing trend of building extreme-scale AI models that are difficult to inspect and in the hands of a few labs. Additionally, there is a growing trend in the content industry toward creating interactive conversational applications prioritizing content quality and engagement rather than producing static content.

So to summarize, one of the main differences between machine learning and traditional symbolic reasoning is how the learning happens. In machine learning, the algorithm learns rules as it establishes correlations between inputs and outputs. In symbolic reasoning, the rules are created through human intervention and then hard-coded into a static program.

Neuro-symbolic approaches in artificial intelligence

Finally, symbolic AI is often used in conjunction with other AI approaches, such as neural networks and evolutionary algorithms. This is because it is difficult to create a symbolic AI algorithm that is both powerful and efficient. Since the program has logical rules, we can easily trace the conclusion to the root node, precisely understanding the AI’s path. For this reason, Symbolic AI has also been explored multiple times in the exciting field of Explainable Artificial Intelligence (XAI). A paradigm of Symbolic AI, Inductive Logic Programming (ILP), is commonly used to build and generate declarative explanations of a model. This process is also widely used to discover and eliminate physical bias in a machine learning model.

What is the difference between symbolic AI and machine learning?

In machine learning, the algorithm learns rules as it establishes correlations between inputs and outputs. In symbolic reasoning, the rules are created through human intervention and then hard-coded into a static program.

There are plenty of variations on this topic, and there is no “one true way” that the community can coalesce around. Recently, a workshop was organized at AAMAS-2023 (London, UK) to discuss how this definition should be broadened to also consider reasoning about agents. This article is a collection of ideas, opinions, and positions from computer scientists who were invited for a panel discussion at the workshop. Implementing Symbolic AI requires a structured approach, from the initial conceptualization to the final deployment of the system.

Common sense is not so common

Nevertheless, symbolic AI has proven effective in various fields, including expert systems, natural language processing, and computer vision, showcasing its utility despite the aforementioned constraints. Alessandro joined Bosch Corporate Research in 2016, after working as a postdoctoral fellow at Carnegie Mellon University. At Bosch, he focuses on neuro-symbolic reasoning for decision support systems.

symbolic ai

A hybrid approach, known as neurosymbolic AI, combines features of the two main AI strategies. In symbolic AI (upper left), humans must supply a “knowledge base” that the AI uses to answer questions. During training, they adjust the strength of the connections between layers of nodes. The hybrid uses deep nets, instead of humans, to generate only those portions of the knowledge base that it needs to answer a given question.

Use Cases of Neuro Symbolic AI

Alessandro’s primary interest is to investigate how semantic resources can be integrated with data-driven algorithms, and help humans and machines make sense of the physical and digital worlds. Alessandro holds a PhD in Cognitive Science from the University of Trento (Italy). Logical Neural Networks (LNNs) are neural networks that incorporate symbolic reasoning in their architecture. In the context of neuro-symbolic AI, LNNs serve as a bridge between the symbolic and neural components, allowing for a more seamless integration of both reasoning methods.

symbolic ai

Symbols can be organized into hierarchies (a car is made of doors, windows, tires, seats, etc.). They can also be used to describe other symbols (a cat with fluffy ears, a red carpet, etc.). For example, AI developers created many rule systems to characterize the rules people commonly use to make sense of the world. This resulted in AI systems that could help translate a particular symptom into a relevant diagnosis or identify fraud.

This approach, championed by pioneers such as John McCarthy, Allen Newell, and Herbert Simon, aimed to create AI systems that could emulate human-like reasoning and problem-solving capabilities. In summary, symbolic AI excels at human-understandable reasoning, while Neural Networks are better suited for handling large and complex data sets. Integrating both approaches, known as neuro-symbolic AI, can provide the best of both worlds, combining the strengths of symbolic AI and Neural Networks to form a hybrid architecture capable of performing a wider range of tasks.

They exhibit notable proficiency in processing unstructured data such as images, sounds, and text, forming the foundation of deep learning. Renowned for their adeptness in pattern recognition, neural networks can forecast or categorize based on historical instances. An everyday illustration of neural networks in action lies in image recognition.

Symbolic AI provides numerous benefits, including a highly transparent, traceable, and interpretable reasoning process. So, maybe we are not in a position yet to completely disregard Symbolic AI. Throughout the rest of this book, we will explore how we can leverage symbolic and sub-symbolic techniques in a hybrid approach to build a robust yet explainable model. Given a specific movie, we aim to build a symbolic program to determine whether people will watch it. At its core, the symbolic program must define what makes a movie watchable.

Approaches

Coupling may be through different methods, including the calling of deep learning systems within a symbolic algorithm, or the acquisition of symbolic rules during training. Very tight coupling can be achieved for example by means of Markov logics. In this overview, we provide a rough guide to key research directions, and literature pointers for anybody interested in learning more about the field. This integration enables the creation of AI systems that can provide human-understandable explanations for their predictions and decisions, making them more trustworthy and transparent. Neuro-symbolic AI blends traditional AI with neural networks, making it adept at handling complex scenarios. It combines symbolic logic for understanding rules with neural networks for learning from data, creating a potent fusion of both approaches.

In 2019, Kohli and colleagues at MIT, Harvard and IBM designed a more sophisticated challenge in which the AI has to answer questions based not on images but on videos. You can foun additiona information about ai customer service and artificial intelligence and NLP. The videos feature the types of objects that appeared in the CLEVR dataset, but these objects are moving and even colliding. The team solved the first problem by using a number of convolutional neural networks, a type of deep net that’s optimized for image recognition.

However, it can be advanced further by using symbolic reasoning to reveal more fascinating aspects of the item, such as its area, volume, etc. The excitement within the AI community lies in finding better ways to tinker with the integration between symbolic and neural network aspects. For example, DeepMind’s AlphaGo used symbolic techniques to improve the representation of game layouts, process them with neural networks and then analyze the results with symbolic techniques.

The offspring, which they call neurosymbolic AI, are showing duckling-like abilities and then some. “It’s one of the most exciting areas in today’s machine learning,” says Brenden Lake, a computer and cognitive scientist at New York University. In NLP, symbolic AI contributes to machine translation, question answering, and information retrieval by interpreting text. For knowledge representation, it underpins expert systems and decision support systems, organizing and accessing information efficiently. In planning, symbolic AI is crucial for robotics and automated systems, generating sequences of actions to meet objectives.

Additionally, if new symptoms or diseases emerge that aren’t explicitly covered by the rules, the system will be unable to adapt without manual intervention to update its rule set. Planning is used in a variety of applications, including robotics and automated planning. Symbolic AI systems are only as good as the knowledge that is fed into them. If the knowledge is incomplete or inaccurate, the results of the AI system will be as well. The main limitation of symbolic AI is its inability to deal with complex real-world problems. Symbolic AI is limited by the number of symbols that it can manipulate and the number of relationships between those symbols.

Other potential use cases of deeper neuro-symbolic integration include improving explainability, labeling data, reducing hallucinations and discerning cause-and-effect relationships. AI neural networks are modeled after the statistical properties of interconnected neurons in the human brain and brains of other animals. In the case of images, this could include identifying features such as edges, shapes and objects. Most machine learning techniques employ various forms of statistical processing.

They can simplify sets of spatiotemporal constraints, such as those for RCC or Temporal Algebra, along with solving other kinds of puzzle problems, such as Wordle, Sudoku, cryptarithmetic problems, and so on. Constraint logic programming can be used to solve scheduling problems, for example with constraint handling rules (CHR). Expert systems can operate in either a forward chaining – from evidence to conclusions – or backward chaining – from goals to needed data and prerequisites – manner. More advanced knowledge-based systems, such as Soar can also perform meta-level reasoning, that is reasoning about their own reasoning in terms of deciding how to solve problems and monitoring the success of problem-solving strategies. RAAPID’s neuro-symbolic AI is a quantum leap in risk adjustment, where AI can more accurately model human thought processes. This reflects our commitment to evolving with the need for positive risk adjustment outcomes through superior data intelligence.

The researchers broke the problem into smaller chunks familiar from symbolic AI. In essence, they had to first look at an image and characterize the 3-D shapes and their properties, and generate a knowledge base. Then they had to turn an English-language question into a symbolic program that could operate on the knowledge base and produce an answer. The unlikely marriage of two major artificial intelligence approaches has given rise to a new hybrid called neurosymbolic AI. It’s taking baby steps toward reasoning like humans and might one day take the wheel in self-driving cars.

A separate inference engine processes rules and adds, deletes, or modifies a knowledge store. Recently, awareness is growing that explanations should not only rely on raw system inputs but should reflect background knowledge. In the days to come, as we  look into the future, it becomes evident that ‘Neuro-Symbolic AI harbors the potential to propel the AI field forward significantly.

Expert Panel: Governing Multicloud Environments

Using LLMs to extract and organize knowledge from unstructured data, we can enrich the data in a knowledge graph and bring additional insights to our SEO’s automated workflows. As noted by the brilliant Tony Seale, as GPT models are trained on a vast amount of structured data, they can be used to analyze content and turn it into structured data. Symbolic AI, a subfield of AI focused on symbol manipulation, has its limitations.

(Speech is sequential information, for example, and speech recognition programs like Apple’s Siri use a recurrent network.) In this case, the network takes a question and transforms it into a query in the form of a symbolic program. The output of the recurrent network is also used to decide on which convolutional networks are tasked to look over the image and in what order. This entire process is akin to generating symbolic ai a knowledge base on demand, and having an inference engine run the query on the knowledge base to reason and answer the question. The interplay between these two components is where Neuro-Symbolic AI shines. It can, for example, use neural networks to interpret a complex image and then apply symbolic reasoning to answer questions about the image’s content or to infer the relationships between objects within it.

  • By leveraging the strengths of both paradigms, researchers aim to create AI systems that can better understand, reason about, and interact with the complex and dynamic world around us.
  • Through logical rules, Symbolic AI systems can efficiently find solutions that meet all the required constraints.
  • The next wave of innovation will involve combining both techniques more granularly.
  • The main objective of Symbolic AI is the explicit embedding of human knowledge, behavior, and “thinking rules” into a computer or machine.

It aims for revolution rather than development and building new paradigms instead of a superficial synthesis of existing ones. Researchers investigated a more data-driven strategy to address these problems, which gave rise to neural networks’ appeal. While symbolic AI requires constant information input, neural networks could train on their own given a large enough dataset. Although everything was functioning perfectly, as was already noted, a better system is required due to the difficulty in interpreting the model and the amount of data required to continue learning.

An early overview of the proposals coming from both the US and the EU demonstrates the importance for any organization to keep control over security measures, data control, and the responsible use of AI technologies. In other words, I do expect, also, compliance with the upcoming regulations, less dependence on external APIs, and stronger support for open-source technologies. This basically means that organizations with a semantic representation of their data will have stronger foundations to develop their generative AI strategy and to comply with the upcoming regulations. The following resources provide a more in-depth understanding of neuro-symbolic AI and its application for use cases of interest to Bosch.

In this view, deep learning best models the first kind of thinking while symbolic reasoning best models the second kind and both are needed. Like in so many other respects, deep learning has had a major impact on neuro-symbolic AI in recent years. This appears to manifest, on the one hand, in an almost exclusive emphasis on deep learning approaches as the neural substrate, while previous neuro-symbolic AI research often deviated from standard artificial neural network architectures [2]. However, we may also be seeing indications or a realization that pure deep-learning-based methods are likely going to be insufficient for certain types of problems that are now being investigated from a neuro-symbolic perspective. In this context, a Neuro-Symbolic AI system would employ a neural network to learn object recognition from data, such as images captured by the car’s cameras. Additionally, it would utilize a symbolic system to reason about these recognized objects and make decisions aligned with traffic rules.

Beyond Transformers: Symbolica launches with $33M to change the AI industry with symbolic models – SiliconANGLE News

Beyond Transformers: Symbolica launches with $33M to change the AI industry with symbolic models.

Posted: Tue, 09 Apr 2024 07:00:00 GMT [source]

With such levels of abstraction in our physical world, some knowledge is bound to be left out of the knowledge base. The human mind subconsciously creates symbolic and subsymbolic representations of our environment. Objects in the physical world are abstract and often have varying degrees of truth based on perception and interpretation. We can do this because our minds take real-world objects and abstract concepts and decompose them into several rules and logic.

Then, we must express this knowledge as logical propositions to build our knowledge base. Following this, we can create the logical propositions for the individual movies and use our knowledge base to evaluate the said logical propositions as either TRUE or FALSE. The tremendous success of deep learning systems is forcing researchers to examine the theoretical principles that underlie how deep nets learn. Researchers are uncovering the connections between deep nets and principles in physics and mathematics. Lake and other colleagues had previously solved the problem using a purely symbolic approach, in which they collected a large set of questions from human players, then designed a grammar to represent these questions.

If you ask it questions for which the knowledge is either missing or erroneous, it fails. In the emulated duckling example, the AI doesn’t know whether a pyramid and cube are similar, because a pyramid doesn’t exist in the knowledge base. To reason effectively, therefore, symbolic AI needs large knowledge bases that have been painstakingly built using human expertise. Neuro-symbolic AI is designed to capitalize on the strengths of each approach to overcome their respective weaknesses, leading to AI systems that can both reason with human-like logic and adapt to new situations through learning. The tangible objective is to enhance trust in AI systems by improving reasoning, classification, prediction, and contextual understanding. Large language models (LLMs) have been trained on massive datasets of text, code, and structured data.

Symbolic AI, a branch of artificial intelligence, specializes in symbol manipulation to perform tasks such as natural language processing (NLP), knowledge representation, and planning. These algorithms enable machines to parse and understand human language, manage complex data in knowledge bases, and devise strategies to achieve specific goals. Symbolic AI, also known as Good Old-Fashioned Artificial Intelligence (GOFAI), is a paradigm in artificial intelligence research that relies on high-level symbolic representations of problems, logic, and search to solve complex tasks. A. Deep learning is a subfield of neural AI that uses artificial neural networks with multiple layers to extract high-level features and learn representations directly from data.

Note that implicit knowledge can eventually be formalized and structured to become explicit knowledge. For example, if learning to ride a bike is implicit knowledge, writing a step-by-step guide on how to ride a bike becomes explicit knowledge. Fulton and colleagues are working on a neurosymbolic AI approach to overcome such limitations.

• Rule-based reasoning in a manner that support uncertainty, open-world reasoning, non-ground rules, quantification, etc., agnostic to selection of t-norm, etc. Despite its strengths, Symbolic AI faces significant challenges in knowledge acquisition and maintenance, primarily due to the need for explicit encoding of knowledge by domain experts. They are our statement’s primary subjects and the components we must model our logic around. We typically use predicate logic to define these symbols and relations formally – more on this in the A quick tangent on Boolean logic section later in this chapter. Before we proceed any further, we must first answer one crucial question – what is intelligence? Intelligence tends to become a subjective concept that is quite open to interpretation.

Symbolic AI algorithms are used in a variety of AI applications, including knowledge representation, planning, and natural language processing. Symbolic AI, a fascinating subfield of artificial intelligence, stands out by focusing on the manipulation and processing of symbols and concepts rather than numerical data. This unique approach allows for the representation of objects and ideas in a way that’s remarkably similar to human thought processes. Symbolic AI is one of the earliest forms based on modeling the world around us through explicit symbolic representations. This chapter discussed how and why humans brought about the innovation behind Symbolic AI.

Dr. Jans Aasman, CEO of Franz, Inc., explains the benefits, downsides, and use cases of neuro-symbolic AI as well as how to know it’s time to consider the technology for your enterprise. We are currently exploring various AI-driven experiences designed to assist news and media publishers and eCommerce shop owners. These experiences leverage data from a knowledge graph and employ LLMs with in-context transfer learning. In line with our commitment to accuracy and trustworthiness, we also incorporate advanced fact-checking mechanisms, as detailed in our recent article on AI-powered fact-checking. This article serves as a practical demonstration of this innovative concept and offers a sneak peek into the future of agentive SEO in the era of generative AI.

What is beyond limits symbolic AI?

Beyond Limits' Hybrid AI platform combines game-changing Symbolic AI reasoner technology with Numeric AI (Machine Learning, Neural networks and Deep Learning) models and Generative AI to transform knowledge and operational data into intelligent inferences, decisioning workflows and actionable recommendations for …

A. Symbolic AI, also known as classical or rule-based AI, is an approach that represents knowledge using explicit symbols and rules. It emphasizes logical reasoning, manipulating symbols, and making inferences based on predefined rules. Neural AI focuses on learning patterns from data and making predictions or decisions based on the learned knowledge. It excels at tasks such as image and speech recognition, natural language processing, and sequential data analysis. Neural AI is more data-driven and relies on statistical learning rather than explicit rules. Neuro-symbolic artificial intelligence can be defined as the subfield of artificial intelligence (AI) that combines neural and symbolic approaches.

Modern generative search engines are becoming a reality as Google is rolling out a richer user experience that supercharges search by introducing a dialogic experience providing additional context and sophisticated semantic personalization. We have changed how we access and use information since the introduction of ChatGPT, Bing Chat, Google Bard, and a superabundance of conversational agents powered by large language models. Discover the fascinating fusion of knowledge graphs and LLMs in Neuro-symbolic AI, unlocking new frontiers of understanding and intelligence. Despite its early successes, Symbolic AI has limitations, particularly when dealing with ambiguous, uncertain knowledge, or when it requires learning from data. It is often criticized for not being able to handle the messiness of the real world effectively, as it relies on pre-defined knowledge and hand-coded rules. By combining learning and reasoning, these systems could potentially understand and interact with the world in a way that is much closer to how humans do.

Samuel’s Checker Program[1952] — Arthur Samuel’s goal was to explore to make a computer learn. The program improved as it played more and more games and ultimately defeated its own creator. In 1959, it defeated the best player, This created a fear of AI dominating AI.

Is symbolic AI still used?

While deep learning and neural networks have garnered substantial attention, symbolic AI maintains relevance, particularly in domains that require transparent reasoning, rule-based decision-making, and structured knowledge representation.

This chapter aims to understand the underlying mechanics of https://chat.openai.com/, its key features, and its relevance to the next generation of AI systems. A few years ago, scientists learned something remarkable about mallard ducklings. If one of the first things the ducklings see after birth is two objects that are similar, the ducklings will later follow new pairs of objects that are similar, too. Hatchlings shown two red spheres at birth will later show a preference for two spheres of the same color, even if they are blue, over two spheres that are each a different color.

Neural networks are

exceptional at tasks like image and speech recognition, where they can identify patterns and nuances that are not explicitly coded. On the other hand, the symbolic component is concerned with structured knowledge, logic, and rules. It leverages databases of knowledge (Knowledge Graphs) and rule-based systems to perform reasoning and generate explanations for its decisions.

Although we maintain a human-in-the-loop system to handle edge cases and continually refine the model, we’re paving the way for content teams worldwide, offering them an innovative tool to interact and connect with their users. Unstructured data is any type of data that does not have a predefined structure, such as text, images, and videos. This data type can be difficult to understand and process using traditional methods. However, LLMs can be used to extract and organize knowledge from unstructured data in a number of ways.

These symbols can represent objects, concepts, or situations, and the rules define how these symbols can be manipulated or combined to derive new knowledge or make inferences. The reasoning process is typically based on formal logic, allowing the AI system to make conclusions based on the given knowledge. So, while naysayers may decry the addition of symbolic modules to deep learning as unrepresentative of how our brains work, proponents of neurosymbolic AI see its modularity as a strength when it comes to solving practical problems. “When you have neurosymbolic systems, you have these symbolic choke points,” says Cox. These choke points are places in the flow of information where the AI resorts to symbols that humans can understand, making the AI interpretable and explainable, while providing ways of creating complexity through composition.

Symbolic AI encodes knowledge through a detailed process of symbol manipulation, where each symbol correlates with real-world entities or ideas. This representation method allows Symbolic AI systems to perform reasoning tasks by applying logical rules to these symbols. For the first method, called supervised learning, the team showed the deep nets numerous examples of board positions and the corresponding “good” questions (collected from human players). The deep nets eventually learned to ask good questions on their own, but were rarely creative.

With its combination of deep learning and logical inference, neuro-symbolic AI has the potential to revolutionize the way we interact with and understand AI systems. Neuro Symbolic AI is an interdisciplinary field that combines neural networks, which are a part of deep learning, with symbolic reasoning techniques. It aims to bridge the gap between symbolic reasoning and statistical learning by integrating the strengths of both approaches. This hybrid approach enables machines to reason symbolically while also leveraging the powerful pattern recognition capabilities of neural networks. Neuro-Symbolic AI represents a significant step forward in the quest to build AI systems that can think and learn like humans.

symbolic ai

Chat GPT is widely adopted throughout the banking and insurance industries to automate processes such as contract reading. Another recent example of logical inferencing is a system based on the physical activity guidelines provided by the World Health Organization (WHO). Since the procedures are explicit representations (already written down and formalized), Symbolic AI is the best tool for the job. When given a user profile, the AI can evaluate whether the user adheres to these guidelines. We might teach the program rules that might eventually become irrelevant or even invalid, especially in highly volatile applications such as human behavior, where past behavior is not necessarily guaranteed. Even if the AI can learn these new logical rules, the new rules would sit on top of the older (potentially invalid) rules due to their monotonic nature.

Using a simple statement as an example, we discussed the fundamental steps required to develop a symbolic program. An essential step in designing Symbolic AI systems is to capture and translate world knowledge into symbols. We discussed the process and intuition behind formalizing these symbols into logical propositions by declaring relations and logical connectives. As we got deeper into researching and innovating the sub-symbolic computing area, we were simultaneously digging another hole for ourselves.

By delving into the genesis, functionalities, and potential applications of Neuro-Symbolic AI, we uncover its transformative impact on various domains, including risk adjustment in clinical settings. Symbolic AI has been used in a wide range of applications, including expert systems, natural language processing, and game playing. It can be difficult to represent complex, ambiguous, or uncertain knowledge with symbolic AI. Furthermore, symbolic AI systems are typically hand-coded and do not learn from data, which can make them brittle and inflexible. Symbolic AI algorithms are used in a variety of applications, including natural language processing, knowledge representation, and planning. Symbolic AI, with its unique approach to artificial intelligence, operates on a fundamentally different paradigm compared to its data-driven counterparts.

We do this using our biological neural networks, apparently with no dedicated symbolic component in sight. “I would challenge anyone to look for a symbolic module in the brain,” says Serre. He thinks other ongoing efforts to add features to deep neural networks that mimic human abilities such as attention offer a better way to boost AI’s capacities. In conclusion, neuro-symbolic AI is a promising field that aims to integrate the strengths of both neural networks and symbolic reasoning to form a hybrid architecture capable of performing a wider range of tasks than either component alone.

But the benefits of deep learning and neural networks are not without tradeoffs. Deep learning has several deep challenges and disadvantages in comparison to symbolic AI. Notably, deep learning algorithms are opaque, and figuring out how they work perplexes even their creators.

Semantic networks, conceptual graphs, frames, and logic are all approaches to modeling knowledge such as domain knowledge, problem-solving knowledge, and the semantic meaning of language. DOLCE is an example of an upper ontology that can be used for any domain while WordNet is a lexical resource that can also be viewed as an ontology. YAGO incorporates WordNet as part of its ontology, to align facts extracted from Wikipedia with WordNet synsets.

What is the programming language for symbolic AI?

Prolog, which stands for “Programming in Logic,” is a language designed for AI's more specific needs, particularly in symbolic reasoning, problem-solving, and pattern matching. Unlike imperative languages that follow a sequence of commands, Prolog is declarative, focusing on the relationship between facts and rules.

What are the advantages of symbolic AI?

Advantages of Symbolic AI in Problem-Solving

Symbolic AI excels at tackling structured problem domains that require logical reasoning and explicit knowledge representation. It enables transparent and explainable decision-making processes, providing insights into the reasoning behind AI system's conclusions.

What is symbolic expression in AI?

Symbolic Artificial Intelligence – What is symbolic expression in AI? In artificial intelligence programming, symbolic expressions, or s-expressions, are the syntactic components of Lisp. Depending on whether they are expressing data or functions, s-expressions in Lisp can be seen as either atoms or lists.