HepLean Documentation
Lean
.
Meta
.
Tactic
.
LinearArith
.
Basic
Search
Google site search
return to top
source
Imports
Lean.Expr
Imported by
Lean
.
Meta
.
Linear
.
isLinearTerm
Lean
.
Meta
.
Linear
.
isLinearCnstr
source
def
Lean
.
Meta
.
Linear
.
isLinearTerm
(e :
Lean.Expr
)
:
Bool
Quick filter for linear terms.
Equations
Lean.Meta.Linear.isLinearTerm
e
=
if
(
!
e
.getAppFn
.isConst
)
=
true
then
false
else
let
n
:=
e
.getAppFn
.constName!
;
n
==
`HAdd.hAdd
||
n
==
`HMul.hMul
||
n
==
`HSub.hSub
||
n
==
`Nat.succ
Instances For
source
partial def
Lean
.
Meta
.
Linear
.
isLinearCnstr
(e :
Lean.Expr
)
:
Bool
Quick filter for linear constraints.