chore: remove ParamInfo.proof field
It is an approximation because of dependent types. Moreover, the new `isProofQuick` should make `isProof` much cheaper.
This commit is contained in:
parent
ec0eed582e
commit
292603f8bb
2 changed files with 0 additions and 3 deletions
|
|
@ -82,7 +82,6 @@ structure Config :=
|
|||
structure ParamInfo :=
|
||||
(implicit : Bool := false)
|
||||
(instImplicit : Bool := false)
|
||||
(proof : Bool := false)
|
||||
(hasFwdDeps : Bool := false)
|
||||
(backDeps : Array Nat := #[])
|
||||
|
||||
|
|
|
|||
|
|
@ -62,12 +62,10 @@ checkFunInfoCache fn maxArgs? $ do
|
|||
(fun (i : Nat) (pinfo : Array ParamInfo) => do
|
||||
let fvar := fvars.get! i;
|
||||
decl ← getFVarLocalDecl fvar;
|
||||
proof ← isProp decl.type;
|
||||
let backDeps := collectDeps fvars decl.type;
|
||||
let pinfo := updateHasFwdDeps pinfo backDeps;
|
||||
pure $ pinfo.push {
|
||||
backDeps := backDeps,
|
||||
proof := proof,
|
||||
implicit := decl.binderInfo == BinderInfo.implicit,
|
||||
instImplicit := decl.binderInfo == BinderInfo.instImplicit })
|
||||
#[];
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue