I have a minimal non-working example for a type problem:
theory Groups_Big_Type_Problem
imports Main
begin
context comm_monoid_set
begin
value "F"
end
end
On this, Isabelle gives a type constraint error:
Sort constraint equal inconsistent with default type for type variable "'a"
How can I make Isabelle show the type at F's definition at HOL.Groups_Big?
definition F :: "('b ⇒ 'a) ⇒ 'b set ⇒ 'a"
where eq_fold: "F g A = Finite_Set.fold (f ∘ g) ❙1 A"
term F
(*
"F"
:: "('b ⇒ 'a) ⇒ 'b set ⇒ 'a"
*)
Unlike value
, term
does not involve the code generator…
@Mathias Fleury how code generation comes to the picture here?
value does code generation
Last updated: Dec 21 2024 at 12:33 UTC