From: Oleg <oleg@okmij.org>
To: nicolas.francois@free.fr
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] Problem formalizing a representation
Date: Fri, 13 Dec 2024 22:58:23 +0900 [thread overview]
Message-ID: <Z1w9f85g4m0UK3PY@Magus.localnet> (raw)
In-Reply-To: <20241112230312.6fcf76ab.nicolas.francois@free.fr>
> I'd like to represent logical formulas for different logics.
>
> A logic is syntactically represented by atoms, and rules involving (at
> the very least) and, or, not, and possibly implies and equivalence...
>
> What differs between my logics is the atoms :
> - for propositional logic LP, atoms are just variables, and
> interpretations assign true or false to those variables ;
You have probably received lots of help already. Just in case, let me
mention that back in 2019 I gave a short course at a Dagstuhl summer
school on meta-programming on a similar topic. It was
formulated a bit differently: wires (instead of atoms) and logical
gates (as connectives).
http://okmij.org/ftp/tagless-final/course2/index.html
Starting from zero, the course dealt with various transformations
(NAND conversion), constant propagation (or unit propagation, as
sometimes called) and finally the CNF conversion
(normalization). Actually the course finished with circuits (gate
assemblies with several inputs and outputs), full adder and applying
unit propagation/CNF to all these things, but you probably don't need
that. There was an exercise to make wires more interesting, like
32-bit busses.
As you can see from the course materials, I talked a lot about
parameterization.
prev parent reply other threads:[~2024-12-13 13:59 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-12 22:03 Nicolas FRANCOIS
2024-12-13 13:58 ` Oleg [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Z1w9f85g4m0UK3PY@Magus.localnet \
--to=oleg@okmij.org \
--cc=caml-list@inria.fr \
--cc=nicolas.francois@free.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox