frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

Logical implication is a comparison operator

https://btdmaster.bearblog.dev/logical-implication-as-comparison/
27•btdmaster•3d ago

Comments

Nicolas89•3d ago
Probably à typing mistake in "Denying the consequent" section, which should rather state "if P => Q then not-Q => not-P"?
btdmaster•3d ago
Great catch, thanks!
ufo•5h ago
One quite useful application of this is that implication can play the role of the partial-order operator in a Galois Connection. A Gallois connection is an iff-and-only-if formula of the form

    F(x) ≤ y  iff x ≤ G(y)
One form of this is the tautology when F(x) = (x and a), G(y) = (a => y), and pick logical implication as the "≤".

    ((x and a) => y) iff (x => (a => y))
https://en.wikipedia.org/wiki/Galois_connection#Power_set;_i...
gettingoverit•3h ago
F is a left adjoint of G, and tautology below is a tensor-hom adjunction :)
gettingoverit•3h ago
That's because you can consider categories of preorders and formulas where these operators will be morphisms.

(b >= c) && (a >= b) -> (a >= c) is a composition.

The more interesting consequence is that function types and implications are different names for the same thing. This is a Curry-Howard-Lambek correspondence.

This means that in order to prove

(b -> c) -> (a -> b) -> (a -> c)

it's enough to implement a function

f g h x = g (h x)

Another consequence is that exponentiation a^b can be considered the same thing as b -> a.

a^(bc) = (a^b)^c

(b && c) -> a = c -> b -> a

qihqi•2h ago
prepositions p(a) -> q(a) can be thought as super set relationships. Let P = {a | p(a) holds} and Q = {a | q(a) holds) then p(a) -> q(a) and the statement P is subset of Q is the same.
spyrja•1h ago
Such a satisfying result! However the example is confusing. "Because it is cloudy it will rain." Shouldn't that be the other way around (ie. rain implies the presence of clouds)?
atoav•1h ago
Given that it can be cloudy and not rain, but (for the sake of the example) not rain without clouds¹ I would agree.

¹: in reality weather can be extremely weird sometimes. I had it rain without visible clouds before on the open field. I am pretty sure it was just very light and uniform fog I was inside of, that would count as a cloud technically, but one could argue..

fjfaase•24m ago
This assumes that the value of true is larger than false. In Visual Basic true is equal to -1, the signed two-complement value were all bits are set.

How to handle people dismissing io_uring as insecure?

https://github.com/axboe/liburing/discussions/1047
18•nromiun•24m ago•3 comments

“Dynamic Programming” is not referring to “computer programming”

https://www.vidarholen.net/contents/blog/?p=1172
92•r4um•2d ago•13 comments

The Daily Life of a Medieval King

https://www.medievalists.net/2025/07/medieval-king-daily-life/
25•diodorus•3d ago•3 comments

Show HN: X11 desktop widget that shows location of your network peers on a map

https://github.com/h2337/connmap
111•h2337•6h ago•46 comments

Staying cool without refrigerants: Next-generation Peltier cooling

https://news.samsung.com/global/interview-staying-cool-without-refrigerants-how-samsung-is-pioneering-next-generation-peltier-cooling
235•simonebrunozzi•10h ago•166 comments

Log by time, not by count

https://johnscolaro.xyz/blog/log-by-time-not-by-count
78•JohnScolaro•5h ago•24 comments

Agents built from alloys

https://xbow.com/blog/alloy-agents/
94•summarity•6h ago•44 comments

XMLUI

https://blog.jonudell.net/2025/07/18/introducing-xmlui/
501•mpweiher•16h ago•259 comments

ESP32-Faikin: ESP32 based module to control Daikin aircon units

https://github.com/revk/ESP32-Faikin
25•todsacerdoti•2h ago•8 comments

New colors without shooting lasers into your eyes

https://dynomight.net/colors/
348•zdw•3d ago•88 comments

Simulating hand-drawn motion with SVG filters

https://camillovisini.com/coding/simulating-hand-drawn-motion-with-svg-filters
172•camillovisini•3d ago•15 comments

Using the Matrix Cores of AMD RDNA 4 architecture GPUs

https://gpuopen.com/learn/using_matrix_core_amd_rdna4/
37•ibobev•2d ago•1 comments

Stdio(3) change: FILE is now opaque

https://undeadly.org/cgi?action=article;sid=20250717103345
131•gslin•12h ago•53 comments

Coding with LLMs in the summer of 2025 – an update

https://antirez.com/news/154
463•antirez•19h ago•317 comments

SIOF (Scheme in One File) – A Minimal R7RS Scheme System

https://github.com/false-schemers/siof
32•gjvc•1d ago•2 comments

Peep Show is the most realistic portrayal of evil I have seen (2020)

https://mattlakeman.org/2020/01/22/peep-show-the-most-realistic-portrayal-of-evil-ive-ever-seen/
111•Michelangelo11•9h ago•35 comments

How slow motion became cinema’s dominant special effect

https://newrepublic.com/article/196262/slow-motion-became-cinema-dominant-special-effect-downtime
19•cainxinth•3d ago•9 comments

IPv6 Based Canvas

https://canvas.openbased.org/
46•tylermarques•8h ago•2 comments

Show HN: Conductor, a Mac app that lets you run a bunch of Claude Codes at once

https://conductor.build/
161•Charlieholtz•3d ago•76 comments

What my mother didn’t talk about (2020)

https://www.buzzfeednews.com/article/karolinawaclawiak/what-my-mother-didnt-talk-about-karolina-waclawiak
53•NaOH•3d ago•15 comments

FFmpeg devs boast of another 100x leap thanks to handwritten assembly code

https://www.tomshardware.com/software/the-biggest-speedup-ive-seen-so-far-ffmpeg-devs-boast-of-another-100x-leap-thanks-to-handwritten-assembly-code
256•harambae•9h ago•79 comments

Subreply – An open source text-only social network

https://github.com/lucianmarin/subreply
90•lcnmrn•11h ago•47 comments

Speeding up my ZSH shell

https://scottspence.com/posts/speeding-up-my-zsh-shell
166•saikatsg•14h ago•81 comments

Digital vassals? French Government ‘exposes citizens’ data to US'

https://brusselssignal.eu/2025/07/digital-vassals-french-government-exposes-citizens-data-to-us/
207•ColinWright•19h ago•105 comments

What birdsong and back ends can teach us about magic

https://digitalseams.com/blog/what-birdsong-and-backends-can-teach-us-about-magic
29•nkurz•6h ago•7 comments

JOVE – Jonathan’s Own Version of Emacs

https://github.com/jonmacs/jove/
51•nanna•3d ago•28 comments

AI is killing the web – can anything save it?

https://www.economist.com/business/2025/07/14/ai-is-killing-the-web-can-anything-save-it
184•edward•21h ago•223 comments

Insights on Teufel’s first open-source speaker

https://blog.teufelaudio.com/visionary-mynds-insights-on-teufels-first-open-source-speaker/
87•lis•13h ago•17 comments

Logical implication is a comparison operator

https://btdmaster.bearblog.dev/logical-implication-as-comparison/
27•btdmaster•3d ago•9 comments

Tell me again about neurons now

https://www.science.org/content/blog-post/tell-me-again-about-neurons-now
28•strangattractor•3d ago•17 comments