Skip to content

Instantly share code, notes, and snippets.

@adolfont
Created March 27, 2019 16:51
Show Gist options
  • Save adolfont/0017648a1ef12efe68a5b349fd14fcf8 to your computer and use it in GitHub Desktop.
Save adolfont/0017648a1ef12efe68a5b349fd14fcf8 to your computer and use it in GitHub Desktop.
defmodule LogicaClassicaProposicional do
def nao(:v), do: :f
def nao(:f), do: :v
def e(:v,:v), do: :v
def e(:v,:f), do: :f
def e(:f,:v), do: :f
def e(:f,:f), do: :f
end
alias LogicaClassicaProposicional, as: LCP
IO.inspect LCP.nao(:f)
IO.inspect LCP.nao(:v)
IO.inspect LCP.e(:v,:v)
IO.inspect LCP.e(:v,:f)
IO.inspect LCP.e(:f,:v)
IO.inspect LCP.e(:f,:f)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment