<oembed><type>rich</type><version>1.0</version><author_name>npub19fnl48y9j4fk9w0a284mqvszq6fuppelqp2tcxf0s37l95avdtussf4wf0</author_name><author_url>https://nostr.ae/npub19fnl48y9j4fk9w0a284mqvszq6fuppelqp2tcxf0s37l95avdtussf4wf0</author_url><provider_name>njump</provider_name><provider_url>https://nostr.ae</provider_url><html>📅 Original date posted:2022-03-20&#xA;📝 Original message:&#xA;Good morning everyone,&#xA;&#xA;with regards to zerobasefee, I think that the argument that HTLCs are&#xA;costly doesn&#39;t quite hold up because they are always free to an&#xA;attacker as it stands. However, I fully agree with Zmn&#39;s opinion that&#xA;it&#39;s not necessary to bang our head against any opposition to this&#xA;because we can simply follow his excellent method for overweighing&#xA;base fee. I believe this is a very natural approach to let the market&#xA;decide on the relative importance of optimized routing vs base fees.&#xA;&#xA;As to Martin&#39;s approximation research, I have asked myself similar&#xA;questions. Unfortunately, the paper you cite is paywalled and not&#xA;available at sci-hub, so I haven&#39;t read it. FWIW, I believe I have a&#xA;simple proof that minimum cost flow preserves approximation FACTORS:&#xA;&#xA;Let O be the original problem and A the approximated problem such that&#xA;every flow in O can be mapped 1:1 to a flow in A and vice versa. Let&#xA;every edge e in O be represented by a set of edges in A whose total&#xA;cost is within a factor (1+epsilon) for every possible flow (could be&#xA;over- or underestimating). Note that this means that every flow in O&#xA;has cost within a factor (1+epsilon) for the corresponding flow in A&#xA;and vice versa.&#xA;&#xA;Now let f_a be the min cost flow in A and f_o the min cost flow in O.&#xA;Assume that c(f_o)(1+epsilon)&lt;c(f_a). Then f_o corresponds to a flow&#xA;in A that is cheaper than f_a, but that&#39;s impossible because f_a is&#xA;the min cost flow.&#xA;QED.&#xA;&#xA;Problems might arise anyway because we represent probabilities only&#xA;logarithmically in the cost, so that a factor of (1+epsilon)&#xA;corresponds to an exponent (1+epsilon) for the probabilities. But René&#xA;seems optimistic that the resulting flows look good enough in&#xA;practice.&#xA;&#xA;I am still optimistic that exact solvers with something like the cost&#xA;scaling approach might also be feasible (as long as they produce&#xA;integer flows), but I am happy that this simple approximation approach&#xA;seems good enough. This should save us a lot of work because there are&#xA;many linear min cost solvers available that represent years of&#xA;cumulative work in optimization research.&#xA;&#xA;Cheers&#xA;  Stefan&#xA;&#xA;Am Sa., 19. März 2022 um 22:09 Uhr schrieb Martin via Lightning-dev&#xA;&lt;lightning-dev at lists.linuxfoundation.org&gt;:&#xA;&gt;&#xA;&gt; Dear Carsten, Rene and fellow lightning developers,&#xA;&gt;&#xA;&gt; Regarding the approximation quality of the minimum convex cost flow formulation for multi-part payments on the lightning network [1] and Carsten&#39;s discussion points on Twitter [2] and on the mailing list:&#xA;&gt;&#xA;&gt; &gt; 8) Quality of Approximation&#xA;&gt; &gt;&#xA;&gt; &gt; There are some problems in computer science that are hard/impossible to&#xA;&gt; &gt; approximate, in the sense that any kind of deviation from the optimum&#xA;&gt; &gt; could cause the computed results to be extremely bad. Do you have some&#xA;&gt; &gt; idea (or proof) that your kind of approximation isn&#39;t causing a major&#xA;&gt; &gt; issue? I guess a piece-wise linearization with an infinite number of&#xA;&gt; &gt; pieces corresponds to the optimal result. Given a finite number of&#xA;&gt; &gt; pieces, how large is the difference to the optimum?&#xA;&gt;&#xA;&gt; I did some literature research and came across an insightful paper [3] by Dorit Hochbaum from 1993, that proves proximity results for integer and continuous optimal solutions of the minimum convex cost flow as well as proximity results of the optimal solutions for a piecewise linear approximation and the original problem.&#xA;&gt;&#xA;&gt; Admittedly theoretical results, however, it further underpins that a piecewise linear approximation is a reasonable approach to find optimal flows and even shows that searching for optimal solutions on the continuous domain (e.g. with descent methods from convex optimization) also gives near-optimal solutions on the integer domain.&#xA;&gt;&#xA;&gt; Cheers,&#xA;&gt; Martin&#xA;&gt;&#xA;&gt; [1] https://arxiv.org/abs/2107.05322&#xA;&gt; [2] https://twitter.com/renepickhardt/status/1502293438498234371&#xA;&gt; [3] https://www.worldscientific.com/doi/abs/10.1142/9789812798190_0005&#xA;&gt; _______________________________________________&#xA;&gt; Lightning-dev mailing list&#xA;&gt; Lightning-dev at lists.linuxfoundation.org&#xA;&gt; https://lists.linuxfoundation.org/mailman/listinfo/lightning-dev</html></oembed>