🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.theory
Article #233

Re: Computation requires correct rather than arbitrary finite string transformations

#233
From: Python
Date: Sat, 17 Oct 2026 03:51
231 lines
8850 bytes
Peter,

There is another hardware example that occurred to me after our discussion 
about ROM lookup versus "real" computation. I have not mentioned it 
before: the old distinction between hardwired and microcoded CPU control.

I think it creates an interesting problem for the boundary you are drawing 
between computation and lookup, because computer architecture provides a 
fairly continuous spectrum between specialized logic, lookup tables, 
control ROMs, microcode, and ordinary software.

In a hardwired CPU control unit, part of the behavior of an instruction is 
implemented by specialized logic:

    (opcode, state, flags, ...)
                |
                v
    (control signals, next state)

using gates, multiplexers, PLAs, finite-state machines, etc.

In a microcoded CPU, part of essentially the same control function can 
instead be represented by a control store, historically often implemented 
as ROM:

    (microaddress, conditions)
                |
                v
          microinstruction

The microinstruction contains bits controlling registers, the ALU, 
datapath, memory operations, the microsequencer, etc.

So a control function that can be implemented using specialized 
combinational/sequential logic can also be represented, to a considerable 
extent, in tabular form in memory.

This seems directly relevant to your distinction between computation and 
lookup.

Suppose we have a finite control function:

    f : {0,1}^10 -> {0,1}^20

We could implement it using:

    - a 2^10 x 20 bit ROM
    - a PLA
    - AND/OR/NOT gates
    - FPGA LUTs
    - some mixture of these

At the mathematical level, all of these can implement exactly the same 
Boolean function.

Logic synthesis routinely performs transformations of this general kind. A 
truth table can be minimized into a Boolean network, while a Boolean 
network can be implemented using lookup tables.

So it becomes difficult to maintain that:

    the gate implementation computes the function

whereas:

    the ROM implementation merely retrieves a previously computed answer.

The difference is primarily one of implementation.

Microcode makes your "off-loaded computation" answer especially 
interesting.

Consider two processors implementing the same ISA.

CPU A implements some complex instruction using a hardwired finite-state 
control machine.

CPU B implements the same instruction using a sequence of 
microinstructions stored in a control ROM.

Suppose, for example, that the instruction performs multiplication.

In CPU A, the sequence of operations might be generated by a hardwired 
state machine.

In CPU B, essentially the same datapath might be controlled by a sequence 
of microinstructions fetched from the control store.

It would seem very strange to say:

    CPU A computes the multiplication,

but:

    CPU B merely looks up previously computed answers.

The microcode does not contain the answers to all possible 
multiplications. It contains a representation of the process used to 
obtain those answers.

This suggests a continuum rather than a sharp boundary:

    hardwired logic
          <->
    PLA / LUT
          <->
    control ROM
          <->
    microcode
          <->
    machine code
          <->
    software

Where exactly along this continuum does "real computation" begin or end 
under your definition?

We can make the problem even sharper.

Take some finite combinational function f(x).

Implementation A:

    A minimized network of logic gates.

Implementation B:

    A ROM addressed by x and containing f(x).

Implementation C:

    An FPGA whose LUTs have been configured to implement f.

C is particularly interesting because an FPGA LUT is, at the 
implementation level, essentially a tiny memory containing a truth table, 
with the input bits selecting the corresponding stored output.

So if lookup itself is not computation, we get the peculiar result that an 
FPGA logic circuit may cease to "compute" merely because we describe its 
implementation at the LUT level rather than at the Boolean-function level.

We can go still lower.

A ROM is itself a physical circuit. It contains address decoding, 
selection circuitry, storage elements, sense circuitry, etc. Taken as a 
whole, it implements a Boolean mapping:

    address -> output bits

So at a sufficiently low hardware level, the distinction between "lookup" 
and "logic" becomes largely an architectural distinction concerning how we 
choose to describe the device.

This gives us a concrete thought experiment.

Consider two control units implementing exactly the same finite-state 
transition function.

One is synthesized into gates.

The other is implemented using ROMs, PLAs, or LUTs.

Logic synthesis can mechanically transform representations of one kind 
into representations of the other.

At precisely which transformation does it cease to be computation?

I don't think "the computation was off-loaded" solves this particular 
problem, because there need not be any previously computed result 
involved.

We are simply looking at alternative physical implementations of the same 
transition function.

And this connects directly to your new distinction between:

    correct finite string transformations

and:

    arbitrary finite string transformations.

Whether a transformation is "correct" cannot follow merely from whether it 
is implemented using a ROM, LUT, PLA, or network of gates.

Correctness requires something against which the implementation is judged: 
a specification.

For example:

    SPECIFICATION:
        this circuit shall implement 8-bit addition

    IMPLEMENTATION:
        ROM, gates, LUTs, transistors, etc.

    VERIFICATION:
        establish that for every x,y,
        implementation(x,y) = (x+y) mod 256

Those are three different things.

Changing the physical implementation does not change the specified 
mathematical mapping.

This brings us directly back to the distinction I was making earlier:

    SEMANTICS specifies the mapping we require.

    COMPUTATION realizes that mapping.

    PROOF establishes that the realization satisfies the specification.

Your proposal appears to collapse the third into the second: a process 
counts as computation only when its transformations somehow carry their 
semantic justification with them.

But actual computer architecture gives us a very concrete reason to 
question that identification.

The same transition function can move continuously between ROM, LUT, PLA, 
hardwired logic, microcode and software without acquiring or losing its 
mathematical input/output behavior.

So if you claim that somewhere along this continuum it stops being 
computation, I think you need to identify exactly where that boundary 
occurs and explain what objective property changes at that point.

Otherwise "computation" is no longer describing what the machine does. It 
is describing an additional semantic property that you have chosen to 
require before calling what the machine does "computation".
Technical Details
Message-ID: <fms1WqVYlsJQQcaNtunW6uIGl48@jntp>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.goja.nl.eu.org!pasdenom.info!from-devjntp
References: <11822bi$39m36$1@dont-email.me> <11ae5av$21o9g$1@dont-email.me> <11asn58$34c0p$1@dont-email.me> <11at8pc$3av3k$1@dont-email.me> <f_YKn87tuZCaAVw6eoaEc6ePyAI@jntp> <11ategc$3d6ni$1@dont-email.me> <Onn9n5S387Ya-fabKrfkufzhCE0@jntp> <11atfck$3di1o$1@dont-email.me> <l8dd9SdodJtdB3bYrBX54ROsr0w@jntp> <11atj6p$3f2pf$1@dont-email.me>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.goja.nl.eu.org!pasdenom.info!from-devjntp
Message-ID: <fms1WqVYlsJQQcaNtunW6uIGl48@jntp>
JNTP-Route: nemoweb.net
JNTP-DataType: Article
Subject: Re: Computation requires correct rather than arbitrary finite string 
 transformations
References: <11822bi$39m36$1@dont-email.me> <11ae5av$21o9g$1@dont-email.me> <11asn58$34c0p$1@dont-email.me>
 <11at8pc$3av3k$1@dont-email.me> <f_YKn87tuZCaAVw6eoaEc6ePyAI@jntp> <11ategc$3d6ni$1@dont-email.me>
 <Onn9n5S387Ya-fabKrfkufzhCE0@jntp> <11atfck$3di1o$1@dont-email.me> <l8dd9SdodJtdB3bYrBX54ROsr0w@jntp>
 <11atj6p$3f2pf$1@dont-email.me>
Newsgroups: comp.theory
JNTP-HashClient: 5tUhx-lE-en_9lgQPcxYtk9mUQA
JNTP-ThreadID: 11822bi$39m36$1@dont-email.me
JNTP-Uri: https://www.nemoweb.net/?DataID=fms1WqVYlsJQQcaNtunW6uIGl48@jntp
User-Agent: Nemo/1.0
JNTP-OriginServer: nemoweb.net
Date: Sat, 17 Oct 26 03:51:14 +0000
Organization: Nemoweb
JNTP-Browser: Mozilla/5.0 (X11; Linux x86_64; rv:140.0) Gecko/20100101 Firefox/140.0
Injection-Info: nemoweb.net; posting-host="9c6808b08dc5ac71c7b023f9240309a3c6f65afc"; logging-data="2026-10-17T03:51:14Z/9845019"; posting-account="190@nemoweb.net"; mail-complaints-to="julien.arlandis@gmail.com"
JNTP-ProtocolVersion: 0.21.1
JNTP-Server: PhpNemoServer/0.94.5
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-JNTP-JsonNewsGateway: 0.96
From: Python <python@cccp.invalid>