La IA y la infinitud de números pares que terminan en 7

Leyendo la charla de Kevin Buzzard Mathematics and the computer me llamó la atención de error cometido por ChatGPT al intentar responder a la siguiente pregunta


¿Puedes demostrar que existen infinitos números pares que terminan en 7?


He usado la pregunta para obtener las respuestas en distintos sistemas de IA generativa, como muestro a continuación.

1. La respuesta (errónea) de ChatGPT es


Sí, se puede demostrar que existen infinitos números pares que terminan en 7 utilizando la siguiente demostración por contradicción:

Supongamos que sólo existen una cantidad finita de números pares que terminan en 7, los cuales se pueden escribir como:

  • n1 = a1 * 10 + 7
  • n2 = a2 * 10 + 7
  • nk = ak * 10 + 7

Donde a1, a2, …, ak son números enteros y k es un número finito.

Ahora, tomemos el número N = (a1 * a2 * … * ak) * 10 + 7. Este número también es un número par que termina en 7, pero no está en la lista anterior, lo que contradice nuestra suposición de que sólo existen una cantidad finita de números pares que terminan en 7.

Por lo tanto, nuestra suposición inicial es falsa y concluimos que existen infinitos números pares que terminan en 7.


2. La respuesta (errónea) de BingChat es


Sí, es posible demostrar que existen infinitos números pares que terminan en 7. Por ejemplo, 17, 27, 37, 47, 57, 67, 77, 87, 97 y así sucesivamente son números pares que terminan en 7. Si sumamos cualquier número par que termine en 7 con un múltiplo de 10 (como 10, 20, 30 y así sucesivamente), el resultado será otro número par que termina en 7. Como hay infinitos múltiplos de 10 y cada uno de ellos se puede sumar a cualquier número par que termine en 7 para obtener otro número par que termine en 7, podemos concluir que hay infinitos números pares que terminan en 7.


3. La respuesta (errónea) de Perplexity es


Sí, se puede demostrar que existen infinitos números pares que terminan en 7.

La demostración se realiza por reducción al absurdo. Supongamos que solo hay una cantidad finita de números pares que terminan en 7. Podemos listarlos: 7, 17, 27, 37, 47, 57, 67, 77, 87, 97, 107, 117, 127, 137, 147, 157, 167, 177, 187, 197, 207, 217, 227, 237, 247, 257, 267, 277, 287, 297, etc.

Ahora, tomemos el último número de la lista, que es par y termina en 7. A este número le sumamos 10, obteniendo un nuevo número par que también termina en 7. Pero este número no estaba en nuestra lista, lo que contradice nuestra suposición inicial de que solo hay una cantidad finita de números pares que terminan en 7. Por lo tanto, nuestra suposición es falsa y existen infinitos números pares que terminan en 7.

Esta demostración se basa en el hecho de que, al sumar 10 a un número par que termina en 7, obtenemos otro número par que también termina en 7. Como hay infinitos números pares en general, y la suma de un número par y 10 siempre es un número par, entonces hay infinitos números pares que terminan en 7.


4. La respuesta (correcta) de YouChat es


No puedo demostrar que existen infinitos números pares que terminan en 7, ya que ese enunciado es falso. Un número par, por definición, es un número entero que es divisible por 2, por lo que siempre terminará en 0, 2, 4, 6 u 8 pero nunca en 7. En cambio, los números impares suman un número impar y un número par, y al sumar 7 al número impar pueden producirse números terminados en 7. Es posible demostrar que existen infinitos números primos o impares que terminan en 7, pero no existen infinitos números pares que terminen en 7.


 

Reseña: Inteligencia artificial avanzada

En la colección de textos de la UOC (Universitat Oberta de Catalunya) se ha publicado el libro Inteligencia artificial avanzada.

Sus autores son Raúl Benítez, Gerard Escudero y Samir Kanaan.

El libro está organizado de la forma siguiente: los métodos de búsqueda y optimización se describen en el apartado 2, donde se detallarán las técnicas de extracción de información de bases de datos que contengan información semántica, como por ejemplo web de noticias o las conversaciones entre diversos miembros de una red social.

Las técnicas de caracterización de datos se estudiarán en el apartado 3, describiendo las técnicas principales basadas en descomposición de los datos en modos principales. En el apartado 3 también se estudiarán las técnicas de extracción de características y un método de visualización de datos multidimensionales.

Los algoritmos de clasificación de datos se presentan en el apartado 4, en el que se estudiarán los principales métodos de clasificación y reconocimiento de patrones.

En el apartado 5 se explican algunas técnicas avanzadas de inteligencia evolutiva, algoritmos que utilizan reglas heurísticas inspiradas en el funcionamiento evolutivo de los sistemas biológicos.

El código del texto está escrito en Python. Una introducción a Python se encuentra en otro texto de la UOC: El lenguaje Python escrito por David Masip Rodó– El objetivo del texto es ayudar a comprender los ejemplos que se exponen en el libro de inteligencia artificial.

Ambos libros son la base de la asignatura Intel·ligència artificial avançada impartida por David Masip Rodó en el Màster en Enginyeria Informàtica de la UOC.

Reseña: “An intelligent tutoring system for teaching FOL equivalence”

Se ha publicado un artículo sobre enseñanza de la lógica titulado An intelligent tutoring system for teaching FOL equivalence.

Sus autores son Foteini Grivokostopoulou, Isidoros Perikos, Ioannis Hatzilygeroudis (de la Universidad de patras en Grecia).

El trabajo se ha presentado hoy en el AIEDCS 2013 (The First Workshop on AI-supported Education for Computer Science).

Su resumen es

In this paper, we present an intelligent tutoring system developed to assist students in learning logic. The system helps students to learn how to construct equivalent formulas in first order logic (FOL), a basic knowledge representation language. Manipulating logic formulas is a cognitively complex and error prone task for the students to deeply understand. The system assists stu- dents to learn to manipulate and create logically equivalent formulas in a step-based process. During the process the system provides guidance and feedback of various types in an intelligent way based on user’s behavior. Evaluation of the system has shown quite satisfactory results as far as its usability and learning capabilities are concerned.

Reseña: AI over large formal knowledge bases: The first decade

Se ha publicado un artículo sobre aplicaciones de la inteligencia artificial a la demostración automática de teoremas titulado AI over large formal knowledge bases: The first decade.

Su autor es Josef Urban (de la Univ. de Nimega, Países Bajos) y lo presentará mañana en el ARW2013 (20th Automated Reasoning Workshop).

Su resumen es

In March 2003, the first version of the Mizar Problems for Theorem Proving (MpTP) was released. In the past ten years, such large formal knowledge bases have started to provide an interesting playground for combining deductive and inductive AI methods. The talk will discuss three related areas of application in which machine learning and general AI have been recently experimented with: (i) premise selection for theorem proving over large formal libraries built with systems like Mizar, HOL Light, and Isabelle (ii) advising and tuning first-order automated theorem provers such as E and leanCoP, and (iii) building larger inductive/deductive AI systems such as MaLARea. Here I focus on the wider motivation for this work.

Reseña: Knowledge representation, reasoning, and the design of intelligent agents

Se ha publicado un libro sobre representación del conocimiento y razonamiento titulado Knowledge representation, reasoning, and the design of intelligent agents.

Sus autores son Michael Gelfond y Yulia Kahl.

Su resumen es

This is a book about knowledge representation and reasoning (KRR) – a comparatively new branch of science which serves as the foundation of Artificial Intelligence, Declarative Programming, and the design of knowledge – intensive software systems. Our main goal is to show how a a software system can be given knowledge about the world and itself, and how this knowledge can be used to solve non-trivial computational problems. There are several approaches to KRR which both compete and complement each other. The approaches differ primarily by the languages used to represent the knowledge and by corresponding computational methods. This book is based on a knowledge representation language called Answer Set Prolog (ASP) and the answer set programming paradigm – a comparatively recent branch of KRR with a well-developed theory, efficient reasoning systems, methodology of use, and a growing number of applications.

The text can be used for classes in Knowledge Representation, Declarative Programming, and Artificial Intelligence for advanced undergraduate or graduate students in computer science and related disciplines including software engineering, logic, cognitive science, etc. It will also be useful to serious researchers in these fields who would like to learn more about the answer sets programming paradigm and its use in KRR. Finally, we hope it will be of interest to anyone with a sense of wonder about the amazing ability of humans to derive volumes of knowledge from a collection of basic facts. Knowledge representation and reasoning, located at the intersection of mathematics, science and the humanities, provides us with mathematical and computational models of human thought and gives some clues to the understanding of this ability. The reader is not required to know logic or to have previous experience with computational systems. However, some understanding of mathematical method of thinking will be of substantial help.

We have attempted to maintain a proper balance between mathematical analysis of the subject and practical design of intelligent agents — software systems capable of using knowledge about their environment to perform intelligent tasks. Beginning with simple question-answering agents, we progress to more and more complex ones and explain how common problems of knowledge representation and reasoning such as commonsense (default) reasoning, planning, diagnostics and probabilistic reasoning are solved with ASP and its extensions. The precise mathematical definitions of basic concepts are always accompanied by informal discussions and by examples of their use for modeling various computational tasks performed by humans. Readers are encouraged to run programs to test their agent’s ability to perform these tasks using available, state-of-the-art ASP reasoning systems.

Of course the worth of a particular KRR theory is tested by the ability of software agents built on the basis of this theory to behave intelligently. If, given a certain amount of knowledge, the agent exhibits behavior that we believe reasonable for a human with exactly the same knowledge, we deem the theory to be a step in the right direction.

We hope that serious readers will learn to appreciate the interplay between mathematical modeling of a phenomenon and system design and better understand the view of programming as refinement of specifications. Even though the book does not contain large practical projects, we believe that the skills learned will be of substantial use in the marketplace.

We meant for this book to be a foundation for those interested in KRR. Our desire to limit the material to one semester forced us to skip many topics closely related to our approach. This includes various constraint and abductive logic programming languages and algorithms, descriptions of important ASP reasoning methods, the methodology of transforming ASP programs to improve their efficiency, and a large body of useful mathematical knowledge. The book does not cover other important KR topics such as descriptive logics and their use for the Semantic Web and other applications, natural language processing, etc. To help those interested in building on the foundation presented and learning more about these other topics, we have included a section on references and further reading in each chapter.”