Skip to main content
Stack Overflow
  1. About
  2. For Teams
Filter by
Sorted by
Tagged with
8 votes
1 answer
347 views

In (an idealized version of) Haskell, is there a concrete type a such that we can implement Eq a lawfully, but it is impossible to implement Ord a? The order doesn't need to be meaningful, and any ...
1 vote
0 answers
62 views

Take the following TypeScript code (you can see it live at https://tsplay.dev/w1GYAm): type Graph<T=any> = { A?: T, B?: T, C?: T, }; type X<T extends Graph> = T['B'] | T['C'] |...
1 vote
1 answer
208 views

In my Agda program, I have a small function that checks for string equality (simplified for example): open import Data.String.Base using (String) open import Date.String.Properties using (_≈?_) open ...
0 votes
2 answers
256 views

I'm working with linear problems on rationals in Z3. To use Z3 I take SBV. An example of a problem I pose is: import Data.SBV solution1 = do x <- sRational "x" w <- sRational &...
2 votes
1 answer
557 views

In Z3 (Python), I solved the following: y1,y2,x = Ints('y1 y2 x') univ = ForAll([x], (y1<y2+x*x)) phi = Exists([y1,y2], univ) solve(phi) Note that the encoding does not make sense, just playing. ...
3 votes
1 answer
240 views

In the Coq standard library, the "less than" relation is decidable for the natural numbers (lt_dec) and for the integers (Z_lt_dec). When I search however (Search ({ _ _ _ } + {~ _ _ _ })) ...
1 vote
2 answers
2k views

We know that the problem "Does this Turing machine take at least this finite number of steps on that input?" is decidable, because it will always answer yes or no, where it will say yes if the machine ...
0 votes
1 answer
422 views

Trying to teach myself Computational Theory, and stumbled upon this question: Suppose we have two sets: {T | T is a turing machine and L(T) contains at least 1001 string} {T | T is a turing machine ...
0 votes
1 answer
1k views

We say language L is recursive if it is decided by a TM. L is recursively enumerable (r.e.) if it's recognized by a TM. Suppose, enumerator (en-r) is a deterministic Turing Machine with a printer that ...
0 votes
1 answer
186 views

I came across a statement postulating that it's undecidable whether a TM overwrites any of its own input. What would be intuition as well as an actual proof for that?
0 votes
1 answer
105 views

Given two lists xs and ys, I would like to obtain a value of Dec(xs ≡ ys). Does any one know the name of the standard library module which contains such an operator?
1 vote
1 answer
918 views

I have a question from the domain of theoretical computer science. The so-called universal language, L_u, is composed of pairs (M, w) such that w \in L(M). The language L_ne consists of machines M (...
1 vote
1 answer
607 views

first of all is above question is correct? i think decidability is property of particular problem like 1. whether given string belong to particular language 2. whether TM will reach particular state ...
0 votes
0 answers
808 views

I am trying to understand why this "proof" of Etm undecidability is wrong. ALLtm={ < M >|M is a TM, L(M)=∑*} ETM={< M >|M is a TM, L(M)=∅} We know that ALLTM is undecidable, lets ...
1 vote
1 answer
101 views

I'm trying to define a simple predicate to determine if a formula is a subformula of a given formal over a simple inductively defined syntax. I'm running into a few, presumably simple, problems. (i) ...
user avatar

15 30 50 per page
1
2 3 4 5
...
7

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