{"id":20525,"date":"2025-12-07T10:04:37","date_gmt":"2025-12-07T15:04:37","guid":{"rendered":"https:\/\/notes.math.ca\/article\/ask-what-chatgpt-can-do-for-math\/"},"modified":"2026-02-11T14:28:07","modified_gmt":"2026-02-11T19:28:07","slug":"ask-what-chatgpt-can-do-for-math","status":"publish","type":"article","link":"https:\/\/notes.math.ca\/en\/article\/ask-what-chatgpt-can-do-for-math\/","title":{"rendered":"Ask What ChatGPT Can do for Math"},"content":{"rendered":"<p style=\"text-align: right;\">Ask not what your country can do for you\u2014<br \/>ask what <em>you <\/em>can do for your country.<br \/><em>John F. Kennedy, Inaugural Address, 1961<\/em><\/p>\n<p>Large language models have changed the way many people write. For mathematicians, this transformation raises an obvious and intriguing question: can a tool that predicts text really support mathematical work, where precision and structure are paramount?<\/p>\n<p>As I experimented with ChatGPT, I discovered that it can\u2014 so long as I use it as a collaborator, not as an oracle. In this article, the first of two parts, I illustrate how ChatGPT assists me in drawing diagrams, a crucial task in lattice theory.<\/p>\n<p>Some of the code ChatGPT generates is lengthy; the complete files are available online:<\/p>\n<p><a href=\"http:\/\/www.icloud.com\/iclouddrive\/0f6TeZT0WjrQvmUKN0X3HAatQ#Data_files\">https:\/\/www.icloud.com\/iclouddrive\/0f6TeZT0WjrQvmUKN0X3HAatQ#Data_files<\/a><\/p>\n<p>Throughout, I remind myself: ChatGPT is an <em>assistant<\/em>. It performs best when I correct and shape its contributions.<\/p>\n<p style=\"text-align: center;\">1. DRAWING DIAGRAMS<\/p>\n<p>Lattice theory is visual. Most of my proofs begin with sketches of diagrams, and for decades I drew these by hand. I do not use TikZ to draw diagrams. It is very powerful, but it offers essentially no helpful error messages; it is very easy to make a small mistake and very hard to find it. ChatGPT, by contrast, generates accurate TikZ code even from a short description.<\/p>\n<p><strong>A first example. <\/strong>Consider the lattice N<sub>6<\/sub>, with covering relations<\/p>\n<p style=\"text-align: center;\"><span class=\"wp-katex-eq\" data-display=\"false\">omega &lt; beta &lt; tau,qquadomega &lt; gamma &lt; tau,qquadtau &lt; upsilon,<\/span><\/p>\n<p>where <span class=\"wp-katex-eq\" data-display=\"false\">alpha<\/span> is both an atom and a coatom. A brief prompt produces a workable drawing; see Figure 1.<\/p>\n<p>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img fetchpriority=\"high\" decoding=\"async\" width=\"555\" height=\"215\" src=\"https:\/\/notes.math.ca\/wp-content\/uploads\/2025\/12\/Screenshot-2025-12-07-101859.png\" alt=\"\" srcset=\"https:\/\/notes.math.ca\/wp-content\/uploads\/2025\/12\/Screenshot-2025-12-07-101859.png 555w, https:\/\/notes.math.ca\/wp-content\/uploads\/2025\/12\/Screenshot-2025-12-07-101859-300x116.png 300w\" sizes=\"(max-width: 555px) 100vw, 555px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/p>\n<p style=\"text-align: center;\">Figure 1. A basic diagram of the lattice N<sub>6<\/sub>.<\/p>\n<p>For publication, I want a more polished version. Instead of editing by hand, I ask ChatGPT for a stylized version. The result is Figure 2.<\/p>\n<p>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img decoding=\"async\" width=\"382\" height=\"222\" src=\"https:\/\/notes.math.ca\/wp-content\/uploads\/2025\/12\/Screenshot-2025-12-07-102115.png\" alt=\"\" srcset=\"https:\/\/notes.math.ca\/wp-content\/uploads\/2025\/12\/Screenshot-2025-12-07-102115.png 382w, https:\/\/notes.math.ca\/wp-content\/uploads\/2025\/12\/Screenshot-2025-12-07-102115-300x174.png 300w\" sizes=\"(max-width: 382px) 100vw, 382px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/p>\n<p style=\"text-align: center;\">Figure 2. A stylized diagram of N<sub>6.<\/sub><\/p>\n<p><strong>A larger example: a lattice of sublattices. <\/strong>The lattice of all sublattices of N<sub>6<\/sub> is large and intricate. Drawing it manually is hardly feasible; drawing it in TikZ is hopeless. ChatGPT, on the other hand, generates a six-page TikZ file that compiles into a clean sideways diagram.<\/p>\n<p>There is also a practical limit: if a diagram has too many edges, it becomes very hard to read. For the lattice of sublattices of N<sub>6<\/sub> we are close to this limit, but the result is still usable and informative.<\/p>\n<p>Here is the prompt I give ChatGPT:<\/p>\n<p>Draw the diagram of the lattice of sublattices of the lattice N<sub>6<\/sub>, circles purple, edges blue behind, print sideways.<\/p>\n<p>Figure 3 shows this diagram.<\/p>\n<p>This is where ChatGPT\u2019s value becomes clearest. It takes only seconds to generate such a complex diagram, so I can experiment freely, try different layouts, or emphasize different structural features\u2014something I never attempted before.<\/p>\n<p><strong>Legend. <\/strong>For reference, here are the 36 sublattices of N<sub>6<\/sub>, indexed by <span class=\"wp-katex-eq\" data-display=\"false\">a, b, c, ldots, J<\/span>:<\/p>\n<p>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img decoding=\"async\" width=\"577\" height=\"366\" src=\"https:\/\/notes.math.ca\/wp-content\/uploads\/2025\/12\/Screenshot-2025-12-07-105752.png\" alt=\"\" srcset=\"https:\/\/notes.math.ca\/wp-content\/uploads\/2025\/12\/Screenshot-2025-12-07-105752.png 577w, https:\/\/notes.math.ca\/wp-content\/uploads\/2025\/12\/Screenshot-2025-12-07-105752-300x190.png 300w\" sizes=\"(max-width: 577px) 100vw, 577px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/p>\n<p>Let me warn you again: <strong>Trust but verify<\/strong>. You <strong>must <\/strong>check that the Legend and Figure 3 are correct <strong>by hand<\/strong>. Tedious but necessary.<\/p>\n<p>What does this mean in practice? ChatGPT can produce a diagram and a legend that look entirely convincing. The circles are neatly spaced, the edges are straight, and every node carries a clean label. It is very tempting to accept such output as authoritative, especially, when the underlying structure\u2014here, the lattice of all sublattices of N<sub>6<\/sub>\u2014is too large to visualize comfortably on one\u2019s own. But ChatGPT has <strong>no <\/strong>built-in understanding of lattices or sublattices; it is arranging points and lines according to patterns it has learned from text. A single misplaced edge or a missing inclusion can turn a correct diagram into a subtly incorrect one.<\/p>\n<p>So before you trust the picture, you have to do the work that only a mathematician can do. Start from the definition of each sublattice in the legend, confirm that it is closed under the lattice operations, and then check that the corresponding point in Figure 3 is placed at the correct level. Verify, for each cover relation in the diagram, that it really represents a cover in the lattice of sublattices, and that no intermediate sublattice has been omitted. Count the elements: there should be exactly 36 sublattices, each appearing once in both the legend and the diagram. If any of these checks fail, the figure must be corrected.<\/p>\n<p>This may feel old-fashioned in a world where the diagram appears with a single prompt, but the responsibility has not changed. ChatGPT accelerates the <em>production <\/em>of diagrams; it does not certify their <em>correctness<\/em>. When it comes to mathematical content, the final authority is still the reader who goes through the definitions, verifications, and cross-checks by hand. Only after this scrutiny has been applied is the diagram ready to be trusted in print.<\/p>\n<p style=\"text-align: center;\">2. WHAT I LEARNED FROM THESE EXPERIMENTS.<\/p>\n<p>Three observations now guide my use of ChatGPT for diagramming:<\/p>\n<p style=\"padding-left: 40px;\">(1) <strong>It excels at structural understanding.&nbsp;<\/strong>Even a brief description produces TikZ code capturing the correct order-theoretic relationships.<\/p>\n<p style=\"padding-left: 40px;\">(2)<strong> It still needs my judgment.&nbsp;<\/strong>I adjust spacing, colors, annotations, and I check the result for accuracy. ChatGPT provides the scaffolding; I refine it.<\/p>\n<p style=\"padding-left: 40px;\">(3)<strong> The productivity gains are&nbsp; substantial.&nbsp;<\/strong>Tasks that once consumed hours now take minutes. This changes the way I explore examples and encourages experimentation that was previously too time-consuming.<\/p>\n<p style=\"text-align: center;\">3. CONCLUSION<\/p>\n<p>I have always relied on tools\u2014chalk, pencils, symbolic software, TikZ, and LATEX. ChatGPT now joins this toolkit. It does not replace mathematical thinking; it amplifies it by clearing away routine obstacles. The result is not only efficiency but freedom: I can try more ideas, draw more pictures, and explore more patterns.<\/p>\n<p>In Part II of this article, I turn to another domain where ChatGPT has become indispensable to me: small-case computation and the construction of examples\u2014activities central to mathematical discovery.<\/p>\n<p>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"183\" height=\"300\" src=\"https:\/\/notes.math.ca\/wp-content\/uploads\/2025\/12\/Picture3-183x300.png\" alt=\"\" srcset=\"https:\/\/notes.math.ca\/wp-content\/uploads\/2025\/12\/Picture3-183x300.png 183w, https:\/\/notes.math.ca\/wp-content\/uploads\/2025\/12\/Picture3-626x1024.png 626w, https:\/\/notes.math.ca\/wp-content\/uploads\/2025\/12\/Picture3-768x1256.png 768w, https:\/\/notes.math.ca\/wp-content\/uploads\/2025\/12\/Picture3-939x1536.png 939w, https:\/\/notes.math.ca\/wp-content\/uploads\/2025\/12\/Picture3-1252x2048.png 1252w, https:\/\/notes.math.ca\/wp-content\/uploads\/2025\/12\/Picture3.png 1473w\" sizes=\"(max-width: 183px) 100vw, 183px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/p>\n<p style=\"text-align: center;\">Figure 3. The lattice of all sublattices of N<sub>6<\/sub>, drawn sideways.<\/p>\n","protected":false},"author":11,"template":"","section":[338],"keyword":[],"class_list":["post-20525","article","type-article","status-publish","hentry","section-contributed-articles"],"toolset-meta":{"author-4-info":{"author-4-surname":{"type":"textfield","raw":""},"author-4-given-names":{"type":"textfield","raw":""},"author-4-honorific":{"type":"textfield","raw":""},"author-4-institution":{"type":"textfield","raw":""},"author-4-email":{"type":"email","raw":""},"author-4-cms-role":{"type":"textfield","raw":""}},"author-3-info":{"author-3-surname":{"type":"textfield","raw":""},"author-3-given-names":{"type":"textfield","raw":""},"author-3-honorific":{"type":"textfield","raw":""},"author-3-institution":{"type":"textfield","raw":""},"author-3-email":{"type":"email","raw":""},"author-3-cms-role":{"type":"textfield","raw":""}},"author-2-info":{"author-2-surname":{"type":"textfield","raw":""},"author-2-given-names":{"type":"textfield","raw":""},"author-2-honorific":{"type":"textfield","raw":""},"author-2-institution":{"type":"textfield","raw":""},"author-2-email":{"type":"email","raw":""},"author-2-cms-role":{"type":"textfield","raw":""}},"author-info":{"author-surname":{"type":"textfield","raw":"Gr\u00e4tzer"},"author-given-names":{"type":"textfield","raw":"George"},"author-honorific":{"type":"textfield","raw":""},"author-email":{"type":"email","raw":""},"author-institution":{"type":"textfield","raw":""},"author-cms-role":{"type":"textfield","raw":""}},"unknown":{"downloadable-pdf":{"type":"file","raw":"https:\/\/notes.math.ca\/wp-content\/uploads\/2025\/12\/Ask-What-ChatGPT-Can-do-for-Math-\u2013-CMS-Notes-1.pdf","attachment_id":20676},"article-toc-weight":{"type":"numeric","raw":"11"},"author-surname":{"type":"textfield","raw":"Gr\u00e4tzer"},"author-given-names":{"type":"textfield","raw":"George"}}},"_links":{"self":[{"href":"https:\/\/notes.math.ca\/en\/wp-json\/wp\/v2\/article\/20525","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/notes.math.ca\/en\/wp-json\/wp\/v2\/article"}],"about":[{"href":"https:\/\/notes.math.ca\/en\/wp-json\/wp\/v2\/types\/article"}],"author":[{"embeddable":true,"href":"https:\/\/notes.math.ca\/en\/wp-json\/wp\/v2\/users\/11"}],"version-history":[{"count":17,"href":"https:\/\/notes.math.ca\/en\/wp-json\/wp\/v2\/article\/20525\/revisions"}],"predecessor-version":[{"id":20675,"href":"https:\/\/notes.math.ca\/en\/wp-json\/wp\/v2\/article\/20525\/revisions\/20675"}],"wp:attachment":[{"href":"https:\/\/notes.math.ca\/en\/wp-json\/wp\/v2\/media?parent=20525"}],"wp:term":[{"taxonomy":"section","embeddable":true,"href":"https:\/\/notes.math.ca\/en\/wp-json\/wp\/v2\/section?post=20525"},{"taxonomy":"keyword","embeddable":true,"href":"https:\/\/notes.math.ca\/en\/wp-json\/wp\/v2\/keyword?post=20525"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}