Exercise512: while Map true
ProvedScott1980.Neighborhood.Exercise512.whileMap_truescott1980
If the test holds (p(x) = true), the loop runs the body: w(x) = w(f(x)).
Preamble
import Definitions.Def_Scott1980_Neighborhood_Theorem41
import Definitions.Def_Scott1980_Neighborhood_Exercise326
import Definitions.Def_Scott1980_Neighborhood_Exercise512
set_option autoImplicit true
open Scott1980 Scott1980.Neighborhood Scott1980.Neighborhood.Exercise512
open Scott1980.Neighborhood NeighborhoodSystem ApproximableMap
open Scott1980.Neighborhood.Exercise326 (cond TD)
variable {α : Type*} (V : NeighborhoodSystem α)
(p : ApproximableMap V TD) (f : ApproximableMap V V)Formal statement
theorem Scott1980.Neighborhood.Exercise512.whileMap_true {x : V.Element} (hx : p.toElementMap x = Example23.trueElt) :
(whileMap V p f).toElementMap x = (whileMap V p f).toElementMap (f.toElementMap x) := by sorrySource