this is the simplest of the constructions to be ported from C++ to Lean, so I’ll PR this one first. This begins to put each construction into its own file, as it was the case with C++. For validation I developed this in a separate repository at https://github.com/nomeata/lean-constructions/tree/fad715e and checked that all `.recOn` declarations found in Lean and Mathlib are identical (per `==`) to the ones produced by the C code.
14 lines
181 B
Text
14 lines
181 B
Text
set_option pp.mvars false
|
||
|
||
class Foo (α : Type)
|
||
|
||
/--
|
||
error: function expected at
|
||
Missing
|
||
term has type
|
||
?_
|
||
-/
|
||
#guard_msgs in
|
||
variable {α : Type} (s : Missing α)
|
||
|
||
#synth Foo s
|