[Before](https://github.com/leanprover/lean4/files/14772220/oi.pdf) and [after](https://github.com/leanprover/lean4/files/14772226/oi2.pdf). This gets `ByteArray`, `String.Extra`, `ToString.Macro` and `RCases` out of the imports of `omega`. I'd hoped to get `Array.Subarray` too, but it's tangled up in the list literal syntax. Further progress could come from make `split` use available `Decidable` instances, so we could pull out `Classical` (and possibly some of `PropLemmas`).
18 lines
419 B
Text
18 lines
419 B
Text
/-
|
|
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
|
|
Released under Apache 2.0 license as described in the file LICENSE.
|
|
Authors: Leonardo de Moura
|
|
|
|
Extra notation that depends on Init/Meta
|
|
-/
|
|
|
|
prelude
|
|
import Init.Data.ToString.Macro
|
|
import Init.Meta
|
|
|
|
namespace Lean
|
|
|
|
macro "Macro.trace[" id:ident "]" s:interpolatedStr(term) : term =>
|
|
`(Macro.trace $(quote id.getId.eraseMacroScopes) (s! $s))
|
|
|
|
end Lean
|