The Trocq example suite #
The engine ports Trocq (rocq-community/trocq), and this file indexes the worked
examples that mirror Trocq's own example set. Unlike the CoqEAL suite, these need
only Mathlib, so they live in the core Transfer library.
Members (Trocq upstream example → module):
peano_bin_nat→Examples/PeanoBinNat— binary/unary naturals (Num ≃ ℕ), the flagship equivalence transfer.- the paper example →
Examples/ExampleField— one relation, three uses (build, transfer, decide) over a registered field realization. - retraction →
Examples/ParamRetraction— the non-diagonalℤ ↠ ZMod pdomain, reachingmap2a(a retraction, not an equivalence). summable→Examples/Trocq/Summable— summability transferred across an equivalence.
Three further Trocq examples are exercised inside the engine rather than as separate
files: nat_ind by Base/TransferInduction (natEquivInduction), list_option by
Combinators/ParamData (R_list/R_option), and setoid_rewrite by param_cc
(the relational congruence closure, shown in Examples/ExampleField).