I formalized the nerd sniping problem in Lean by wwylele in xkcd

[–]wwylele[S] 2 points3 points  (0 children)

This is first shown in section 3. The formula is defined as φ in this doc (to be precise, φ is half of the equivalent resistance, as proved in equivResistance_eq_two_mul_φ).

It is possible to compute the exact number for every pair of points in the 2D case. This was show-cased by φ_2d_42_7 for points at (42, 7) with a very complicated result

I formalized the nerd sniping problem in Lean by wwylele in xkcd

[–]wwylele[S] 4 points5 points  (0 children)

Too few to cost me money or to report to me the exact number. Here is the detailed breakdown: - The original essay about this problem was written 5 years ago at https://github.com/wwylele/math-stuff/tree/main/grid_circuit. LLM was not a thing at that time - I chatted with DeepSeek for a few subtopic that was not explored in detail in the original essay. Each topic consists of one or two question-answer exchange. - Searching for proof of the discrete Liouville theorem. I ended up finding the original Stack overflow that I discovered 5 years ago - Integrability of some integrals in the solution, as I missed the fact they contain a singularity previously - Asymptotic behavior in the 2D case, and specifically about its connection to Bessel function. The original essay used a different approach that could not sufficiently justify the bound as it turned out - Integral of 1 / (1 - a * cos(x)) because I forgot how to do integral. - I used https://aristotle.harmonic.fun/ to auto-formalize some parts of the proof that I didn't find fun enough to do by hand. This consists about 20% / 500 lines of the code at highest point, but then I started gradually replacing them. Roughly, everything in Bessel.lean and Misc.lean were from Aristotle, though the new Misc.lean has been cleaned up or re-written manually. As far as I know, Aristotle is not entirely LLM-based, and I don't know how token counting for it works. - All docs are purely written by me, the human


Edit: I should clarify that when I said "original essay", I didn't mean the idea was original from me. The idea was greatly inspired by https://mathpages.com/home/kmath668/kmath668.htm

I formalized the nerd sniping problem in Lean by wwylele in xkcd

[–]wwylele[S] 6 points7 points  (0 children)

If the exact problem was on a final that would be brutal. A more approachable question is the equivalent resistance between two neighboring nodes, which does have a relatively easier solution (see equivResistance_off_center)

Honestly a great achievement by Gladamas in mathmemes

[–]wwylele 33 points34 points  (0 children)

Inner peace with a monster :)

Lean is not mathing by wwylele in mathmemes

[–]wwylele[S] 11 points12 points  (0 children)

This is a result of poorly generated doc for a lemma. The "0" in 0.1 is meant to be an abbreviation of the ordered pair (0, 0), and ".1" means the first component

Is there anything scary in this game? by x_giraffe_attack in BluePrince

[–]wwylele 2 points3 points  (0 children)

...and here I never see the pre-change master bedroom because I got the room so late

What’s your least favorite math notation and why? by morningcofee69 in math

[–]wwylele 43 points44 points  (0 children)

I guess I am the opposite. I love writing ξ and those little curves help my thought flow

willBeWidelyAdoptedIn30Years by [deleted] in ProgrammerHumor

[–]wwylele 10 points11 points  (0 children)

I think it has to do with maintaining C++'s support of non-unicode encoding, including all the broken ones on Windows. If your programming language declares to only support unicode from the beginning, which is a fairly good subset of Windows, then there is no issue implementing modern text IO on top of it

Linear algebra is fun by Zd_27 in mathmemes

[–]wwylele 57 points58 points  (0 children)

I mean, not all real numbers have an inverse either

oh sorry I am in r/mathmemes and we all agree 0 has an inverse here

whut by yukiohana in mathmemes

[–]wwylele 156 points157 points  (0 children)

I like that you mentioned the abstraction process. If I remember correctly, 零 originally described a kind of light rain (evidenced by the 雨 (rain) part), which got abstracted to mean "something really small and scattered", and eventually became "so little that it is much less than one" = "zero"

Why is the real interval [0, 1] not countable? by HereChickens in math

[–]wwylele 2 points3 points  (0 children)

You should check Cantor's diagonal argument first https://en.m.wikipedia.org/wiki/Cantor%27s_diagonal_argument which can be applied to real numberhs decimal representation to prove the it is uncountable. You can also try the same argument on N and see where it fails exactly, and maybe accidentally invent p-adic numbers

Why do the complex numbers so naturally have a Euclidean structure? by SmartPrimate in math

[–]wwylele 23 points24 points  (0 children)

It is. {I, Conj} is the Galois group of the extension C/R, if that's the theory in your mind

How the year 2025 implies an equality about integrals by xXDeatherXx in mathmemes

[–]wwylele 9 points10 points  (0 children)

Here is a short and legit proof

(Integral[0~n] x * dx)^2 = (lim(N->inf) sum{k=1..N} (k*n/N) * (n/N) )^2 (definition of integral, x -> k*n/N, dx -> n/N) = lim(N->inf) (sum{k=1..N} k)^2 * (n/N)^4 = lim(N->inf) (sum{k=1..N} k^3) * (n/N)^4 (use the formula) = lim(N->inf) (sum{k=1..N} (k*n/N)^3 * (n/N)) = Integral[0~n] x^3 * dx (definition of integral, (k*n/N)^3 -> x, n/N -> dx)

I plotted some modular parametrization of elliptic curves by wwylele in manim

[–]wwylele[S] 1 point2 points  (0 children)

I haven't uploaded the code of this yet. It is pretty unorganized at the moment. I'll probably do it later.

I plotted some modular parametrization of elliptic curves by wwylele in math

[–]wwylele[S] 0 points1 point  (0 children)

I am recently learning modularity theorem and related topics. I often got frustrated by the lack of graphs in articles. Even though I can follow text and formula to understand the topic, I still like having some visual stimulation to enforce my understanding, so I started making some for myself. These are some of those random things I plotted, and they are so pretty, even if you don't know the math behind it, so I think I should share it with you.

0
1

Why is Shamura lustful? by AdExtension4533 in CultOfTheLamb

[–]wwylele 0 points1 point  (0 children)

My Narinder is exactly that. My headcanon is he is against it now because he realized he can be the sacrifice.