Equations
- Lean.NameSet.instSingletonName_importGraph = { singleton := fun (n : Lean.Name) => ∅.insert n }
Equations
- Lean.NameSet.instUnion_importGraph = { union := fun (s t : Lean.NameSet) => Lean.RBTree.fold (fun (t : Lean.NameSet) (n : Lean.Name) => t.insert n) t s }
Equations
- One or more equations did not get rendered due to their size.
Equations
- Lean.NameSet.instSDiff_importGraph = { sdiff := fun (s t : Lean.NameSet) => Lean.RBTree.fold (fun (s : Lean.NameSet) (n : Lean.Name) => Lean.RBTree.erase s n) s t }
Equations
- Lean.NameSet.ofList l = List.foldl (fun (s : Lean.NameSet) (n : Lean.Name) => s.insert n) ∅ l
Instances For
Equations
- Lean.NameSet.ofArray a = Array.foldl (fun (s : Lean.NameSet) (n : Lean.Name) => s.insert n) ∅ a
Instances For
Return the name of the module in which a declaration was defined.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Return the names of the modules in which constants used in the specified declaration were defined.
Note that this will not account for tactics and syntax used in the declaration, so the results may not suffice as imports.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Return the names of the constants used in the specified declarations, and the constants they use transitively.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Return the names of the constants used in the specified declaration, and the constants they use transitively.
Equations
- n.transitivelyUsedConstants = {n}.transitivelyUsedConstants
Instances For
Return the names of the modules in which constants used transitively in the specified declarations were defined.
Note that this will not account for tactics and syntax used in the declaration, so the results may not suffice as imports.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Return the names of the modules in which constants used transitively in the specified declaration were defined.
Note that this will not account for tactics and syntax used in the declaration, so the results may not suffice as imports.
Equations
- n.transitivelyRequiredModules env = {n}.transitivelyRequiredModules env
Instances For
Finds all constants defined in the specified module, and identifies all modules containing constants which are transitively required by those constants.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Computes all the modules transitively required by the specified modules.
Should be equivalent to calling transitivelyRequiredModules
on each module, but shares more of the work.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- Lean.Environment.transitivelyRequiredModules'.toBitVec env s = Lean.RBTree.fold (fun (b : BitVec N) (n : Lean.Name) => b ||| BitVec.twoPow N ((env.header.moduleNames.getIdx? n).getD 0)) 0 s
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Return the names of the modules in which constants used in the current file were defined.
Note that this will not account for tactics and syntax used in the file, so the results may not suffice as imports.
Equations
- One or more equations did not get rendered due to their size.