File tree Expand file tree Collapse file tree
MathlibTest/DifferentialGeometry Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -888,3 +888,44 @@ Hint: you can use the `T%` elaborator to convert a dependent function to a non-d
888888end
889889
890890end mfderiv
891+
892+ section trace
893+
894+ /- Test that basic tracing works. -/
895+
896+ set_option trace.Elab.DiffGeo true
897+
898+ variable {f : Unit → Unit}
899+
900+ /--
901+ error: Could not find models with corners for Unit
902+ ---
903+ trace: [ Elab.DiffGeo.MDiff ] Finding a model for: Unit
904+ [ Elab.DiffGeo.MDiff ] ❌️ TotalSpace
905+ [ Elab.DiffGeo.MDiff ] Failed with error:
906+ Unit is not a `Bundle.TotalSpace`.
907+ [ Elab.DiffGeo.MDiff ] ❌️ NormedSpace
908+ [ Elab.DiffGeo.MDiff ] Failed with error:
909+ Couldn't find a `NormedSpace` structure on Unit among local instances.
910+ [ Elab.DiffGeo.MDiff ] ❌️ ChartedSpace
911+ [ Elab.DiffGeo.MDiff ] Failed with error:
912+ Couldn't find a `ChartedSpace` structure on Unit among local instances.
913+ [ Elab.DiffGeo.MDiff ] ❌️ NormedField
914+ [ Elab.DiffGeo.MDiff ] Failed with error:
915+ failed to synthesize
916+ NontriviallyNormedField Unit
917+ ⏎
918+ Hint: Additional diagnostic information may be available using the `set_option diagnostics true` command.
919+ -/
920+ #guard_msgs in
921+ #check mfderiv% f
922+
923+ /--
924+ info: fun a ↦ TotalSpace.mk' Unit a (f a) : Unit → TotalSpace Unit (Trivial Unit Unit)
925+ ---
926+ trace: [ Elab.DiffGeo.TotalSpaceMk ] Section of a trivial bundle as a non-dependent function
927+ -/
928+ #guard_msgs in
929+ #check T% f
930+
931+ end trace
You can’t perform that action at this time.
0 commit comments