Liking cljdoc? Tell your friends :D

lean-clj.dsl

Render Lean source from Clojure data.

Commands, terms, and tactics are written as S-expressions:

(def double [n Nat] Nat (+ n n)) (theorem double_eq [n Nat] (= (double n) (* 2 n)) (by (unfold double) omega))

(lean "...") embeds Lean source verbatim wherever a command, term, or tactic is expected.

Render Lean source from Clojure data.

Commands, terms, and tactics are written as S-expressions:

  (def double [n Nat] Nat (+ n n))
  (theorem double_eq [n Nat] (= (double n) (* 2 n))
    (by (unfold double) omega))

`(lean "...")` embeds Lean source verbatim wherever a command, term, or
tactic is expected.
raw docstring

bindersclj

(binders bs)

Lean binders of a vector: [x T y U] → (x : T) (y : U); the lists (implicit x T), (strict x T), and (inst C) make one binder each.

Lean binders of a vector: `[x T y U]` → `(x : T) (y : U)`; the lists
`(implicit x T)`, `(strict x T)`, and `(inst C)` make one binder each.
sourceraw docstring

commandclj

(command x)

Lean source of a command.

Lean source of a command.
sourceraw docstring

identclj

(ident x)

Lean identifier of a symbol or keyword: each .-separated part with a - becomes lowerCamelCase.

Lean identifier of a symbol or keyword: each `.`-separated part with a `-`
becomes lowerCamelCase.
sourceraw docstring

renderclj

(render cmds)

Lean source of a sequence of commands.

Lean source of a sequence of commands.
sourceraw docstring

tacticclj

(tactic x)

Lean source of a tactic.

Lean source of a tactic.
sourceraw docstring

termclj

(term x)

Lean source of a term.

Lean source of a term.
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