totality Questions
4
Solved
I'm trying to formalize each integer as an equivalence class of pairs of natural numbers, where the first component is the positive part, and the second component is the negative part.
Definition ...
Tractor asked 4/7, 2019 at 22:46
2
Solved
Coq, unlike many others, accepts an optional explicit parameter,which can be used to indicate the decreasing structure of a fixpoint definition.
From Gallina specification, 1.3.4,
Fixpoint ident ...
Fritts asked 9/1, 2018 at 17:40
1
Solved
They seem to serve similar purposes. The one difference I've noticed so far is that while Program Fixpoint will accept a compound measure like {measure (length l1 + length l2) }, Function seems to ...
3
Solved
I am trying to define the Ackermann-Peters function in Coq, and I'm getting an error message that I don't understand. As you can see, I'm packaging the arguments a, b of Ackermann in a pair ab; I p...
2
Solved
I have the following definition for terms :
Inductive term : Type :=
| Var : variable -> term
| Func : function_symbol -> list term -> term.
and a function pos_list taking a list of t...
Goodygoody asked 20/5, 2017 at 17:42
1
http://docs.idris-lang.org/en/v0.99/tutorial/theorems.html#totality-checking-issues states that:
Secondly, the current implementation has had limited effort put into it so far, so there may stil...
1
What are sized types in Agda? I've tried to read the paper about MiniAgda, but failed to proceed due to the following points:
Why are data types generic over their size? As far as I know the size...
Kookaburra asked 2/11, 2016 at 15:27
1
Solved
is there anything like the tactic simpl for Program Fixpoints?
In particular, how can one proof the following trivial statement?
Program Fixpoint bla (n:nat) {measure n} :=
match n with
| 0 =&g...
Urbanist asked 31/3, 2016 at 9:22
2
Solved
I'm trying to define the game inductive type for combinatorial games. I want a comparison method which tells if two games are lessOrEq, greatOrEq, lessOrConf or greatOrConf. Then I can check if two...
Cellarer asked 25/6, 2013 at 12:19
1
Solved
I am fooling around with Coq. Specifically, I am trying to implement mergesort and then prove that it works.
My attempt at an implementation was:
Fixpoint sort ls :=
match ls with
| nil => nil...
1
© 2022 - 2024 — McMap. All rights reserved.