comp.lang.ada
 help / color / mirror / Atom feed
From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: Interfacing Ada With Full Runtime Directly to Electronic Chips
Date: Tue, 3 Jan 2017 22:41:40 +0100
Date: 2017-01-03T22:41:40+01:00	[thread overview]
Message-ID: <o4h5qj$1i15$1@gioia.aioe.org> (raw)
In-Reply-To: b7685470-e609-467f-b3d6-f14440b6d855@googlegroups.com

On 2017-01-03 21:50, Shark8 wrote:
> On Tuesday, January 3, 2017 at 1:34:31 PM UTC-7, Dmitry A. Kazakov wrote:
>> On 2017-01-03 19:02, Shark8 wrote:
>>> On Tuesday, January 3, 2017 at 3:34:33 AM UTC-7, Dmitry A. Kazakov wrote:
>>>> On 2017-01-03 06:33, Shark8 wrote:
>>>>
>>>>> That's really interesting, because the system I want to do
>>>>> [ultimately] is a ternary computer -- for which tri-state logic is a
>>>>> perfect fit.
>>>>
>>>> Out of curiosity, why tri-state logic and not full four-state one?
>>>> Tri-state is incomplete in some operations (e.g. in implication).
>>>
>>> The completeness of the logic-system depends on which logic-system
>>> is  being used -- there are several for three-valued logic -- but it is a
>>> non-issue because you can use full Boolean logic (e.g.) by defining 0 to
>>> be True and ±1 to be False (i.e. using inverse-logic).*
>>
>> [...]
>>
>> I see, it is just a ternary system and not logic in the sense of lattice
>> and inference, like {False, True, Unknown}.
>
> You can model True/False/Unknown -- just map each value to one of {1,0,J}, obviously.

Maybe

> But how would a lattice & inference system look? Esp. at the gate-level.

Logic gates? A lattice has "and", "or", "not", obeying de Morgan rules. 
They are same as Boolean when arguments are Boolean. E.g. the truth 
table for "and":

and F T U
--+------
F | F F F
T | F T U
U | F U U

I understood that this has little (if anything at all) to do with the 
system you had in mind. The similarity of names is coincidental.

Considering flow of control in a logical system with "unknown" state. 
Let you have

    if A and B then
       S1;
    else
       S2;
    end if;

Let A = U and B = T. Then A and B = U. So both S1 and S2 must be 
evaluated but their side effects kept aside until some point, where you 
become certain what path was to choose. Then you commit the effects of 
this only path.

In fuzzy systems it is called defuzzification. I am not familiar with 
quantum computing, but I guess it is kind of similar to this. You 
"calculate" all possible states and at some point collapse all of them 
into just one.

Now if you had a forth state you wold follow no path if A and B would 
evaluate it. So it is "one"/true, "another"/false, "any", "none", a 
complete set of choices.

-- 
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de

  reply	other threads:[~2017-01-03 21:41 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-02  2:42 Interfacing Ada With Full Runtime Directly to Electronic Chips patrick
2017-01-02  9:14 ` Dmitry A. Kazakov
2017-01-02 13:28   ` patrick
2017-01-02 17:19     ` Dmitry A. Kazakov
2017-01-03  2:41       ` patrick
2017-01-03  5:33     ` Shark8
2017-01-03 10:34       ` Dmitry A. Kazakov
2017-01-03 18:02         ` Shark8
2017-01-03 20:34           ` Dmitry A. Kazakov
2017-01-03 20:50             ` Shark8
2017-01-03 21:41               ` Dmitry A. Kazakov [this message]
2017-01-02 14:02 ` Brian Drummond
2017-01-02 15:02 ` Dennis Lee Bieber
2017-01-02 16:25 ` Simon Wright
2017-01-02 16:46   ` patrick
2017-01-04 19:29   ` antispam
2017-01-04 20:51     ` Simon Wright
2017-01-04 22:05       ` antispam
2017-01-03  7:55 ` philip.munts
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox