-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.tex
695 lines (622 loc) · 27.1 KB
/
main.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
\documentclass{beamer}
%
% Choose how your presentation looks.
%
% For more themes, color themes and font themes, see:
% http://deic.uab.es/~iblanes/beamer_gallery/index_by_theme.html
%
\mode<presentation>
{
\usetheme{Madrid} % or try Darmstadt, Madrid, Warsaw, ...
\usecolortheme{default} % or try albatross, beaver, crane, ...
\usefonttheme{default} % or try serif, structurebold, ...
\setbeamertemplate{navigation symbols}{}
\setbeamertemplate{caption}[numbered]
}
\AtBeginSection[]{
\begin{frame}
\vfill
\centering
\begin{beamercolorbox}[sep=8pt,center,shadow=true,rounded=true]{title}
\usebeamerfont{title}\insertsectionhead\par%
\end{beamercolorbox}
\vfill
\end{frame}
}
\usepackage[english]{babel}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[backend=biber,style=numeric, citestyle=ieee]{biblatex}
\addbibresource{citations.bib}
\usepackage{subcaption}
\usepackage{tikz}
\usepackage{minted}
\usepackage{csquotes}
\title[The Mathematics of Lasagne]{The Mathematics of Lasagne}
\author{Edmund Goodman}
\institute[UWCS]{University of Warwick Computing Society}
\date{06/12/2023} % \date{18/10/2023}
\begin{document}
\begin{frame}
\titlepage
\end{frame}
% % Uncomment these lines for an automatically generated outline.
% \begin{frame}{Outline}
% \tableofcontents
% \end{frame}
\section{Part I - The Cube Rule of Food\footnote{\href{https://cuberule.com/}{https://cuberule.com/}}}
\begin{frame}{What is a Sandwich?}
\begin{itemize}
\item<2-> Two pieces of bread?
\item<3-> A filling?
\vskip 1cm
\item<4-> The Oxford English Dictionary defines it as: ``Two slices of bread enclosing a filling (meat, cheese, fish, etc.).''
\vskip 1cm
\item[]<5->
\begin{alertblock}{But what about edge-cases!}
Are hot dogs sandwiches...?
\end{alertblock}
\end{itemize}
\end{frame}
\begin{frame}{Are hot dogs sandwiches?}
\begin{figure}
\includegraphics[width=0.5\textwidth]{images/cube_rule_of_food/hotdog_meme.png}
% \label{fig:hotdog-meme} -- 0.6
\caption{\label{fig:hotdog-meme}A hot dog experiencing existential dread \cite{imgur_classic_nodate}}
\end{figure}
\end{frame}
\begin{frame}{The State of New York says ``Yes''!}
\begin{figure}
\includegraphics[width=0.65\textwidth]{images/cube_rule_of_food/ny_sandwich_law_1.jpg}
\label{fig:ny-sandwich-law-top}
\end{figure}
\begin{figure}
\includegraphics[width=0.8\textwidth]{images/cube_rule_of_food/ny_sandwich_law_2.jpg}
\caption{\label{fig:ny-sandwich-law-bottom}New York State Tax Code classifying hot dogs as sandwiches}
\end{figure}
\end{frame}
\begin{frame}{The ``Sandwich Alignment Chart'' attempted to bring order}
\begin{figure}
\includegraphics[width=0.75\textwidth]{images/cube_rule_of_food/sandwich_alignment.jpg}
\caption{\label{fig:sandwich-alignment}An alignment chart for what is considered a sandwich \cite{noauthor_matttomic_nodate}}
\end{figure}
\end{frame}
\begin{frame}{But this only led to more chaos...}
\begin{figure}
% \usepackage{graphicx, animate}
% \animategraphics[width=0.5\textwidth,controls,loop,autoplay,scale=1]{0}{sandwich_chaos/slice_}{10}{9}
\begin{subfigure}{.5\textwidth}
\centering
\includegraphics[width=.8\linewidth]{images/cube_rule_of_food/sandwich_chaos/slice_6.png} %slice_0.png
\label{fig:sandwich-chaos-left}
\end{subfigure}%
\begin{subfigure}{.5\textwidth}
\centering
\includegraphics[width=.8\linewidth]{images/cube_rule_of_food/sandwich_chaos/slice_10.png}
\label{fig:sandwich-chaos-right}
\end{subfigure}
\end{figure}
\end{frame}
\begin{frame}{Until @Phosphatide enlightened the world...}
\begin{figure}
\includegraphics[width=0.9\textwidth]{images/cube_rule_of_food/phosphatide.jpg}
\caption{\label{fig:phosphatide}A tweet introducing the ``Cube Rule of Food''\cite{noauthor_phosphatide_nodate}}
\end{figure}
\end{frame}
\begin{frame}{The Cube Rule of Food}
\begin{figure}
\includegraphics[width=0.9\textwidth]{images/cube_rule_of_food/cube_rule_of_food.jpg}
\label{fig:cube-rule-of-food}
\end{figure}
\end{frame}
\begin{frame}{The Cube Rule of Food}
\begin{itemize}
\item Two foodstuffs are isomorphic under the ``Cube Rule of Food'' iff the location of their starch content as mapped onto a cube are the same
\vskip 0.5cm
\item This partitions the set of all foodstuffs into equivalence classes based on the location of their starch content\footnote{Will need some additional special cases to cover the entire set}
\begin{itemize}
\item Foodstuffs can be referred to interchangeably within their equivalence class, for example: \textit{A slice of toast \textbf{is} Pizza}
\end{itemize}
\end{itemize}
\end{frame}
% Toast
\begin{frame}{The Cube Rule of Food -- Toast}
\begin{figure}
\includegraphics[width=0.5\textwidth]{images/cube_rule_of_food/toast/16_toast.jpg}
\caption{\label{fig:toast-diagram}The starch locations of the ``Toast'' equivalence class}
\end{figure}
\end{frame}
\begin{frame}{Examples of Toast}
\begin{tikzpicture}[remember picture,overlay]
\node[xshift=-1.1cm,yshift=-2cm] at (current page.north east) {\includegraphics[width=0.1\textwidth]{images/cube_rule_of_food/toast/16_toast.jpg}};
% \node[xshift=-1.1cm,yshift=1.3cm] at (current page.south east) {\includegraphics[width=0.1\textwidth]{toast/16_toast.jpg}};
\end{tikzpicture}
% \vskip 1cm
\begin{figure}
\begin{subfigure}{.4\textwidth}
\centering
\includegraphics[width=.8\linewidth]{images/cube_rule_of_food/toast/17_pizza.jpg}
\caption{\label{fig:pizza}Pizza}
\end{subfigure}%
\begin{subfigure}{.4\textwidth}
\centering
\includegraphics[width=.8\linewidth]{images/cube_rule_of_food/toast/17_nigiri.jpg}
\caption{\label{fig:nigiri}Nigiri Sushi}
\end{subfigure}
\begin{subfigure}{.4\textwidth}
\centering
\includegraphics[width=.7\linewidth]{images/cube_rule_of_food/toast/17_pumpkin_pie_slice.jpg}
\caption{\label{fig:pumpkin-pie}A slice of Pumpkin Pie\\\quad\quad(i.e. bent toast)}
\end{subfigure}
\end{figure}
\end{frame}
% Sandwich
\begin{frame}{The Cube Rule of Food -- Sandwich}
\begin{figure}
\includegraphics[width=0.5\textwidth]{images/cube_rule_of_food/sandwich/18_sandwich.jpg}
\caption{\label{fig:sandwich-diagram}The starch locations of the ``Sandwich'' equivalence class}
\end{figure}
\end{frame}
\begin{frame}{Examples of Sandwiches}
\begin{tikzpicture}[remember picture,overlay]
\node[xshift=-1.1cm,yshift=-2cm] at (current page.north east) {\includegraphics[width=0.1\textwidth]{images/cube_rule_of_food/sandwich/18_sandwich.jpg}};
\end{tikzpicture}
\begin{figure}
\begin{subfigure}{.5\textwidth}
\centering
\includegraphics[width=\linewidth]{images/cube_rule_of_food/sandwich/19_quesadilla.jpg}
\caption{\label{fig:quesadilla}Quesadilla}
\end{subfigure}%
\begin{subfigure}{.5\textwidth}
\centering
\includegraphics[width=.8\linewidth]{images/cube_rule_of_food/sandwich/19_victoria_sponge_cake.png}
\caption{\label{fig:victoria-sponge}Victoria Sponge Cake}
\end{subfigure}
\end{figure}
\end{frame}
% Taco
\begin{frame}{The Cube Rule of Food -- Taco}
\begin{figure}
\includegraphics[width=0.5\textwidth]{images/cube_rule_of_food/taco/20_taco.jpg}
\caption{\label{fig:taco-diagram}The starch locations of the ``Taco'' equivalence class}
\end{figure}
\end{frame}
\begin{frame}{Examples of Tacos}
\begin{tikzpicture}[remember picture,overlay]
\node[xshift=-1.1cm,yshift=-2cm] at (current page.north east) {\includegraphics[width=0.1\textwidth]{images/cube_rule_of_food/taco/20_taco.jpg}};
\end{tikzpicture}
\begin{figure}
\begin{subfigure}{.4\textwidth}
\centering
\includegraphics[width=.8\linewidth]{images/cube_rule_of_food/taco/20_hotdog.jpg}
\caption{\label{fig:hot-dog-taco}Hot dog}
\end{subfigure}%
\begin{subfigure}{.4\textwidth}
\centering
\includegraphics[width=.8\linewidth]{images/cube_rule_of_food/taco/20_sub.jpg}
\caption{\label{fig:sub}Sub sandwich (uncut)}
\end{subfigure}
\begin{subfigure}{.5\textwidth}
\centering
\includegraphics[width=.6\linewidth]{images/cube_rule_of_food/taco/20_pie_slice.jpg}
\caption{\label{fig:pie-slices}A slice of pie (a taco on its side)}
\end{subfigure}
\end{figure}
\end{frame}
% Sushi
\begin{frame}{The Cube Rule of Food -- Sushi}
\begin{figure}
\includegraphics[width=0.5\textwidth]{images/cube_rule_of_food/sushi/21_sushi.jpg}
\caption{\label{fig:sushi-diagram}The starch locations of the ``Sushi'' equivalence class}
\end{figure}
\end{frame}
\begin{frame}{Examples of Sushi}
\begin{tikzpicture}[remember picture,overlay]
\node[xshift=-1.1cm,yshift=-2cm] at (current page.north east) {\includegraphics[width=0.1\textwidth]{images/cube_rule_of_food/sushi/21_sushi.jpg}};
\end{tikzpicture}
\begin{figure}
\begin{subfigure}{.4\textwidth}
\centering
\includegraphics[width=.8\linewidth]{images/cube_rule_of_food/sushi/22_enchilada.jpg}
\caption{\label{fig:enchilada}Enchilada}
\end{subfigure}
\begin{subfigure}{.4\textwidth}
\centering
\includegraphics[width=.8\linewidth]{images/cube_rule_of_food/sushi/22_falafel.jpg}
\caption{\label{fig:falafel}Falafel}
\end{subfigure}%
\begin{subfigure}{.4\textwidth}
\centering
\includegraphics[width=.8\linewidth]{images/cube_rule_of_food/sushi/22_pigs.jpg}
\caption{\label{fig:pigs-in-blankets}Pigs in blankets}
\end{subfigure}
\end{figure}
\end{frame}
% Quiche
\begin{frame}{The Cube Rule of Food -- Quiche}
\begin{figure}
\includegraphics[width=0.5\textwidth]{images/cube_rule_of_food/quiche/23_quiche.jpg}
\caption{\label{fig:quiche-diagram}The starch locations of the ``Quiche'' equivalence class}
\end{figure}
\end{frame}
\begin{frame}{Examples of Quiche}
\begin{tikzpicture}[remember picture,overlay]
\node[xshift=-1.1cm,yshift=-2cm] at (current page.north east) {\includegraphics[width=0.1\textwidth]{images/cube_rule_of_food/quiche/23_quiche.jpg}};
\end{tikzpicture}
\begin{figure}
\begin{subfigure}{.4\textwidth}
\centering
\includegraphics[width=.8\linewidth]{images/cube_rule_of_food/quiche/24_cheesecake.jpg}
\caption{\label{fig:cheesecake}Cheesecake}
\end{subfigure}
\begin{subfigure}{.4\textwidth}
\centering
\includegraphics[width=.8\linewidth]{images/cube_rule_of_food/quiche/25_deep_dish.jpg}
\caption{\label{fig:deep-dish}Deep dish pizza}
\end{subfigure}%
\begin{subfigure}{.4\textwidth}
\centering
\includegraphics[width=.8\linewidth]{images/cube_rule_of_food/quiche/24_soup_bread_bowl.jpg}
\caption{\label{fig:soup-bread-bowl}Soup bread bowl}
\end{subfigure}
\end{figure}
\end{frame}
% Calzone
\begin{frame}{The Cube Rule of Food -- Calzone}
\begin{figure}
\includegraphics[width=0.5\textwidth]{images/cube_rule_of_food/calzone/26_calzone.jpg}
\caption{\label{fig:calzone-diagram}The starch locations of the ``Calzone'' equivalence class}
\end{figure}
\end{frame}
\begin{frame}{Examples of Calzone}
\begin{tikzpicture}[remember picture,overlay]
\node[xshift=-1.1cm,yshift=-2cm] at (current page.north east) {\includegraphics[width=0.1\textwidth]{images/cube_rule_of_food/calzone/26_calzone.jpg}};
\end{tikzpicture}
\begin{figure}
\begin{subfigure}{.3\textwidth}
\centering
\includegraphics[width=.8\linewidth]{images/cube_rule_of_food/calzone/27_pie.jpg}
\caption{\label{fig:whole-pie}Pie (whole)}
\end{subfigure}
\begin{subfigure}{.4\textwidth}
\centering
\includegraphics[width=.8\linewidth]{images/cube_rule_of_food/calzone/27_burrito.jpg}
\caption{\label{fig:burrito}Burrito}
\end{subfigure}%
\begin{subfigure}{.4\textwidth}
\centering
\includegraphics[width=.8\linewidth]{images/cube_rule_of_food/calzone/28_dumplings.jpg}
\caption{\label{fig:dumplings}Dumplings}
\end{subfigure}
\end{figure}
\end{frame}
\begin{frame}{Is this enough?}
\begin{itemize}
\item For these groupings to be equivalence classes, their union must cover the entire set
\item In the initial set of rulings, this is not true!
\begin{itemize}
\item For example foodstuffs with no starch, such as salads, are not in any of the groupings
\end{itemize}
\item To address this, we need to introduce a couple more classes to capture the foods which don't conform to our (beautiful) system
\end{itemize}
\end{frame}
% Salad
\begin{frame}{The Cube Rule of Food -- Salad}
\begin{figure}
\includegraphics[width=0.5\textwidth]{images/cube_rule_of_food/salad/29_salad.jpg}
\caption{\label{fig:salad-diagram}The starch locations of the ``Salad'' equivalence class}
\end{figure}
\end{frame}
\begin{frame}{Examples of Salads}
\begin{tikzpicture}[remember picture,overlay]
\node[xshift=-1.1cm,yshift=-2cm] at (current page.north east) {\includegraphics[width=0.1\textwidth]{images/cube_rule_of_food/salad/29_salad.jpg}};
\end{tikzpicture}
\begin{figure}
\begin{subfigure}{.3\textwidth}
\centering
\includegraphics[width=.8\linewidth]{images/cube_rule_of_food/salad/30_steak.jpg}
\caption{\label{fig:steak}Steak}
\end{subfigure}
\begin{subfigure}{.35\textwidth}
\centering
\includegraphics[width=.8\linewidth]{images/cube_rule_of_food/salad/31_chocolate.png}
\caption{\label{fig:chocolate}Chocolate}
\end{subfigure}%
\begin{subfigure}{.35\textwidth}
\centering
\includegraphics[width=.8\linewidth]{images/cube_rule_of_food/salad/31_soup.jpg}
\caption{\label{fig:soup}Soup (wet salad)}
\end{subfigure}
\end{figure}
\end{frame}
% Nachos
\begin{frame}{The Cube Rule of Food -- Nachos}
\begin{figure}
\includegraphics[width=0.5\textwidth]{images/cube_rule_of_food/nachos/34_nachos.png}
\caption{\label{fig:nachos-diagram}The starch locations of the ``Nachos'' equivalence class}
\end{figure}
\end{frame}
\begin{frame}{Examples of Nachos}
\begin{tikzpicture}[remember picture,overlay]
\node[xshift=-1.1cm,yshift=-2cm] at (current page.north east) {\includegraphics[width=0.1\textwidth]{images/cube_rule_of_food/nachos/34_nachos.png}};
\end{tikzpicture}
\begin{figure}
\begin{subfigure}{.4\textwidth}
\centering
\includegraphics[width=\linewidth]{images/cube_rule_of_food/nachos/35_crouton_salad.jpg}
\caption{\label{fig:crouton-salad}Salad (with croutons)}
\end{subfigure}
\begin{subfigure}{.5\textwidth}
\centering
\includegraphics[width=.8\linewidth]{images/cube_rule_of_food/nachos/35_poutine.jpg}
\caption{\label{fig:poutine}Poutine}
\end{subfigure}
\end{figure}
\end{frame}
% Cake
\begin{frame}{The Cube Rule of Food -- Cake}
\begin{figure}
\includegraphics[width=0.5\textwidth]{images/cube_rule_of_food/cake/32_cake.png}
\caption{\label{fig:cake-diagram}The starch locations of the ``Cake'' grouping of foodstuffs}
\end{figure}
\end{frame}
\begin{frame}{Examples of Cakes}
\begin{tikzpicture}[remember picture,overlay]
\node[xshift=-1.1cm,yshift=-2cm] at (current page.north east) {\includegraphics[width=0.1\textwidth]{images/cube_rule_of_food/cake/32_cake.png}};
\end{tikzpicture}
\begin{figure}
\begin{subfigure}{.35\textwidth}
\centering
\includegraphics[width=\linewidth]{images/cube_rule_of_food/cake/33_big_mac.png}
\caption{\label{fig:big-mac}Big Mac\texttrademark}
\end{subfigure}
\begin{subfigure}{.35\textwidth}
\centering
\includegraphics[width=.8\linewidth]{images/cube_rule_of_food/cake/33_flapjacks.png}
\caption{\label{fig:pancake-stack}A stack of pancakes}
\end{subfigure}
\end{figure}
\end{frame}
\begin{frame}{Is \textit{\textbf{this}} enough?}
\begin{itemize}
\item I'm not sure how you would actually prove this!
\item However, if you take a generous view of equivalence class membership, this is probably enough to uniquely cover all foods
\end{itemize}
\end{frame}
% Questions for the audience?
\section{Part II - A (brief) introduction to Group Theory}
\begin{frame}{What is a group?}
\begin{itemize}
\item Intuitively, a group is an algebraic structure consisting of both:
\vskip 1cm
\begin{enumerate}
\item A set of items
\item An operation which combines two of its elements to form a third element
\end{enumerate}
\end{itemize}
\end{frame}
\begin{frame}{What is a group?}
More formally, a group is defined as:
\begin{itemize}
\item A set of elements, $G$
\item A binary operation $\bullet$ which maps two elements $a,b \in G$ to another element $c = a \bullet b \in G$ in the set
\item Where the following properties hold:
\begin{enumerate}
\item \textbf{Closure} -- $\forall a,b \in G, \quad a \bullet b \in G$
\item \textbf{Associativity} -- $\forall a,b,c \in G, \quad (a \bullet b) \bullet c = a \bullet (b \bullet c)$
\item \textbf{Identity element} -- $\exists e \in G \forall a \in G, \quad e \bullet a = a \bullet e = a$
\item \textbf{Inverse element} -- $\forall a \in G \exists b \in G, \quad a \bullet b = b \bullet a = e$
\end{enumerate}
\end{itemize}
\end{frame}
\begin{frame}{What if some of the properties don't hold?}
\begin{figure}
\includegraphics[width=0.6\textwidth]{images/group_theory/algebraic_structures.png}
\caption{\label{fig:algebraic-structures}Algebraic structures between magmas and groups \cite{ethaniel_english_2020}}
\end{figure}
\end{frame}
\begin{frame}{Why are groups interesting?}
Groups have many applications for understanding the Real World\texttrademark
\begin{itemize}
\item Modelling physical phenomena
\begin{itemize}
\item Crystals
\item Hydrogen atoms
\item Three of the four known fundamental forces in the universe
\end{itemize}
\item Public key cryptography
\item And many more...\footnote{\href{https://tvtropes.org/pmwiki/pmwiki.php/Main/ChekhovsGun}{https://tvtropes.org/.../ChekhovsGun}}
\end{itemize}
\end{frame}
\section{Part III - Defining Lasagne}
\begin{frame}
\begin{figure}
\includegraphics[width=0.6\textwidth]{images/defining_lasagne/Garfield_Loves_Lasagna.png}
\caption{\label{fig:garfield-loves-lasagne}Garfield loves Lasagne \cite{garfield_lasagna}}
\end{figure}
\end{frame}
\begin{frame}{What is a Lasagne?}
\begin{figure}
\includegraphics[width=0.5\textwidth]{images/defining_lasagne/lasagne_unstacked.png}
\caption{\label{fig:lasagane-unstacked}A portion of Lasagne} %\cite{nast_lasagna_nodate}
\end{figure}
\end{frame}
\begin{frame}{Is this still Lasagne?}
\begin{figure}
\begin{subfigure}{.3\textwidth}
\centering
\includegraphics[width=\linewidth]{images/defining_lasagne/lasagne_unstacked.png}
\end{subfigure}
\centering
\qquad\tikz[baseline=-\baselineskip]\draw[ultra thick,->] (0,1) -- ++ (1,0);\quad
\begin{subfigure}{.4\textwidth}
\centering
\includegraphics[width=.8\linewidth]{images/defining_lasagne/lasagne_stacked.png}
\end{subfigure}
\vskip 0.75cm
\caption{\label{fig:lasagane-stacked}If you cut a portion of Lasagne in half, and stack one half on top of the other -- it is still Lasagne!}
\end{figure}
\end{frame}
\begin{frame}{Does Lasagne form a group?}
\begin{itemize}
% \item An element in the set $G$ is a Lasagne with $n \in \mathbb{N}_{0}$ layers
\item $G$ is the set containing all Lasagnes with a non-negative number of layers, i.e. $G = \{$ n-layer Lasagne $|\ n \in \mathbb{N}_{0}\}$
% \begin{itemize}
% \item i.e. $G = \{$ n-layer Lasagne $|\ n \in \mathbb{N}_{0}\}$
% \end{itemize}
\item The binary operation $\bullet$ is stacking two Lasagnes, one atop the other
\vskip 1cm
\item Do the four properties hold?
\begin{enumerate}
\item \textbf{Closure}
\item \textbf{Associativity}
\item \textbf{Identity element}
\item \textbf{Inverse element}
\end{enumerate}
\end{itemize}
\end{frame}
\begin{frame}{Group properties of Lasagne?}
\begin{itemize}
\item<1-> Is Lasagne closed under the stacking operation?
\begin{itemize}
\item<2-> Yes! We have agreed if you stack two Lasagnes, one atop the other, the result is still Lasagne
\end{itemize}
\item<3-> Is Lasagne associative under the stacking operation?
\begin{itemize}
\item<4-> Yes! The order in which you stack Lasagne doesn't matter -- it still ends up with the same number of layers at the end
\end{itemize}
\item<5-> Does Lasagne have an identity element under the stacking operation?
\begin{itemize}
\item<6-> Yes! The identity element is the empty Lasagne, a Lasagne with no layers
\end{itemize}
\item<7-> Does Lasagne have inverse elements under the stacking operation?
\begin{itemize}
\item<8-> No! By counter-example, there is no Lasagne with a non-negative integer number of layers which you could stack on a single-layer Lasagne to get the empty Lasagne
\end{itemize}
\end{itemize}
\end{frame}
% \begin{frame}{Closure?}
% \textbf{Is Lasagne closed under the stacking operation?}
% \begin{itemize}
% \item Yes! We have agreed if you stack two Lasagnes, one atop the other, the result is still Lasagne
% \end{itemize}
% \end{frame}
% \begin{frame}{Associativity?}
% \textbf{Is Lasagne associative under the stacking operation?}
% \begin{itemize}
% \item Yes! The order in which you stack Lasagne doesn't matter -- it still ends up with the same number of layers at the end
% \end{itemize}
% \end{frame}
% \begin{frame}{Identity element?}
% \textbf{Does Lasagne have an identity element under the stacking operation?}
% \begin{itemize}
% \item Yes! The identity element is the empty Lasagne, a Lasagne with no layers
% \end{itemize}
% \end{frame}
% \begin{frame}{Inverse element?}
% \texttt{Does Lasagne have inverse elements under the stacking operation?}
% \begin{itemize}
% \item No! By counter-example, there is no Lasagne with a non-negative integer number of layers which you could stack on a single-layer Lasagne to get the empty Lasagne
% \end{itemize}
% \end{frame}
\begin{frame}{So what does it form?}
\begin{figure}
\includegraphics[width=0.6\textwidth]{images/group_theory/algebraic_structures.png}
\caption{\label{fig:algebraic-structures-2}Algebraic structures between magmas and groups \cite{ethaniel_english_2020}}
\end{figure}
\end{frame}
\begin{frame}
\begin{center}
\Huge\textbf{Lasagne is a monoid under the stacking operation!}
\end{center}
\end{frame}
\begin{frame}
\begin{center}
\Huge\textbf{Lasagne is a monoid under the stacking operation!}
\vskip 2cm
\small{However, it is not a monad, since it is not in the category of endofunctors...}
\end{center}
\end{frame}
\begin{frame}[fragile]{The Lasagne monoid in Haskell}
\begin{minted}[escapeinside=||]{haskell}
newtype Lasagne = Lasagne Int
deriving (Show, Num)
-- The stacking operating can be considered integer
-- addition of the number of layers
instance Semigroup Lasagne where
(<>) = (+)
-- The identity element is the empty (zero-layer) Lasagne
instance Monoid Lasagne where
mempty = Lasagne 0
-- Stacking 5 and 6 layers gives 11 layers:
--
-- ghci> Lasagne 5 <> Lasagne 6
-- Lasagne 11
\end{minted}
\end{frame}
\begin{frame}{Extending the Cube Rule of Food}
\begin{itemize}
\item<1-> Now that we know Lasagne is a monoid, we can use it to extend the ``Cube Rule of Food''!
\begin{itemize}
\item Salad is isomorphic to the identity element of the Lasagne monoid
\item Pizza is isomorphic to the single-layer element of the Lasagne monoid
\item Sandwiches are isomorphic to the double-layer element in the monoid
\vskip 0.5cm
\item<2-> \textbf{In fact, Lasagne forms a rigorous definition of Cake!}
\end{itemize}
\end{itemize}
\end{frame}
\begin{frame}
\begin{figure}
\begin{subfigure}{.24\textwidth}
\centering
\includegraphics[width=\linewidth]{images/cube_rule_of_food/salad/29_salad.jpg}
\caption{\label{fig:salad-lasagne}Salad as the identity Lasagne}
\end{subfigure}
\begin{subfigure}{.24\textwidth}
\centering
\includegraphics[width=\linewidth]{images/cube_rule_of_food/toast/16_toast.jpg}
\caption{\label{fig:toast-lasagne}Toast as a single-layer Lasagne}
\end{subfigure}
\begin{subfigure}{.24\textwidth}
\centering
\includegraphics[width=\linewidth]{images/cube_rule_of_food/sandwich/18_sandwich.jpg}
\caption{\label{fig:sandwich-lasagne}Sandwiches as a double-layer Lasagne}
\end{subfigure}
\begin{subfigure}{.24\textwidth}
\centering
\includegraphics[width=\linewidth]{images/cube_rule_of_food/cake/32_cake.png}
\caption{\label{fig:cake-lasagne}Triple-layer cakes as a Lasagne}
\end{subfigure}
\caption{\label{fig:lasagne-subclasses}Other equivalence classes as elements of the Lasagne Monoid}
\end{figure}
\end{frame}
\begin{frame}{Why is this useful?}
\begin{center}
\Huge\textbf{It isn't...}
\vskip 2cm
\pause
\small{But I think it is funny, and maybe you did too...}
\end{center}
\end{frame}
\begin{frame}
% \begin{tikzpicture}[remember picture,overlay]
% \node[xshift=-1.3cm,yshift=-1.3cm] at (current page.north east) {\includegraphics[width=0.15\textwidth]{images/qr-code.png}};
% \end{tikzpicture}
\begin{center}
\Huge\textbf{Thanks for listening!} \\
\vskip 1cm
\pause
\Large\textit{I refuse to answer any questions...}
\end{center}
\end{frame}
% \begin{frame}[allowframebreaks]{Bibliography}
% \nocite{*}
% \bibliographystyle{IEEEtran}
% \bibliography{citations.bib}
% \end{frame}
\begin{frame}[t,allowframebreaks]
\frametitle{Bibliography}
\printbibliography[heading=none]
\end{frame}
\end{document}