% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/30-api-flexseq-validate.R
\name{validate_tree}
\alias{validate_tree}
\title{Validate full tree invariants (debug/test utility)}
\usage{
validate_tree(t)
}
\arguments{
\item{t}{FingerTree.}
}
\value{
\code{TRUE} invisibly; errors if invariant violations are found.
}
\description{
Performs expensive full-tree auditing of:
\itemize{
\item structural attributes (\code{monoids}/\code{measures}) consistency
\item global name-state invariants
}
}
\details{
Intended for debugging and tests, not hot runtime paths.
}
\examples{
x <- as_flexseq(letters[1:10])
validate_tree(x)
}
