Top new questions this week:
|
I was messing around with toy lemmas in Idris and came up with this silly proof. …
|
I defined this inductive type for representing JSON elements …
|
Lean, unlike e.g. Haskell, makes you prove that recursive definitions of functions will eventually terminate, if the compiler can’t do it by using structural recursion, by using …
|
I’ve defined a function (foldMem below) that Lean compiles into a brecOn eliminator. I need to reason with it later on, so I’m …
|
To avoid tedious repetition I have a tactic that looks something like this: Ltac unfolds := try unfold foo; try unfold bar; try unfold baz; apply some_lemma. …
|
I’ve seen elaboration-zoo, pi-forall, Mini-TT, etc., all kinds of demonstrations of dependent type elaboration. However, none of them support Prop. I am interested …
|
Theorem Proving in Lean highlights a distinction between definitional and propositional equality when creating recursive functions: The example above shows that the defining equations for …
|
Greatest hits from previous weeks:
|
Type systems, and the proof assistants based on them, are frequently divided into predicative and impredicative. What exactly does this mean? I’ve heard the slogan “impredicativity means you can’…
|
In the init/logic.lean file of the Lean 3 standard library, nonempty and inhabited are defined. It seems like these two classes …
|
I’ve seen in mathlib several cases where the universes are explicit, that is Type u instead of Type*. Is there any advantage in …
|
Coq and Lean are two of the most common proof assistants out there (but the question of course applies to other proof assistants too). What are the main differences between Coq and Lean? Ideally it …
|
A type that is a member of a universe can be coerced into a higher universe. Is that coercion injective? That is, if two elements of U1 are equal after being coerced to U2, does that imply they are …
|
In category theory a presheaf is defined as a functor whose target is $\mathrm{Set}$, and the concept is used to state the Yoneda lemma. The appearance of $\mathrm{Set}$ in the definition comes from …
|
I keep seeing these phrasing in some proof assistants/elaborators and their issues/internal discussions (e.g. Github search results in cooltt), that seems not that related to the actual proofs/…
|