A Boolean, six-pip number, string trace, and null specimen enter a six-station namespace plotter, cross a hatched host-execution gear behind ten public wrapper ports, and emerge as matching generated and explicit constructor arrays joined by an equality gauge.
Unsafe JSON wrapper with reflexive native array

ff-spartan6-unsafe

repository URL pending

Scope

ff-spartan6-unsafe is the host-execution companion layer for generated JSON terms in the Spartan6 namespace. Its three checked modules comprise an aggregate checking entry point, a narrow JSON-generation wrapper, and an executable generation example. The wrapper publicly exposes constructors for JSON scalar, array, and object syntax together with the macro that turns an external JSON node into an Agda term. The example applies that macro to an array containing a Boolean, a number, a string, and null. Library checking enables cubical features, guardedness, and host execution while relying on ff-json-unsafe as its sole in-scope dependency.

Most important results

The public wrapper keeps the generated helper names in scope while leaving the host-execution primitives and script-path binding hidden. The example establishes that a JSON literal can be generated as a value of the native JsonValue type during checking. A reflexivity proof confirms that the generated value reduces definitionally to the corresponding explicit array of JSON constructors. The Everything module brings both the wrapper and its reduction example under one library-level check.

Library modules

3 checked modules

Select a module to inspect its generated Agda source view.

Skip to content

Agda libraries

ff-spartan6-unsafe

ff-spartan6-unsafe is the host-execution companion layer for generated JSON terms in the Spartan6 namespace.

Unsafe JSON wrapper with reflexive native arrayA Boolean, six-pip number, string trace, and null specimen enter a six-station namespace plotter, cross a hatched host-execution gear behind ten public wrapper ports, and emerge as matching generated and explicit constructor arrays joined by an equality gauge.
A Boolean, six-pip number, string trace, and null specimen enter a six-station namespace plotter, cross a hatched host-execution gear behind ten public wrapper ports, and emerge as matching generated and explicit constructor arrays joined by an equality gauge.

Scope

ff-spartan6-unsafe is the host-execution companion layer for generated JSON terms in the Spartan6 namespace. Its three checked modules comprise an aggregate checking entry point, a narrow JSON-generation wrapper, and an executable generation example. The wrapper publicly exposes constructors for JSON scalar, array, and object syntax together with the macro that turns an external JSON node into an Agda term. The example applies that macro to an array containing a Boolean, a number, a string, and null. Library checking enables cubical features, guardedness, and host execution while relying on ff-json-unsafe as its sole in-scope dependency.

Most important results

The public wrapper keeps the generated helper names in scope while leaving the host-execution primitives and script-path binding hidden. The example establishes that a JSON literal can be generated as a value of the native JsonValue type during checking. A reflexivity proof confirms that the generated value reduces definitionally to the corresponding explicit array of JSON constructors. The Everything module brings both the wrapper and its reduction example under one library-level check.

Source browser

Modules

Browse modulesOpen generated Agda sources

Cabinet index

Explore Formal Foundry

Search the archive

Find a page

Type to search the published content.