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.graftFunction.
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.leftFunction.
left(::AbstractPBTree)

Returns the left branch of an AbstractPBTree

source
Dendriform.rightFunction.
right(::AbstractPBTree)

Returns the right branch of an AbstractPBTree

source

Partial Ordering

Dendriform.posetnextFunction.
posetnext(::AbstractPBTree)

Returns a Grove that covers the given tree

source
Dendriform.posetprevFunction.
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.betweenFunction.
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.overFunction.
over(a::AbstractPBTree, b::AbstractPBTree)

Returns PBTree obtained from a over b operation

source
Dendriform.underFunction.
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.dashvFunction.
dashv(a::AbstractGrove, b::AbstractGrove)

Returns Grove obtained from a ⊣ b operation

source
Dendriform.vdashFunction.
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.treecheckFunction.
treecheck(::AbstractPBTree)

Returns Bool that tells if PBTree is valid

source
Dendriform.grovecheckFunction.
grovecheck(::AbstractGrove)

Returns Bool that tells if Grove is valid

source
Dendriform.GroveErrorFunction.
Dendriform.GroveError(::AbstractGrove)

Returns Array with Grove sorting index error

source

Index Data

Dendriform.treeindexFunction.
treeindex(::AbstractGrove)

Returns tree indices of any PBTree or Grove

source
Dendriform.groveindexFunction.
groveindex(::AbstractGrove)

Returns the grove index of any Grove

source
Dendriform.grovebitFunction.
grovebit(::AbstractGrove)

Returns a BitArray of tree indices

source

Transformations

Dendriform.TreeBaseFunction.
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.grovesortFunction.
grovesort(::Bool)

Toggles the grovesort algorithm (enabled by default - RECOMMENDED)

source
Dendriform.treeshiftFunction.
treeshift(::Bool)

Toggles the shift for the tree integers / rationals

source