Logic pills: the Boolean basics

The mathematician and philosopher George Boole (1815–1864) developed the association between logic and mathematics by analyzing the laws of mental operations underlying reasoning, and expressing them in a symbolic language that would allow logical operators to act like algebraic operators, by means of computable statements. He created what is known as Boolean algebra.

Boolean logic is the foundation of computer science and digital electronics, and it is based on the manipulation of variables that can take only two values: True (1) and False (0). The Boolean logical operators, detailed below, are applied as ‘logic gates’ in electronic devices, making it possible to build the basic operations, then replicated billions of times in modern devices, to create the computers and smartphones we know. More precisely, these include both physical gates, transistors* in hardware, and non-physical gates, in the instructions of operating system and application code.

The fundamental operators are:
AND: returns true (1) only if all inputs are true.
OR: returns true (1) if at least one input is true.
NOT (negation): an operator that inverts the input value: 1 becomes 0, and vice versa.

ABAND (A*B)OR (A+B)
0000
0101
1001
1111

Using the fundamental operators one can build the logic gates:
NAND (Not-AND): output is false only if all inputs are true.
NOR (Not-OR): output is true only if all inputs are false.
XOR (Exclusive OR): true if the inputs are different, false if they are the same.

Combinations of these gates and the fundamental operators, together with an algebra that makes them workable, make it possible to build digital circuits and instruction structures that process and store data.

 

Transistor*

Transistors are devices made of semiconductor materials (e.g., modified silicon) that behave like a ‘switch’, regulating current flow on the basis of a control signal (in the sense that its value determines whether the flow can pass or not).
OFF state: if there is no signal on the control (value 0), the transistor blocks the flow (open circuit).
ON state: if there is a signal on the control (value 1), the transistor allows the flow (closed circuit).

Logic gates can thus be built:
AND gate: two transistors in series; current flows only if both are ON (1 AND 1 = 1)
OR gate: two transistors in parallel; current flows if at least one of the two is ON (1 OR 0 = 1)
NOT gate: called an inverter; a single transistor configured so as to disconnect the output (open circuit) if it receives the signal (value 1).

please, rate this post

Odifreddi’s Lucretius

Perhaps I will not add anything about an author who has demonstrated not only competence but also genuine originality in many of his works, but I want to write this review, trying not to slip into apologetics.
I am referring to Come stanno le cose. Il mio Lucrezio, la mia Venere, an essay (published by Rizzoli, 2014) by Piergiorgio Odifreddi (1950–), who, in a new complete translation of the poem De rerum natura by Titus Lucretius Carus (98/94–50/55), provides a version in modern words and meanings—not only to make it easier to understand ideas conceived two millennia ago, but above all to highlight their incredible modernity. An excellent conception of the work and an excellent execution, in which the translation on the right-hand pages and the interpretation on the facing pages make it possible to appreciate both the ideas that today we would call scientific and the philosophical visions of a great author.

In high school (a scientific high school) De rerum natura was the subject of a (mild) in-depth study (though we were required to buy a book about the poem, which I still keep). But our teacher was not able to convey its greatness and meanings, surely because he had not understood them himself, with the partial excuse that the ‘literal’ translation by someone who, perhaps like him, being wholly incompetent in scientific matters, was not even able to sense how, in recent centuries, science has confirmed some old intuitions, obviously at the level of general principles.

Odifreddi’s work, therefore, not only restores Lucretius to his full stature, but also tries to fill a gap that is perhaps typically Italian, where scientific culture has always been little widespread and little valued. This has not prevented excellence, of course, but Italians’ general lack of competence on scientific and technical topics is limiting in a modern world founded above all on technology. I realize I do not know the situation well in other countries, but my thought was also tied to the ‘historical responsibility’ of being part of a land that is a ‘cradle of civilization’ and of thought, now reduced to a third-rate caricature in geo-economic and political balances, unworthy of a cultural heritage that has no comparable equal in the world. A heritage that must be rediscovered, overcoming the obscurantist inertia of a ruling class inadequate to its role. And I am not referring only to the current one, except in the sense that, being in office, they are the only ones who could do more than a little to change things.

Perhaps it is a small gesture, Odifreddi’s, but it is an excellent achievement that deserves to be known.


Odifreddi Lucrezio

please, rate this post

Strange Mathematical Objects: Möbius strip

Figure 1 – Möbius strip

Möbius strip


The Möbius strip is a three-dimensional object studied in topology* with unusual characteristics: it has only one side and only one boundary (see Figure 1). It can be easily made from an elongated rectangular strip of paper by joining the short ends after first giving one end a half-twist. With the object in hand, one can immediately verify—also by tracing it with a finger—that it has a single side and a single boundary.

Its name comes from August Ferdinand Möbius (1790–1868), who was the first to study non-orientable surfaces (surfaces on which it is not possible to distinguish positive and negative configurations, an “inside” and an “outside”) and ruled surfaces (which can be obtained as a union of straight lines, such as the plane, the cylinder, and the cone), like this one.

In ℝ³ the strip is described by the following parametric equations in Cartesian coordinates:

 Möbius strip equationswhere r and l are fixed positive numbers with r>l (a necessary condition for the strip to have the possibility of twisting).

Informally, one can say that the parameter u is an angle that “goes around” the strip counterclockwise, while the parameter v “moves from one side to the other” across the strip. Fixing two values of v, for example v=−1,1, one obtains the curves in Figures 2 and 3, which, taken together, outline the boundary of the strip in Figure 4. As is easy to guess, for v=0 one obtains a circle, i.e., a closed curve halfway along the strip. Interestingly, cutting the strip along this midline does not produce two strips, but a new single strip twisted twice.


Figure 2 – Curve obtained with v=1 (source: Riccardo Dossena, UniPV)

Mobius curve v 1

Figure 3 – Curve obtained with v=−1 (source: Riccardo Dossena, UniPV)

Mobius curve -1

Figure 4 – Curve obtained by combining the previous two, the boundary of the strip (source: Riccardo Dossena, UniPV)

Mobius curve v1 and v -1


Once the boundary is defined, it is easy to understand how the set of all the curves described by the two parameters u,v, over the intervals considered, can define the entire surface of the strip.

Topological considerations are omitted, and the reader is invited to do some experiments by constructing strips with two or more twists of the ends before joining them, and by cutting the strip along its middle in the various cases to see the results… surprising!

 

Topology*
Topology is an area of mathematics that studies the properties of mathematical objects (shapes) that do not change when a deformation is performed without ‘holes’, ‘overlaps’, or ‘gluing’. For example, a cube is topologically equivalent to a sphere, whereas a torus (a doughnut) is not, because it has a hole that cannot be removed by deformation.
For further reading, the Wikipedia page is comprehensive.

please, rate this post

Strange Mathematical Objects: Torricelli’s Trumpet

Figure 1 – Torricelli trumpet

Torricelli trumpet

The Torricelli trumpet is a solid obtained by revolving the curve with equation y=1/x around the x-axis over the interval [1,+∞), see Figure 2. It takes its name from Evangelista Torricelli (1608–1647), who studied it in the 17th century.
The peculiarity of this solid is that it has finite volume but infinite surface area.


Figure 2 – Torricelli trumpet 2D equation (source: maeckes.nl)

Torricelli trumpet equation


To verify this today we can easily use integral calculus, which did not exist in Torricelli’s time.

In a coordinate system (x,y,z) the horn is described by the parametric equations:
x(ξ,θ)=ξ
y(ξ,θ)=acos⁡θ/ξ
z(ξ,θ)=asin⁡θ/ξ

The volume and the surface area are computed as follows, where  a > 1  is a value of  x:

Volume and area trumpet

It is therefore clear that as  a → ∞  the volume approaches the finite quantity π , while the surface area diverges.

This apparent paradox, finite and infinite values associated with the same object, can be explained easily mathematically, as follows. If we consider a can of paint, it certainly has a finite volume. If we spread it over a surface, mathematically the thickness could be infinitesimal, so it could indeed cover an infinite area.

please, rate this post

17 February 1600 – the burning of Giordano Bruno

In Rome, in Campo de’ Fiori, one of the countless murders perpetrated throughout history for conquest and, as in this case, for maintaining imperial power over free thought and ultimately over peoples.
That the killing of the enemy has always been an anthropic standard is evident. Borrowed, as a degeneration, from the animal struggle for survival, to the point of turning it into a ‘moral rule’. Yet the physical violence of domination by the stronger is still understandable in a confrontation ‘on equal terms’. In ancient wars soldiers faced each other directly. Then, perhaps, the victors also abused civilian populations, but in some way they had demonstrated a physical superiority, at least in violence.

The qualitative leap to the suppression of ideas, ideas that differ from the theoretical framework of those in command, is typical of religions, which have often provided a moral and identity-based framework of legitimation for the violence of political and economic powers.

Starting from the common celebratory dating of an event of a religious nature (sun worship later becoming the birth of the ‘son of a god’), one underestimates the conditioning power of religions, namely of those responsible for managing religious sects, founded on the human weakness of the need for a superior being and for its interpreters. Each one claiming to be the bearer of the only truth, incidentally different from that of the others. All fine, if it ended there. But when a different idea is not confronted with better ideas, but by suppressing the bearer of the idea, what is at stake is not truth: what is at stake is power.

Nature is incredibly violent in its evolution, just think of a volcano or an earthquake on our small planet, or, with infinitely greater power, the explosion of a supernova or a black hole, or the gravitational merger of galaxies. We cannot apply criteria of morality or justice to Nature in events that vaporize entire planets in a few instants. But we can to the bipedal mammals of this mild and quiet planet. Endowed with the faculty of rational thought, we should respect this potential in others in order to respect it in ourselves. Yet the ambition for the power of domination has always won by a landslide. And so the bearers of opposing ideas, of a freedom of thought that could weaken one’s own positions as monopolists of ‘truth’, are killed, if possible amid atrocious suffering. Thus small, petty little men of a sect which, in the name of a revealed truth, resorted to coercion and to the killing, after years of imprisonment, of a visionary genius such as Giordano Bruno. Fortunately, however, he managed to pass on to us his thoughts, his visions, still relevant after more than four centuries.

And religious sects are still active today in many parts of the world and, by merging with political power, they become coercive apparatuses that often translate into systematic persecutions and violence—now industrialized in modern ways, but always with the same aim: the suppression of people’s freedom and of ideas, to impose their own dominion through violence and not comparing better ideas on a rational level.

For a more in-depth look at the life and thought of Giordano Bruno, the Wikipedia page is comprehensive.


Giordano Bruno
Giordano Bruno (source copia-di-arte.com)

please, rate this post

Logic pills: Implies (→) is not follows (⇒)

In classical logic* it is easy to confuse them, but they are different things.
Given two declarative statements to which a truth value can be assigned, an antecedent P (premise) and a consequent C (conclusion), we consider:

P → C (if P then C) a statement with a truth value
P ⇒ C (from P follows C) an inference: C is derivable by assuming P.

The crucial difference lies precisely in this deducibility obtainable in the inference. Instead, the implication P → C is true even when P is false. Therefore it can happen that P is false, C is false, and yet P → C is true. In particular, if P is false, P → C is true whatever C is. For this reason, the implication by itself does not establish (nor prove) the truth of C.
Instead, from P follows C is legitimate only when P is available as a hypothesis in the reasoning: and it is the typical case in which, if P and P → C, then one can conclude C. But if P is false (or is not assumed), the implication is said to be ‘vacuously true’ and it does not authorize any conclusion about C.

If and only if: equivalence as a double inference
The properties of inference make it very useful: a large part of mathematical proofs is based on if and only if, which expresses an equivalence between two statements A and B.
To say:
A if and only if B
means precisely to prove both directions:
A ⇒ B (A is sufficient for B)
B ⇒ A (B is sufficient for A)
When both inferences are valid, A and B are logically equivalent, therefore they have the same truth value.

 

Classical logic *

This is how one refers to those logical systems (the most used in basic mathematics) in which laws and rules considered traditional hold, such as:

Law of excluded middle: every statement is either true or false (P or not-P)
Non-contradiction: P and not-P cannot both be true
Double negation: negating twice brings one back to the original statement
Explosion (in the presence of contradiction): from a contradiction one can derive any conclusion.

‘Non-classical’ logics arise from wanting to give up or modify some of these features. By way of example:

intuitionistic logic: does not accept the law of excluded middle as a general rule
paraconsistent logics: do not accept explosion (they tolerate contradictions without making everything ‘collapse’)
modal logics: add operators such as necessarily / possibly.

please, rate this post

Mie scattering and white clouds

Why are clouds white?
We need to examine a type of scattering that involves photons of solar radiation when they interact with the molecules that make up the tiny droplets (or water droplets) forming clouds or fog. Unlike Rayleigh scattering (which involves nitrogen and oxygen molecules in the air, see my post The Rayleigh scattering and the blue sky, whose sizes are smaller than the wavelength of the incoming radiation), in this case the droplets are of the same order of magnitude as the radiation wavelength (or slightly larger). This phenomenon is called Mie scattering, named after the German physicist Gustav Adolf Fedor Wilhelm Ludwig Mie (1869–1957), who provided a rigorous mathematical demonstration of it.

Because these microdroplets are ‘large’, they scatter nearly all wavelengths with approximately the same intensity, so the light appears white (or whitish). There is no wavelength-selection effect as in the case of the blue sky.
Another characteristic is that the scattering does not occur uniformly in all directions but mainly forward (in the same direction as the incoming light), creating strong glare, while a smaller fraction is scattered backward. See Figure 2.


Figure 1 – White clouds !

White clouds

 

Figure 2 – Rayleigh scattering and Mie scattering

Mie scattering


This explains why clouds tend to be white and why, when you shine car headlights into fog, a blinding glow is produced (due mainly to the backscattered component), see Figure 3. It also explains why truck drivers -whose driving position is at least a couple of meters higher than the level of their headlights (rather than about half a meter or less, as in cars)- experience this backscattering effect to a lesser extent and therefore can actually see the road in fog better than a car driver. See Figure 4 (clearly rather banal examples, only ‘evocative’ to suggest points of view).
This is also the reason why fog lights are always mounted very low, both on cars and on commercial vehicles: to maximize the angle relative to the backscattered glare produced by Mie scattering.


Figure 3 – Blinding glow while driving a car in the fog

Car driving in the fog

 

Figure 4 – Driving a truck at night

Truck driving


Technically,
Mie theory provides an exact solution to Maxwell’s equations for the interaction of a plane electromagnetic wave with a homogeneous sphere of dielectric material. It has no limits beyond the size of the interacting material (as in the case of Rayleigh scattering).
In Mie theory, the total extinction of light (absorption + scattering) is defined by the coefficient Qₑₓₜ.
Mathematically, the diffuse electric field is expressed as an infinite series of coefficients (called aₙ and bₙ), which represent the contributions of the electric and magnetic multipoles:
Mie scattering maths
where Mₙ and Nₙ are spherical vector wave functions. The larger the particle (i.e. the fog), the more terms in the series are needed to calculate the correct scattering.

please, rate this post

The error function as an integration trick

The error function, erf(x), represents a statistical function, but it can also be used as an integration trick in the case of complex exponentials, which occur fairly frequently in the study of physics, for example, in differential equations describing heat propagation. It is also used in quantum mechanics to describe particles represented by a wave function, and in astrophysics for the spectroscopic analysis of spectral lines, as in the examples discussed in detail (in english and italian translation).

pdf  Brussi 2026_The error function as an integration trick

pdf_ita  Brussi 2026_La funzione di errore come trucco di integrazione


error function

please, rate this post

Changing perspective: Einstein between Kant’s certainties and Hume’s doubts

We can imagine the context in which Albert Einstein’s Gedankenexperimente (thought experiments) were born: the study of philosophy. To dismantle the idea that space and time were the same for everyone, the young physicist had to engage in an intellectual duel with two giants of thought: Immanuel Kant and David Hume.

Kant’s legacy: space as an objective necessity
From an early age, Einstein had studied Kant in depth, and from him he learned a fundamental concept: we are not passive spectators of the world; our mind does not simply record reality, but actively processes it. Kant argued that space and time are internal structures of the mind, the necessary conditions for having any experience at all. See also my post Kant and Space.
This idea was crucial for Einstein because it helped him understand that science is not merely a collection of data, but a construction of reason. However, the limit of Kant’s thought lay in the claim that these structures must be rigid and identical for every rational being. For Kant, space was only the one described in Euclid’s geometry books, and time was a universal flow, the same for everyone.

Hume’s inspiration: the courage to doubt
When Einstein began working on his thought experiments about light, he realized that Kant’s ‘fixed rules’ no longer worked. To move beyond them, David Hume’s philosophy was certainly of help.
Hume was a radical philosopher who urged people to take nothing for granted. His motto was simple: if a concept cannot be verified by the senses or through a concrete measurement, then it is suspicious. Hume taught Einstein to have the courage to doubt concepts that seem obvious to ‘common sense’. Einstein was aware that no one had ever measured ‘absolute time’, flowing identically for all; it was only a belief grounded in habit, not in physical evidence.

The synthesis: Relativity is born
Without the support of Hume’s skepticism, Einstein might not have had the audacity to question time. He understood that if the speed of light must remain constant, then time and space must be able to change depending on the speed of the observer (the principles of Special Relativity).
In this way, Einstein went beyond Kant using Hume’s method: he retained the Kantian idea that the mind must create categories to read the world, but he showed that these categories are not immutable. Space and time are not unchanging a priori forms, but physical quantities that can contract or stretch.

Einstein was thus a philosopher among physicists. He learned from Kant that the mind must anticipate reality (that is, describe it even before physical observations) with a coherent theoretical model, but he learned from Hume that no idea is untouchable. In this way, he found the courage to understand that if old theories had become full of gaps or incapable of describing the universe in a unified (that is, invariant) way, one had to have the audacity to redesign the very structure of thought itself, even before the facts forced it.


Albert Einstein

please, rate this post

Kant and Space

The redefinition of the concept of space is one of the revolutionary foundations thought of Immanuel Kant (1724-1804): the abandonment of the common, Newtonian-derived idea of space as an absolute entity or an objective ‘container’ of reality. Kant addresses the problem within the Transcendental Aesthetic, the section of the Critique of Pure Reason devoted to sensibility. He distinguishes a metaphysical exposition, which establishes the a priori nature of space, and a transcendental exposition, which derives from it space’s role as a condition of the possibility of experience and of geometry.

Space as Pure Intuition
In contrast to empiricists, Kant argues that space cannot be derived from experience. In order to perceive an object as located in a place different from that occupied by another object, or simply as ‘external’ to us, we must already presuppose the representation of space. Therefore, space is not a general concept constructed by abstraction, but a pure a priori intuition:
– intuition: because it is not a logical construction, but an immediate and singular representation within which we place sensory data
– a priori: because it precedes every sensation and is its necessary condition.

Transcendental Subjectivity
This is the core of Kant’s ‘Copernican Revolution’. Kant claims that space does not belong to things in themselves (noumena), but is the form of outer sense. In other words, it is the way in which the human subject is structured to receive information from the world. This leads to a fundamental epistemological distinction:
– transcendental ideality: if we abstract from the knowing subject, space is nothing as a thing in itself; it has no autonomous existence outside our faculties and is not a determination of noumena
– empirical reality: at the same time, space has objective validity for all phenomena (for every possible experience), for every object that could ever present itself to our senses.

The Foundation of Geometry
Kant uses this view to explain, in a scientific context, the nature of geometry’s synthetic a priori judgments. He is, of course, considering only Euclidean geometry as a description of the space of experience, having lived half a century before Bernhard Riemann (1826-1866) and the development of elliptic geometry. If geometry is the science that studies the properties of space, and if space is the a priori form of our mind, then geometrical theorems will be universally and necessarily valid for all objects of experience. In short, geometry applies to the physical world not because the world is ‘geometrical by nature’, but because we can perceive the world only through a spatial structure that we ourselves project onto phenomenal reality.

In conclusion, for Kant space is not an object of physical investigation like others, but the condition of possibility of our experience. Without this subjective structure, the perception of the external world would be impossible.
Clearly, this Kantian interpretation should be reconsidered in light of the implications of elliptic geometry and of General Relativity, and of the consequences of Special Relativity. In General Relativity, Einstein showed that space is not merely a passive state of possibility, but a dynamic physical entity that bends under the influence of mass: space acts on matter, and matter acts on space. Special Relativity undermines the objectivity of spatial extensions: lengths are measures of objects, but ultimately they are measures of the spatial coordinate component parallel to the relative velocity between reference frames, which is not invariant. The requirement, as noted above, that this structure (space) be objective stands in sharp contradiction with the physical reality described by General and Special Relativity.

Quite simply, while Kant wanted to base science on philosophy, Einstein demonstrated that it is philosophy that must bow (and bend with General Relativity!) before the physical evidence of reality.

see also the post:
link  Changing perspective: Einstein between Kant’s certainties and Hume’s doubts


Immanuel Kant

please, rate this post