Skip to content
import JaxLean.Stdlib
import examples.tensor_puzzles.generated.PuzzlesRepeatset_option maxRecDepth 4096set_option maxHeartbeats 2000000namespace JaxLean.Puzzles.Repeattheorem matches_loop (a : Tensor ℝ [3]) :
Array.repeat a = Loop.repeat a := a:Tensor ℝ [3]⊢ Array.repeat a = Loop.repeat a
a:Tensor ℝ [3]i:Fin 2j:Fin 3u:Index []⊢ Array.repeat a (i, j, u) = Loop.repeat a (i, j, u)
a:Tensor ℝ [3]i:Fin 2j:Fin 3⊢ Array.repeat a (i, j, PUnit.unit) = Loop.repeat a (i, j, PUnit.unit)
a:Tensor ℝ [3]j:Fin 3⊢ Array.repeat a ((fun i => i) ⟨0, ⋯⟩, j, PUnit.unit) = Loop.repeat a ((fun i => i) ⟨0, ⋯⟩, j, PUnit.unit)a:Tensor ℝ [3]j:Fin 3⊢ Array.repeat a ((fun i => i) ⟨1, ⋯⟩, j, PUnit.unit) = Loop.repeat a ((fun i => i) ⟨1, ⋯⟩, j, PUnit.unit) a:Tensor ℝ [3]j:Fin 3⊢ Array.repeat a ((fun i => i) ⟨0, ⋯⟩, j, PUnit.unit) = Loop.repeat a ((fun i => i) ⟨0, ⋯⟩, j, PUnit.unit)a:Tensor ℝ [3]j:Fin 3⊢ Array.repeat a ((fun i => i) ⟨1, ⋯⟩, j, PUnit.unit) = Loop.repeat a ((fun i => i) ⟨1, ⋯⟩, j, PUnit.unit) a:Tensor ℝ [3]⊢ Array.repeat a ((fun i => i) ⟨1, ⋯⟩, (fun i => i) ⟨0, ⋯⟩, PUnit.unit) =
Loop.repeat a ((fun i => i) ⟨1, ⋯⟩, (fun i => i) ⟨0, ⋯⟩, PUnit.unit)a:Tensor ℝ [3]⊢ Array.repeat a ((fun i => i) ⟨1, ⋯⟩, (fun i => i) ⟨1, ⋯⟩, PUnit.unit) =
Loop.repeat a ((fun i => i) ⟨1, ⋯⟩, (fun i => i) ⟨1, ⋯⟩, PUnit.unit)a:Tensor ℝ [3]⊢ Array.repeat a ((fun i => i) ⟨1, ⋯⟩, (fun i => i) ⟨2, ⋯⟩, PUnit.unit) =
Loop.repeat a ((fun i => i) ⟨1, ⋯⟩, (fun i => i) ⟨2, ⋯⟩, PUnit.unit) a:Tensor ℝ [3]⊢ Array.repeat a ((fun i => i) ⟨0, ⋯⟩, (fun i => i) ⟨0, ⋯⟩, PUnit.unit) =
Loop.repeat a ((fun i => i) ⟨0, ⋯⟩, (fun i => i) ⟨0, ⋯⟩, PUnit.unit)a:Tensor ℝ [3]⊢ Array.repeat a ((fun i => i) ⟨0, ⋯⟩, (fun i => i) ⟨1, ⋯⟩, PUnit.unit) =
Loop.repeat a ((fun i => i) ⟨0, ⋯⟩, (fun i => i) ⟨1, ⋯⟩, PUnit.unit)a:Tensor ℝ [3]⊢ Array.repeat a ((fun i => i) ⟨0, ⋯⟩, (fun i => i) ⟨2, ⋯⟩, PUnit.unit) =
Loop.repeat a ((fun i => i) ⟨0, ⋯⟩, (fun i => i) ⟨2, ⋯⟩, PUnit.unit)a:Tensor ℝ [3]⊢ Array.repeat a ((fun i => i) ⟨1, ⋯⟩, (fun i => i) ⟨0, ⋯⟩, PUnit.unit) =
Loop.repeat a ((fun i => i) ⟨1, ⋯⟩, (fun i => i) ⟨0, ⋯⟩, PUnit.unit)a:Tensor ℝ [3]⊢ Array.repeat a ((fun i => i) ⟨1, ⋯⟩, (fun i => i) ⟨1, ⋯⟩, PUnit.unit) =
Loop.repeat a ((fun i => i) ⟨1, ⋯⟩, (fun i => i) ⟨1, ⋯⟩, PUnit.unit)a:Tensor ℝ [3]⊢ Array.repeat a ((fun i => i) ⟨1, ⋯⟩, (fun i => i) ⟨2, ⋯⟩, PUnit.unit) =
Loop.repeat a ((fun i => i) ⟨1, ⋯⟩, (fun i => i) ⟨2, ⋯⟩, PUnit.unit) All goals completed! 🐙a:Tensor ℝ [3]⊢ Array.repeat a = Loop.repeat a
exact matches_loop aAll goals completed! 🐙end JaxLean.Puzzles.Repeat