AFTD Auto-Formalizing Theoretical Domains

Cslib.Logic.CLL.Proposition.dual

defimported Lean

Propositional duality.

Statement

set_option autoImplicit true in
set_option relaxedAutoImplicit true in
@[scoped grind =]
def Cslib.Logic.CLL.Proposition.dual : Proposition Atom → Proposition Atom
Defined in
CSLib, `Cslib.Logic.CLL.Proposition.dual`
Lean proof
By Fabrizio Montesi, from github.com/leanprover/cslib at 3951377e5a3f (Copyright (c) 2025 Fabrizio Montesi. All rights reserved, Apache-2.0). Compiled here against leanprover/lean4:v4.33.1, Mathlib v4.33.1; written for leanprover/lean4:v4.33.0.
Verified
08 Oct 2026
Axioms
none listed
Built on 8
Used by 21

Lean source view module on GitHub

set_option autoImplicit true in
set_option relaxedAutoImplicit true in
/-- Propositional duality. -/
@[scoped grind =]
def Cslib.Logic.CLL.Proposition.dual : Proposition Atom → Proposition Atom
  | atom x => atomDual x
  | atomDual x => atom x
  | one => bot
  | bot => one
  | zero => top
  | top => zero
  | tensor a b => parr a.dual b.dual
  | parr a b => tensor a.dual b.dual
  | oplus a b => .with a.dual b.dual
  | .with a b => oplus a.dual b.dual
  | bang a => quest a.dual
  | quest a => bang a.dual
See it in the graphDiscuss this resultChallenge it