File:Herbrand-model-hasse.png

From Vigyanwiki

Original file(797 × 742 pixels, file size: 17 KB, MIME type: image/png)

This file is from Wikimedia Commons and may be used by other projects. The description on its file description page there is shown below.

Summary

Description
English: Hasse diagram of the Herbrand interpretations of the Datalog program:

e(x, y). e(y, z). p(A, B) :- e(A, B). p(A, C) :- p(A, B), e(B, C).

Generated by:

% https://tex.stackexchange.com/questions/299005/automatic-page-size-to-fit-arbitrary-content % latex hasse.tex % dvi2ps hasse.dvi % inkscape hasse.ps \documentclass{article} \usepackage{tikz-cd}

\newcommand{\eyx}{\mathtt{e(y, x)
\newcommand{\exy}{\mathtt{e(x, y)
Source Own work Edit this at Structured Data on Commons
Author

\newcommand{\eyz}{\mathtt{e(y, z)}} \newcommand{\pxy}{\mathtt{p(x, y)}} \newcommand{\pyz}{\mathtt{p(y, z)}} \newcommand{\pxz}{\mathtt{p(x, z)}} \begin{document} \hoffset=-1in \voffset=-1in\newcommand{\exx}{\mathtt{e(x, x)}} \setbox0\hbox{\begin{tikzpicture}

   \matrix (A) [matrix of nodes, row sep=0.8cm, column sep=0cm]
   { 

& $\mathbf{P}(H)$ & \\ $\vdots$ & $\vdots$ & $\vdots$ \\ $M\cup\dots$ & $M\cup\{\exx\}$ & $M \cup\dots$ \\

       & {$M=\{ \exy,  \eyz,\pxy, \pyz, \pxz \}$} \\

$M - \dots$ & $M - \{\pyz\}$ & $M - \dots$ \\

       $\vdots$ & $\vdots$ & $\vdots$ \\
       & $\emptyset$ & \\
   };
   \draw (A-1-2)--(A-2-1);
   \draw (A-1-2)--(A-2-2);
   \draw (A-1-2)--(A-2-3);
   \draw (A-2-1)--(A-3-1);
   \draw (A-2-2)--(A-3-2);
   \draw (A-2-3)--(A-3-3);
   \draw (A-3-1)--(A-4-2);
   \draw (A-3-2)--(A-4-2);
   \draw (A-3-3)--(A-4-2);
   \draw (A-4-2)--(A-5-1);
   \draw (A-4-2)--(A-5-2);
   \draw (A-4-2)--(A-5-3);
   \draw (A-5-1)--(A-6-1);
   \draw (A-5-2)--(A-6-2);
   \draw (A-5-3)--(A-6-3);
   \draw (A-6-1)--(A-7-2);
   \draw (A-6-2)--(A-7-2);
   \draw (A-6-3)--(A-7-2);

\end{tikzpicture}} \pdfpageheight=\dimexpr\ht0+\dp0\relax \pdfpagewidth=\wd0 \shipout\box0 \stop}} |date=2023-03-07 |source=Own work |author=Siddharthist |permission= |other versions= }}

Licensing

I, the copyright holder of this work, hereby publish it under the following licence:
w:en:Creative Commons
attribution share alike
This file is licensed under the Creative Commons Attribution-Share Alike 4.0 International licence.
You are free:
  • to share – to copy, distribute and transmit the work
  • to remix – to adapt the work
Under the following conditions:
  • attribution – You must give appropriate credit, provide a link to the licence, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
  • share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible licence as the original.

Captions

Add a one-line explanation of what this file represents
Hasse diagram of Herbrand interpretations of a Datalog program

Items portrayed in this file

depicts

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current07:49, 8 March 2023Thumbnail for version as of 07:49, 8 March 2023797 × 742 (17 KB)wikimediacommons>SiddharthistUploaded own work with UploadWizard

Metadata