blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 7 139 | content_id stringlengths 40 40 | detected_licenses listlengths 0 16 | license_type stringclasses 2
values | repo_name stringlengths 7 55 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 6
values | visit_date int64 1,471B 1,694B | revision_date int64 1,378B 1,694B | committer_date int64 1,378B 1,694B | github_id float64 1.33M 604M ⌀ | star_events_count int64 0 43.5k | fork_events_count int64 0 1.5k | gha_license_id stringclasses 6
values | gha_event_created_at int64 1,402B 1,695B ⌀ | gha_created_at int64 1,359B 1,637B ⌀ | gha_language stringclasses 19
values | src_encoding stringclasses 2
values | language stringclasses 1
value | is_vendor bool 1
class | is_generated bool 1
class | length_bytes int64 3 6.4M | extension stringclasses 4
values | content stringlengths 3 6.12M |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c6a690653a02ae13938d39cfe2f5b42ae56dcbc0 | ec62863c729b7eedee77b86d974f2c529fa79d25 | /10/b.lean | c698433de3ffb29ce52750bf92b20c900a9e71a4 | [] | no_license | rwbarton/advent-of-lean-4 | 2ac9b17ba708f66051e3d8cd694b0249bc433b65 | 417c7e2718253ba7148c0279fcb251b6fc291477 | refs/heads/main | 1,675,917,092,057 | 1,609,864,581,000 | 1,609,864,581,000 | 317,700,289 | 24 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 546 | lean | def solve (vals : Array Int) : Int := do
let mut counts : Array Int := Array.mkArray vals.size 0
for i in [0:vals.size] do
if vals.get! i ≤ 3 then counts := counts.set! i (counts.get! i + 1)
for j in [0:i] do
if vals.get! i - vals.get! j ≤ 3 then counts := counts.set! i (counts.get! i + counts.get! j)
counts.ge... |
9c486bb9c6f66e04988715ae711b5fb0deb11926 | 42610cc2e5db9c90269470365e6056df0122eaa0 | /library/data/real/division.lean | 5d1acfb7ceb33b6c69c1562ec191e797b902ce39 | [
"Apache-2.0"
] | permissive | tomsib2001/lean | 2ab59bfaebd24a62109f800dcf4a7139ebd73858 | eb639a7d53fb40175bea5c8da86b51d14bb91f76 | refs/heads/master | 1,586,128,387,740 | 1,468,968,950,000 | 1,468,968,950,000 | 61,027,234 | 0 | 0 | null | 1,465,813,585,000 | 1,465,813,585,000 | null | UTF-8 | Lean | false | false | 23,978 | lean | /-
Copyright (c) 2015 Robert Y. Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Robert Y. Lewis
The real numbers, constructed as equivalence classes of Cauchy sequences of rationals.
This construction follows Bishop and Bridges (1985).
At this point, we no longer... |
92dd1c5842b9c079f9eb19b6e2398a71482d3871 | 624f6f2ae8b3b1adc5f8f67a365c51d5126be45a | /src/Init/Lean/Compiler/IR.lean | 043a049ffac04ae184cee9a4e656e1cf9a7eed78 | [
"Apache-2.0"
] | permissive | mhuisi/lean4 | 28d35a4febc2e251c7f05492e13f3b05d6f9b7af | dda44bc47f3e5d024508060dac2bcb59fd12e4c0 | refs/heads/master | 1,621,225,489,283 | 1,585,142,689,000 | 1,585,142,689,000 | 250,590,438 | 0 | 2 | Apache-2.0 | 1,602,443,220,000 | 1,585,327,814,000 | C | UTF-8 | Lean | false | false | 2,736 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import Init.Lean.Compiler.IR.Basic
import Init.Lean.Compiler.IR.Format
import Init.Lean.Compiler.IR.CompilerM
import Init.Lean.Compiler.IR.PushProj
... |
5883a64a8cd461914badbf23d78c42b008260600 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/order/boolean_algebra.lean | b6772b7ac56b7dde8948b3cec0907a16e4518ec9 | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 31,562 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Bryan Gin-ge Chen
-/
import order.heyting.basic
/-!
# (Generalized) Boolean algebras
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file require a c... |
21920eb4c9c95a0df7f67aad1d952cc52a66517a | 968e2f50b755d3048175f176376eff7139e9df70 | /examples/pred_logic/unnamed_155.lean | ca998baa21591d1e9db3db688038da8e9529a5c4 | [] | no_license | gihanmarasingha/mth1001_sphinx | 190a003269ba5e54717b448302a27ca26e31d491 | 05126586cbf5786e521be1ea2ef5b4ba3c44e74a | refs/heads/master | 1,672,913,933,677 | 1,604,516,583,000 | 1,604,516,583,000 | 309,245,750 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 399 | lean | def avg_three (x y z : ℤ) : ℤ := (x + y + z)/2
#check avg_three -- `avg_three` has type `ℤ → ℤ → ℤ → ℤ`, i.e., `ℤ → (ℤ → (ℤ → ℤ))`
#check (avg_three 10) -- `avg_three 10` has type `ℤ → (ℤ → ℤ)`.
#check (avg_three 10 5) -- `avg_three 10 5` has type `ℤ → ℤ`.
#check (avg_three 10 5 6) -- `avg_three 10 5 6` has ... |
7cda00d023a8a85d154dde93f389aa0ab96ef197 | b0d97c09d47e3b0a68128c64cad26ab132d23108 | /src/compcont/ex5.lean | cddaa6bd10e5b489c47cc65dc11c66c022b5f3dd | [] | no_license | jmvlangen/RIP-seminar | 2ad32c1c6fceb59ac7ae3b2251baf08f4c0c0caa | ed6771404dd4bcec298de2dfdc89d5e9cfd331bb | refs/heads/master | 1,585,865,817,237 | 1,546,865,823,000 | 1,546,865,823,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,227 | lean | import analysis.topology.topological_space
import analysis.topology.continuity
import analysis.topology.topological_structures
import ex4 analysis.normed_space
open tactic expr function has_add
variables {X : Type*} {Y : Type*} {Z : Type*} {W : Type*}
{f f₁ f₂ : X → Y} {g : Y → Z} {h : Z → W}
variables [topo... |
ee662f0af6cdf9c443459c060fe80eaa4572a321 | 302c785c90d40ad3d6be43d33bc6a558354cc2cf | /src/linear_algebra/finite_dimensional.lean | 936182bdee16463dcd530f17fa48dc2b2cd0eb68 | [
"Apache-2.0"
] | permissive | ilitzroth/mathlib | ea647e67f1fdfd19a0f7bdc5504e8acec6180011 | 5254ef14e3465f6504306132fe3ba9cec9ffff16 | refs/heads/master | 1,680,086,661,182 | 1,617,715,647,000 | 1,617,715,647,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 57,720 | lean | /-
Copyright (c) 2019 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes
-/
import linear_algebra.dimension
import ring_theory.principal_ideal_domain
import algebra.algebra.subalgebra
/-!
# Finite dimensional vector spaces
Definition and basic ... |
cf749caff9d09591f0af53c8f5334f13f411930b | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/ring_theory/valuation/valuation_subring.lean | 94acc78a0b841bf0884a601664f94eefa1d32276 | [
"Apache-2.0"
] | permissive | jcommelin/mathlib | d8456447c36c176e14d96d9e76f39841f69d2d9b | ee8279351a2e434c2852345c51b728d22af5a156 | refs/heads/master | 1,664,782,136,488 | 1,663,638,983,000 | 1,663,638,983,000 | 132,563,656 | 0 | 0 | Apache-2.0 | 1,663,599,929,000 | 1,525,760,539,000 | Lean | UTF-8 | Lean | false | false | 29,230 | lean | /-
Copyright (c) 2022 Adam Topaz. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Adam Topaz, Junyan Xu, Jack McKoen
-/
import ring_theory.valuation.valuation_ring
import ring_theory.localization.as_subring
import ring_theory.subring.pointwise
import algebraic_geometry.... |
72871042dac132653e29852148573676654bcd4e | dfd42d30132c2867977fefe7edae98b6dc703aeb | /src/liouville_theorem.lean | 4f0d18c0b35dd02fcca8ba8ff15be346aacc6fbb | [] | no_license | justadzr/lean-2021 | 1e42057ac75c794c94b8f148a27a24150c685f68 | dfc6b30de2f27bdba5fbc51183e2b84e73a920d1 | refs/heads/master | 1,689,652,366,522 | 1,630,313,809,000 | 1,630,313,809,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 48,924 | lean | import analysis.calculus.conformal
import analysis.normed_space.banach
import analysis.normed_space.dual
import similarity
import bilin_form_lemmas
import analysis.calculus.times_cont_diff
import analysis.calculus.fderiv_symmetric
noncomputable theory
open conformal_at set
open_locale classical real_inner_product_spa... |
16529616177611ee4d23f163b9090eca7499cee3 | 618003631150032a5676f229d13a079ac875ff77 | /src/linear_algebra/linear_pmap.lean | 613b44908637ee67c88f96dcf7bd44513af6a21f | [
"Apache-2.0"
] | permissive | awainverse/mathlib | 939b68c8486df66cfda64d327ad3d9165248c777 | ea76bd8f3ca0a8bf0a166a06a475b10663dec44a | refs/heads/master | 1,659,592,962,036 | 1,590,987,592,000 | 1,590,987,592,000 | 268,436,019 | 1 | 0 | Apache-2.0 | 1,590,990,500,000 | 1,590,990,500,000 | null | UTF-8 | Lean | false | false | 15,709 | lean | /-
Copyright (c) 2020 Yury Kudryashov All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov
-/
import linear_algebra.basic
/-!
# Partially defined linear maps
A `linear_pmap R E F` is a linear map from a submodule of `E` to `F`. We define
a `semilattice_inf_... |
9b05b07a939978b5b3abfad1c5fba450abd69631 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/data/nat/choose/factorization.lean | 35268691fd3dd0acbd287a1442b986eeb0e8a2b5 | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 6,538 | lean | /-
Copyright (c) 2022 Bolton Bailey. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Bolton Bailey, Patrick Stevens, Thomas Browning
-/
import data.nat.choose.central
import data.nat.factorization.basic
import data.nat.multiplicity
/-!
# Factorization of Binomial Coef... |
6beffd82bb33832e6911894eab934a5985240e44 | 94637389e03c919023691dcd05bd4411b1034aa5 | /src/zzz_junk/lang/imp.lean | 0616b4856b64d7b14eee4f65088faa409cdba179 | [] | no_license | kevinsullivan/complogic-s21 | 7c4eef2105abad899e46502270d9829d913e8afc | 99039501b770248c8ceb39890be5dfe129dc1082 | refs/heads/master | 1,682,985,669,944 | 1,621,126,241,000 | 1,621,126,241,000 | 335,706,272 | 0 | 38 | null | 1,618,325,669,000 | 1,612,374,118,000 | Lean | UTF-8 | Lean | false | false | 2,011 | lean | import .arith_expr
import .bool_expr
/-
Syntax of our little language (OLL).
OLL supports mutable variables and
values of types arithmetic (bool) and
arithmetic (nat). It has an assignment
command for each of these two types.
It also supports sequential composition
of smaller programs into larger ones.
-/
inductive... |
86a8579bee3b85522079bb0beb1a13c95456ce98 | 491068d2ad28831e7dade8d6dff871c3e49d9431 | /tests/lean/num3.lean | bba618b9834abdef1d56fc6eea538fe57a785556 | [
"Apache-2.0"
] | permissive | davidmueller13/lean | 65a3ed141b4088cd0a268e4de80eb6778b21a0e9 | c626e2e3c6f3771e07c32e82ee5b9e030de5b050 | refs/heads/master | 1,611,278,313,401 | 1,444,021,177,000 | 1,444,021,177,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 199 | lean | import data.num
set_option pp.notation false
set_option pp.implicit true
constant N : Type.{1}
constant z : N
constant o : N
constant a : N
notation 0 := z
notation 1 := o
check a = 0
check 2 = 1
|
a6f9d36af22844ad677708eca0af5829b3272f69 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /library/algebra/lattice.lean | f5a9022d146eefc1546984683af1c02ad9fa0c25 | [
"Apache-2.0"
] | permissive | soonhokong/lean | cb8aa01055ffe2af0fb99a16b4cda8463b882cd1 | 38607e3eb57f57f77c0ac114ad169e9e4262e24f | refs/heads/master | 1,611,187,284,081 | 1,450,766,737,000 | 1,476,122,547,000 | 11,513,992 | 2 | 0 | null | 1,401,763,102,000 | 1,374,182,235,000 | C++ | UTF-8 | Lean | false | false | 5,163 | lean | /-
Copyright (c) 2014 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Jeremy Avigad
-/
import .order
variable {A : Type}
/- lattices (we could split this to upper- and lower-semilattices, if needed) -/
structure lattice [class] (A : Type) extends weak_o... |
8b747af4e2ec07ccf12afc5009b23435d0546ead | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/group_theory/group_action/group.lean | b28ba8a5517ee9a8f2f01570885edf30b3676e73 | [
"Apache-2.0"
] | permissive | jjgarzella/mathlib | 96a345378c4e0bf26cf604aed84f90329e4896a2 | 395d8716c3ad03747059d482090e2bb97db612c8 | refs/heads/master | 1,686,480,124,379 | 1,625,163,323,000 | 1,625,163,323,000 | 281,190,421 | 2 | 0 | Apache-2.0 | 1,595,268,170,000 | 1,595,268,169,000 | null | UTF-8 | Lean | false | false | 6,208 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes
-/
import group_theory.group_action.defs
import algebra.group.units
import algebra.group_with_zero
import data.equiv.mul_add
import data.equiv.mul_add_aut
import group_theor... |
e0dc2b8703a59604140b295f59afd0f57c6bc555 | 38bf3fd2bb651ab70511408fcf70e2029e2ba310 | /src/category_theory/category/default.lean | d9c2ee7f6e0e21005dec5e379a90252d614864f2 | [
"Apache-2.0"
] | permissive | JaredCorduan/mathlib | 130392594844f15dad65a9308c242551bae6cd2e | d5de80376088954d592a59326c14404f538050a1 | refs/heads/master | 1,595,862,206,333 | 1,570,816,457,000 | 1,570,816,457,000 | 209,134,499 | 0 | 0 | Apache-2.0 | 1,568,746,811,000 | 1,568,746,811,000 | null | UTF-8 | Lean | false | false | 5,587 | lean | /-
Copyright (c) 2017 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Stephen Morgan, Scott Morrison, Johannes Hölzl, Reid Barton
Defines a category, as a typeclass parametrised by the type of objects.
Introduces notations
`X ⟶ Y` for the morphism spa... |
1e23b4b01f1806695b7e5e9fdd1c57dc9a73f3fc | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /library/theories/number_theory/prime_factorization.lean | 87649d5925dd391e1c9448bfd2a6bcf428dd7c53 | [
"Apache-2.0"
] | permissive | soonhokong/lean-osx | 4a954262c780e404c1369d6c06516161d07fcb40 | 3670278342d2f4faa49d95b46d86642d7875b47c | refs/heads/master | 1,611,410,334,552 | 1,474,425,686,000 | 1,474,425,686,000 | 12,043,103 | 5 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 14,077 | lean | /-
Copyright (c) 2015 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad
Multiplicity and prime factors. We have:
mult p n := the greatest power of p dividing n if p > 1 and n > 0, and 0 otherwise.
prime_factors n := the finite set... |
e75b0ceefbfc4effc8a0d17654e779923961aede | bde6690019e9da475b0c91d5a066e0f6681a1179 | /library/standard/nat.lean | 2b192310866de15e05f29745648ba6251dd6c82d | [
"Apache-2.0"
] | permissive | leodemoura/libraries | ae67d491abc580407aa837d65736d515bec39263 | 14afd47544daa9520ea382d33ba7f6f05c949063 | refs/heads/master | 1,473,601,302,073 | 1,403,713,370,000 | 1,403,713,370,000 | 19,831,525 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 52,912 | lean | ----------------------------------------------------------------------------------------------------
--- Copyright (c) 2014 Floris van Doorn. All rights reserved.
--- Released under Apache 2.0 license as described in the file LICENSE.
--- Author: Floris van Doorn
--------------------------------------------------------... |
f44ac259cbb3299f5890afb86949ef8f37cf61e1 | 3bdd27ffdff3ffa22d4bb010eba695afcc96bc4a | /src/barycentric_subdivision.lean | ccd51554eb38d64af96556ce406588c5c63fd5bd | [] | no_license | mmasdeu/brouwerfixedpoint | 684d712c982c6a8b258b4e2c6b2eab923f2f1289 | 548270f79ecf12d7e20a256806ccb9fcf57b87e2 | refs/heads/main | 1,690,539,793,996 | 1,631,801,831,000 | 1,631,801,831,000 | 368,139,809 | 4 | 3 | null | 1,624,453,250,000 | 1,621,246,034,000 | Lean | UTF-8 | Lean | false | false | 2,044 | lean | import data.real.basic
import combinatorics.simplicial_complex.basic
import combinatorics.simplicial_complex.finite
import combinatorics.simplicial_complex.sperner
variables {m n : ℕ}
local notation `E` := fin m → ℝ
noncomputable def barycenter(L: list E): E :=
(list.foldl (λ x:E , λ y:E, x + y) (0 : E) L) / L.leng... |
5b4ebcf0fd2ee7eeccce5e47a5035ea0b4bbecb1 | 00f20606b80ff481edcb3343798a879c6c568f6c | /src/Euclid/axioms.lean | 5b4fe51116356e74554b5cbbfb5dda597a3943e5 | [
"Apache-2.0"
] | permissive | SG4316/xena-UROP-2018 | 53c21afcc6909bde186e3d9b8e8bf4c888a5f32e | d20b155d317e210917e9ce88d91457a7c0f2efac | refs/heads/master | 1,584,877,373,507 | 1,530,817,535,000 | 1,530,817,535,000 | 139,990,847 | 0 | 0 | null | 1,530,884,893,000 | 1,530,884,893,000 | null | UTF-8 | Lean | false | false | 247 | lean | import Euclid.unordered_pairs
structure Euclidean_plane :=
(Point : Type)
(Line : Type)
(ends)
(is_on : Point → Line → Prop)
(line_through_points : ∀ p q : Point, p ≠ q → ∃! L : Line, is_on p L ∧ is_on q L)
(Line_segment : Type)
|
d86d0b55d15e49b12532ab98566d035f7de10767 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/topology/algebra/continuous_affine_map.lean | 3b560a01d7064caf93030f6aae87f94bb893f026 | [
"Apache-2.0"
] | permissive | Vierkantor/mathlib | 0ea59ac32a3a43c93c44d70f441c4ee810ccceca | 83bc3b9ce9b13910b57bda6b56222495ebd31c2f | refs/heads/master | 1,658,323,012,449 | 1,652,256,003,000 | 1,652,256,003,000 | 209,296,341 | 0 | 1 | Apache-2.0 | 1,568,807,655,000 | 1,568,807,655,000 | null | UTF-8 | Lean | false | false | 8,347 | lean | /-
Copyright (c) 2021 Oliver Nash. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Oliver Nash
-/
import linear_algebra.affine_space.affine_map
import topology.continuous_function.basic
import topology.algebra.module.basic
/-!
# Continuous affine maps.
This file defin... |
9bca1061ca74ec8aadc39276344dd2179affa807 | 4fa161becb8ce7378a709f5992a594764699e268 | /src/order/filter/at_top_bot.lean | fb896f7fb39f8c10817d684d2aacc3ecadad6ddb | [
"Apache-2.0"
] | permissive | laughinggas/mathlib | e4aa4565ae34e46e834434284cb26bd9d67bc373 | 86dcd5cda7a5017c8b3c8876c89a510a19d49aad | refs/heads/master | 1,669,496,232,688 | 1,592,831,995,000 | 1,592,831,995,000 | 274,155,979 | 0 | 0 | Apache-2.0 | 1,592,835,190,000 | 1,592,835,189,000 | null | UTF-8 | Lean | false | false | 19,968 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Jeremy Avigad, Yury Kudryashov, Patrick Massot
-/
import order.filter.basic
/-!
# `at_top` and `at_bot` filters on preorded sets, monoids and groups.
In this file we ... |
96d92dddd8d0bb420f7a1527e56deaca5bfd721b | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/number_theory/quadratic_reciprocity.lean | 5fa4f7b57836a69c9474ea0cf6858ea7b9a2fef5 | [
"Apache-2.0"
] | permissive | AntoineChambert-Loir/mathlib | 64aabb896129885f12296a799818061bc90da1ff | 07be904260ab6e36a5769680b6012f03a4727134 | refs/heads/master | 1,693,187,631,771 | 1,636,719,886,000 | 1,636,719,886,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 24,966 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes
-/
import field_theory.finite.basic
import data.zmod.basic
import data.nat.parity
/-!
# Quadratic reciprocity.
This file contains results about quadratic residues modulo ... |
583c85e27cd72cb20124fca65987525c5ddd7e10 | c3f2fcd060adfa2ca29f924839d2d925e8f2c685 | /tests/lean/run/structure_test.lean | fb2acec86a6f4d868e38615414a39dc2d55de6f2 | [
"Apache-2.0"
] | permissive | respu/lean | 6582d19a2f2838a28ecd2b3c6f81c32d07b5341d | 8c76419c60b63d0d9f7bc04ebb0b99812d0ec654 | refs/heads/master | 1,610,882,451,231 | 1,427,747,084,000 | 1,427,747,429,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 709 | lean | import logic data.sigma
inductive point (A B : Type) :=
mk : Π (x : A) (y : B), point A B
inductive color [class] :=
red | green | blue
constant foo.{l} (A : Type.{l}) [H : decidable_eq A] : Type.{l}
constants a : num
section
universe variable l
variable A : Type.{l}
variable Ha : decidable_eq A
include Ha... |
83df84fd5bce45e2213b9644e1cc39316f6e5b6b | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/computability/turing_machine.lean | 77423d845f35db2e67f5f1adee9f64adee1d02c4 | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 89,627 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.algebra.order
import Mathlib.data.fintype.basic
import Mathlib.data.pfun
import Mathlib.tact... |
6e229f5e034747d29da9920ff4dd0f9fb8251f3c | f3a5af2927397cf346ec0e24312bfff077f00425 | /src/game/world10/level18q.lean | badb4128345cff8f9ca40f10d7ed9bed42a412c5 | [
"Apache-2.0"
] | permissive | ImperialCollegeLondon/natural_number_game | 05c39e1586408cfb563d1a12e1085a90726ab655 | f29b6c2884299fc63fdfc81ae5d7daaa3219f9fd | refs/heads/master | 1,688,570,964,990 | 1,636,908,242,000 | 1,636,908,242,000 | 195,403,790 | 277 | 84 | Apache-2.0 | 1,694,547,955,000 | 1,562,328,792,000 | Lean | UTF-8 | Lean | false | false | 4,070 | lean | import game.world10.level17 -- every level of the natural number game on the web
import game.world3.level7 -- semiring instance
namespace mynat
/-
Here are the remaining lt (less than) levels.
-/
lemma lt_irrefl (a : mynat) : ¬ (a < a) :=
begin [nat_num_game]
sorry
end
lemma ne_of_lt {a b : mynat} : a < b → a ≠ b... |
ae85627f650a4dd07de6ac3e732108414044b268 | c777c32c8e484e195053731103c5e52af26a25d1 | /src/linear_algebra/annihilating_polynomial.lean | 784fee1a4b31bf16ab66728efb3ec11c5ee2e223 | [
"Apache-2.0"
] | permissive | kbuzzard/mathlib | 2ff9e85dfe2a46f4b291927f983afec17e946eb8 | 58537299e922f9c77df76cb613910914a479c1f7 | refs/heads/master | 1,685,313,702,744 | 1,683,974,212,000 | 1,683,974,212,000 | 128,185,277 | 1 | 0 | null | 1,522,920,600,000 | 1,522,920,600,000 | null | UTF-8 | Lean | false | false | 6,632 | lean | /-
Copyright (c) 2022 Justin Thomas. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Justin Thomas
-/
import field_theory.minpoly.field
import ring_theory.principal_ideal_domain
/-!
# Annihilating Ideal
Given a commutative ring `R` and an `R`-algebra `A`
Every element... |
4fff31487b75350b400c1d764bd252d488fbcf78 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/measure_theory/card_measurable_space.lean | 33bda612637229406066f3d93924ab2cdf5319d6 | [
"Apache-2.0"
] | permissive | alreadydone/mathlib | dc0be621c6c8208c581f5170a8216c5ba6721927 | c982179ec21091d3e102d8a5d9f5fe06c8fafb73 | refs/heads/master | 1,685,523,275,196 | 1,670,184,141,000 | 1,670,184,141,000 | 287,574,545 | 0 | 0 | Apache-2.0 | 1,670,290,714,000 | 1,597,421,623,000 | Lean | UTF-8 | Lean | false | false | 8,540 | lean | /-
Copyright (c) 2022 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sébastien Gouëzel, Violeta Hernández Palacios
-/
import measure_theory.measurable_space_def
import set_theory.cardinal.cofinality
import set_theory.cardinal.continuum
/-!
# Cardina... |
1fc75635cf20e03b6750c041286edbe9fec5b232 | 453dcd7c0d1ef170b0843a81d7d8caedc9741dce | /analysis/topology/continuity.lean | 34a9bb78c304052ddcea901b53b5a757dcc9ed8f | [
"Apache-2.0"
] | permissive | amswerdlow/mathlib | 9af77a1f08486d8fa059448ae2d97795bd12ec0c | 27f96e30b9c9bf518341705c99d641c38638dfd0 | refs/heads/master | 1,585,200,953,598 | 1,534,275,532,000 | 1,534,275,532,000 | 144,564,700 | 0 | 0 | null | 1,534,156,197,000 | 1,534,156,197,000 | null | UTF-8 | Lean | false | false | 45,875 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Mario Carneiro
Continuous functions.
Parts of the formalization is based on the books:
N. Bourbaki: General Topology
I. M. James: Topologies and Uniformities
A ma... |
f4f9b8e64f712e0e271701808ab70f4d0446b8cc | f7315930643edc12e76c229a742d5446dad77097 | /hott/algebra/precategory/iso.hlean | 9c59835e922009bdc3b486705b076c3146ad14b0 | [
"Apache-2.0"
] | permissive | bmalehorn/lean | 8f77b762a76c59afff7b7403f9eb5fc2c3ce70c1 | 53653c352643751c4b62ff63ec5e555f11dae8eb | refs/heads/master | 1,610,945,684,489 | 1,429,681,220,000 | 1,429,681,449,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 14,265 | hlean | /-
Copyright (c) 2015 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Module: algebra.precategory.iso
Author: Floris van Doorn, Jakob von Raumer
-/
import algebra.precategory.basic types.sigma arity
open eq category prod equiv is_equiv sigma sigma.ops is_tru... |
afd1c9fa24eb4cadf2262d071a65606834244cc2 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/algebra/smul_with_zero.lean | 92cba278685acd21dae78fe9f7148907ecf0261d | [
"Apache-2.0"
] | permissive | jcommelin/mathlib | d8456447c36c176e14d96d9e76f39841f69d2d9b | ee8279351a2e434c2852345c51b728d22af5a156 | refs/heads/master | 1,664,782,136,488 | 1,663,638,983,000 | 1,663,638,983,000 | 132,563,656 | 0 | 0 | Apache-2.0 | 1,663,599,929,000 | 1,525,760,539,000 | Lean | UTF-8 | Lean | false | false | 7,237 | lean | /-
Copyright (c) 2021 Damiano Testa. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Damiano Testa
-/
import algebra.group_power.basic
import algebra.ring.opposite
import group_theory.group_action.opposite
import group_theory.group_action.prod
/-!
# Introduce `smul_wit... |
36c0521e16bff96cece480734d9fcd9c6eb612a1 | 302c785c90d40ad3d6be43d33bc6a558354cc2cf | /src/analysis/convex/basic.lean | f6ab1c3f43f598ec76df4dd58ad7164e8ffb59d4 | [
"Apache-2.0"
] | permissive | ilitzroth/mathlib | ea647e67f1fdfd19a0f7bdc5504e8acec6180011 | 5254ef14e3465f6504306132fe3ba9cec9ffff16 | refs/heads/master | 1,680,086,661,182 | 1,617,715,647,000 | 1,617,715,647,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 58,311 | lean | /-
Copyright (c) 2019 Alexander Bentkamp. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Alexander Bentkamp, Yury Kudriashov
-/
import data.set.intervals.ord_connected
import data.set.intervals.image_preimage
import data.complex.module
import linear_algebra.affine_spac... |
7636df8c1e8bbd239298e57d50a9f54d1da2215a | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/run/blast_fun_info_bug.lean | 1d04e482619097890bc65dc9afda7cb852707aa0 | [
"Apache-2.0"
] | permissive | soonhokong/lean | cb8aa01055ffe2af0fb99a16b4cda8463b882cd1 | 38607e3eb57f57f77c0ac114ad169e9e4262e24f | refs/heads/master | 1,611,187,284,081 | 1,450,766,737,000 | 1,476,122,547,000 | 11,513,992 | 2 | 0 | null | 1,401,763,102,000 | 1,374,182,235,000 | C++ | UTF-8 | Lean | false | false | 267 | lean | definition set (A : Type) := A → Prop
set_option blast.strategy "preprocess"
example {A : Type} (s : set A) (a b : A) : a = b → s a → s b :=
by blast
set_option blast.strategy "cc"
example {A : Type} (s : set A) (a b : A) : a = b → s a → s b :=
by blast
|
e515c5aea8d6afa8ddbdc43588ac68a54d4b9366 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/data/analysis/topology.lean | 36a161a35f71c80351e3cfc28de9bfe4715b0f49 | [
"Apache-2.0"
] | permissive | alreadydone/mathlib | dc0be621c6c8208c581f5170a8216c5ba6721927 | c982179ec21091d3e102d8a5d9f5fe06c8fafb73 | refs/heads/master | 1,685,523,275,196 | 1,670,184,141,000 | 1,670,184,141,000 | 287,574,545 | 0 | 0 | Apache-2.0 | 1,670,290,714,000 | 1,597,421,623,000 | Lean | UTF-8 | Lean | false | false | 9,919 | lean | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import data.analysis.filter
import topology.bases
/-!
# Computational realization of topological spaces (experimental)
This file provides infrastructure to compute ... |
956b66a1d65a6b0f95e1fbd4110b65cb029c8b42 | 957a80ea22c5abb4f4670b250d55534d9db99108 | /tests/lean/run/array2.lean | ba8a73fdd48b8e486824fb90007ab2e3c009ae6c | [
"Apache-2.0"
] | permissive | GaloisInc/lean | aa1e64d604051e602fcf4610061314b9a37ab8cd | f1ec117a24459b59c6ff9e56a1d09d9e9e60a6c0 | refs/heads/master | 1,592,202,909,807 | 1,504,624,387,000 | 1,504,624,387,000 | 75,319,626 | 2 | 1 | Apache-2.0 | 1,539,290,164,000 | 1,480,616,104,000 | C++ | UTF-8 | Lean | false | false | 304 | lean | #check @array.mk
local infix ` << `:20 := array.push_back
def test1 :=
let v1 := mk_array 3 2,
v2 := v1 << 3 << 4,
v3 := (v2 << 5)^.write' 0 0 in
(v1, v2, v3)
#eval test1
def tst1 (n : nat) :=
let v1 := (mk_array n 1),
v2 := array.map (λ v, v + 1) v1 in
v2^.read' 1
#eval tst1 10
|
3b6fa4e83ae0541883cfd8afaa5fee619032310d | a721fe7446524f18ba361625fc01033d9c8b7a78 | /src/principia/myring/sum.lean | defa026258a74f1dcfe908cb46b9472f28b58693 | [] | no_license | Sterrs/leaning | 8fd80d1f0a6117a220bb2e57ece639b9a63deadc | 3901cc953694b33adda86cb88ca30ba99594db31 | refs/heads/master | 1,627,023,822,744 | 1,616,515,221,000 | 1,616,515,221,000 | 245,512,190 | 2 | 0 | null | 1,616,429,050,000 | 1,583,527,118,000 | Lean | UTF-8 | Lean | false | false | 7,749 | lean | import ..sequence
import .basic
import ..mynat.induction
import ..mynat.nat_sub
namespace hidden
namespace myring
open sequence
open myring
variables {α : Type} [myring α]
variables a b c d : α
variables m n k : mynat
variables term f g : sequence α
variables (op: α → α → α) (dflt: α)
@[simp] theorem sum_zero: sum ... |
d71c2964a97af090d03a89de282917c33e938bf1 | 271e26e338b0c14544a889c31c30b39c989f2e0f | /stage0/src/Init/Lean.lean | c8fc6010e6d9ab4053055d35e2c15c0f48d2f82e | [
"Apache-2.0"
] | permissive | dgorokho/lean4 | 805f99b0b60c545b64ac34ab8237a8504f89d7d4 | e949a052bad59b1c7b54a82d24d516a656487d8a | refs/heads/master | 1,607,061,363,851 | 1,578,006,086,000 | 1,578,006,086,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 651 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import Init.Lean.Compiler
import Init.Lean.Environment
import Init.Lean.Modifiers
import Init.Lean.ProjFns
import Init.Lean.Runtime
import Init.Lean... |
5cb62cef07a8ccd5fda19f6f7791a4f22490561f | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/data/real/golden_ratio.lean | c5963b5fe0114483be54c5cbf30f2d45e4cf9094 | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 5,789 | lean | /-
Copyright (c) 2020 Anatole Dedecker. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Anatole Dedecker, Alexey Soloyev, Junyan Xu
-/
import data.real.irrational
import data.nat.fib
import data.nat.prime_norm_num
import data.fin.vec_notation
import tactic.ring_exp
impo... |
ba50d7035a7300214e730e6af4f8c56023aa1979 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/analysis/p_series.lean | 20ecaa558a71ab507475a1ed2d623520793538f6 | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 13,626 | lean | /-
Copyright (c) 2020 Yury G. Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury G. Kudryashov
-/
import analysis.special_functions.pow.nnreal
/-!
# Convergence of `p`-series
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file require a... |
4247b612aafd170b126c13b2e92a7fa275f8961e | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /tests/lean/run/sec_bug.lean | e84e2e3d09985ca6fd856fd2d8becbff13af2bfe | [
"Apache-2.0"
] | permissive | soonhokong/lean-osx | 4a954262c780e404c1369d6c06516161d07fcb40 | 3670278342d2f4faa49d95b46d86642d7875b47c | refs/heads/master | 1,611,410,334,552 | 1,474,425,686,000 | 1,474,425,686,000 | 12,043,103 | 5 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 82 | lean | namespace foo
section bla
definition tst := true
end bla
end foo
check foo.tst
|
1f46b4406195bebede15aec2a4698baf1ca2b452 | 7afc29faca4febb6e5005c20aa4aa5c3df5cf35c | /src/grow.lean | 3199719b9de6ef987aaae52713d11aa70a30c8e3 | [
"MIT"
] | permissive | Piwry/Proof-of-Surreal | ad2883027e275050b43a578c5513ae3fe350515b | 6b92baf2382ac23dd0d700f5c958aa910ad4b754 | refs/heads/master | 1,670,521,185,736 | 1,599,657,591,000 | 1,599,657,591,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,681 | lean | import data.list tactic.omega defs single branch
lemma grow_trans : ∀ t1 t2 t3 : bintree,
(t1 ↣ t2) → (t2 ↣ t3) → (t1 ↣ t3) :=
begin
intro t1, induction t1,
begin intros, auto_grow end,
repeat { begin
intros t2 t3 H1 H2,
cases H1, cases H2,
have H3 : (t1_a ↣ H2_t'), apply t1_ih, repeat {assu... |
f2ca6d7397b92d52ccc5c76f53c7d45f4763d4b5 | 271e26e338b0c14544a889c31c30b39c989f2e0f | /tests/compiler/termparsertest1.lean | 772e6efd52ecf600aacc736f2a76305d0b30cdf6 | [
"Apache-2.0"
] | permissive | dgorokho/lean4 | 805f99b0b60c545b64ac34ab8237a8504f89d7d4 | e949a052bad59b1c7b54a82d24d516a656487d8a | refs/heads/master | 1,607,061,363,851 | 1,578,006,086,000 | 1,578,006,086,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,698 | lean | import Init.Lean.Parser.Term
open Lean
open Lean.Parser
def testParser (input : String) : IO Unit :=
do
env ← mkEmptyEnvironment;
termPTables ← builtinTermParsingTable.get;
stx ← IO.ofExcept $ runParser env termPTables input "<input>" "expr";
IO.println stx
def test (is : List String) : IO Unit :=
is.forM $ fun input... |
1e1c465bb5cc121086c71a52d7103e9b2ad5761a | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/topology/maps.lean | cbd80ed6314c7747ea1753078775142377443686 | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 26,131 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Mario Carneiro, Patrick Massot
-/
import topology.order
import topology.nhds_set
/-!
# Specific classes of maps between topological spaces
> THIS FILE IS SYNCHRONIZED... |
204968c51bb723473617e2a823151ee1d4d685bf | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/geometry/manifold/charted_space.lean | f1ca64288052616a92f196527525b9c7e5bdb2c5 | [
"Apache-2.0"
] | permissive | AntoineChambert-Loir/mathlib | 64aabb896129885f12296a799818061bc90da1ff | 07be904260ab6e36a5769680b6012f03a4727134 | refs/heads/master | 1,693,187,631,771 | 1,636,719,886,000 | 1,636,719,886,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 48,177 | lean | /-
Copyright (c) 2019 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sébastien Gouëzel
-/
import topology.local_homeomorph
/-!
# Charted spaces
A smooth manifold is a topological space `M` locally modelled on a euclidean space (or a euclidean
half-... |
f15d829c43f7e43a55a7543edca32e41a0b5b6b6 | a7eef317ddec01b9fc6cfbb876fe7ac00f205ac7 | /src/topology/metric_space/gromov_hausdorff_realized.lean | 1c168ddb679766e2bd5879d2406332a7afea7a9d | [
"Apache-2.0"
] | permissive | kmill/mathlib | ea5a007b67ae4e9e18dd50d31d8aa60f650425ee | 1a419a9fea7b959317eddd556e1bb9639f4dcc05 | refs/heads/master | 1,668,578,197,719 | 1,593,629,163,000 | 1,593,629,163,000 | 276,482,939 | 0 | 0 | null | 1,593,637,960,000 | 1,593,637,959,000 | null | UTF-8 | Lean | false | false | 26,281 | lean | /-
Copyright (c) 2019 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Sébastien Gouëzel
Construction of a good coupling between nonempty compact metric spaces, minimizing
their Hausdorff distance. This construction is instrumental to study the Gromov-... |
e423175a9c2de43232f32f7bc46415de7c8903d4 | a9fe717b93ccfa4b2e64faeb24f96dfefb390240 | /scalar.lean | 41ebbba31ef1d49c4f31871ac959b307bd6602ea | [] | no_license | skbaek/omega | ab1f4a6daadfc8c855f14c39d9459ab841527141 | 715e384ed14e8eb177a326700066e7c98269e078 | refs/heads/master | 1,588,000,876,352 | 1,552,645,917,000 | 1,552,645,917,000 | 174,442,914 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,979 | lean | import .clause
open tactic
meta def trisect (m : nat) :
list (list nat × term) → (list (list nat × term) ×
list (list nat × term) × list (list nat × term))
| [] := ([],[],[])
| ((p,t)::pts) :=
let (neg,zero,pos) := trisect pts in
if t.snd.get m < 0
then ((p,t)::neg,zero,pos)
else if t.snd.get m = ... |
8e8fe42dafd615ffd21e2588de7274405343bc68 | 82e44445c70db0f03e30d7be725775f122d72f3e | /src/algebra/invertible.lean | 0d7200cc6b7a39b9b152721d91761921eb61232e | [
"Apache-2.0"
] | permissive | stjordanis/mathlib | 51e286d19140e3788ef2c470bc7b953e4991f0c9 | 2568d41bca08f5d6bf39d915434c8447e21f42ee | refs/heads/master | 1,631,748,053,501 | 1,627,938,886,000 | 1,627,938,886,000 | 228,728,358 | 0 | 0 | Apache-2.0 | 1,576,630,588,000 | 1,576,630,587,000 | null | UTF-8 | Lean | false | false | 9,716 | lean | /-
Copyright (c) 2020 Anne Baanen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Anne Baanen
-/
import algebra.group.units
import algebra.ring.basic
/-!
# Invertible elements
This file defines a typeclass `invertible a` for elements `a` with a two-sided
multiplicat... |
b5ba2ec0b1322ac5cff75b645efc8ab1362d6391 | 618003631150032a5676f229d13a079ac875ff77 | /src/category_theory/pempty.lean | 27030219aee2fd839cd4dceab70b46d789e7352b | [
"Apache-2.0"
] | permissive | awainverse/mathlib | 939b68c8486df66cfda64d327ad3d9165248c777 | ea76bd8f3ca0a8bf0a166a06a475b10663dec44a | refs/heads/master | 1,659,592,962,036 | 1,590,987,592,000 | 1,590,987,592,000 | 268,436,019 | 1 | 0 | Apache-2.0 | 1,590,990,500,000 | 1,590,990,500,000 | null | UTF-8 | Lean | false | false | 1,241 | lean | /-
Copyright (c) 2018 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import category_theory.discrete_category
/-!
# The empty category
Defines a category structure on `pempty`, and the unique functor `pempty ⥤ C` for any category `C`... |
604e4f6c96b2ba1d59928f08e61aaac51045dcdb | 35677d2df3f081738fa6b08138e03ee36bc33cad | /src/order/filter/extr.lean | 81a727c4f9126f250f57f003041b2a9ec550b19a | [
"Apache-2.0"
] | permissive | gebner/mathlib | eab0150cc4f79ec45d2016a8c21750244a2e7ff0 | cc6a6edc397c55118df62831e23bfbd6e6c6b4ab | refs/heads/master | 1,625,574,853,976 | 1,586,712,827,000 | 1,586,712,827,000 | 99,101,412 | 1 | 0 | Apache-2.0 | 1,586,716,389,000 | 1,501,667,958,000 | Lean | UTF-8 | Lean | false | false | 18,676 | lean | /-
Copyright (c) 2019 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov
-/
import order.filter.basic logic.relator tactic.alias
/-! # Minimum and maximum w.r.t. a filter and on a aet
## Main Definitions
This file defines six predicates... |
72e235e4c12c1b90839814a4de544c87ebc916d2 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/algebra/graded_mul_action.lean | 041908d6f8e2d784f0b063ea6dfce02e9b0045ab | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 5,206 | lean | /-
Copyright (c) 2022 Jujian Zhang. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jujian Zhang, Eric Wieser
-/
import algebra.graded_monoid
/-!
# Additively-graded multiplicative action structures
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file... |
2b431d4af09246194dd6aedc9eeb3eb2a3ebaaff | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/ring_theory/witt_vector/frobenius_auto.lean | f303fa719c08d20208e46b65c55444c334638914 | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 8,786 | lean | /-
Copyright (c) 2020 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.data.nat.multiplicity
import Mathlib.ring_theory.witt_vector.basic
import Mathlib.ring_theo... |
75298f46da02050dd1a336e73e9a2a9b90a3fc84 | 624f6f2ae8b3b1adc5f8f67a365c51d5126be45a | /stage0/src/Init/Lean/Meta/Tactic/Generalize.lean | c86a6811ec88a2690b6409d3b2d8a76921bf3c1a | [
"Apache-2.0"
] | permissive | mhuisi/lean4 | 28d35a4febc2e251c7f05492e13f3b05d6f9b7af | dda44bc47f3e5d024508060dac2bcb59fd12e4c0 | refs/heads/master | 1,621,225,489,283 | 1,585,142,689,000 | 1,585,142,689,000 | 250,590,438 | 0 | 2 | Apache-2.0 | 1,602,443,220,000 | 1,585,327,814,000 | C | UTF-8 | Lean | false | false | 1,017 | lean | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import Init.Lean.Meta.KAbstract
import Init.Lean.Meta.Tactic.Util
namespace Lean
namespace Meta
def generalize (mvarId : MVarId) (e : Expr) (x : N... |
eb1b8cdaf416d5eceab419a473cee580c13f0e13 | 853df553b1d6ca524e3f0a79aedd32dde5d27ec3 | /src/order/filter/pointwise.lean | 866d7bea2ef127422e08c3e4eded38f6d7eafed1 | [
"Apache-2.0"
] | permissive | DanielFabian/mathlib | efc3a50b5dde303c59eeb6353ef4c35a345d7112 | f520d07eba0c852e96fe26da71d85bf6d40fcc2a | refs/heads/master | 1,668,739,922,971 | 1,595,201,756,000 | 1,595,201,756,000 | 279,469,476 | 0 | 0 | null | 1,594,696,604,000 | 1,594,696,604,000 | null | UTF-8 | Lean | false | false | 6,640 | lean | /-
Copyright (c) 2019 Zhouhang Zhou. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Zhouhang Zhou
-/
import algebra.pointwise
import order.filter.basic
/-!
# Pointwise operations on filters.
The pointwise operations on filters have nice properties, such as
• `map m ... |
ccfd499e9b8e1a9a616ecfe99f745f3fba4411b2 | 957a80ea22c5abb4f4670b250d55534d9db99108 | /tests/lean/run/1577.lean | 5f1738b4f30cd6e11e2fa8f78931369434c6b624 | [
"Apache-2.0"
] | permissive | GaloisInc/lean | aa1e64d604051e602fcf4610061314b9a37ab8cd | f1ec117a24459b59c6ff9e56a1d09d9e9e60a6c0 | refs/heads/master | 1,592,202,909,807 | 1,504,624,387,000 | 1,504,624,387,000 | 75,319,626 | 2 | 1 | Apache-2.0 | 1,539,290,164,000 | 1,480,616,104,000 | C++ | UTF-8 | Lean | false | false | 175 | lean | section
parameter T : Type
def eqT : T -> T -> Prop
| t1 t2 := t1 = t2
lemma sm : forall t1 t2,
eqT t1 t2 ->
t1 = t2 :=
begin
intros,
simp [eqT] at a,
assumption
end
end
|
2b793c9a6e33170f66b1e1110ade86ab3894b824 | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /tests/lean/run/sub_bug.lean | d2419cd753eef87f803e260a13eaa71923770424 | [
"Apache-2.0"
] | permissive | soonhokong/lean-osx | 4a954262c780e404c1369d6c06516161d07fcb40 | 3670278342d2f4faa49d95b46d86642d7875b47c | refs/heads/master | 1,611,410,334,552 | 1,474,425,686,000 | 1,474,425,686,000 | 12,043,103 | 5 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 42 | lean | open nat subtype
check { x : nat \ x > 0}
|
ccb6f09e2ab8991489701bff239764c5e0093004 | a45212b1526d532e6e83c44ddca6a05795113ddc | /src/algebra/archimedean.lean | 59c4fca5af463a1f31c56932239adbec9be64efb | [
"Apache-2.0"
] | permissive | fpvandoorn/mathlib | b21ab4068db079cbb8590b58fda9cc4bc1f35df4 | b3433a51ea8bc07c4159c1073838fc0ee9b8f227 | refs/heads/master | 1,624,791,089,608 | 1,556,715,231,000 | 1,556,715,231,000 | 165,722,980 | 5 | 0 | Apache-2.0 | 1,552,657,455,000 | 1,547,494,646,000 | Lean | UTF-8 | Lean | false | false | 15,755 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
Archimedean groups and fields.
-/
import algebra.group_power algebra.field_power
import data.rat tactic.linarith tactic.abel
local infix ` • ` := add_monoid.smul
vari... |
9ab496b7dc1d569a87994bd58f2d617ec5edf463 | 367134ba5a65885e863bdc4507601606690974c1 | /src/number_theory/quadratic_reciprocity.lean | e12cc22c8da371278e9d597bd9df718522765bab | [
"Apache-2.0"
] | permissive | kodyvajjha/mathlib | 9bead00e90f68269a313f45f5561766cfd8d5cad | b98af5dd79e13a38d84438b850a2e8858ec21284 | refs/heads/master | 1,624,350,366,310 | 1,615,563,062,000 | 1,615,563,062,000 | 162,666,963 | 0 | 0 | Apache-2.0 | 1,545,367,651,000 | 1,545,367,651,000 | null | UTF-8 | Lean | false | false | 25,026 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes
-/
import field_theory.finite.basic
import data.zmod.basic
import data.nat.parity
/-!
# Quadratic reciprocity.
This file contains results about quadratic residues modulo ... |
48a4f38d917d072a434ffd6e198b6dee781020cc | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/linear_algebra/affine_space/combination.lean | f367ce75ac90c51e24c93f6e1a618b8074d6f1a4 | [
"Apache-2.0"
] | permissive | jjgarzella/mathlib | 96a345378c4e0bf26cf604aed84f90329e4896a2 | 395d8716c3ad03747059d482090e2bb97db612c8 | refs/heads/master | 1,686,480,124,379 | 1,625,163,323,000 | 1,625,163,323,000 | 281,190,421 | 2 | 0 | Apache-2.0 | 1,595,268,170,000 | 1,595,268,169,000 | null | UTF-8 | Lean | false | false | 32,002 | lean | /-
Copyright (c) 2020 Joseph Myers. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Joseph Myers
-/
import algebra.invertible
import algebra.indicator_function
import linear_algebra.affine_space.affine_map
import linear_algebra.affine_space.affine_subspace
import linear... |
e901c5967b8fc3cf19e08990068216e267114d43 | a45212b1526d532e6e83c44ddca6a05795113ddc | /src/category_theory/comma.lean | 1ad47dedc4e0e71a8462b2802cfa818fe83722a2 | [
"Apache-2.0"
] | permissive | fpvandoorn/mathlib | b21ab4068db079cbb8590b58fda9cc4bc1f35df4 | b3433a51ea8bc07c4159c1073838fc0ee9b8f227 | refs/heads/master | 1,624,791,089,608 | 1,556,715,231,000 | 1,556,715,231,000 | 165,722,980 | 5 | 0 | Apache-2.0 | 1,552,657,455,000 | 1,547,494,646,000 | Lean | UTF-8 | Lean | false | false | 11,430 | lean | -- Copyright (c) 2018 Scott Morrison. All rights reserved.
-- Released under Apache 2.0 license as described in the file LICENSE.
-- Authors: Scott Morrison, Johan Commelin
import category_theory.isomorphism
import category_theory.punit
namespace category_theory
universes v₁ v₂ v₃ u₁ u₂ u₃ -- declare the `v`'s first... |
6d8e902d817e5ca1f49279bbbfa3b3f758b568e6 | ddf69e0b8ad10bfd251aa1fb492bd92f064768ec | /src/linear_algebra/basis.lean | 52077a56a08e2f18c467fc9bfdb75d2723a5d33f | [
"Apache-2.0"
] | permissive | MaboroshiChan/mathlib | db1c1982df384a2604b19a5e1f5c6464c7c76de1 | 7f74e6b35f6bac86b9218250e83441ac3e17264c | refs/heads/master | 1,671,993,587,476 | 1,601,911,102,000 | 1,601,911,102,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 61,310 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Mario Carneiro, Alexander Bentkamp
-/
import linear_algebra.finsupp
import linear_algebra.projection
import order.zorn
import data.fintype.card
import data.finset.order... |
3f0d1fd4ad9c58a1198ee1e6a168a655e45dee0a | 624f6f2ae8b3b1adc5f8f67a365c51d5126be45a | /tests/lean/run/float_cases_bug.lean | 296c21e46619f0dc1b89fdc98c017aa5e75c4f81 | [
"Apache-2.0"
] | permissive | mhuisi/lean4 | 28d35a4febc2e251c7f05492e13f3b05d6f9b7af | dda44bc47f3e5d024508060dac2bcb59fd12e4c0 | refs/heads/master | 1,621,225,489,283 | 1,585,142,689,000 | 1,585,142,689,000 | 250,590,438 | 0 | 2 | Apache-2.0 | 1,602,443,220,000 | 1,585,327,814,000 | C | UTF-8 | Lean | false | false | 70 | lean | def foo (xs : List Nat) :=
xs.span (fun n => oldCoe (decide (n = 1)))
|
3ce6a15930c37f5c22b98c333225d6b3199c9706 | cf39355caa609c0f33405126beee2739aa3cb77e | /tmp/div2.lean | f0681087eb69945c88c2ce9a50d9317893d2b4a9 | [
"Apache-2.0"
] | permissive | leanprover-community/lean | 12b87f69d92e614daea8bcc9d4de9a9ace089d0e | cce7990ea86a78bdb383e38ed7f9b5ba93c60ce0 | refs/heads/master | 1,687,508,156,644 | 1,684,951,104,000 | 1,684,951,104,000 | 169,960,991 | 457 | 107 | Apache-2.0 | 1,686,744,372,000 | 1,549,790,268,000 | C++ | UTF-8 | Lean | false | false | 569 | lean | def R : (Σ _ : nat, nat) → (Σ _ : nat, nat) → Prop :=
sigma.lex nat.lt (λ _, empty_relation)
def Rwf : well_founded R :=
sigma.lex_wf nat.lt_wf (λ _, empty_wf)
set_option trace.debug.eqn_compiler.wf_rec true
set_option trace.eqn_compiler.wf_rec true
set_option trace.app_builder true
-- set_option trace.eqn_compiler.e... |
cb9d70adb441aac8de167c88226d9fcd9b489924 | e39f04f6ff425fe3b3f5e26a8998b817d1dba80f | /analysis/limits.lean | 498981991155df09b772ef4e3db8e951d84ebfd1 | [
"Apache-2.0"
] | permissive | kristychoi/mathlib | c504b5e8f84e272ea1d8966693c42de7523bf0ec | 257fd84fe98927ff4a5ffe044f68c4e9d235cc75 | refs/heads/master | 1,586,520,722,896 | 1,544,030,145,000 | 1,544,031,933,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 11,728 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl
A collection of limit properties.
-/
import algebra.big_operators algebra.group_power tactic.norm_num
analysis.ennreal analysis.topology.infinite_sum
noncomputable th... |
9b11bf4a066bf26102d014ec33f6a36bbde16e3b | b9a81ebb9de684db509231c4469a7d2c88915808 | /src/super/clause.lean | 4891be5bfa2065897ba16c9fc0a755fc39d8ce5b | [] | no_license | leanprover/super | 3dd81ce8d9ac3cba20bce55e84833fadb2f5716e | 47b107b4cec8f3b41d72daba9cbda2f9d54025de | refs/heads/master | 1,678,482,996,979 | 1,676,526,367,000 | 1,676,526,367,000 | 92,215,900 | 12 | 6 | null | 1,513,327,539,000 | 1,495,570,640,000 | Lean | UTF-8 | Lean | false | false | 8,649 | lean | /-
Copyright (c) 2017 Gabriel Ebner. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Gabriel Ebner
-/
import init.meta.tactic .utils .trim
open expr list tactic monad decidable native
namespace super
meta def is_local_not (local_false : expr) (e : expr) : option expr ... |
ca71f55164e57bb661b6ec014c51aa1a163bd4a4 | 510e96af568b060ed5858226ad954c258549f143 | /data/pfun.lean | 5132091ee4d92e222da05fe510581ca4908e95f0 | [] | no_license | Shamrock-Frost/library_dev | cb6d1739237d81e17720118f72ba0a6db8a5906b | 0245c71e4931d3aceeacf0aea776454f6ee03c9c | refs/heads/master | 1,609,481,034,595 | 1,500,165,215,000 | 1,500,165,347,000 | 97,350,162 | 0 | 0 | null | 1,500,164,969,000 | 1,500,164,969,000 | null | UTF-8 | Lean | false | false | 2,351 | lean | import data.set ..data.set.basic
universes u v w
structure pfun (α : Type u) (β : Type v) : Type (max u v) :=
(dom : set α)
(fn : Π x, dom x → β)
infixr ` →. `:25 := pfun
namespace pfun
variables {α : Type u} {β : Type v} {γ : Type w}
def eval_opt {β : Type v} (f : α →. β) [decidable_pred (dom f)] (x : α) : option... |
beab45ee61065b4120bc6d9e3eaa8476c8d93b04 | 98beff2e97d91a54bdcee52f922c4e1866a6c9b9 | /src/finite_products.lean | f5864accfd0f9d8c4c67a6b8e717e1414f8380e3 | [] | no_license | b-mehta/topos | c3fc43fb04ba16bae1965ce5c26c6461172e5bc6 | c9032b11789e36038bc841a1e2b486972421b983 | refs/heads/master | 1,629,609,492,867 | 1,609,907,263,000 | 1,609,907,263,000 | 240,943,034 | 43 | 3 | null | 1,598,210,062,000 | 1,581,877,668,000 | Lean | UTF-8 | Lean | false | false | 7,869 | lean | -- /-
-- Copyright (c) 2020 Wojciech Nawrocki. All rights reserved.
-- Released under Apache 2.0 license as described in the file LICENSE.
-- Authors: Wojciech Nawrocki
-- -/
-- import category_theory.limits.shapes.finite_products
-- import category_theory.limits.shapes.binary_products
-- import category_theory.limits... |
f5ff7b8bc8a2f3ef55d99e5ebd7cd72fbfa9cd7b | 947fa6c38e48771ae886239b4edce6db6e18d0fb | /src/measure_theory/integral/integral_eq_improper.lean | bb5663185543cf0ed0702a0ae528d69ac5cf6b0f | [
"Apache-2.0"
] | permissive | ramonfmir/mathlib | c5dc8b33155473fab97c38bd3aa6723dc289beaa | 14c52e990c17f5a00c0cc9e09847af16fabbed25 | refs/heads/master | 1,661,979,343,526 | 1,660,830,384,000 | 1,660,830,384,000 | 182,072,989 | 0 | 0 | null | 1,555,585,876,000 | 1,555,585,876,000 | null | UTF-8 | Lean | false | false | 31,181 | lean | /-
Copyright (c) 2021 Anatole Dedecker. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Anatole Dedecker, Bhavik Mehta
-/
import measure_theory.integral.interval_integral
import order.filter.at_top_bot
/-!
# Links between an integral and its "improper" version
In its ... |
69eade6a851ef4657f15db12fda607a872c49fdf | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/measure_theory/measure/measure_space_def.lean | 06b26e3f2369ea72a2c0a163933b9a1d1c2330aa | [
"Apache-2.0"
] | permissive | AntoineChambert-Loir/mathlib | 64aabb896129885f12296a799818061bc90da1ff | 07be904260ab6e36a5769680b6012f03a4727134 | refs/heads/master | 1,693,187,631,771 | 1,636,719,886,000 | 1,636,719,886,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 20,907 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Mario Carneiro
-/
import measure_theory.measure.outer_measure
import order.filter.countable_Inter
import data.set.accumulate
/-!
# Measure spaces
This file defines me... |
52aad58d21d714d4e91d5601a9ef7237ca05bbaf | 491068d2ad28831e7dade8d6dff871c3e49d9431 | /tests/lean/run/section2.lean | de2964a5ca9d2f250592edb32081957ab855f44d | [
"Apache-2.0"
] | permissive | davidmueller13/lean | 65a3ed141b4088cd0a268e4de80eb6778b21a0e9 | c626e2e3c6f3771e07c32e82ee5b9e030de5b050 | refs/heads/master | 1,611,278,313,401 | 1,444,021,177,000 | 1,444,021,177,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 256 | lean | import data.nat
section foo
variable A : Type
definition id (a : A) := a
variable a : nat
check _root_.id nat a
end foo
namespace n1
section foo
variable A : Type
definition id (a : A) := a
variable a : nat
check n1.id _ a
end foo
end n1
|
a7b9ae82efeff33ee0ad1954d987d2084b751ff9 | 3f48345ac9bbaa421714efc9872a0409379bb4ae | /src/examples/automata/automata_coalgebra.lean | b29f8fa3dd359a98dcda082ded3f7fc6ce11f469 | [] | no_license | QaisHamarneh/Coalgebra-in-Lean | b4318ee6d83780e5c734eb78fed98b1fe8016f7e | bd0452df98bc64b608e5dfd7babc42c301bb6a46 | refs/heads/master | 1,663,371,200,241 | 1,661,004,695,000 | 1,661,004,695,000 | 209,798,828 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,682 | lean | import coalgebra.Coalgebra
import examples.automata.Automaton
import set_category.category_set
import category_theory.types
import help_functions
import data.fin
namespace Automata_Coalgebra
open set help_functions coalgebra Automaton
universes u₁ u₂ u₃
variables {Sigma : Type u₂} {Γ : Type u₃}
def F : Type u₁ ... |
8d7b8b50215952876c523ae051b14bf4e6771fd3 | c777c32c8e484e195053731103c5e52af26a25d1 | /src/field_theory/fixed.lean | 115c4b0289428be0d4b8838b6c0e5815138d0e4c | [
"Apache-2.0"
] | permissive | kbuzzard/mathlib | 2ff9e85dfe2a46f4b291927f983afec17e946eb8 | 58537299e922f9c77df76cb613910914a479c1f7 | refs/heads/master | 1,685,313,702,744 | 1,683,974,212,000 | 1,683,974,212,000 | 128,185,277 | 1 | 0 | null | 1,522,920,600,000 | 1,522,920,600,000 | null | UTF-8 | Lean | false | false | 14,416 | lean | /-
Copyright (c) 2020 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau
-/
import algebra.group_ring_action.invariant
import algebra.polynomial.group_ring_action
import field_theory.normal
import field_theory.separable
import field_theory.tower
/-!
... |
3b91fc25ef339cacec4836c1309169ef4db64f7d | 02005f45e00c7ecf2c8ca5db60251bd1e9c860b5 | /src/algebra/group_power/lemmas.lean | 7ec11a90347fbba8e93ce1656dcf8784b25629a9 | [
"Apache-2.0"
] | permissive | anthony2698/mathlib | 03cd69fe5c280b0916f6df2d07c614c8e1efe890 | 407615e05814e98b24b2ff322b14e8e3eb5e5d67 | refs/heads/master | 1,678,792,774,873 | 1,614,371,563,000 | 1,614,371,563,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 29,315 | lean | /-
Copyright (c) 2015 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Robert Y. Lewis
-/
import algebra.group_power.basic
import algebra.opposites
import data.list.basic
import data.int.cast
import data.equiv.basic
import data.equiv.mul_add... |
b7e1d27f5c3c01239834bb8fde75a542e0bd28c7 | 1446f520c1db37e157b631385707cc28a17a595e | /tests/compiler/closure_bug1.lean | 8d626fe127cd47f72a4ceaaacd80ad60914da2f6 | [
"Apache-2.0"
] | permissive | bdbabiak/lean4 | cab06b8a2606d99a168dd279efdd404edb4e825a | 3f4d0d78b2ce3ef541cb643bbe21496bd6b057ac | refs/heads/master | 1,615,045,275,530 | 1,583,793,696,000 | 1,583,793,696,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 559 | lean | def f (x : Nat) : Nat × (Nat → String) :=
let x1 := x + 1;
let x2 := x + 2;
let x3 := x + 3;
let x4 := x + 4;
let x5 := x + 5;
let x6 := x + 6;
let x7 := x + 7;
let x8 := x + 8;
let x9 := x + 9;
let x10 := x + 10;
let x11 := x + 11;
let x12 := x + 12;
let x13 := x + 13;
let x14 := x + 14;
let x15 := x + 15;
let x16 := ... |
d8887b2f39ed5396c630e25067f1a9166035bccd | 8e2026ac8a0660b5a490dfb895599fb445bb77a0 | /tests/lean/run/cdcl_examples.lean | f9b9f836e1d17f7dea5035790031961402991a59 | [
"Apache-2.0"
] | permissive | pcmoritz/lean | 6a8575115a724af933678d829b4f791a0cb55beb | 35eba0107e4cc8a52778259bb5392300267bfc29 | refs/heads/master | 1,607,896,326,092 | 1,490,752,175,000 | 1,490,752,175,000 | 86,612,290 | 0 | 0 | null | 1,490,809,641,000 | 1,490,809,641,000 | null | UTF-8 | Lean | false | false | 712 | lean | import tools.super.cdcl
example {a} : a → ¬a → false := by cdcl
example {a} : a ∨ ¬a := by cdcl
example {a b} : a → (a → b) → b := by cdcl
example {a b c} : (a → b) → (¬a → b) → (b → c) → b ∧ c := by cdcl
open tactic monad
private meta def lit_unification : tactic unit :=
do ls ← local_context, first $ do l ← ls, [d... |
04519d61f842d6e4eb54d35ce7b70e4c2270867d | 35677d2df3f081738fa6b08138e03ee36bc33cad | /src/category_theory/limits/shapes/constructions/limits_of_products_and_equalizers.lean | 9f3e8f4bc0559843f93b378c3d389b8e995199cc | [
"Apache-2.0"
] | permissive | gebner/mathlib | eab0150cc4f79ec45d2016a8c21750244a2e7ff0 | cc6a6edc397c55118df62831e23bfbd6e6c6b4ab | refs/heads/master | 1,625,574,853,976 | 1,586,712,827,000 | 1,586,712,827,000 | 99,101,412 | 1 | 0 | Apache-2.0 | 1,586,716,389,000 | 1,501,667,958,000 | Lean | UTF-8 | Lean | false | false | 4,864 | lean | /-
-- Copyright (c) 2017 Scott Morrison. All rights reserved.
-- Released under Apache 2.0 license as described in the file LICENSE.
-- Authors: Scott Morrison
-/
import category_theory.limits.shapes.products
import category_theory.limits.shapes.equalizers
import category_theory.limits.shapes.finite_limits
import cate... |
c3461c6245236036aad88e9f6adc36261dec7f8f | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/linear_algebra/linear_pmap.lean | 994f6149d36a244657108e6e67e4d3ce5209e893 | [
"Apache-2.0"
] | permissive | robertylewis/mathlib | 3d16e3e6daf5ddde182473e03a1b601d2810952c | 1d13f5b932f5e40a8308e3840f96fc882fae01f0 | refs/heads/master | 1,651,379,945,369 | 1,644,276,960,000 | 1,644,276,960,000 | 98,875,504 | 0 | 0 | Apache-2.0 | 1,644,253,514,000 | 1,501,495,700,000 | Lean | UTF-8 | Lean | false | false | 16,768 | lean | /-
Copyright (c) 2020 Yury Kudryashov All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov
-/
import linear_algebra.basic
import linear_algebra.prod
/-!
# Partially defined linear maps
A `linear_pmap R E F` is a linear map from a submodule of `E` to `F`. We... |
1d54cec791b46b2ced1d9d414bf0870b662da4cf | d6124c8dbe5661dcc5b8c9da0a56fbf1f0480ad6 | /Papyrus/IR/Type.lean | 3593e1372a5269104fdc4ca173c837e65b9e3b44 | [
"Apache-2.0"
] | permissive | xubaiw/lean4-papyrus | c3fbbf8ba162eb5f210155ae4e20feb2d32c8182 | 02e82973a5badda26fc0f9fd15b3d37e2eb309e0 | refs/heads/master | 1,691,425,756,824 | 1,632,122,825,000 | 1,632,123,075,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,896 | lean | import Papyrus.IR.TypeID
import Papyrus.IR.TypeRefs
import Papyrus.IR.TypeBases
import Papyrus.IR.AddressSpace
namespace Papyrus
-- # The LLVM Type Inductive
/--
A pure representation of an LLVM
[Type](https://llvm.org/doxygen/classllvm_1_1Type.html).
-/
inductive «Type»
| half
| bfloat
| float
| double
| x86FP8... |
82427c6485c8e530926542c7f486af8d65bf8f7c | 3f48345ac9bbaa421714efc9872a0409379bb4ae | /src/coalgebra/subcoalgebra.lean | 40f72ca2851c57079a32a9999d757774dfdb06dd | [] | no_license | QaisHamarneh/Coalgebra-in-Lean | b4318ee6d83780e5c734eb78fed98b1fe8016f7e | bd0452df98bc64b608e5dfd7babc42c301bb6a46 | refs/heads/master | 1,663,371,200,241 | 1,661,004,695,000 | 1,661,004,695,000 | 209,798,828 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 7,880 | lean | import set_category.category_set
import coalgebra.Coalgebra
import help_functions
universe u
namespace subcoalgebra
open category_theory set category_set coalgebra function classical
help_functions
variables {F : Type u ⥤ Type u}
{𝔸 Β ℂ : Coalgebra F}
/--
Openset is a prop that checks if there ex... |
75ee43d78e0209c5fb9dd50467f2cc60df7694a7 | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /library/init/meta/injection_tactic.lean | 75e35bceadc7a71cc6793b6d5c01e419094690b7 | [
"Apache-2.0"
] | permissive | soonhokong/lean-osx | 4a954262c780e404c1369d6c06516161d07fcb40 | 3670278342d2f4faa49d95b46d86642d7875b47c | refs/heads/master | 1,611,410,334,552 | 1,474,425,686,000 | 1,474,425,686,000 | 12,043,103 | 5 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 2,038 | lean | /-
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import init.meta.tactic init.function
namespace tactic
open nat tactic environment expr list
private meta_definition mk_intro_name : name → list n... |
8f22dae22984ffaa81d960b8f004d4a0b9463bae | 56e5b79a7ab4f2c52e6eb94f76d8100a25273cf3 | /src/utils/sexp.lean | ff259ffdfc2d48412a49273a36186d95adaca65e | [
"Apache-2.0"
] | permissive | DyeKuu/lean-tpe-public | 3a9968f286ca182723ef7e7d97e155d8cb6b1e70 | 750ade767ab28037e80b7a80360d213a875038f8 | refs/heads/master | 1,682,842,633,115 | 1,621,330,793,000 | 1,621,330,793,000 | 368,475,816 | 0 | 0 | Apache-2.0 | 1,621,330,745,000 | 1,621,330,744,000 | null | UTF-8 | Lean | false | false | 4,184 | lean | import tactic.basic
section sexp
universe u
inductive sexp (α : Type u) : Type u
| atom : α → sexp
| list : (list sexp) → sexp
meta def sexp_to_format {α : Type u} [has_to_format α] : sexp α → format
| (sexp.atom val) := has_to_format.to_format val
| (sexp.list ses) := format.of_string $ "(" ++ (" ".intercalate (ses.... |
99a2aba94c1e7ef56bad9fad9346145932559da5 | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /tests/lean/run/parent_struct_inst.lean | cdaaff88d86701ecb2d9d2d0dcc798fb20ec07cb | [
"Apache-2.0"
] | permissive | soonhokong/lean-osx | 4a954262c780e404c1369d6c06516161d07fcb40 | 3670278342d2f4faa49d95b46d86642d7875b47c | refs/heads/master | 1,611,410,334,552 | 1,474,425,686,000 | 1,474,425,686,000 | 12,043,103 | 5 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 136 | lean | open nat
structure [class] A := (n : ℕ)
definition f [A] := A.n
structure B extends A :=
(Hf : f = 0)
example : B := ⟨0, rfl⟩
|
cfdd036eb4fa642cca37d79748eb6d53730d83e4 | a45212b1526d532e6e83c44ddca6a05795113ddc | /src/data/fp/basic.lean | 51439d572d9870284fb4599262767b505d7b7965 | [
"Apache-2.0"
] | permissive | fpvandoorn/mathlib | b21ab4068db079cbb8590b58fda9cc4bc1f35df4 | b3433a51ea8bc07c4159c1073838fc0ee9b8f227 | refs/heads/master | 1,624,791,089,608 | 1,556,715,231,000 | 1,556,715,231,000 | 165,722,980 | 5 | 0 | Apache-2.0 | 1,552,657,455,000 | 1,547,494,646,000 | Lean | UTF-8 | Lean | false | false | 6,214 | lean | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
Implementation of floating-point numbers (experimental).
-/
import data.rat data.semiquot
def int.shift2 (a b : ℕ) : ℤ → ℕ × ℕ
| (int.of_nat e) := (a.shiftl e, b)
| -... |
c0ff3f255ec407339a0f7269cf08db0bea2136f2 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/topology/algebra/ordered/left_right.lean | 5540e488258f4dd6cd70a249f97dd1f318c6e97e | [
"Apache-2.0"
] | permissive | robertylewis/mathlib | 3d16e3e6daf5ddde182473e03a1b601d2810952c | 1d13f5b932f5e40a8308e3840f96fc882fae01f0 | refs/heads/master | 1,651,379,945,369 | 1,644,276,960,000 | 1,644,276,960,000 | 98,875,504 | 0 | 0 | Apache-2.0 | 1,644,253,514,000 | 1,501,495,700,000 | Lean | UTF-8 | Lean | false | false | 2,495 | lean | /-
Copyright (c) 2021 Anatole Dedecker. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Anatole Dedecker
-/
import topology.continuous_on
/-!
# Left and right continuity
In this file we prove a few lemmas about left and right continuous functions:
* `continuous_withi... |
a9d549e753d06ed9fb7040fea7232758048f7601 | ea11767c9c6a467c4b7710ec6f371c95cfc023fd | /src/monoidal_categories/internal_objects/monoids.lean | 182d627f9d55c56da62246dd54a90aa8d2ae5386 | [] | no_license | RitaAhmadi/lean-monoidal-categories | 68a23f513e902038e44681336b87f659bbc281e0 | 81f43e1e0d623a96695aa8938951d7422d6d7ba6 | refs/heads/master | 1,651,458,686,519 | 1,529,824,613,000 | 1,529,824,613,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 772 | lean | -- Copyright (c) 2017 Scott Morrison. All rights reserved.
-- Released under Apache 2.0 license as described in the file LICENSE.
-- Authors: Stephen Morgan, Scott Morrison
import .semigroups
open categories
open categories.monoidal_category
namespace categories.internal_objects
universes u v
class MonoidObject {C ... |
a35c9f72dd1c8817aefca1d3caf685cf0d81373b | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/algebra/order/ring.lean | 9eb3aca53cfe9ae139719462d22dbb66ba6acd72 | [
"Apache-2.0"
] | permissive | jcommelin/mathlib | d8456447c36c176e14d96d9e76f39841f69d2d9b | ee8279351a2e434c2852345c51b728d22af5a156 | refs/heads/master | 1,664,782,136,488 | 1,663,638,983,000 | 1,663,638,983,000 | 132,563,656 | 0 | 0 | Apache-2.0 | 1,663,599,929,000 | 1,525,760,539,000 | Lean | UTF-8 | Lean | false | false | 71,866 | lean | /-
Copyright (c) 2016 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Leonardo de Moura, Mario Carneiro
-/
import algebra.char_zero.defs
import algebra.order.group
import algebra.order.monoid_lemmas_zero_lt
import algebra.order.sub
import a... |
6992c0864d8c9ee66b2d39e57552df9f52dbfd19 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/analysis/normed_space/algebra.lean | b3ae7a3ec2ba8ed679a337c6aee7554c87b9660b | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 1,761 | lean | /-
Copyright (c) 2022 Frédéric Dupuis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Frédéric Dupuis
-/
import topology.algebra.module.character_space
import analysis.normed_space.weak_dual
import analysis.normed_space.spectrum
/-!
# Normed algebras
> THIS FILE IS ... |
6e0cecc1e024b5528d75edff3e371919380e05c8 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/tactic/group.lean | b58aaf983e28f0bc687679f48465c1af6ca44f2b | [
"Apache-2.0"
] | permissive | robertylewis/mathlib | 3d16e3e6daf5ddde182473e03a1b601d2810952c | 1d13f5b932f5e40a8308e3840f96fc882fae01f0 | refs/heads/master | 1,651,379,945,369 | 1,644,276,960,000 | 1,644,276,960,000 | 98,875,504 | 0 | 0 | Apache-2.0 | 1,644,253,514,000 | 1,501,495,700,000 | Lean | UTF-8 | Lean | false | false | 3,750 | lean | /-
Copyright (c) 2020. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Patrick Massot
-/
import tactic.ring
import tactic.doc_commands
/-!
# `group`
Normalizes expressions in the language of groups. The basic idea is to use the simplifier
to put everything into a prod... |
0c330440fbcb28c9d9d2d88c1c601ba422cc1eae | 6e41ee3ac9b96e8980a16295cc21f131e731884f | /library/algebra/binary.lean | 8dcca166512e983481cf5525866f217c3b5310ca | [
"Apache-2.0"
] | permissive | EgbertRijke/lean | 3426cfa0e5b3d35d12fc3fd7318b35574cb67dc3 | 4f2e0c6d7fc9274d953cfa1c37ab2f3e799ab183 | refs/heads/master | 1,610,834,871,476 | 1,422,159,801,000 | 1,422,159,801,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,291 | lean | /-
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Module: algebra.binary
Authors: Leonardo de Moura, Jeremy Avigad
General properties of binary operations.
-/
import logic.eq
open eq.ops
namespace binary
section
variable {A : ... |
41888a5771a89f7953c77288d33dba57e9c9e79c | f00cc9c04d77f9621aa57d1406d35c522c3ff82c | /library/init/algebra/classes.lean | 304623b1421a032eafc5ffe6f3506271faf70fbf | [
"Apache-2.0"
] | permissive | shonfeder/lean | 444c66a74676d74fb3ef682d88cd0f5c1bf928a5 | 24d5a1592d80cefe86552d96410c51bb07e6d411 | refs/heads/master | 1,619,338,440,905 | 1,512,842,340,000 | 1,512,842,340,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 11,610 | lean | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import init.logic init.data.ordering.basic
universes u
@[algebra] class is_commutative (α : Type u) (op : α → α → α) : Prop :=
(comm : ∀ a b, op a ... |
801b412aba3d289cb6536048d85c10e84804c935 | 947b78d97130d56365ae2ec264df196ce769371a | /src/Lean/Data/Lsp/Hover.lean | 111ce5c2a16a06c19e745e2a88b49c053c04d5d7 | [
"Apache-2.0"
] | permissive | shyamalschandra/lean4 | 27044812be8698f0c79147615b1d5090b9f4b037 | 6e7a883b21eaf62831e8111b251dc9b18f40e604 | refs/heads/master | 1,671,417,126,371 | 1,601,859,995,000 | 1,601,860,020,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,170 | lean | /-
Copyright (c) 2020 Wojciech Nawrocki. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Wojciech Nawrocki
-/
import Lean.Data.Json
import Lean.Data.Lsp.Basic
/-! Handling of mouse hover requests. -/
namespace Lean
namespace Lsp
open Json
structure Hover :=
/- NOTE... |
52508eaf63ae2d33423f5d6296604c93401394e6 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /test/observe.lean | 2a6ed90bbc7999b25ed38ee4e28abe0939824d2d | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 145 | lean | import tactic.observe
example (a b c : ℕ) : a * (b * c) = (b * a) * c :=
begin
observe : a * b = b * a,
rw [← this, nat.mul_assoc],
end
|
0ae3c83b061231da5c191d7ed0f12b0bb9419ca3 | dd0f5513e11c52db157d2fcc8456d9401a6cd9da | /05_Interacting_with_Lean.org.7.lean | 73f3748e22b214be8ec0dafb561ed6fcd3b06a24 | [] | no_license | cjmazey/lean-tutorial | ba559a49f82aa6c5848b9bf17b7389bf7f4ba645 | 381f61c9fcac56d01d959ae0fa6e376f2c4e3b34 | refs/heads/master | 1,610,286,098,832 | 1,447,124,923,000 | 1,447,124,923,000 | 43,082,433 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 201 | lean | /- page 67 -/
import standard
import standard algebra.ordered_ring
open nat algebra
-- BEGIN
check succ_ne_zero
check @mul_zero
check @mul_one
check @sub_add_eq_add_sub
check @le_iff_lt_or_eq
-- END
|
eb2c09f318bb76138431d85660d14c7a416fd160 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/data/real/cau_seq_auto.lean | 78f5809041f516f8f68ee3367d4f72240427e775 | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 26,903 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.algebra.big_operators.order
import Mathlib.PostPort
universes u_1 u_2 l
namespace Mathli... |
06082bd6e7868b741d569d545d79902a47c63873 | 947b78d97130d56365ae2ec264df196ce769371a | /stage0/src/Lean/Data/Json/Printer.lean | 8c6ed569b6eaa07e65ef636934e109d64fbc2e7f | [
"Apache-2.0"
] | permissive | shyamalschandra/lean4 | 27044812be8698f0c79147615b1d5090b9f4b037 | 6e7a883b21eaf62831e8111b251dc9b18f40e604 | refs/heads/master | 1,671,417,126,371 | 1,601,859,995,000 | 1,601,860,020,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,744 | lean | /-
Copyright (c) 2019 Gabriel Ebner. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Gabriel Ebner, Marc Huisinga
-/
import Lean.Data.Format
import Lean.Data.Json.Basic
namespace Lean
namespace Json
private def escapeAux (c : Char) (acc : String) : String :=
-- escape... |
84c0145df257bf3eaaa79d67f86c7b8db765e969 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/topology/category/Top/adjunctions.lean | 5083d17585d7c7dcfca6cc709fb3972ade34c0d4 | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 1,426 | lean | /-
Copyright (c) 2017 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Patrick Massot, Mario Carneiro
-/
import topology.category.Top.basic
import category_theory.adjunction.basic
/-!
# Adjunctions regarding the category of topological spaces
> THIS FIL... |
18ca88f7826b680eae21837164cffcc58df4ed4d | 80746c6dba6a866de5431094bf9f8f841b043d77 | /test/tests/linarith.lean | b3dedc4a4e88c2011543b557ebd8b42bc65036b9 | [
"Apache-2.0"
] | permissive | leanprover-fork/mathlib-backup | 8b5c95c535b148fca858f7e8db75a76252e32987 | 0eb9db6a1a8a605f0cf9e33873d0450f9f0ae9b0 | refs/heads/master | 1,585,156,056,139 | 1,548,864,430,000 | 1,548,864,438,000 | 143,964,213 | 0 | 0 | Apache-2.0 | 1,550,795,966,000 | 1,533,705,322,000 | Lean | UTF-8 | Lean | false | false | 3,289 | lean | import tactic.linarith
example (e b c a v0 v1 : ℚ) (h1 : v0 = 5*a) (h2 : v1 = 3*b) (h3 : v0 + v1 + c = 10) :
v0 + 5 + (v1 - 3) + (c - 2) = 10 :=
by linarith
example (ε : ℚ) (h1 : ε > 0) : ε / 2 + ε / 3 + ε / 7 < ε :=
by linarith
example (x y z : ℚ) (h1 : 2*x < 3*y) (h2 : -4*x + z/2 < 0)
(h3 : 12*y - z < ... |
adbcfdf1f45bef5567036f56df4b513190814de2 | 1fd908b06e3f9c1252cb2285ada1102623a67f72 | /arity.lean | 3cd9ee24a14c4465c93dad68d9ff9307f4444620 | [
"Apache-2.0"
] | permissive | avigad/hott3 | 609a002849182721e7c7ae536d9f1e2956d6d4d3 | f64750cd2de7a81e87d4828246d1369d59f16f43 | refs/heads/master | 1,629,027,243,322 | 1,510,946,717,000 | 1,510,946,717,000 | 103,570,461 | 0 | 0 | null | 1,505,415,620,000 | 1,505,415,620,000 | null | UTF-8 | Lean | false | false | 12,474 | lean | /-
Copyright (c) 2014 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Floris van Doorn
Theorems about functions with multiple arguments
-/
import .init
universes u v w
hott_theory
namespace hott
variables {A : Type _} {U : Type _} {V : Type _} {W : ... |
c09475c8ccbbd50e7522ac112d41710c5aa10653 | 99b5e6372af1f404777312358869f95be7de84a3 | /src/hott/types/trunc.lean | d3c4587b3f7c876df486eb746a831452d5887ebb | [
"Apache-2.0"
] | permissive | forked-from-1kasper/hott3 | 8fa064ab5e8c9d6752a783d74ab226ddc5b5232a | 2db24de7a361a7793b0eae4ca5c3fd4d4a0fc691 | refs/heads/master | 1,584,867,131,028 | 1,530,766,841,000 | 1,530,766,841,000 | 139,797,034 | 0 | 0 | Apache-2.0 | 1,530,766,961,000 | 1,530,766,961,000 | null | UTF-8 | Lean | false | false | 35,636 | lean | /-
Copyright (c) 2015 Jakob von Raumer. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn
Properties of trunc_index, is_trunc, trunctype, trunc, and the pointed versions of these
-/
-- NOTE: the fact that (is_trunc n A) is a mere proposition is proved i... |
2bfff881c1c3bb9bd9ec4f95f3a1c6dd17467bcb | 453dcd7c0d1ef170b0843a81d7d8caedc9741dce | /analysis/real.lean | b5a76ffc302a5139eddc72fef5b4a6275134981b | [
"Apache-2.0"
] | permissive | amswerdlow/mathlib | 9af77a1f08486d8fa059448ae2d97795bd12ec0c | 27f96e30b9c9bf518341705c99d641c38638dfd0 | refs/heads/master | 1,585,200,953,598 | 1,534,275,532,000 | 1,534,275,532,000 | 144,564,700 | 0 | 0 | null | 1,534,156,197,000 | 1,534,156,197,000 | null | UTF-8 | Lean | false | false | 15,889 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Mario Carneiro
The real numbers ℝ.
They are constructed as the topological completion of ℚ. With the following steps:
(1) prove that ℚ forms a uniform space.
(2) subt... |
189740a1ea2b7fa32e2fdf399e5bae3d0dd84951 | c8af905dcd8475f414868d303b2eb0e9d3eb32f9 | /src/tactic/known_induct.lean | b14a6f44663af99e1c2e527ca930583635710ed0 | [
"BSD-3-Clause"
] | permissive | continuouspi/lean-cpi | 81480a13842d67ff5f3698643210d8ed5dd08de4 | 443bf2cb236feadc45a01387099c236ab2b78237 | refs/heads/master | 1,650,307,316,582 | 1,587,033,364,000 | 1,587,033,364,000 | 207,499,661 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,512 | lean | open tactic interactive interactive.types lean.parser expr
private meta def set_cases_tags (in_tag : tag) (rs : list name) : tactic unit := do
te ← tags_enabled,
gs ← get_goals,
match gs with
| [g] := when te (set_tag g in_tag) -- if only one goal was produced, we should not make the tag longer
| _ := do
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.