Skip to content

Instantly share code, notes, and snippets.

@mo271
mo271 / gist:3c31f22eee38698d7bd9113f4f1b4e64
Created March 27, 2024 12:36
diff between importing Mathlib.Data.Set.Intervals.Disjoint versus Mathlib.Data.Set.Image
"Mathlib.Control.Basic" -> "Mathlib.Tactic.Rewrites";
"Mathlib.Control.EquivFunctor" -> "Mathlib.Logic.Equiv.Option";
"Mathlib.Control.ULift" -> "Mathlib.Data.ULift";
"Mathlib.Data.Bool.Set" -> "Mathlib.Order.CompleteLattice";
"Mathlib.Data.MLList.Dedup" -> "Mathlib.Tactic.Rewrites";
"Mathlib.Data.Nat.Set" -> "Mathlib.Order.CompleteLattice";
"Mathlib.Data.Option.Basic" -> "Mathlib.Logic.Embedding.Basic";
"Mathlib.Data.Option.Basic" -> "Mathlib.Logic.Equiv.Option";
"Mathlib.Data.Prod.PProd" -> "Mathlib.Logic.Embedding.Basic";
"Mathlib.Data.Set.Basic" -> "Mathlib.Data.Set.Intervals.Basic";
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mo271
mo271 / main.css
Last active January 16, 2023 04:03
jpeg.org bug
* {
margin: 0;
padding: 0;
font-family: Calibri, "Trebuchet MS", Helvetica, sans-serif;
text-decoration: none; }
html {
min-height: 100%;
height: 100%; }
@mo271
mo271 / basel.py
Last active November 5, 2022 20:33
from codetiming import Timer
from decimal import Decimal, getcontext
@Timer()
def BBPzeta2(n: int) -> Decimal:
s = Decimal(0)
f = Decimal(1)
# TODO: figure out exactly how fast this converges,
# but I think math.log(10, 64) should be the right factor here
for k in range(int(n*0.5536546824812272) + 1):
@mo271
mo271 / README.md
Last active June 7, 2022 13:36
jpeg decoding comparison
@mo271
mo271 / latex_test.md
Last active May 20, 2022 08:46
Testing mathjax latex rendering in github

The Basel Problem:

$$\sum_{n=1}^\infty \frac{1}{n^2} = \frac{\pi^2}{6}.$$

Some commutative diagram:

$$\require{AMScd} \begin{CD} K(X) @>{ch}>> H(X;\mathbb Q);\ @VVV @VVV \

@mo271
mo271 / bees.md
Last active April 28, 2021 06:24
large jxl
We couldn’t find that file to show.
import tactic
import tactic.gptf
import data.nat.prime
import data.nat.parity
import algebra.divisibility
import algebra.big_operators
import data.set.finite
import number_theory.bernoulli
import data.finset
import data.finset.basic
@mo271
mo271 / 000index.md
Last active January 5, 2021 11:14
Compare 25%, 50% and full jpg