Skip to main content
Stack Overflow
  1. About
  2. For Teams
Filter by
Sorted by
Tagged with
1 vote
1 answer
39 views

This works in Idris 2 : intersperse : a -> LazyList a -> LazyList a intersperse _ Nil = Nil intersperse _ (x :: Nil) = x :: Nil intersperse sep (x :: y :: xs) = x :: sep :: ...
Nikolas M.K.'s user avatar
0 votes
1 answer
55 views

I am writing bindings for the Z3 solver library for Idris, but have gotten stuck because I can't seem to find a way to pass a Vect AnyPtr to a Z3 function (in this case, Z3_mk_and with signature ...
Pandapip1's user avatar
  • 813
0 votes
0 answers
31 views

In Idris2 I have a predicate P : List A -> Type (It is actually a typing judgement where the list is a context, but I'm keeping the question general to avoid explaining everything). I also have a ...
0 votes
0 answers
47 views

I expected lemma4 to reduce so that Refl would work but when trying that I get Error: While processing right hand side of lemma4. Can't solve constraint between: [p] and expanded_shape (DimSame Scalar ...
Belphegor's user avatar
1 vote
0 answers
31 views

I know how to prove isomorphisms like between binary trees and rose trees, and there are also clear isomorphisms between functor transformers (Sum, Product, etc.) and simplifications, for example the ...
1 vote
1 answer
29 views

Say I have the following interface in idris: interface I a b where x : a y : b And then I try to define the following function: x' : I a b => a x' = x But then I get this error: Error: While ...
1 vote
0 answers
101 views

I'm learning Idris and decided to do it by contributing to the Rosetta code. First task, implementing a palindrome checker. I have implemented several versions for run-time checking and one simple ...
Nemanja's user avatar
  • 111
1 vote
0 answers
26 views

I want to get a list of data constructors in Idris 2. How is this done? This seems to work, but is there a better way to do this? module GetConstructors import Language.Reflection %language ...
0 votes
1 answer
40 views

I have trouble figuring out what my Idris2 Type- or Compile-Error is about, so I thought I could ask some Idris2 Veterans or Enthusiasts to give me some explanation on how I can make my approach work ...
2 votes
0 answers
125 views

I can't figure out how to prove this isomorphism. Intuitively it holds, because the only way to combine the zero parameter and the successor parameter is to apply the successor parameter a few times ...
0 votes
0 answers
57 views

I'm trying to write code where I transform a curried representation of a function to a function taking a Vect argument. With the function structures I've tried, I got stuck, because I'd need to know ...
1 vote
0 answers
89 views

Why is Prelude.mod marked as a total function when it is not defined when the second argument is zero? Main> :total mod Prelude.Num.mod is total I was just bit by this and ran into a run-time ...
0 votes
1 answer
78 views

Consider the following dependent data type definition: data Container : Nat -> Type where Level : {n : _} -> Container n The following function compiles: getLevel : Container n -> Nat ...
jfMR's user avatar
  • 25.2k
1 vote
1 answer
65 views

I am new to Idris2 and need some guidance on proving the following relationship: simplify_max : (LTE x y) -> (max x y) = y simplify_max prf = ?code I read in the docs that the constructors for LTE ...
Hermes's user avatar
  • 21
0 votes
1 answer
77 views

I am confused about the difference between pack and fastPack functions in Idris2 (as of 0.7.0). Both have the same signature: :t pack Prelude.pack : List Char -> String :t fastPack Prelude.fastPack ...
thor's user avatar
  • 22.8k

15 30 50 per page
1
2 3

AltStyle によって変換されたページ (->オリジナル) /