Documentation

ProofWidgets.Compat

A compatibility layer aimed at redefining the user widget API in terms of modules and components. New features:

TODO: If the design works out, it could replace the current Lean core definitions.

@[inline, reducible]
Equations
Instances For
    Equations
    • ProofWidgets.ExprWithCtx.save e = do let __do_lift ← Lean.Elab.ContextInfo.save let __do_lift_1 ← Lean.getLCtx pure { ci := __do_lift, lctx := __do_lift_1, expr := e }
    Instances For

      Derive Lean.Server.RpcEncodable for a type.

      HACK: around https://leanprover.zulipchat.com/#narrow/stream/341532-lean4-dev/topic/Should.20instance.20names.20inherit.20macro.20scopes.3F

      Equations
      • One or more equations did not get rendered due to their size.
      Instances For
        • javascript : String

          A JS module intended for use in user widgets.

          To initialize this field from an external JS file, use include_str "path"/"to"/"file.js". However beware that this does not register a dependency with Lake, so your Lean module will not automatically be rebuilt when the .js file changes.

        A widget module is a unit of source code that can execute in the infoview.

        Instances For
          Instances For

            A widget component with a resolved source hash and its props.

            Instances For
              Equations
              • One or more equations did not get rendered due to their size.
              Equations
              • One or more equations did not get rendered due to their size.
              Instances For
                Equations
                • One or more equations did not get rendered due to their size.
                Instances For
                  Equations
                  • One or more equations did not get rendered due to their size.
                  Instances For

                    Save the data of a panel widget which will be displayed whenever the text cursor is on stx. id must be the name of a definition annotated with @[widget_module]. See PanelWidgetProps.

                    Equations
                    • One or more equations did not get rendered due to their size.
                    Instances For