nLab call-by-value

Redirected from "classical charged particles".

Context

Type theory

natural deduction metalanguage, practical foundations

  1. type formation rule
  2. term introduction rule
  3. term elimination rule
  4. computation rule

type theory (dependent, intensional, observational type theory, homotopy type theory)

syntax object language

computational trinitarianism =
propositions as types +programs as proofs +relation type theory/category theory

logicset theory (internal logic of)category theorytype theory
propositionsetobjecttype
predicatefamily of setsdisplay morphismdependent type
proofelementgeneralized elementterm/program
cut rulecomposition of classifying morphisms / pullback of display mapssubstitution
introduction rule for implicationcounit for hom-tensor adjunctionlambda
elimination rule for implicationunit for hom-tensor adjunctionapplication
cut elimination for implicationone of the zigzag identities for hom-tensor adjunctionbeta reduction
identity elimination for implicationthe other zigzag identity for hom-tensor adjunctioneta conversion
truesingletonterminal object/(-2)-truncated objecth-level 0-type/unit type
falseempty setinitial objectempty type
proposition, truth valuesubsingletonsubterminal object/(-1)-truncated objecth-proposition, mere proposition
logical conjunctioncartesian productproductproduct type
disjunctiondisjoint union (support of)coproduct ((-1)-truncation of)sum type (bracket type of)
implicationfunction set (into subsingleton)internal hom (into subterminal object)function type (into h-proposition)
negationfunction set into empty setinternal hom into initial objectfunction type into empty type
universal quantificationindexed cartesian product (of family of subsingletons)dependent product (of family of subterminal objects)dependent product type (of family of h-propositions)
existential quantificationindexed disjoint union (support of)dependent sum ((-1)-truncation of)dependent sum type (bracket type of)
logical equivalencebijection setobject of isomorphismsequivalence type
support setsupport object/(-1)-truncationpropositional truncation/bracket type
n-image of morphism into terminal object/n-truncationn-truncation modality
propositional equalitydiagonal function/diagonal subset/diagonal relationpath space objectidentity type/path type
completely presented setsetdiscrete object/0-truncated objecth-level 2-type/set/h-set
setset with equivalence relationinternal 0-groupoidBishop set/setoid with its pseudo-equivalence relation an actual equivalence relation
equivalence class/quotient setquotientquotient type
inductioncolimitinductive type, W-type, M-type
higher inductionhigher colimithigher inductive type
-0-truncated higher colimitquotient inductive type
coinductionlimitcoinductive type
presettype without identity types
set of truth valuessubobject classifiertype of propositions
domain of discourseuniverseobject classifiertype universe
modalityclosure operator, (idempotent) monadmodal type theory, monad (in computer science)
linear logic(symmetric, closed) monoidal categorylinear type theory/quantum computation
proof netstring diagramquantum circuit
(absence of) contraction rule(absence of) diagonalno-cloning theorem
synthetic mathematicsdomain specific embedded programming language

homotopy levels

semantics

Computability

Contents

Idea

Call-by-value (CbV) is a widely used evaluation strategy? for the λ-calculus and many programming languages. It is often studied in comparison with call-by-name? (CbN).

Reduction rules

The small-step operational semantics for the CbV λ\lambda-calculus is given by the following rules:

  • if e 1e 1e_1 \to e'_1, then e 1e 2e 1e 2e_1 e_2 \to e_1' e_2 (left application rule),
  • if eee \to e', then vevev e \to v e' (right application rule), and
  • (λx.e)ve[v/x](\lambda x. e) v \to e[v/x] (β v\beta_v rule),

where vv ranges over values, that is, over variables and abstractions.

This reduction is said to be weak as terms inside abstractions cannot be reduced.

Side effects

In the presence of side effects, such as state mutation or random number sampling, the unrestricted β\beta reduction is no longer confluent, and CbV and CbN no longer always agree on all computations.

For example, only in the former is (fun x -> x + x) (random 0 1) : int always even.

Denotational semantics

For calculi featuring recursion or side effects, one needs to be careful about the interpretation of values and functions for the substitution and computational soundness properties to hold. A common choice is to interpret function types as strict functions, i.e., as functions mapping \bot to \bot.

Relation to linear logic

We can define various translations from the standard λ\lambda-calculus to the linear λ\lambda-calculus, in particular ee ve \mapsto e^\mathsf{v}.

We have e *ve \to^\ast v in the (weak) CbV λ\lambda-calculus if and only if e v *v ve^\mathsf{v} \to^\ast v^\mathsf{v} in the linear λ\lambda-calculus with (surface) reduction. Similarly, strong call-by-value corresponds to deep linear reduction.

References

  • J. Maraist, M. Odersky, D.N. Turner, P. Wadler. Call-by-name, call-by-value, call-by-need and the linear lambda calculus (1999).

Last revised on July 10, 2026 at 07:51:57. See the history of this page for a list of all contributions to it.