Documentation

LambdaS.PiExamples

Boundary checks for the coherent Pi theorem #

These kernel-checked examples test three boundaries: the dimension-level scaling law covers addMixed, which the drift diagnostic declines (addMixed_coherent); the coherent bridge accepts internal dimension and unit abstraction (instantiatedCaster_coherent); and descent needs no extra nonempty hypotheses at rank zero or full rank. The caster's derivation is constructed from typing rules and substitution lemmas, without compiler-evaluated decision procedures.

Coherent scaling covers a program the drift diagnostic declines.

Internal dimension and unit abstraction, instantiated at meter and foot.

Equations
  • One or more equations did not get rendered due to their size.
Instances For

    The typing derivation of instantiatedCaster at Q ft over one meter input, built from HasTy.dapp, HasTy.uapp, and substitution lemmas.

    Equations
    • One or more equations did not get rendered due to their size.
    Instances For

      The dimension-level scaling law holds for instantiatedCaster, which binds a dimension and two units internally and converts meters to feet.

      theorem LambdaS.Pi.fullRank_descends {H : (Fin 1 → ℝ) → ℝ} (hH : Invariant 1 H) :
      ∃ (G : (Fin 0 → ℝ) → ℝ), ∀ (ξ : Fin 1 → ℝ), H ξ = G fun (i : Fin 0) => i.elim0

      Full rank really produces a function of zero arguments.

      theorem LambdaS.Pi.zeroRank_descends {n : ℕ} {H : (Fin n → ℝ) → ℝ} :
      Matrix.rank 0 = 0 ∧ ∃ (G : (Fin (n - Matrix.rank 0) → ℝ) → ℝ), ∀ (ξ : Fin n → ℝ), H ξ = G (piCoordinates 0 ξ)

      Zero rank retains all coordinates, with no nonempty-row assumption.