Shared report decoding #
This module provides the reflection, formatting, and axis-analysis utilities
used by the operation-specific einops? reports.
instantiateOuterLets is not defined here. It is Tensor.Internal.instantiateOuterLets from
NN/Tactic/Einops/Proof.lean, which this module already imports, and which had the
identical four-line body.
Report.Impl sits inside Tensor.Internal, so the uses below find it by walking outward.
Normalize reflected report data after instantiating pending metavariables.
Instances For
Decode a reflected string only when kernel normalization exposes a literal.
Instances For
Decode a reflected natural number only when it reduces to a literal.
Instances For
Decode a reflected list with an element decoder, failing atomically.
Decode a fully concrete reflected shape or list of natural numbers.
Instances For
Decode a transformation axis together with its user-facing description.
Instances For
Decode an einsum axis together with its user-facing description.
Instances For
Decode a reflected einsum axis to its concrete checker value.
Instances For
Render one concrete shape in tensor notation.
Instances For
Compute the number of scalar entries described by a concrete shape.
Instances For
Pretty-print an elaborated type using the current local context.
Instances For
Infer and pretty-print the type of an elaborated expression.
Instances For
Test whether a reflected term contains an application of a named constant.
Instances For
Pretty-print one concrete tensor type without evaluating a tensor value.