Mathlib v3 is deprecated. Go to Mathlib v4

Commit 2022-07-16 08:56 8963fcfc

View on Github →

feat(data/json): helper functions for json serialization (#15207) The key feature here is:

@[derive non_null_json_serializable]
structure my_type (yval : bool) :=
(x : nat)
(f : fin x)
(y : bool := tt)
(h : y = yval)

which generates the obvious serialization to json and deserialization from json of the above type. This makes communicating with other external programs a lot easier, rather than having to manually write code to disassemble json into lean structures.

Estimated changes

added structure has_default
added structure my_type
added structure no_fields