Liking cljdoc? Tell your friends :D

leanfran.translate

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.
raw docstring

arity-nameclj

(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.
sourceraw docstring

camelclj

(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.
sourceraw docstring

clojure-command?clj

(clojure-command? x)

Whether x is the deflean command (clojure f ...).

Whether `x` is the deflean command `(clojure f ...)`.
sourceraw docstring

componentsclj

(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.
sourceraw docstring

extern-nameclj

(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?`.
sourceraw docstring

hintclj

(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.
sourceraw docstring

lean-namespaceclj

(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`.
sourceraw docstring

marks-problemclj

(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.
sourceraw docstring

model-rootclj

(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.
sourceraw docstring

namedclj

(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.
sourceraw docstring

obligationsclj

(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.
sourceraw docstring

sourceclj

(source components)

The Lean source of the models of components.

The Lean source of the models of `components`.
sourceraw docstring

specclj

(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`.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
←Move to previous article
→Move to next article
Ctrl+/Jump to the search field
× close