Loogle!
Result
Found 54 declarations mentioning BinaryTree.
- BinaryTree ๐ Mathlib.Data.Tree.Basic
(ฮฑ : Type u) : Type u - BinaryTree.nil ๐ Mathlib.Data.Tree.Basic
{ฮฑ : Type u} : BinaryTree ฮฑ - BinaryTree.height ๐ Mathlib.Data.Tree.Basic
{ฮฑ : Type u} : BinaryTree ฮฑ โ โ - BinaryTree.instInhabited ๐ Mathlib.Data.Tree.Basic
{ฮฑ : Type u} : Inhabited (BinaryTree ฮฑ) - BinaryTree.numLeaves ๐ Mathlib.Data.Tree.Basic
{ฮฑ : Type u} : BinaryTree ฮฑ โ โ - BinaryTree.numNodes ๐ Mathlib.Data.Tree.Basic
{ฮฑ : Type u} : BinaryTree ฮฑ โ โ - BinaryTree.left ๐ Mathlib.Data.Tree.Basic
{ฮฑ : Type u} : BinaryTree ฮฑ โ BinaryTree ฮฑ - BinaryTree.right ๐ Mathlib.Data.Tree.Basic
{ฮฑ : Type u} : BinaryTree ฮฑ โ BinaryTree ฮฑ - instDecidableEqBinaryTree ๐ Mathlib.Data.Tree.Basic
{ฮฑโ : Type u_1} [DecidableEq ฮฑโ] : DecidableEq (BinaryTree ฮฑโ) - instReprBinaryTree ๐ Mathlib.Data.Tree.Basic
{ฮฑโ : Type u_1} [Repr ฮฑโ] : Repr (BinaryTree ฮฑโ) - instReprBinaryTree.repr ๐ Mathlib.Data.Tree.Basic
{ฮฑโ : Type u_1} [Repr ฮฑโ] : BinaryTree ฮฑโ โ โ โ Std.Format - BinaryTree.map ๐ Mathlib.Data.Tree.Basic
{ฮฑ : Type u} {ฮฒ : Type u_1} (f : ฮฑ โ ฮฒ) : BinaryTree ฮฑ โ BinaryTree ฮฒ - BinaryTree.node ๐ Mathlib.Data.Tree.Basic
{ฮฑ : Type u} (value : ฮฑ) (left right : BinaryTree ฮฑ) : BinaryTree ฮฑ - BinaryTree.height_le_numNodes ๐ Mathlib.Data.Tree.Basic
{ฮฑ : Type u} (x : BinaryTree ฮฑ) : x.height โค x.numNodes - BinaryTree.id_map ๐ Mathlib.Data.Tree.Basic
{ฮฑ : Type u} (t : BinaryTree ฮฑ) : BinaryTree.map id t = t - instDecidableEqBinaryTree.decEq ๐ Mathlib.Data.Tree.Basic
{ฮฑโ : Type u_1} [DecidableEq ฮฑโ] (xโ xโยน : BinaryTree ฮฑโ) : Decidable (xโ = xโยน) - BinaryTree.numLeaves_pos ๐ Mathlib.Data.Tree.Basic
{ฮฑ : Type u} (x : BinaryTree ฮฑ) : 0 < x.numLeaves - BinaryTree.traverse ๐ Mathlib.Data.Tree.Basic
{m : Type u_1 โ Type u_2} [Applicative m] {ฮฑ : Type u_3} {ฮฒ : Type u_1} (f : ฮฑ โ m ฮฒ) : BinaryTree ฮฑ โ m (BinaryTree ฮฒ) - BinaryTree.left_node_right_eq_self ๐ Mathlib.Data.Tree.Basic
{x : BinaryTree Unit} (_hx : x โ BinaryTree.nil) : BinaryTree.node () x.left x.right = x - BinaryTree.numLeaves_eq_numNodes_succ ๐ Mathlib.Data.Tree.Basic
{ฮฑ : Type u} (x : BinaryTree ฮฑ) : x.numLeaves = x.numNodes + 1 - BinaryTree.unitRecOn ๐ Mathlib.Data.Tree.Basic
{motive : BinaryTree Unit โ Sort u_1} (t : BinaryTree Unit) (base : motive BinaryTree.nil) (ind : (x y : BinaryTree Unit) โ motive x โ motive y โ motive (BinaryTree.node () x y)) : motive t - BinaryTree.comp_map ๐ Mathlib.Data.Tree.Basic
{ฮฑ : Type u} {ฮฒ : Type u_1} {ฮณ : Type u_2} (f : ฮฑ โ ฮฒ) (g : ฮฒ โ ฮณ) (t : BinaryTree ฮฑ) : BinaryTree.map (g โ f) t = BinaryTree.map g (BinaryTree.map f t) - BinaryTree.traverse_pure ๐ Mathlib.Data.Tree.Basic
{ฮฑ : Type u} (t : BinaryTree ฮฑ) {m : Type u โ Type u_1} [Applicative m] [LawfulApplicative m] : BinaryTree.traverse pure t = pure t - Mathlib.Tactic.CancelDenoms.findCancelFactor ๐ Mathlib.Tactic.CancelDenoms.Core
(e : Lean.Expr) : โ ร BinaryTree โ - Mathlib.Tactic.CancelDenoms.mkProdPrf ๐ Mathlib.Tactic.CancelDenoms.Core
{u : Lean.Level} (ฮฑ : Q(Type u)) (sฮฑ : Q(Field ยซ$ฮฑยป)) (v : โ) (v' : Q(ยซ$ฮฑยป)) (t : BinaryTree โ) (e : Q(ยซ$ฮฑยป)) : Lean.MetaM (Mathlib.Tactic.CancelDenoms.CancelResult q(inferInstance) e v') - BinaryTree.treesOfNumNodesEq ๐ Mathlib.Combinatorics.Enumerative.Catalan.Tree
: โ โ Finset (BinaryTree Unit) - BinaryTree.pairwiseNode ๐ Mathlib.Combinatorics.Enumerative.Catalan.Tree
(a b : Finset (BinaryTree Unit)) : Finset (BinaryTree Unit) - BinaryTree.treesOfNumNodesEq_card_eq_catalan ๐ Mathlib.Combinatorics.Enumerative.Catalan.Tree
(n : โ) : (BinaryTree.treesOfNumNodesEq n).card = catalan n - BinaryTree.treesOfNumNodesEq_zero ๐ Mathlib.Combinatorics.Enumerative.Catalan.Tree
: BinaryTree.treesOfNumNodesEq 0 = {BinaryTree.nil} - BinaryTree.mem_treesOfNumNodesEq_numNodes ๐ Mathlib.Combinatorics.Enumerative.Catalan.Tree
(x : BinaryTree Unit) : x โ BinaryTree.treesOfNumNodesEq x.numNodes - BinaryTree.coe_treesOfNumNodesEq ๐ Mathlib.Combinatorics.Enumerative.Catalan.Tree
(n : โ) : โ(BinaryTree.treesOfNumNodesEq n) = {x | x.numNodes = n} - BinaryTree.mem_treesOfNumNodesEq ๐ Mathlib.Combinatorics.Enumerative.Catalan.Tree
{x : BinaryTree Unit} {n : โ} : x โ BinaryTree.treesOfNumNodesEq n โ x.numNodes = n - BinaryTree.treesOfNumNodesEq_succ ๐ Mathlib.Combinatorics.Enumerative.Catalan.Tree
(n : โ) : BinaryTree.treesOfNumNodesEq (n + 1) = (Finset.HasAntidiagonal.antidiagonal n).biUnion fun ij => BinaryTree.pairwiseNode (BinaryTree.treesOfNumNodesEq ij.1) (BinaryTree.treesOfNumNodesEq ij.2) - DyckWord.ofTree ๐ Mathlib.Combinatorics.Enumerative.DyckWord
: BinaryTree Unit โ DyckWord - DyckWord.toTree ๐ Mathlib.Combinatorics.Enumerative.DyckWord
(p : DyckWord) : BinaryTree Unit - DyckWord.equivTree ๐ Mathlib.Combinatorics.Enumerative.DyckWord
: DyckWord โ BinaryTree Unit - DyckWord.toTree_ofTree ๐ Mathlib.Combinatorics.Enumerative.DyckWord
(t : BinaryTree Unit) : (DyckWord.ofTree t).toTree = t - DyckWord.equivTree_apply ๐ Mathlib.Combinatorics.Enumerative.DyckWord
(p : DyckWord) : DyckWord.equivTree p = p.toTree - DyckWord.equivTreesOfNumNodesEq ๐ Mathlib.Combinatorics.Enumerative.DyckWord
(n : โ) : { p // p.semilength = n } โ โฅ(BinaryTree.treesOfNumNodesEq n) - DyckWord.equivTree_symm_apply ๐ Mathlib.Combinatorics.Enumerative.DyckWord
(aโ : BinaryTree Unit) : DyckWord.equivTree.symm aโ = DyckWord.ofTree aโ - DyckWord.equivTreesOfNumNodesEq_apply_coe ๐ Mathlib.Combinatorics.Enumerative.DyckWord
(n : โ) (a : { a // (fun p => p.semilength = n) a }) : โ((DyckWord.equivTreesOfNumNodesEq n) a) = (โa).toTree - DyckWord.equivTreesOfNumNodesEq_symm_apply_coe ๐ Mathlib.Combinatorics.Enumerative.DyckWord
(n : โ) (b : โฅ(BinaryTree.treesOfNumNodesEq n)) : โ((DyckWord.equivTreesOfNumNodesEq n).symm b) = DyckWord.ofTree โb - BinaryTree.toOrdNode ๐ Mathlib.Data.Ordmap.Ordnode
{ฮฑ : Type u_1} : BinaryTree ฮฑ โ Ordnode ฮฑ - Ordnode.toBinaryTree ๐ Mathlib.Data.Ordmap.Ordnode
{ฮฑ : Type u_1} : Ordnode ฮฑ โ BinaryTree ฮฑ - Ordnode.toBinaryTree_toOrdNode ๐ Mathlib.Data.Ordmap.Ordnode
{ฮฑ : Type u_1} (b : BinaryTree ฮฑ) : b.toOrdNode.toBinaryTree = b - Ordnode.size_toOrdNode ๐ Mathlib.Data.Ordmap.Ordnode
{ฮฑ : Type u_1} (b : BinaryTree ฮฑ) : b.toOrdNode.size = b.numNodes - BinaryTree.get ๐ Mathlib.Data.Tree.Get
{ฮฑ : Type u_1} : PosNum โ BinaryTree ฮฑ โ Option ฮฑ - BinaryTree.getOrElse ๐ Mathlib.Data.Tree.Get
{ฮฑ : Type u_1} (n : PosNum) (t : BinaryTree ฮฑ) (v : ฮฑ) : ฮฑ - BinaryTree.indexOf ๐ Mathlib.Data.Tree.Get
{ฮฑ : Type u_1} (lt : ฮฑ โ ฮฑ โ Prop) [DecidableRel lt] (x : ฮฑ) : BinaryTree ฮฑ โ Option PosNum - BinaryTree.instTraversable ๐ Mathlib.Data.Tree.Traversable
: Traversable BinaryTree - BinaryTree.instLawfulTraversable ๐ Mathlib.Data.Tree.Traversable
: LawfulTraversable BinaryTree - BinaryTree.traverse_eq_map_id ๐ Mathlib.Data.Tree.Traversable
{ฮฑ : Type u_1} {ฮฒ : Type u_2} (f : ฮฑ โ ฮฒ) (t : BinaryTree ฮฑ) : BinaryTree.traverse (pure โ f) t = pure (BinaryTree.map f t) - BinaryTree.naturality ๐ Mathlib.Data.Tree.Traversable
{ฮฑ : Type u_1} {F : Type u โ Type u_3} {G : Type u โ Type u_4} [Applicative F] [Applicative G] [LawfulApplicative F] [LawfulApplicative G] (ฮท : ApplicativeTransformation F G) {ฮฒ : Type u} (f : ฮฑ โ F ฮฒ) (t : BinaryTree ฮฑ) : (fun {ฮฑ} => ฮท.app ฮฑ) (BinaryTree.traverse f t) = BinaryTree.traverse (ฮท.app ฮฒ โ f) t - BinaryTree.comp_traverse ๐ Mathlib.Data.Tree.Traversable
{ฮฑ : Type u_1} {F : Type u โ Type v} {G : Type v โ Type w} [Applicative F] [Applicative G] [LawfulApplicative G] {ฮฒ : Type v} {ฮณ : Type u} (f : ฮฒ โ F ฮณ) (g : ฮฑ โ G ฮฒ) (t : BinaryTree ฮฑ) : BinaryTree.traverse (Functor.Comp.mk โ (fun x => f <$> x) โ g) t = Functor.Comp.mk ((fun x => BinaryTree.traverse f x) <$> BinaryTree.traverse g t)
About
Loogle searches Lean and Mathlib definitions and theorems.
You can use Loogle from within the Lean4 VSCode language extension
using the Loogle command from the command palette. You can also try the
#loogle command from LeanSearchClient,
the CLI version, the Loogle
VS Code extension, the lean.nvim
integration or the Zulip bot.
Usage
Loogle finds definitions and lemmas in various ways:
By constant:
๐Real.sin
finds all lemmas whose statement somehow mentions the sine function.By lemma name substring:
๐"differ"
finds all lemmas that have"differ"somewhere in their lemma name.By subexpression:
๐_ * (_ ^ _)
finds all lemmas whose statements somewhere include a product where the second argument is raised to some power.The pattern can also be non-linear, as in
๐Real.sqrt ?a * Real.sqrt ?aIf the pattern has parameters, they are matched in any order. Both of these will find
List.map:
๐(?a -> ?b) -> List ?a -> List ?b
๐List ?a -> (?a -> ?b) -> List ?bBy main conclusion:
๐|- tsum _ = _ * tsum _
finds all lemmas where the conclusion (the subexpression to the right of allโandโ) has the given shape.As before, if the pattern has parameters, they are matched against the hypotheses of the lemma in any order; for example,
๐|- _ < _ โ tsum _ < tsum _
will findtsum_lt_tsumeven though the hypothesisf i < g iis not the last.You can filter for definitions vs theorems: Using
โข (_ : Type _)finds all definitions which provide data whileโข (_ : Prop)finds all theorems (and definitions of proofs).
If you pass more than one such search filter, separated by commas
Loogle will return lemmas which match all of them. The
search
๐ Real.sin, "two", tsum, _ * _, _ ^ _, |- _ < _ โ _
would find all lemmas which mention the constants Real.sin
and tsum, have "two" as a substring of the
lemma name, include a product and a power somewhere in the type,
and have a hypothesis of the form _ < _ (if
there were any such lemmas). Metavariables (?a) are
assigned independently in each filter.
The #lucky button will directly send you to the
documentation of the first hit.
Source code
You can find the source code for this service at https://github.com/nomeata/loogle. The https://loogle.lean-lang.org/ service is provided by the Lean FRO. Please review the Lean FRO Terms of Use and Privacy Policy.
This is Loogle revision 9f11169 serving mathlib revision ce5dd8c