correccion lambda

This commit is contained in:
Vladimir Lemus 2023-11-26 12:23:05 -06:00
parent 2a766ff2e7
commit 4ecd0e7164
46 changed files with 2 additions and 2 deletions

0
.gitignore vendored Normal file → Executable file
View File

0
README.md Normal file → Executable file
View File

0
altorden.py Normal file → Executable file
View File

0
altorden.py~ Normal file → Executable file
View File

0
cadenas.pdf Normal file → Executable file
View File

0
cadenas.tex Normal file → Executable file
View File

BIN
calculo_lambda.pdf Normal file → Executable file

Binary file not shown.

4
calculo_lambda.tex Normal file → Executable file
View File

@ -236,11 +236,11 @@ Con las reglas antes mencionadas sólo resta decir que para construir todas las
\item Aplicar una función a un argumento
\end{itemize}
¿Porque la diferencia entre asociar una variable y aplicar a un argumento? Tal como cuando definimos una función matemática del estilo $f(x)=x^2-3x$ las variable $x$ es más un marco donde eventualmente puede entrar un valor, alevaluar la ecuación en un número es que estamos aplicando la función a un argumento. Las variables son términos $\lambda$ y son la base de las definiciones deductivas del cálculo $\lambda$.
¿Porque la diferencia entre asociar una variable y aplicar a un argumento? Tal como cuando definimos una función matemática del estilo $f(x)=x^2-3x$ las variable $x$ es más un marco donde eventualmente puede entrar un valor, al evaluar la ecuación en un número es que estamos aplicando la función a un argumento. Las variables son términos $\lambda$ y son la base de las definiciones deductivas del cálculo $\lambda$.
En el trato normal de las variables en el cálculo $\lambda$ los tipos no entran en juego, está des-tipado (no sé si así se dice, pero suena cagado).
Imaginemos que se tienen dos términos $\lambda$ $M$ y $N$, $MN$ también es un término $\lambda$, podría ser por ejemplo que $M$ es una función y $N$ una entrada (podría ser también una función). La forma más formal de escribirlo es $(M)N$ donde se dice que $N$ es una entrada aplicada a la función $M$. El paréntesis es operador \emph{aplicación} y se asocia a la izquierda (MN)P.
Imaginemos que se tienen dos términos $\lambda$ $M$ y $N$, $MN$ también es un término $\lambda$, podría ser por ejemplo que $M$ es una función y $N$ una entrada (podría ser también una función). La manera más formal de escribirlo es $(M)N$ donde se dice que $N$ es una entrada aplicada a la función $M$. El paréntesis es operador \emph{aplicación} y se asocia a la izquierda (MN)P.
Pero realmente el orden de la aplicación es de izquierda a derecha, por ejemplo, si tenemos $\lambda x.E(x)$ lo que quiere decir es que con la entrada $x$ la función calcula $E(x).$

0
calculo_lambda.tex~ Normal file → Executable file
View File

0
cesar.hs Normal file → Executable file
View File

0
comple.jpg Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 30 KiB

After

Width:  |  Height:  |  Size: 30 KiB

0
dic.hs Normal file → Executable file
View File

0
entsal.hs Normal file → Executable file
View File

0
fun.hs Normal file → Executable file
View File

0
introduccion.pdf Normal file → Executable file
View File

0
introduccion.tex Normal file → Executable file
View File

0
introduccion.tex~ Normal file → Executable file
View File

0
lista-ch.py Normal file → Executable file
View File

0
nats.py Normal file → Executable file
View File

0
ordenar.hs Normal file → Executable file
View File

0
ordenar.hs~ Normal file → Executable file
View File

0
pascalazy.py Normal file → Executable file
View File

0
pascalazy.py~ Normal file → Executable file
View File

0
pascaldask.py Normal file → Executable file
View File

0
patrones.pdf Normal file → Executable file
View File

0
patrones.tex Normal file → Executable file
View File

0
prim.py Normal file → Executable file
View File

0
prim.py~ Normal file → Executable file
View File

0
prome.hs Normal file → Executable file
View File

0
recursion.hs Normal file → Executable file
View File

0
recursion.pdf Normal file → Executable file
View File

0
recursion.py Normal file → Executable file
View File

0
recursion.tex Normal file → Executable file
View File

0
set.hs Normal file → Executable file
View File

0
suma.hs Normal file → Executable file
View File

0
suma_unch.py Normal file → Executable file
View File

0
sumalista.hs Normal file → Executable file
View File

0
sumalista.hs~ Normal file → Executable file
View File

0
tarea1.pdf Normal file → Executable file
View File

0
tarea1.tex Normal file → Executable file
View File

0
tarea2.pdf Normal file → Executable file
View File

0
tarea2.tex Normal file → Executable file
View File

0
tarea3.pdf Normal file → Executable file
View File

0
tarea3.tex Normal file → Executable file
View File

0
tarea4.pdf Normal file → Executable file
View File

0
tarea4.tex Normal file → Executable file
View File