termination is used in its general meaning, but it is bounded by the programming scope.
Questions tagged [termination]
351 questions
4
votes
1 answer
How to catch SIGTERM in a pod with Minikube
I'm using the simplest docker ever:
FROM ubuntu
COPY script.sh /script.sh
CMD /script.sh
Where all the script does is:
#!/bin/bash
function sigterm() {
echo "Got SIGTERM"
exit
}
trap sigterm SIGTERM
i=1
while true; do
echo "$(date…

Amir Mehler
- 4,140
- 3
- 27
- 36
4
votes
3 answers
Coq: viewing proof term during proof script writing
So, I've got a proof that looks like this:
induction t; intros; inversion H ; crush.
It solves all my goals, but when I do Qed, I get the following error:
Cannot guess decreasing argument of fix.
So somewhere in the generated proof term, there's…

jmite
- 8,171
- 6
- 40
- 81
4
votes
1 answer
Decreasing argument (and what is a Program Fixpoint)
Consider the following fixpoint:
Require Import Coq.Lists.List.
Import ListNotations.
Inductive my_type: Type:=
| Left: my_type
| Right: my_type
.
Fixpoint decrease (which: my_type) (left right: list my_type) : list my_type :=
match which with
|…

Bromind
- 1,065
- 8
- 23
4
votes
3 answers
Python, launch a .py program and terminate the previous program
I would like to launch a python program from another python program and concurrently quit the previous program.
Here what i've done:
if(self.start_button.pression==1):
os.system('python program_to_launch.py')
sys.exit()
The result…

Ziru93
- 71
- 1
- 2
- 6
4
votes
1 answer
How stop, terminate, shutdown and exit are related?
I read Learn Some Erlang about supervisors and completely lost. They have stop and terminate functions
Whenever you want to terminate an application, you have the top supervisor of the VM shut down (this is done for you with functions like…

Val
- 1
- 8
- 40
- 64
4
votes
6 answers
What happens in WCF to methods with IsOneWay=true at application termination
I have a client application that once in while notifies about its progress a service.
The method call to the service is marked with IsOneWay=true, because the notification doesn't need any return value and I don't want to delay.
The client may…
Ami Bar
4
votes
1 answer
Make automatic termination proof use different size function
I have written a custom size function size2 for my datatype. Using this function I can manually prove the termination of my function:
termination
apply (relation "measure (λ(a,b,c). size2 c)")
apply auto
done
Is there a way to make fun use my…

Peter Zeller
- 2,245
- 19
- 23
4
votes
1 answer
Termination condition prolog
My teacher provided us with some slides regarding Prolog and I found something a bit weird.
reverse([],[]).
reverse([X|Xs],Zs) :- reverse(Xs,Ys), append(Ys, [X], Zs).
According to him, the program terminates when the 1st argument reverse([],..) is…

GRoutar
- 1,311
- 1
- 15
- 38
4
votes
1 answer
How to correctly close a connection with Poco::HTTPSClientSession?
I run into a problem with Poco::HTTPSClientSession and don't know how to handle it.
Description (or what happens)
A HTTPS connection to a server is established with the use of the Poco::HTTPSClientSession class. Connection establishment,…

Andreas Florath
- 4,418
- 22
- 32
3
votes
2 answers
Run a external application in java but don't wait for it to finish
I'm writing an app in java allowing me to run other applications. To do that, I've used an Process class object, but when I do, the app awaits the process to end before exiting itself. Is there a way to run external application in Java, but don't…

Daniel Cisek
- 931
- 3
- 9
- 23
3
votes
1 answer
Maps (Substitutions) With Infinite Domains
Finite maps model substitutions with finite domains. I either need to emulate operations on substitutions with infinite domains, or find a suitable way to represent substitutions with infinite domains. For instance, consider the restriction…

emi
- 5,380
- 1
- 27
- 45
3
votes
1 answer
Sequence Diagram(termination of object)
I prepared a university assignment where they asked me to create sequence diagram. Here is the diagram.
The teacher rejected the diagram and asked me to mention termination symbol in the diagram. I don't know what is the termination symbol in…

zeshan ahmad
- 45
- 1
- 4
3
votes
2 answers
How to implement the factorial sequence in successor arithmetics for all argument modes?
The following Prolog program defines a predicate fact/2 for computing the factorial of an integer in successor arithmetics:
fact(0, s(0)).
fact(s(X), Y) :-
fact(X, Z),
prod(s(X), Z, Y).
prod(0, _, 0).
prod(s(U), V, W) :-
sum(V, X, W),
…

Géry Ogam
- 6,336
- 4
- 38
- 67
3
votes
1 answer
Should the first and second arguments be swapped in a rule defining addition?
There are two possible rules for addition in Prolog, with different termination properties according to cTI:
cTI reports sum(A,B,C)terminates_if b(A);b(C). for the following rule:
sum(0, Y, Y).
sum(s(X), Y, s(Z)) :-
sum(X, Y, Z).
cTI reports…

Géry Ogam
- 6,336
- 4
- 38
- 67
3
votes
1 answer
Can any additional axiom make Coq Turing complete?
Here I mean axiom as what we can define with the Axiom keyword in Coq Gallina, not with such command-line argument passing to Coq.
I know some axioms make Coq inconsistent. However, AFAIK they don't make Coq Turing complete. In my rough…

12412316
- 725
- 7
- 17