You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the following fragment, the functional induction principle for function conc fails to be constructed..
abbrev Word := List Nat
abbrev Alphabet := Nat
inductiveRegexwhere
| none: Regex
definter: Regexp → (Word → Prop) := sorrydefconcatenate (a b: Word → Prop) : (Word → Prop) := sorrydefeps: Word → Prop := sorrydefconc (a: Array Regex) (i: Nat): Word → Prop :=
if h: i < a.size then
concatenate (inter a[i]) (conc a (i + 1))
else
eps
#check conc.induct
I get this error:
Failed to realize constant conc.induct:
Cannot derive functional induction principle (please report this issue)
Function conc not defined via WellFounded.fix:
⋯.fix (fun i a_1 => if h : i < a.size then concatenate (inter a[i]) (a_1 (i + 1) ⋯) else eps) i a✝
Prerequisites
Please put an X between the brackets as you perform the following steps:
https://github.com/leanprover/lean4/issues
Avoid dependencies to Mathlib or Batteries.
https://live.lean-lang.org/#project=lean-nightly
(You can also use the settings there to switch to “Lean nightly”)
Description
In the following fragment, the functional induction principle for function
conc
fails to be constructed..I get this error:
Versions
4.11.0 (also lean-nightly at live.lean-lang.org)
Impact
Add 👍 to issues you consider important. If others are impacted by this issue, please ask them to add 👍 to it.
The text was updated successfully, but these errors were encountered: