Library

Dendriform.jl Library

Index

Dendriform Types

Planar Binary Tree with Loday's notation

Summary

mutable struct PBTree <: AbstractGrove

Fields

degr::UInt8 Y::Array{UInt8,1}

source

Grove of planar binary trees, matrix equivalence class

Summary

mutable struct Grove <: AbstractGrove

Fields

degr::UInt8 size::Int Y::Array{UInt8,2}

source

Compressed binary representation of grove

Summary

mutable struct GroveBin <: AbstractGrove

Fields

degr::UInt8 size::Int gbin::Integer ppos::Float16

source

Descending greatest integer search data for grove

Summary

mutable struct BaseTree <: Abstract Grove

Fields

μ::Array{Array{UInt8,1},1}

source

Dendriform Operators

Base.:∪ — Function.
∪(g...)

Returns union of AbstractGrove objects

source

Branching

Dendriform.graft — Function.
graft(left::AbstractPBTree, right::AbstractPBTree)

Grafts the left and right PBTree with root vertex

source
Dendriform.:∨ — Function.
∨(left::AbstractPBTree, right::AbstractPBTree)

Grafts the left and right AbstractPBTree objects

source
Dendriform.left — Function.
left(::AbstractPBTree)

Returns the left branch of an AbstractPBTree

source
Dendriform.right — Function.
right(::AbstractPBTree)

Returns the right branch of an AbstractPBTree

source

Partial Ordering

Dendriform.posetnext — Function.
posetnext(::AbstractPBTree)

Returns a Grove that covers the given tree

source
Dendriform.posetprev — Function.
posetprev(::AbstractPBTree)

Returns a Grove that covers the given tree

source
Dendriform.:⋖ — Function.
⋖(a::AbstractPBTree, b::AbstractPBTree)

Returns Bool that tells if b covers a in Tamari partial order

source
Dendriform.:⋗ — Function.
⋗(a::AbstractPBTree, b::AbstractPBTree)

Returns Bool that tells if a covers b in Tamari partial order

source
Base.:< — Function.
<(a::AbstractPBTree, b::AbstractPBTree)

Returns Bool that tells if a < b in Tamari partial order

source
Base.:> — Function.
>(a::AbstractPBTree, b::AbstractPBTree)

Returns Bool that tells if a > b in Tamari partial order

source
Base.:≤ — Function.
≤(a::AbstractPBTree, b::AbstractPBTree)

Returns Bool that tells if a ≤ b in Tamari partial order

source
Base.:≥ — Function.
≥(a::AbstractPBTree, b::AbstractPBTree)

Returns Bool that tells if a ≥ b in Tamari partial order

source
Dendriform.between — Function.
between(a::AbstractPBTree,b::AbstractPBTree)

Returns Grove of trees ordered between a and b

source
Dendriform.:⊴ — Function.
⊴(a::AbstractPBTree,b::AbstractPBTree)

Returns Grove of trees ordered between a and b

source

Dialgebra Arithmetic

Dendriform.over — Function.
over(a::AbstractPBTree, b::AbstractPBTree)

Returns PBTree obtained from a over b operation

source
Dendriform.under — Function.
under(a::AbstractPBTree, b::AbstractPBTree)

Returns PBTree obtained from a under b operation

source
Base.:/ — Function.
/(a::PBTree, b::PBTree)

Returns PBTree obtained from a over b operation

source
Base.:\ — Function.
\(a::PBTree, b::PBTree)

Returns PBTree obtained from a under b operation

source
Dendriform.dashv — Function.
dashv(a::AbstractGrove, b::AbstractGrove)

Returns Grove obtained from a ⊣ b operation

source
Dendriform.vdash — Function.
vdash(a::AbstractGrove, b::AbstractGrove)

Returns Grove obtained from a ⊢ b operation

source
Dendriform.:⊣ — Function.
⊣(a::AbstractGrove, b::AbstractGrove)

Returns Grove obtained from a ⊣ b operation

source
Dendriform.:⊢ — Function.
⊢(a::AbstractGrove, b::AbstractGrove)

Returns Grove obtained from a ⊢ b operation

source
Base.:+ — Function.
+(a::AbstractGrove, b::AbstractGrove)

Returns Grove obtained from a + b operation

source
Base.:* — Function.
*(a::AbstractGrove, b::AbstractGrove)

Returns Grove obtained from a × b operation

source

Dendriform Morphisms

Dendriform.σ — Function.
σ(g::AbstractGrove)

Applies the involution to any PBTree or Grove object

source

Consistency Checks

Dendriform.LeftInherited(::AbstractPBTree)

Returns Bool that tells if PBTree is left inherited

source
Dendriform.RightInherited(::AbstractPBTree)

Returns Bool that tells if PBTree is right inherited

source
Dendriform.PrimitiveTree(::AbstractPBTree)

Returns Bool that tells if PBTree is primitive

source
Dendriform.treecheck — Function.
treecheck(::AbstractPBTree)

Returns Bool that tells if PBTree is valid

source
Dendriform.grovecheck — Function.
grovecheck(::AbstractGrove)

Returns Bool that tells if Grove is valid

source
Dendriform.GroveError — Function.
Dendriform.GroveError(::AbstractGrove)

Returns Array with Grove sorting index error

source

Index Data

Dendriform.treeindex — Function.
treeindex(::AbstractGrove)

Returns tree indices of any PBTree or Grove

source
Dendriform.groveindex — Function.
groveindex(::AbstractGrove)

Returns the grove index of any Grove

source
Dendriform.grovebit — Function.
grovebit(::AbstractGrove)

Returns a BitArray of tree indices

source

Transformations

Dendriform.TreeBase — Function.
Dendriform.TreeBase(::AbstractGrove)

Returns BaseTree objects for any AbstractGrove

source
Dendriform.TreeInteger(::AbstractGrove)

Returns the tree integers of any AbstractGrove

source
Dendriform.TreeRational(::AbstractGrove)

Returns the tree rationals of any AbstractGrove

source

Tools & Options

grovedisplay(::Bool)

Toggles the display output of grove index data (disabled by default)

source
Dendriform.grovesort — Function.
grovesort(::Bool)

Toggles the grovesort algorithm (enabled by default - RECOMMENDED)

source
Dendriform.treeshift — Function.
treeshift(::Bool)

Toggles the shift for the tree integers / rationals

source