Hi,
Draw a Colored ASCII Christams tree with Prolog.
Bye
Hi,
Create a proof search in Combinatory Logic,
that finds a Combinator Expression as proof
for a given formula in propositional logic.
The propositional logic can do with
implication only, and it should be Linear Logic.
French logician Jean-Yves Girard is credited
with Linear Logic, and since we have implication
logic only, the Logic will be also affine, i.e.
it will have no contraction, which makes
it special towards certain paradoxes.
Bye
Mild Shock schrieb:
Hi,
Draw a Colored ASCII Christams tree with Prolog.
Bye
Create a proof search in Simple Types,
that finds Lambda Expressions as proof,
for a given formula in propositional logic.
we interpret a Goal as a function
from the hypotheses to the conclusion.
Sounds good? Anything else? :)
Hi,
For a combinatory logic there is a hint here:
5. Linear (BCI) and affine (BCK) combinatory logic https://ncatlab.org/nlab/show/combinatory+logic#LinearAndAffine
But I guess there are other ones as well?
Bye
P.S.: I didn't verfy whether BCK and BCI are really
affine and linear. They write combinator I is also
definable as CKK, this would give an embedding of affine
into linear. But possibly not vice versa? Can we show
all these things via Prolog?
Julio Di Egidio schrieb:
Sounds good? Anything else? :)
Hi,
Some other ones are here:
Linear Logic and Lazy Computation
J. Y. Girard and Y. Lafont - TAPSOFT '87 https://www.researchgate.net/publication/226363607
But they have also other connectives, not only implication.
Bye
Mild Shock schrieb:
Hi,
For a combinatory logic there is a hint here:
5. Linear (BCI) and affine (BCK) combinatory logic
https://ncatlab.org/nlab/show/combinatory+logic#LinearAndAffine
But I guess there are other ones as well?
Bye
P.S.: I didn't verfy whether BCK and BCI are really
affine and linear. They write combinator I is also
definable as CKK, this would give an embedding of affine
into linear. But possibly not vice versa? Can we show
all these things via Prolog?
Julio Di Egidio schrieb:
Sounds good? Anything else? :)
Hi,
Some other ones are here:
Linear Logic and Lazy Computation
J. Y. Girard and Y. Lafont - TAPSOFT '87 https://www.researchgate.net/publication/226363607
But they have also other connectives, not only implication.
Bye
Mild Shock schrieb:
Hi,
For a combinatory logic there is a hint here:
5. Linear (BCI) and affine (BCK) combinatory logic
https://ncatlab.org/nlab/show/combinatory+logic#LinearAndAffine
But I guess there are other ones as well?
Bye
P.S.: I didn't verfy whether BCK and BCI are really
affine and linear. They write combinator I is also
definable as CKK, this would give an embedding of affine
into linear. But possibly not vice versa? Can we show
all these things via Prolog?
Julio Di Egidio schrieb:
Sounds good? Anything else? :)
Julio Di Egidio schrieb:
Sounds good? Anything else? :)5. Linear (BCI) and affine (BCK) combinatory logic
But I guess there are other ones as well?
Advent of Logic 2024: Weekend 2
Create a proof search in Combinatory Logic,
that finds a Combinator Expression as proof
for a given formula in propositional logic.
Hi,
In the below * is modus ponens, not composition.
For example B and B' are interchangeable.
B' = C*B
B = C*B'
What are C, B and B':
C: ((a->(b->c))->(b->(a->c))))
B: ((b->c)->((a->b)->(a->c))))
B': ((a->b)->((b->c)->(a->c)))
So there is not only the calculus based on BCI,
producing hilbert style proofs in affine logic.
but there is also the calculus based on B'CI.
Bye
P.S.: The Lafont & Girard paper shows a calculus
using B', B' is the composition operator of
categorical logics.
Julio Di Egidio schrieb:
On 17/12/2024 20:59, Mild Shock wrote:
Julio Di Egidio schrieb:
Sounds good? Anything else? :)5. Linear (BCI) and affine (BCK) combinatory logic
But I guess there are other ones as well?
The RISK guy doesn't care about the million variants and
inflorescences and accessories: to begin with, try and give some
actual *substance* to your system.
Here is some historical intro to the problem I am hinting at:
<https://plato.stanford.edu/entries/intuitionistic-logic-development/objections.html>
-Julio
On 17/12/2024 20:59, Mild Shock wrote:
Julio Di Egidio schrieb:
Sounds good? Anything else? :)5. Linear (BCI) and affine (BCK) combinatory logic
But I guess there are other ones as well?
The RISK guy doesn't care about the million variants and inflorescences
and accessories: to begin with, try and give some actual *substance* to
your system.
Here is some historical intro to the problem I am hinting at: <https://plato.stanford.edu/entries/intuitionistic-logic-development/objections.html>
-Julio
The advent of logic tasks are not philosophical,
they directly ask for a calculus aka proof search
in Prolog. You could add some philosophical notes
to the resulting Prolog code.
Advent of Logic 2024: Weekend 2
Create a *proof search* in Combinatory Logic,
that finds a Combinator Expression as proof
for a given formula in propositional logic.
The propositional logic can do with
implication only, and it should be *Linear Logic*.
French logician Jean-Yves Girard is credited
with Linear Logic, and since we have implication
logic only, the Logic will be also *affine*, i.e.
it will have no contraction, which makes
it special towards certain paradoxes.
On 18/12/2024 08:43, Mild Shock wrote:
The advent of logic tasks are not philosophical,
they directly ask for a calculus aka proof search
in Prolog. You could add some philosophical notes
to the resulting Prolog code.
"Philosophy" as in not being a vacuous dumb fuck? I hope.
I was asking if my work would qualify for your challenge, in fact what
the challenge even is, since you cannot write a problem statement that
is one.
When you have missed that point, I have pointed out that accessorized
system variant 1765234 is utterly uninteresting when pure system 0 is
already a difficult foundational then coding problem otherwise a cheat.
But don't take my word for it.
-Julio
Maybe your work qualifies for Weekend 3.
I don't know yet. You have to tell us. Do
you think it implements a Natural Deduction
with Simple Types proof extraction?
On 14/12/2024 22:13, Mild Shock wrote:<snip>
Create a proof search in Simple Types,
that finds Lambda Expressions as proof,
for a given formula in propositional logic.
Thinking about it:
Either by hand or with a 'solve', we/I [*] go from a Goal to a Proof
(proof tree). And, by Curry-Howard, that is (already!) our Type and witnessing Term, i.e. our Proof is a program whose type is the Goal.
Indeed, we also already find type-checking: of a Proof against the Goal
it alleges to be a proof of.
<https://gist.github.com/jp-diegidio/b6a7a071f9f81a469c493c4afcc5cb11#file-gentzen-pl>
% (C=>X->Y) --> [(C,X=>Y)]https://gist.github.com/jp-diegidio/b6a7a071f9f81a469c493c4afcc5cb11
reduction(impI, (C=>X->Y), [[X|C]=>Y], []).
% (C,X->Y=>Z) --> [(C=>X),(C,Y=>Z)]
reduction(impE, (C0=>Z), [C=>X,[Y|C]=>Z], [H]) :-
use_hyp((_->_), C0, (X->Y), C, H).
On 14/12/2024 22:13, Mild Shock wrote:
Create a proof search in Simple Types,
that finds Lambda Expressions as proof,
for a given formula in propositional logic.
Thinking about it:
Either by hand or with a 'solve', we/I [*] go from a Goal to a Proof
(proof tree). And, by Curry-Howard, that is (already!) our Type and witnessing Term, i.e. our Proof is a program whose type is the Goal.
Indeed, we also already find type-checking: of a Proof against the Goal
it alleges to be a proof of.
What program does the Proof represent? If a Goal is of the form `G=>Z`, where `G` is the context (some collection of Formulas as hypotheses),
and Formula `Z` is the conclusion, we interpret a Goal as a function
from the hypotheses to the conclusion.
To execute a Proof we need a "machine", namely, a function 'eval' that
takes the Proof as well as witnessing Terms for each hypothesis, and
returns a Term witnessing the conclusion. (Which also requires a system
of Terms: but I am not yet sure about the details...)
More than that, we can 'compile' the Proof to some target language (the system's host language being the first candidate), to produce a function
in the target language that is like 'eval' except specialized to the
given Proof as well as to as many hypothesis Terms as can be fixed...
Sounds good? Anything else? :)
-Julio
[*] See <https://gist.github.com/jp-diegidio/b6a7a071f9f81a469c493c4afcc5cb11#file-gentzen-pl>
My interpretation might be unorthodox,
anyway here is concretely what I am doing
(a far better approximation that is): <https://en.wikipedia.org/wiki/Hindley%E2%80%93Milner_type_system#Syntax-directed_rule_system>
On 19/12/2024 18:40, Julio Di Egidio wrote:
My interpretation might be unorthodox, anyway here is concretely what
I am doing (a far better approximation that is):
<https://en.wikipedia.org/wiki/Hindley%E2%80%93Milner_type_system#Syntax-directed_rule_system>
That is, Hindley-Milner upside down:
a *closed* universe with Prop on top...
-Julio
Its different from yours. Yours has, it is
wrongly labled should be impL:
% (C,X->Y=>Z) --> [(C=>X),(C,Y=>Z)] /* A */
reduction(impE, (C0=>Z), [C=>X,[Y|C]=>Z], [H]) :-
use_hyp((_->_), C0, (X->Y), C, H).
On the other hand Hindley–Milner has [App],
which is the real impE:
% (C=>Y) --> [(C=>X->Y),(C=>X)] /* B */ https://en.wikipedia.org/wiki/Hindley%E2%80%93Milner_type_system#Syntax-directed_rule_system
/* A */ and /* B */ are different:
/* A */ Belongs to Sequent Calculus
in Gentzens Paper the Systems LJ and LK
/* B */ Belongs to Natural Deduction,
in Gentzens Paper the Systems NJ and NK
Algorithm W is what a Prolog interpreter would
do, when the Proof Term is given and when we
want to find the Principal Type.
For Weekend 3 the task is different, the Type
is given and we want to find the Proof Term.
Julio Di Egidio schrieb:
On 19/12/2024 18:40, Julio Di Egidio wrote:
My interpretation might be unorthodox, anyway here is concretely what
I am doing (a far better approximation that is):
<https://en.wikipedia.org/wiki/Hindley%E2%80%93Milner_type_system#Syntax-directed_rule_system>
That is, Hindley-Milner upside down:
a *closed* universe with Prop on top...
-Julio
Its different from yours.
Hi,
Create a proof search in Simple Types,
that finds Lambda Expressions as proof,
for a given formula in propositional logic.
The logic is the same as in Weekend 2.
Bye
Mild Shock schrieb:
Hi,
Create a proof search in Combinatory Logic,
that finds a Combinator Expression as proof
for a given formula in propositional logic.
The propositional logic can do with
implication only, and it should be Linear Logic.
French logician Jean-Yves Girard is credited
with Linear Logic, and since we have implication
logic only, the Logic will be also affine, i.e.
it will have no contraction, which makes
it special towards certain paradoxes.
Bye
Mild Shock schrieb:
Hi,
Draw a Colored ASCII Christams tree with Prolog.
Bye
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 487 |
Nodes: | 16 (0 / 16) |
Uptime: | 152:46:37 |
Calls: | 9,660 |
Calls today: | 2 |
Files: | 13,709 |
Messages: | 6,166,145 |