lean4-htt/src/library/comp_val.h
Leonardo de Moura 227e16ea6b feat(library): add mk_nat_val_ne_proof
Procedure for building an efficient disequality proof for natural
number values encoded in binary.
2016-11-19 17:02:48 -08:00

19 lines
602 B
C++

/*
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
*/
#pragma once
#include "kernel/expr.h"
namespace lean {
/** \brief If 'a' and 'b' are two distinct natural number values, then return a proof
they are disequal. Otherwise return none.
\remark This function assumes 'a' and 'b' have type nat.
\remark A natural number value is any expression built using
bit0, bit1, zero, one, nat.succ and nat.zero */
optional<expr> mk_nat_val_ne_proof(expr const & a, expr const & b);
}