Lean models of Clojure functions defined with leanfran.typed/defn.
components turns the :lean/sig of each function into leanfran.dsl
commands: a def whose body is the Clojure body written with the models of
clojure.core in Clj. Lean infers the types; the translation only follows
the syntax. The models of the functions of the Clojure namespace a.b-c are
in the Lean namespace LeanCljModel.A.BC, or LeanCljCheck.A.BC for the
ones that leanfran.typed/check runs.
Lean models of Clojure functions defined with `leanfran.typed/defn`. `components` turns the `:lean/sig` of each function into `leanfran.dsl` commands: a `def` whose body is the Clojure body written with the models of `clojure.core` in `Clj`. Lean infers the types; the translation only follows the syntax. The models of the functions of the Clojure namespace `a.b-c` are in the Lean namespace `LeanCljModel.A.BC`, or `LeanCljCheck.A.BC` for the ones that `leanfran.typed/check` runs.
(arity-name {:keys [name arities]} a)Lean name of the model of the arity a of a translated function.
Lean name of the model of the arity `a` of a translated function.
(camel s)The component of a Lean name for the component s of a Clojure name.
The component of a Lean name for the component `s` of a Clojure name.
(clojure-command? x)Whether x is the deflean command (clojure f ...).
Whether `x` is the deflean command `(clojure f ...)`.
(components vs extern?)The Lean models of the leanfran.typed/defn vars vs and of the functions
they call, one map for each set of mutually recursive functions, callees
first: :vars, :ns, their Clojure namespace, :commands, their
leanfran.dsl commands, :deps, the other functions they call, :calls,
the functions that each of them calls, and :modules, the Lean modules of the functions from Lean they call. With
extern?, each model is @[extern] to its Clojure var, so that compiled
Lean calls the Clojure function.
The Lean models of the `leanfran.typed/defn` vars `vs` and of the functions they call, one map for each set of mutually recursive functions, callees first: `:vars`, `:ns`, their Clojure namespace, `:commands`, their `leanfran.dsl` commands, `:deps`, the other functions they call, `:calls`, the functions that each of them calls, and `:modules`, the Lean modules of the functions from Lean they call. With `extern?`, each model is `@[extern]` to its Clojure var, so that compiled Lean calls the Clojure function.
(extern-name {:keys [ns name]} variadic?)The extern of the Clojure function with the signature sig, which applies it
to its last argument when variadic?.
The extern of the Clojure function with the signature `sig`, which applies it to its last argument when `variadic?`.
(hint forms)A primitive type hint in forms, with which Clojure converts the numbers.
A primitive type hint in `forms`, with which Clojure converts the numbers.
(lean-namespace root ns-name)The Lean name below root of the Clojure namespace ns-name.
The Lean name below `root` of the Clojure namespace `ns-name`.
(marks-problem {:keys [marks arities]})Why the verification marks of the function with the signature sig state no
obligations, or nil.
Why the verification marks of the function with the signature `sig` state no obligations, or nil.
(model-root extern?)The root of the Lean names of the models, with extern? of those that
compiled Lean replaces by the Clojure functions.
The root of the Lean names of the models, with `extern?` of those that compiled Lean replaces by the Clojure functions.
(named body)The symbols of the commands (clojure f ...) of the body of a block.
The symbols of the commands `(clojure f ...)` of the body of a block.
(obligations {:keys [ns name arities] :as sig})The leanfran.dsl commands of the obligations of the marks of the function
with the signature sig: one abbrev for each label.
The `leanfran.dsl` commands of the obligations of the marks of the function with the signature `sig`: one `abbrev` for each label.
(source components)The Lean source of the models of components.
The Lean source of the models of `components`.
(spec {:keys [ns]} s)The function from Lean that the symbol s of a verification mark of the
function with the signature sig names: its :var, :name and :module.
The function from Lean that the symbol `s` of a verification mark of the function with the signature `sig` names: its `:var`, `:name` and `:module`.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |