Hot take: optics are better abstraction than lenses, in *all* use cases. Why? They make explicit all the things you're implicitly thinking about anyway when using lenses. I think they are really important in shaping how we think about bidirectional maps. A short thread. 👇 1/9

Optics make explicit 1) the internal state (residual) and 2) the fact that you need to have the base category either be Cartesian, or at the very least have the "get" maps be comonoid homomorphisms. Let's look at the state/residual.
2/9
In lenses, this state is always the same as the input and is implicit. This can be seen by repackaging the get map from get: X → Y to Δₓ;(get×X):X e→ Y×X. Now our new get map (in addition to computing the output) passes through the input. This is good for a few reasons. 3/9
First, this pleasantly symmetric with the put:X×Y'→X'. But also, this new map is now exactly the "left" map of an optic too. (It turns out put was all along the "right" map). This tells us that the passed-through input is actually the state we're remembering. 4/9
But most importantly, this formulation is now explicit in the use of the copy map Δₓ:X → X×X, which you might have not realized is needed if you were just thinking about the standard get-put formulation. Furthermore, when you were composing lenses, ... 5/9
the formulation of the composite of the put maps was always much more complex than get maps. But now it's obvious why you needed to do that: you were juggling the internal state/residual around, because it had to agree with the input. 6/9
But you don't need to do that with optics (and that's the whole idea): you can *choose* the internal state you want.
With lenses you're using a specific state anyway, but you aren't given the conceptual tools to talk about it.
But let's stop here and see what we've done. 7/9
Observe that we didn't really "add" any complexity so far. All we've done is distilled what was already there and gave it a name. That's the whole idea behind of a lot of category theory. 8/9
Now, we still have to pack up this new construction and be precise in its definition. That's exactly what the coend in the optic definition does. It might even look scary, but it turns out the coend is saying some incredibly natural things. But that's for some other time. 9/9
References:
Optics: https://t.co/nWBhDR0Hut
Generalized Lens Categories: https://t.co/C0gB06B9DE
Also, this perspective was first shared with me here: https://t.co/ThvRcV2j3t
Also, I should add a caveat that I'm not necessarily talking about *mixed* optics. These seem like a complex beast that I don't yet understand fully.

More from Health

1/
Remember woman who tuk multiple @SriSriTattva products 4 range of problems frm diabetes 2 gas 2 liver disease & developed liver failure, listed for liver transplant?
Here is original thread:
https://t.co/PXxI1Slyv2
23 samples, Analysis results
#MedTwitter #livertwitter


2/
Before I go into results, I must say this was overwhelming. There was SO MUCH the lab identified, impossible to put everything here. So I made a summary. At the end of this thread, I have linked a full analysis described in Excel format. Some results were VERY concerning

3/
How did we analyse?
Here R links 2 methods
They R high end, done under strict protocols
Frm Ministry of Forest, Environment, Climate / NABL approvd Lab
ICP-OES https://t.co/O1CLhqVQAu
GC MSMS https://t.co/zRJoXyWQIr
FTIR https://t.co/goAembQ08p
Here is list V analysed 👇


4/
Sample names written on top (each column).
First 5 samples: C what we identified in #Ayurveda #medicines
Antibiotics
Steroids (anabolic/synthetic)
#NARCOTICS - LSD, Morphine
Blood thinners (possible reason Y bleeding tests were off the roof in the patient)
Heavy metals!


5/
Next 5 samples (total 10 now)
Mercury is clear winner. Almost all samples
See controlled substances - Butyrolactones https://t.co/CPz0FwPEOm, methylamine https://t.co/OZnXY7U9UQ
Alcohols, industrial solvents
Rare metals - cobalt, lithium
Again lots of blood thinners
#Ayush
Some thoughts on this: Firstly, it might be personal preference, but I am not keen on this kind of campaign as I feel like it trivialises cancer. Sometimes the serious message gets lost because people are sharing pics of cats or whatever and the important context is gone.


More importantly, the statistic being used in the campaign is misleading. It says 57% of women put off cervical screening if they can't get waxed. But on further investigation, that's not accurate.

The page here goes on to say "57% of women who regularly have their pubic hair professionally removed would put off attending their cervical screening appointment if they hadn’t been able to visit a beauty salon."

So the 57% represents a concern not across the whole population of women, but only those who regularly get waxed. So how big of an issue is this across the whole population? And what else is stopping people getting smears?

I think campaigns for cancer screening are really tricky because there is so much nuance that often doesn't fit into a catchy headline or hashtag. It's certainly not easy and is part of a bigger conversation.

You May Also Like

1/12

RT-PCR corona (test) scam

Symptomatic people are tested for one and only one respiratory virus. This means that other acute respiratory infections are reclassified as


2/12

It is tested exquisitely with a hypersensitive non-specific RT-PCR test / Ct >35 (>30 is nonsense, >35 is madness), without considering Ct and clinical context. This means that more acute respiratory infections are reclassified as


3/12

The Drosten RT-PCR test is fabricated in a way that each country and laboratory perform it differently at too high Ct and that the high rate of false positives increases massively due to cross-reaction with other (corona) viruses in the "flu


4/12

Even asymptomatic, previously called healthy, people are tested (en masse) in this way, although there is no epidemiologically relevant asymptomatic transmission. This means that even healthy people are declared as COVID


5/12

Deaths within 28 days after a positive RT-PCR test from whatever cause are designated as deaths WITH COVID. This means that other causes of death are reclassified as