<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Mathematics on Alok Regmi</title>
		<link>https://alokregmi.com/tags/mathematics/</link>
		<description>Recent content in Mathematics on Alok Regmi</description>
		<generator>Hugo</generator>
		<language>en-us</language>
		
		
		
		
			<lastBuildDate>Fri, 25 Apr 2025 00:00:00 +0000</lastBuildDate>
		
			<atom:link href="https://alokregmi.com/tags/mathematics/index.xml" rel="self" type="application/rss+xml" />
			<item>
				<title>The Joy of Abstraction</title>
				<link>https://alokregmi.com/posts/2025/04/the-joy-of-abstraction/</link>
				<pubDate>Fri, 25 Apr 2025 00:00:00 +0000</pubDate>
				<guid>https://alokregmi.com/posts/2025/04/the-joy-of-abstraction/</guid>
				<description>&lt;h2 id=&#34;representation-and-symbols&#34;&gt;Representation and Symbols&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;If we’re talking about a one-element set we often declare the single element to be an asterisk ∗ to remind ourselves that it has no meaning. The resulting one-element set is then written {∗}.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2 id=&#34;chapter-1-and-2&#34;&gt;Chapter 1 and 2&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Rigorous logic being problematic is starting point for category theory as well.&lt;/li&gt;&#xA;&lt;li&gt;&amp;ldquo;Abstraction is the process of deciding on some details to ignore in order to ensure that our logic does work perfectly.&amp;rdquo; e.g. Think of the difference between map and territories in a way. Though maps seem very different, having different maps helps us understand territory better using connections. And same kind of relationships can be translated and reused.&lt;/li&gt;&#xA;&lt;li&gt;All about zooming in and out.&lt;/li&gt;&#xA;&lt;li&gt;Category Theory always needs context first. Similar to BR The Courage of Being Disliked where it says all problems are interpersonal problems. Unless there are more than one node a.k.a a relationship, there is no problem at all.&lt;/li&gt;&#xA;&lt;li&gt;&amp;ldquo;We will see that category theory is a framework that achieves a remarkable trade-off between good behavior and expressive possibilities. If a framework demands too much good behavior then expressivity is limited, as in a totalitarian state with very strict laws. On the other hand if there are too few demands, then there is great potential for expressivity, but also for chaos and anarchy. Category theory achieves a productive balance between those, in the way it specifies what type of relationship it is going to study.&amp;rdquo;&lt;/li&gt;&#xA;&lt;li&gt;Not limited to numbers. Not limited to equations. Not limited as long as &amp;ldquo;sameness&amp;rdquo; can be defined properly.&lt;/li&gt;&#xA;&lt;li&gt;Doesn&amp;rsquo;t look into a node. Only role it plays in context.&lt;/li&gt;&#xA;&lt;li&gt;Different contexts, same relationships even results to different understanding, different conclusions.&lt;/li&gt;&#xA;&lt;li&gt;If category theory is theory of mathematics, then higher dimensional category theory is theory of categories.&lt;/li&gt;&#xA;&lt;li&gt;Logic + Abstraction&lt;/li&gt;&#xA;&lt;li&gt;&amp;ldquo;I would say that philosophy uses logic, but applies it to real questions about life experiences. Art uses abstraction, but does not primarily build on its abstractions by logic. Math uses logic and abstraction together. It uses logic to build rigorous arguments, and uses abstraction to ensure that we are working in a world where logic can be made rigorous.&amp;rdquo;&lt;/li&gt;&#xA;&lt;li&gt;Abstraction in definition is very close to trying for generalization in AI. Trying to find good abstraction that just covers essentials between nodes without having everything.&lt;/li&gt;&#xA;&lt;li&gt;Stripping out the details to reveal a relationship sturcture is what category theory is all about.&lt;/li&gt;&#xA;&lt;li&gt;Moral abstractions require us to make sure we are using the same type of relationship between nodes, else the idea of sameness cannot be applied.&lt;/li&gt;&#xA;&lt;li&gt;The goal isn&amp;rsquo;t to find most abstract possible level. Goal is to find a good enough abstraction in order to solve a problem.&lt;/li&gt;&#xA;&lt;li&gt;Different context, different truths.&lt;/li&gt;&#xA;&lt;li&gt;By stripping the details, we can always take everything to the same level but that might not be what we need. Too much details is bad, so is too much abstraction. Rather than even be fixed at certain level, we can move between different levels and see a good picture about our problem at hand.&lt;/li&gt;&#xA;&lt;li&gt;Addition and multiplication:&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Both are binary operations.&lt;/li&gt;&#xA;&lt;li&gt;Both are Associative&lt;/li&gt;&#xA;&lt;li&gt;Both are Commutative&lt;/li&gt;&#xA;&lt;li&gt;Addition is reversible by subtraction while multiplication is not always reversible by division.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h3 id=&#34;process-of-moving-between-levels-of-abstraction&#34;&gt;Process of moving between levels of abstraction :&lt;/h3&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;See an analogy between some different things (a.k.a defining the first level)&lt;/li&gt;&#xA;&lt;li&gt;Specify what we are regarding as causing the analogy (a.k.a. defining the direction from this first level)&lt;/li&gt;&#xA;&lt;li&gt;Regard that thing as a new, more abstract, concept in its own right(a.k.a. taking the direction and specifying this second level)&lt;/li&gt;&#xA;&lt;li&gt;Be comfortable with new abstract concepts without thinking that they are abstract (a.k.a. understanding this second level in its own right as if first level didn&amp;rsquo;t exist)&lt;/li&gt;&#xA;&lt;li&gt;See analogy between some of these new concepts (a.k.a. trying to find new direction from this level)&lt;/li&gt;&#xA;&lt;li&gt;Iterate (a.k.a loop )&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;h3 id=&#34;example&#34;&gt;Example&lt;/h3&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Start with statement &amp;quot; If we add two numbers, the order we put them in doesn&amp;rsquo;t matter. &amp;quot; [ First level ]&lt;/li&gt;&#xA;&lt;li&gt;By converting them to numbers, &amp;ldquo;Given any numbers a and b, a+b = b+a&amp;rdquo; [ Defining the direction: From letters to numbers a,b ]&lt;/li&gt;&#xA;&lt;li&gt;Now this process of a and b to a+b or b+a is a concept called addition. [ Point 3 and 4 together ]&lt;/li&gt;&#xA;&lt;li&gt;Process that takes two numbers and produces a number a . b  [ Taking a new direction of abstraction from addition ]&lt;/li&gt;&#xA;&lt;li&gt;Now from that we can take it in direction of multiplication [ a * b = c which is multiplication ]&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;In conclusion, the top level becomes abstract binary operation.&#xA;This is starting point to so many branches of mathematics being applied starting from categorical principles.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Category Theory for Programmers</title>
				<link>https://alokregmi.com/books/category-theory-for-programmers/</link>
				<pubDate>Sat, 27 Jul 2024 00:00:00 +0000</pubDate>
				<guid>https://alokregmi.com/books/category-theory-for-programmers/</guid>
				<description>&lt;p&gt;Author: Bartosz Milewski&lt;/p&gt;&#xA;&lt;h2 id=&#34;arrows-as-functions&#34;&gt;Arrows as Functions&lt;/h2&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;A category consists&#xA;of objects and arrows that go between them.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;h2 id=&#34;properties-of-composition&#34;&gt;Properties of Composition&lt;/h2&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Composition is associative.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;!--quoteend--&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;For every object 𝐴 there is an arrow which is a unit of composition. This arrow loops from the object to itself.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;h2 id=&#34;composition-is-the-essence-of-programming&#34;&gt;Composition is the Essence of Programming&lt;/h2&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Neutral values like zero or id are extremely useful when working&#xA;with symbolic variables. That’s why Romans were not very good at algebra, whereas the Arabs and the Persians, who were familiar with the&#xA;concept of zero, were.&lt;/p&gt;&#xA;&lt;/blockquote&gt;</description>
			</item>
			<item>
				<title>Gödel, Escher, Bach: An Eternal Golden Braid</title>
				<link>https://alokregmi.com/posts/2023/12/g%C3%B6del-escher-bach-an-eternal-golden-braid/</link>
				<pubDate>Sun, 03 Dec 2023 00:00:00 +0000</pubDate>
				<guid>https://alokregmi.com/posts/2023/12/g%C3%B6del-escher-bach-an-eternal-golden-braid/</guid>
				<description>&lt;h2 id=&#34;notes&#34;&gt;Notes&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;In order for a canon theme to work, a melody has to function in different parts yet make sense as a whole. It must first be part of a melody, and secondly a harmonization of same melody.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h3 id=&#34;bach-and-braid-in-music&#34;&gt;Bach and Braid in music&lt;/h3&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Ways music was canonized:&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Copies of theme staggered in time&lt;/li&gt;&#xA;&lt;li&gt;Copies of theme staggered in time as well as pitch. e.g. If a voice starts at C, another second overlapping voice can start at G which is 5 notes higher. Third voice then can start after next 5 notes at D.&lt;/li&gt;&#xA;&lt;li&gt;Speed of voices can speed up. e.g. Second voice gets twice as fast.&lt;/li&gt;&#xA;&lt;li&gt;Speed of voices get slower. e.g. Second voice is twice as slow as first voice.&lt;/li&gt;&#xA;&lt;li&gt;Invert and make it jump up and down exactly as the original theme.&lt;/li&gt;&#xA;&lt;li&gt;Play the theme backwards in time. Comes from peculiarities of crab canon.&lt;/li&gt;&#xA;&lt;li&gt;Based on one theme which gets played in different voices and different keys, and occasionally at different speeds or upside down or backwards.&lt;/li&gt;&#xA;&lt;li&gt;Bach wrote a fugue for the king with text note: &amp;ldquo;As the modulation rises, so may the King&amp;rsquo;s glory.&amp;rdquo;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Music can go infinitely recursively.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h3 id=&#34;escher-and-braid-in-drawings&#34;&gt;Escher and Braid in drawings&lt;/h3&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Escher&amp;rsquo;s drawings to show infinite recursion.&lt;/li&gt;&#xA;&lt;li&gt;Escher&amp;rsquo;s drawings:&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;Strange Loops:&lt;/strong&gt; A picture of picture which contains itself.&lt;/li&gt;&#xA;&lt;li&gt;Print Gallery&lt;/li&gt;&#xA;&lt;li&gt;Drawing Hands&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h3 id=&#34;godel-and-braid-in-mathematics&#34;&gt;Godel and Braid in mathematics&lt;/h3&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Epimenides Paradox explains how just stating a statement can create violations in logical system. This liar paradox has helped prove the properties of our current mathematical system.&lt;/li&gt;&#xA;&lt;li&gt;Godel found out that mathematics was incomplete by proving that some statements in mathematics cannot even be proved.&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&amp;ldquo;All consistent axiomatic formulations of number theory include undecidable propositions.&amp;rdquo;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;The grand conclusion of Principia Mathematica started by Bertrand Russell is that the system is incomplete as proven by Godel. Godel&amp;rsquo;s incompleteness theorem&lt;/li&gt;&#xA;&lt;li&gt;Kurt Godel showed that provability is a weaker notion than truth, no matter what axiomatic system is involved.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2 id=&#34;highlights&#34;&gt;Highlights&lt;/h2&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Contracrostipunctus&lt;/p&gt;&#xA;&lt;/blockquote&gt;</description>
			</item>
			<item>
				<title>Matlab</title>
				<link>https://alokregmi.com/braindump/2020/04/matlab/</link>
				<pubDate>Sun, 19 Apr 2020 16:00:11 +0545</pubDate>
				<guid>https://alokregmi.com/braindump/2020/04/matlab/</guid>
				<description>&lt;p&gt;&amp;ndash;  %% to make a code section&#xA;Ctrl + Enter to run a code section&lt;/p&gt;&#xA;&lt;p&gt;&amp;ndash;&#x9;%{&lt;/p&gt;&#xA;&lt;p&gt;%} to make a multiline comment but you cannot enter any text on the first line : else it interprets&#xA;the thing as comment and rest as code&lt;/p&gt;</description>
			</item>
			<item>
				<title>Matlab</title>
				<link>https://alokregmi.com/ai/matlab/</link>
				<pubDate>Sat, 14 Dec 2019 00:00:00 +0000</pubDate>
				<guid>https://alokregmi.com/ai/matlab/</guid>
				<description>&lt;p&gt;&amp;ndash;  %% to make a code section&#xA;Ctrl + Enter to run a code section&lt;/p&gt;&#xA;&lt;p&gt;&amp;ndash;&#x9;%{&lt;/p&gt;&#xA;&lt;p&gt;%} to make a multiline comment but you cannot enter any text on the first line : else it interprets&#xA;the thing as comment and rest as code&lt;/p&gt;</description>
			</item>
	</channel>
</rss>
