Skip to main content
Stack Overflow
  1. About
  2. For Teams
Filter by
Sorted by
Tagged with
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
75 views

I'm quite new to Coq, I have done several projects in OCaml before and I'm doing this as a preparation for a course I'm taking next semester. A friend recommended the exercise of proofing the ...
0 votes
0 answers
63 views

What I want to be able to do is fold a function over the bindings in a map, and look up keys. Coq has the FMap modules, is there a similar Isabelle theory module? https://coq.inria.fr/doc/v8.19/stdlib/...
1 vote
1 answer
72 views

As an alternative induction principle of nat, nat_ind2 is defined like so: Definition nat_ind2 : forall (P : nat -> Prop), P 0 -> P 1 -> (forall n : nat, P n -> P (S(S n))) -> ...
0 votes
1 answer
261 views

I have a function: Fixpoint eval (fuel : nat) (env : environment) (e : exp) := match fuel with | 0 => None | S fuel' => (...) end I'm now proving a property of such ...
0 votes
2 answers
92 views

I'm currently writing the following incomplete function for this project: extend : ∀ o asc (s : CSet (suc k) o) → SC asc → SC (add s asc) extend 0 asc s rewrite l≡0 s Eq.refl = restrict (add (...
0 votes
1 answer
91 views

I've been trying 'port' some of the imperative language (IMP2) formalized in Isabelle here: https://www.isa-afp.org/sessions/imp2/#Semantics.html to Agda. First, here are some initial translations I ...
adev's user avatar
  • 23
0 votes
2 answers
127 views

While attempting to prove All in Software Foundations Volume 1, Logic.v, I came across a proof state of simply True. I.e. my proof state looks like: T : Type P : T -> Prop H : forall x : T, False -...
0 votes
1 answer
174 views

Given that we have the types T1, T2 and T_Union, as well as functions proj1 : T_Union -> option T1 and proj2 : T_Union -> option T2, and a sequence represented as nat -> T_Union, how can you ...
1 vote
1 answer
140 views

I want to prove below goal. n_n: N n_ih: n_n * (n_n + 1) / 2 = arith_sum n_n ⊢ (n_n + 1) * (n_n + 1 + 1) / 2 = n_n + 1 + n_n * (n_n + 1) / 2 ring, simp, linarith is not working. Also I tried calc, ...
1 vote
1 answer
58 views

I was going through the Coq book from the maths perspective. I was trying to define a dependently typed function that returned a length list with n trues depending on the number trues we want. Coq ...
0 votes
1 answer
352 views

I want to defined a lenghted list but I like arguments with names at the top of the inductive definition. Whenever I try that I get unification errors with things I hoped worked and was forced to do a ...

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