1,706 karma · joined Dec 9, 2019 (6y ago) · 623 submissions
comment 4y ago · link · parent
Inductive types are built using constructors. An example, defining two lists:
l1 = nil
l2 = cons 1 l1
Induction/recursion principles (fixpoints + pattern matching) consume them to produce some other value.
Examples:
length nil = 0
length (cons x xs) = 1 + length xs
For coinductive types it's the inverse. Coinduction/corecursion principles (cofixpoints + copattern matching) produce them. Take streams with the destructors hd : Stream A -> A and tail : Stream A -> Stream A). By defining how it's destructors work on the stream, we define a stream blink : (Bool -> Stream Nat):
hd (blink True) = 0
hd (blink False) = 1
tail (blink True) = blink False
tail (blink False) = blink True
blink True is the infinite stream 0101010101010101... To consume the stream, you call the destructors on it (and receive the defined result).
Now, just like how records are inductive types defined via destructors, the same can be done allowing coinductive types to be defined via constructors. In Coq this is called positive coinductive types and they're the original form of coinductive types introduced to Coq (and the only one until ~2019), but they're also not exactly well behaved, which is why it's now recommended to use the negative form, though e.g. this paper still uses the positive form. If you want to know more about this, I'd recommend reading the Coq documentation :-)
>Also curious how they interact with the termination checker
While infinite, negative coinductive types don't pose any termination issue because they're lazy - blink only 'describes how to deconstruct it' and does not do any computation of its own. So if you apply a finite amount of destructors to it, you only get a finite computation.
(positive coinductive types are a bit more tricky - there's a special productivity condition for them.)
comment 4y ago · link · parent
This argument is absolutely insane to me. You weren't paid for your commuting time before - if work now fills that slot it's because you're choosing to work earlier/more.
comment 4y ago · link · parent
The pace at which methods scale up is currently a lot faster than hardware improvements, so unless these scaled up methods become incredibly lucrative (not impossible), I think it's quite likely we'll soon-ish (a couple years from now) see a slowdown.
comment 4y ago · link · parent
Otherwise, any "concept of certainty" that uses "100%" to refer to something that might not occur, is either gravely misusing mathematical notation or self-contradictory.
comment 4y ago · link · parent
I don't want to live in a society where law enforcement is left to big tech vigilantism. There's a reason that governments are granted a monopoly on violence, they have democratic legitimacy and accountability that other entities do not.
comment 4y ago · link · parent
They're literally just appending a race/gender string at the end [1]. In what world is that not just hot air?
[1] https://twitter.com/jd_pressman/status/1549523790060605440
comment 4y ago · link · parent
You might be able to force OpenAI to hand over a part of dall-e's revenue, but how would that work with an open source model like stable diffusion that runs on consumer hardware? There's really no way to control how much/in what way its used. Even if you make it illegal to use James Gurney's work to train model without his explicit permission, people could just finetune it in private with essentially no way to determine whether they used works they didn't have permission for.
The closest thing to the cassette recorder solution would be to put a tax on every computing sold, but that seems unlikely to me to be palatable to the general public.
We definitely have very interesting times ahead of us.