1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
|
% AUTHOR: Amlal El Mahrouss
% PURPOSE: WG03: Design of the Nectar Programming Language.
\documentclass[11pt, a4paper]{article}
\usepackage{graphicx}
\usepackage{listings}
\usepackage{amsmath,amssymb,amsthm}
\usepackage{xcolor}
\usepackage{hyperref}
\usepackage[margin=0.5in,top=1in,bottom=1in]{geometry}
\title{Design of the Nectar Programming Language.}
\author{Amlal El Mahrouss\\\texttt{amlal@nekernel.org}}
\date{February 2026}
\definecolor{codegray}{gray}{0.95}
\definecolor{codeblue}{rgb}{0.1,0.1,0.8}
\definecolor{codegreen}{rgb}{0,0.6,0}
\definecolor{codepurple}{rgb}{0.58,0,0.82}
\lstset{
language=C++,
backgroundcolor=\color{codegray},
basicstyle=\footnotesize\ttfamily,
keywordstyle=\color{codeblue}\bfseries,
commentstyle=\color{codegreen},
stringstyle=\color{codepurple},
numbers=left,
numberstyle=\tiny\color{gray},
stepnumber=1,
numbersep=5pt,
breaklines=true,
breakatwhitespace=false,
frame=single,
rulecolor=\color{black},
captionpos=b,
keepspaces=true,
showspaces=false,
showstringspaces=false,
showtabs=false,
tabsize=2
}
\begin{document}
\bf \maketitle
\begin{center}
\rule[0.01cm]{17cm}{0.01cm}
\end{center}
\abstract
{
Nectar as presented in its primer—is a compiled programming language—designed for systems programming with high-level abstractions.
It is statically typed—compiled, and supports multi-paradigm programming. This paper covers the mathematical concepts behind the language.
}
\begin{center}
\rule[1cm]{17cm}{0.01cm}
\end{center}
\section{Definition of the $\lambda$-Execution}
Let a program $\mathbb{P}$ be:
\begin{lstlisting}
extern printf;
const main()
{
const written := printf("%s:13", "Hello, world!\n");
return written;
}
\end{lstlisting}
$\mathbb{P}$ shall execute:
\begin{lstlisting}
$ Hello, world!
\end{lstlisting}
and return variant $written$, now defined as $\mathbb{W}$, upon completion. Such program that we denote as $\Theta$ may be defined as:
\begin{equation}
\Theta(x) = \lambda x.(P(x))
\end{equation}
where $P(x) = \mathbb{P}$ with an argument of $x$. \\ Let $\Theta(x)$ be defined as the $\lambda$-Execution of a program $\mathbb{P}$.
\section{Definitions}
\item Nectar: A compiled systems programming language—currently studied in this paper.
\item $\lambda$-Execution: Formally defined as: $\Theta(x) = \lambda x.(P(x))$.
\item $\mathbb{W}$: The return variant—an $\lambda$-Execution variable based on the $\lambda$-Execution result.
\section{Conclusion}
We have introduced definitions, and properties which shall be be applied to programming languages, semantics, and other related mathematicial applications.
\section{References}
\begin{enumerate}
\item NeKernel.org (2026), \href{https://nekernel.org/nekernel}{https://nekernel.org}
\item NeKernel.org Primer (2026), \href{https://nekernel.org/nectar\_primer.html}{https://nekernel.org/nectar\_primer.html}
\item El Mahrouss, A. (2026). The Execution Semantics: On Axioms, Domains, and Authority. (v1.0.0). Zenodo. https://doi.org/10.5281/zenodo.18362375
\item El Mahrouss, A. (2026). The Mathematics of Execution. Zenodo. \\https://doi.org/10.5281/zenodo.18399140
\item Church, A. (1936). An Unsolvable Problem of Elementary Number Theory. American Journal of Mathematics, 58(2), 345–363. https://doi.org/10.2307/2371045
\end{enumerate}
\end{document}
|