Skip to content

Commit

Permalink
constant zero is continuous linear map
Browse files Browse the repository at this point in the history
  • Loading branch information
lecopivo committed Jul 24, 2023
1 parent 1f9ab67 commit 0b9c8b4
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions SciLean/FunctionSpaces/ContinuousLinearMap/Basic.lean
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ theorem id_rule
by_morphism (ContinuousLinearMap.id R X) (by simp)


theorem zero_rule
theorem const_rule
: IsContinuousLinearMap R fun _ : X => (0 : Y)
:=
by_morphism 0 (by simp)
Expand Down Expand Up @@ -136,7 +136,14 @@ def IsContinuousLinearMap.fpropExt : FPropExt where
}
FProp.tryTheorem? e thm (fun _ => pure none)

constantRule _ := return none
constantRule e :=
let thm : SimpTheorem :=
{
proof := mkConst ``IsContinuousLinearMap.const_rule
origin := .decl ``IsContinuousLinearMap.const_rule
rfl := false
}
FProp.tryTheorem? e thm (fun _ => pure none)

compRule e f g := do
let .some R := e.getArg? 0
Expand Down

0 comments on commit 0b9c8b4

Please sign in to comment.