AI says...

Mar. 8th, 2025 09:31 pm
https://www.facebook.com/faina.kaplan.50/posts/pfbid0vfo32uPkUne6xq6xyeLKWQurDmnRgAvn6Etnzyj9ok5ckJBVMzrLKKynSt59yoh6l

04 Mar 2025. Робот відповіда на питання що Трамп буде сьодні казати про Україну.

Read more... )

What Today’s Speech Really Means (If You Read Between the Lines)
It’s not a peace plan. It’s not an isolationist manifesto. It’s a blueprint for replacing the post-1945 order with a mafia-like global system of personal loyalty, transactional deals, and permanent conflict zones where Trump’s fingerprints are always visible.
Would you like me to write the full “between-the-lines” annotated transcrit
Отак щоранку згадував рускіх. Тепер додались ще.
не бійся синку за санями
спостерігає ппо
вони нікому не дозволять
псувати магію різдва

ironichna_osoba
Liberals in the English-speaking tradition call for negative liberty, meaning a realm of private autonomy from which the state is legally excluded. In contrast French liberals ever since the French Revolution more often promote "positive liberty" – that is, liberty insofar as it is tethered to collectively defined ends. They praise the state as an essential tool to emancipate the people.

Basically, "negative liberty" is what people are free from, and "positive liberty" is what they are free to do.

Positive liberty as a concept introduced by Isaiah Berlin. There's a bunch of his lectures on this topic, interesting stuff.
Further to the earlier conversation about (x→p)→q as a monad.

Let's make sense of the application of Yoneda lemma here:

https://chaource.dreamwidth.org/235262.html?thread=1023998#cmt1023998

This part of the original proof... )
Hmmm... I was hoping to get rid of these loose ends in one go, but maybe later.
From the post here.

Given F x = (x→p)→q for some fixed p and q, can we show that it is or isn't a monad?


We have to assume the existence of function k: p→q for pure to exist, and we have to assume the existence of function h: q→p for (>>=) to exist.
pure x = k . ($ x)
- there is no other way to construct a value of type q from a function of type x→p, you have to have a k: p→q.

Then:
m >>= f = m . (h .) . flip f
- there is no other way to construct a function of type (x→p) from a function of type x→(y→p)→q, you have to have an h: q→p.

Associativity of (>>=) follows from associativity of composition. How about the unit laws?

pure x >>= f = f x -- unit-1

pure x >>= f = k . ($ x) . (h .) . flip f = k . (h .) . f x = (k . h) . f x
- this should be f x if k . h = id.

So k is a surjection.

m >>= pure = m -- unit-2

m >>= pure = m . (h .) . (k .) $ flip ($) = m . ((h . k) .) $ id = m . (h . k)
- this should be m if h . k = id.

So k is an injection at the same time - p and q must be isomorphic.
A monkey is happy when it eats 3 different fruits. How many monkeys can become happy, if we have 20 apples, 30 bananas, 40 peaches and 50 pears.

I know the answer, but I wonder how these are normally solved, and the solution proven optimal.
Не бійтесь заглядати у словник (то пишний сад, а не сумне провалля)

Чули про голову ВМС України, Неїжпапу?

http://hrinchenko.com/slovar/znachenie-slova/36651-papa-ii.html#show_point - це про хліб, а не людожерство.

Boss fight

Feb. 5th, 2024 08:14 pm
Yes, I've done facebook online problems once, just because I like problems like that.

So, like here: https://malyj-gorgan.dreamwidth.org/187069.html
N ∈ [2, 5×105]; i,j ∈ [1, N]; di, hi ∈ [1, 109];
maximize:
di hi + dj hj + max(di hj, dj hi)


That's the mathematical notation. The statement is really about various warriors with damage D and health H fighting a "boss", and you've got to choose the best pair. The fighting arrangement is such that while the first warrior is receiving damage from the "boss" (health declines), both warriors can damage the boss. This explanation is here simply to explain the terminology I use in my solution.

I don't know whether there is a better solution, but here's my approach that worked well enough.

It is obvious that comparing each with each finds a solution, but given the possible magnitude of inputs it becomes intractable. So if we sort the warriors in some way, this would become tractable. We can also afford...spoiler )
...and here is a proper hylomorphism inspired by the last updates:

The main idea is: we can't have unrestricted recursion hylo p q = p . fmap (hylo p q) . q, but we can construct a recursive structure of a predefined size. So it is not a generic hylomorphism, but a hylomorphism for a problem of a known size. A constraint is: we need a "fixed point" value of the target type, which gets plugged on the last level of recursion, if we get to it.
fixed size hylomorphism )
We had a little discussion here

Basic question: if lists are Church-encoded, how do you zip two at the same time? There seems to be a difficulty in commuting list construction (new list) and list destruction (two input lists).

Initially I thought of a way to preserve the state of list destructor routine. So on each step of construction you can progress the iterator of the destructor one step at a time. But a good question [personal profile] chaource raised is: how can we generalise this to trees?

And then from the dark recesses of my memory the shadows of Varmo Vene's thesis whispered.

Hylo morphism to the rescue!

Wink-wink, nudge-nudge, say no more! )
Obvious extension for church-encoded trees:
Read more... )
Of course, we could do church-encoding of pairs as well, but I reckon we don't have to do that even for Option. The original problem was driven by the quest of expressing recursive data structures in the language that doesn't support it (to prove that the structures and types are finite). Finite non-recursive types like Maybe and Pair are not problematic.


After some more discussion:
here is more )
Searching for that you mostly get references to the Band of Brothers film.

Star Wars

Jun. 12th, 2023 07:52 am
https://youtu.be/v1kXeZ4uzXo - künstliche Intelligenz ist gerade gekommen
The proof: https://math.stackexchange.com/a/4250143

It's kind of funny how the proof becomes trivial, if you express the types the right way.
Page generated Jun. 22nd, 2025 07:30 pm
Powered by Dreamwidth Studios
OSZAR »